From c91ff7b9be724a4048327b35ecc13cefad7f7a54 Mon Sep 17 00:00:00 2001 From: Ced Naru Date: Sun, 13 Oct 2024 11:19:56 +0200 Subject: [PATCH 1/8] Create common module used by godot-library and common-tools --- .github/workflows/deploy_jvm.yml | 5 +++ .../codegen/exceptions/TooManyArgument.kt | 2 +- .../kotlin/godot/codegen/generationEntry.kt | 6 ++-- .../models/enriched/EnrichedArgument.kt | 4 +-- .../codegen/models/enriched/EnrichedClass.kt | 2 +- .../codegen/models/enriched/EnrichedMethod.kt | 4 +-- .../models/enriched/EnrichedProperty.kt | 2 +- .../codegen/models/enriched/EnrichedSignal.kt | 6 ++-- .../models/enriched/EnrichedSingleton.kt | 2 +- .../godot/codegen/traits/IDocumented.kt | 4 +-- kt/common/build.gradle.kts | 32 +++++++++++++++++++ kt/common/settings.gradle.kts | 30 +++++++++++++++++ .../godot}/common/constants/Constraints.kt | 4 +-- .../common/extensions/StringExtensions.kt | 2 +- .../checks/ConstructorArgCountCheck.kt | 2 +- .../checks/FunctionArgCountCheck.kt | 2 +- .../entrygenerator/ext/TypeExtensions.kt | 2 +- .../filebuilder/RegistrationFileGenerator.kt | 2 +- kt/godot-library/build.gradle.kts | 2 +- .../main/kotlin/godot/core/Constructors.kt | 2 +- .../src/main/kotlin/godot/core/Functions.kt | 2 +- .../kotlin/godot/core/ParametersReader.kt | 2 +- .../src/main/kotlin/godot/core/Signal.kt | 2 +- .../kotlin/godot/core/memory/MemoryManager.kt | 2 +- .../godot/core/memory/TransferContext.kt | 2 +- .../kotlin/godot/registration/Registration.kt | 4 +-- .../setupConfigurationsAndCompilations.kt | 2 +- .../annotator/clazz/RegisterClassAnnotator.kt | 2 +- .../function/RegisterFunctionAnnotator.kt | 2 +- .../signalconnection/SignalConnectionCache.kt | 2 +- .../linemarker/RegisteredNameLineMarker.kt | 2 +- kt/settings.gradle.kts | 6 ++++ kt/tools-common/build.gradle.kts | 1 + src/constraints.h | 4 +-- 34 files changed, 113 insertions(+), 39 deletions(-) create mode 100644 kt/common/build.gradle.kts create mode 100644 kt/common/settings.gradle.kts rename kt/{tools-common/src/main/kotlin/godot/tools => common/src/main/kotlin/godot}/common/constants/Constraints.kt (77%) rename kt/{tools-common/src/main/kotlin/godot/tools => common/src/main/kotlin/godot}/common/extensions/StringExtensions.kt (97%) diff --git a/.github/workflows/deploy_jvm.yml b/.github/workflows/deploy_jvm.yml index e577bb28fe..1d6403b8d5 100644 --- a/.github/workflows/deploy_jvm.yml +++ b/.github/workflows/deploy_jvm.yml @@ -47,6 +47,11 @@ jobs: with: cache-read-only: ${{ github.ref != 'refs/heads/master' }} + - name: Publish tools-common + shell: sh + run: | + modules/kotlin_jvm/kt/gradlew -p modules/kotlin_jvm/kt/ :common:publish + - name: Publish tools-common shell: sh run: | diff --git a/kt/api-generator/src/main/kotlin/godot/codegen/exceptions/TooManyArgument.kt b/kt/api-generator/src/main/kotlin/godot/codegen/exceptions/TooManyArgument.kt index ebccbc7daa..2c929da5fe 100644 --- a/kt/api-generator/src/main/kotlin/godot/codegen/exceptions/TooManyArgument.kt +++ b/kt/api-generator/src/main/kotlin/godot/codegen/exceptions/TooManyArgument.kt @@ -2,7 +2,7 @@ package godot.codegen.exceptions import godot.codegen.models.enriched.EnrichedMethod import godot.codegen.models.enriched.EnrichedSignal -import godot.tools.common.constants.Constraints +import godot.common.constants.Constraints class TooManyMethodArgument(method: EnrichedMethod) : Exception("${method.name} has ${method.arguments.size} arguments but the maximum number is ${Constraints.MAX_FUNCTION_ARG_COUNT}") diff --git a/kt/api-generator/src/main/kotlin/godot/codegen/generationEntry.kt b/kt/api-generator/src/main/kotlin/godot/codegen/generationEntry.kt index fb411e0503..511987da22 100644 --- a/kt/api-generator/src/main/kotlin/godot/codegen/generationEntry.kt +++ b/kt/api-generator/src/main/kotlin/godot/codegen/generationEntry.kt @@ -26,7 +26,7 @@ import godot.codegen.services.impl.EnumService import godot.codegen.services.impl.GenerationService import godot.codegen.services.impl.LambdaCallableGenerationService import godot.codegen.services.impl.SignalGenerationService -import godot.tools.common.constants.Constraints +import godot.common.constants.Constraints import godot.tools.common.constants.GENERATED_COMMENT import godot.tools.common.constants.godotApiPackage import java.io.File @@ -89,9 +89,9 @@ fun File.generateApiFrom(jsonSource: File) { } LambdaCallableGenerationService().generate(Constraints.MAX_FUNCTION_ARG_COUNT).writeTo(this) - SignalGenerationService().generate(Constraints.MAX_FUNCTION_ARG_COUNT).writeTo(this) + SignalGenerationService().generate(Constraints.MAX_SIGNAL_ARG_COUNT).writeTo(this) } fun File.generateCoroutine() { - AwaitGenerationService.generate(Constraints.MAX_FUNCTION_ARG_COUNT).writeTo(this) + AwaitGenerationService.generate(Constraints.MAX_SIGNAL_ARG_COUNT).writeTo(this) } diff --git a/kt/api-generator/src/main/kotlin/godot/codegen/models/enriched/EnrichedArgument.kt b/kt/api-generator/src/main/kotlin/godot/codegen/models/enriched/EnrichedArgument.kt index 1fa861c5a3..0a8a9f5fa5 100644 --- a/kt/api-generator/src/main/kotlin/godot/codegen/models/enriched/EnrichedArgument.kt +++ b/kt/api-generator/src/main/kotlin/godot/codegen/models/enriched/EnrichedArgument.kt @@ -7,8 +7,8 @@ import godot.codegen.traits.NullableTrait import godot.codegen.traits.WithDefaultValueTrait import godot.codegen.workarounds.sanitizeApiType import godot.tools.common.constants.GodotTypes -import godot.tools.common.extensions.convertToCamelCase -import godot.tools.common.extensions.escapeKotlinReservedNames +import godot.common.extensions.convertToCamelCase +import godot.common.extensions.escapeKotlinReservedNames class EnrichedArgument(val internal: Argument, canBeNull: Boolean) : CastableTrait, NullableTrait, WithDefaultValueTrait { val name = internal.name.convertToCamelCase().escapeKotlinReservedNames() 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 242613d676..4588ee4a30 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 @@ -5,7 +5,7 @@ import godot.codegen.models.Class import godot.codegen.models.custom.AdditionalImport import godot.codegen.traits.IDocumented import godot.codegen.traits.TypedTrait -import godot.tools.common.extensions.escapeUnderscore +import godot.common.extensions.escapeUnderscore import java.util.* class EnrichedClass(val internal: Class) : TypedTrait, IDocumented { 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 96412c94b3..62d66e7d73 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 @@ -7,9 +7,9 @@ import godot.codegen.models.Method import godot.codegen.traits.CallableTrait import godot.codegen.traits.IDocumented import godot.codegen.workarounds.sanitizeApiType -import godot.tools.common.constants.Constraints +import godot.common.constants.Constraints import godot.tools.common.constants.GodotTypes -import godot.tools.common.extensions.convertToCamelCase +import godot.common.extensions.convertToCamelCase class EnrichedMethod(val internal: Method) : CallableTrait, IDocumented { override val arguments = internal.arguments?.toEnriched() ?: listOf() diff --git a/kt/api-generator/src/main/kotlin/godot/codegen/models/enriched/EnrichedProperty.kt b/kt/api-generator/src/main/kotlin/godot/codegen/models/enriched/EnrichedProperty.kt index 965b455839..004429f8fc 100644 --- a/kt/api-generator/src/main/kotlin/godot/codegen/models/enriched/EnrichedProperty.kt +++ b/kt/api-generator/src/main/kotlin/godot/codegen/models/enriched/EnrichedProperty.kt @@ -9,7 +9,7 @@ import godot.codegen.traits.IDocumented import godot.codegen.traits.NullableTrait import godot.codegen.workarounds.sanitizeApiType import godot.tools.common.constants.GodotTypes -import godot.tools.common.extensions.convertToCamelCase +import godot.common.extensions.convertToCamelCase class EnrichedProperty(val internal: Property) : CastableTrait, NullableTrait, IDocumented { val name = internal.name.convertToCamelCase() diff --git a/kt/api-generator/src/main/kotlin/godot/codegen/models/enriched/EnrichedSignal.kt b/kt/api-generator/src/main/kotlin/godot/codegen/models/enriched/EnrichedSignal.kt index b2efaa6e40..07df3eb8b6 100644 --- a/kt/api-generator/src/main/kotlin/godot/codegen/models/enriched/EnrichedSignal.kt +++ b/kt/api-generator/src/main/kotlin/godot/codegen/models/enriched/EnrichedSignal.kt @@ -4,9 +4,9 @@ import godot.codegen.exceptions.TooManySignalArgument import godot.codegen.models.Signal import godot.codegen.traits.IDocumented import godot.codegen.traits.TypedTrait -import godot.tools.common.constants.Constraints -import godot.tools.common.extensions.convertToCamelCase -import godot.tools.common.extensions.escapeKotlinReservedNames +import godot.common.constants.Constraints +import godot.common.extensions.convertToCamelCase +import godot.common.extensions.escapeKotlinReservedNames class EnrichedSignal(val internal: Signal) : TypedTrait, IDocumented { val name = internal.name.convertToCamelCase() diff --git a/kt/api-generator/src/main/kotlin/godot/codegen/models/enriched/EnrichedSingleton.kt b/kt/api-generator/src/main/kotlin/godot/codegen/models/enriched/EnrichedSingleton.kt index 8c83bd6ef9..ae8a9dc507 100644 --- a/kt/api-generator/src/main/kotlin/godot/codegen/models/enriched/EnrichedSingleton.kt +++ b/kt/api-generator/src/main/kotlin/godot/codegen/models/enriched/EnrichedSingleton.kt @@ -1,6 +1,6 @@ package godot.codegen.models.enriched -import godot.tools.common.extensions.escapeUnderscore +import godot.common.extensions.escapeUnderscore import godot.codegen.workarounds.sanitizeApiType import godot.codegen.models.Singleton diff --git a/kt/api-generator/src/main/kotlin/godot/codegen/traits/IDocumented.kt b/kt/api-generator/src/main/kotlin/godot/codegen/traits/IDocumented.kt index ea2c1b8f7e..792948958c 100644 --- a/kt/api-generator/src/main/kotlin/godot/codegen/traits/IDocumented.kt +++ b/kt/api-generator/src/main/kotlin/godot/codegen/traits/IDocumented.kt @@ -3,7 +3,7 @@ package godot.codegen.traits import com.squareup.kotlinpoet.FunSpec import com.squareup.kotlinpoet.PropertySpec import com.squareup.kotlinpoet.TypeSpec -import godot.tools.common.extensions.convertToCamelCase +import godot.common.extensions.convertToCamelCase private const val constantTitle = "constant" @@ -111,4 +111,4 @@ fun FunSpec.Builder.addKdoc(documented: IDocumented): FunSpec.Builder { } else { this.addKdoc(documentation) } -} \ No newline at end of file +} diff --git a/kt/common/build.gradle.kts b/kt/common/build.gradle.kts new file mode 100644 index 0000000000..39daa52362 --- /dev/null +++ b/kt/common/build.gradle.kts @@ -0,0 +1,32 @@ +import versioninfo.fullGodotKotlinJvmVersion + +plugins { + alias(libs.plugins.kotlin.jvm) + alias(libs.plugins.grgit) + id("com.utopia-rise.godot-publish") + id("com.utopia-rise.versioninfo") +} + +// the version is not inherited from the root build.gradle.kts as this here is a separate gradle project. Hence, we set it +// through the godot-dependencies plugin +version = fullGodotKotlinJvmVersion +group = "com.utopia-rise" + +kotlin { + jvmToolchain(11) +} + +publishing { + publications { + @Suppress("UNUSED_VARIABLE") + val godotToolsCommonGenerator by creating(MavenPublication::class) { + pom { + name.set(project.name) + description.set("Godot common module other libraries.") + } + artifactId = project.name + description = "Godot common module other libraries." + from(components.getByName("java")) + } + } +} diff --git a/kt/common/settings.gradle.kts b/kt/common/settings.gradle.kts new file mode 100644 index 0000000000..dd4aac20b3 --- /dev/null +++ b/kt/common/settings.gradle.kts @@ -0,0 +1,30 @@ + +pluginManagement { + includeBuild("../build-logic") + repositories { + mavenLocal() + mavenCentral() + gradlePluginPortal() + google() + } +} + +dependencyResolutionManagement { + @Suppress("UnstableApiUsage") + repositories { + mavenLocal() + mavenCentral() + google() + } + + versionCatalogs { + create("libs") { + from(files("../gradle/libs.versions.toml")) + } + } +} + +plugins { + // to automatically download the toolchain jdk if missing + id("org.gradle.toolchains.foojay-resolver-convention") version "0.6.0" +} diff --git a/kt/tools-common/src/main/kotlin/godot/tools/common/constants/Constraints.kt b/kt/common/src/main/kotlin/godot/common/constants/Constraints.kt similarity index 77% rename from kt/tools-common/src/main/kotlin/godot/tools/common/constants/Constraints.kt rename to kt/common/src/main/kotlin/godot/common/constants/Constraints.kt index 5c7dc388ee..5ad9ccd98c 100644 --- a/kt/tools-common/src/main/kotlin/godot/tools/common/constants/Constraints.kt +++ b/kt/common/src/main/kotlin/godot/common/constants/Constraints.kt @@ -1,9 +1,9 @@ -package godot.tools.common.constants +package godot.common.constants // when changed; also update constraints.h! // Since Godot 4, an unlimited amount of parameters is supported. Limits should be increased when appropriate. object Constraints { const val MAX_CONSTRUCTOR_ARG_COUNT = 8 const val MAX_FUNCTION_ARG_COUNT = 16 - const val MAX_SIGNAL_ARG_COUNT = 8 + const val MAX_SIGNAL_ARG_COUNT = 16 } diff --git a/kt/tools-common/src/main/kotlin/godot/tools/common/extensions/StringExtensions.kt b/kt/common/src/main/kotlin/godot/common/extensions/StringExtensions.kt similarity index 97% rename from kt/tools-common/src/main/kotlin/godot/tools/common/extensions/StringExtensions.kt rename to kt/common/src/main/kotlin/godot/common/extensions/StringExtensions.kt index 8eae197e0f..a2c556d0a7 100644 --- a/kt/tools-common/src/main/kotlin/godot/tools/common/extensions/StringExtensions.kt +++ b/kt/common/src/main/kotlin/godot/common/extensions/StringExtensions.kt @@ -1,4 +1,4 @@ -package godot.tools.common.extensions +package godot.common.extensions import java.util.* diff --git a/kt/entry-generation/godot-entry-generator/src/main/kotlin/godot/entrygenerator/checks/ConstructorArgCountCheck.kt b/kt/entry-generation/godot-entry-generator/src/main/kotlin/godot/entrygenerator/checks/ConstructorArgCountCheck.kt index 371ae9154a..51c8c708dc 100644 --- a/kt/entry-generation/godot-entry-generator/src/main/kotlin/godot/entrygenerator/checks/ConstructorArgCountCheck.kt +++ b/kt/entry-generation/godot-entry-generator/src/main/kotlin/godot/entrygenerator/checks/ConstructorArgCountCheck.kt @@ -2,7 +2,7 @@ package godot.entrygenerator.checks import godot.entrygenerator.model.SourceFile import godot.entrygenerator.utils.Logger -import godot.tools.common.constants.Constraints +import godot.common.constants.Constraints class ConstructorArgCountCheck(logger: Logger, sourceFiles: List): BaseCheck(logger, sourceFiles) { override fun execute(): Boolean { diff --git a/kt/entry-generation/godot-entry-generator/src/main/kotlin/godot/entrygenerator/checks/FunctionArgCountCheck.kt b/kt/entry-generation/godot-entry-generator/src/main/kotlin/godot/entrygenerator/checks/FunctionArgCountCheck.kt index 3bf1546aae..30f7d5360a 100644 --- a/kt/entry-generation/godot-entry-generator/src/main/kotlin/godot/entrygenerator/checks/FunctionArgCountCheck.kt +++ b/kt/entry-generation/godot-entry-generator/src/main/kotlin/godot/entrygenerator/checks/FunctionArgCountCheck.kt @@ -2,7 +2,7 @@ package godot.entrygenerator.checks import godot.entrygenerator.model.SourceFile import godot.entrygenerator.utils.Logger -import godot.tools.common.constants.Constraints +import godot.common.constants.Constraints class FunctionArgCountCheck(logger: Logger, sourceFiles: List): BaseCheck(logger, sourceFiles) { override fun execute(): Boolean { diff --git a/kt/entry-generation/godot-entry-generator/src/main/kotlin/godot/entrygenerator/ext/TypeExtensions.kt b/kt/entry-generation/godot-entry-generator/src/main/kotlin/godot/entrygenerator/ext/TypeExtensions.kt index ee83db8958..67b9602d49 100644 --- a/kt/entry-generation/godot-entry-generator/src/main/kotlin/godot/entrygenerator/ext/TypeExtensions.kt +++ b/kt/entry-generation/godot-entry-generator/src/main/kotlin/godot/entrygenerator/ext/TypeExtensions.kt @@ -39,7 +39,7 @@ import godot.tools.common.constants.godotCorePackage import godot.tools.common.constants.godotUtilPackage import godot.tools.common.constants.kotlinCollectionsPackage import godot.tools.common.constants.variantParserPackage -import godot.tools.common.extensions.convertToCamelCase +import godot.common.extensions.convertToCamelCase import java.util.* //TODO: make compatible with other languages diff --git a/kt/entry-generation/godot-entry-generator/src/main/kotlin/godot/entrygenerator/filebuilder/RegistrationFileGenerator.kt b/kt/entry-generation/godot-entry-generator/src/main/kotlin/godot/entrygenerator/filebuilder/RegistrationFileGenerator.kt index 84f7714356..68061bb571 100644 --- a/kt/entry-generation/godot-entry-generator/src/main/kotlin/godot/entrygenerator/filebuilder/RegistrationFileGenerator.kt +++ b/kt/entry-generation/godot-entry-generator/src/main/kotlin/godot/entrygenerator/filebuilder/RegistrationFileGenerator.kt @@ -1,7 +1,7 @@ package godot.entrygenerator.filebuilder import godot.entrygenerator.model.RegisteredClassMetadataContainer -import godot.tools.common.extensions.convertToSnakeCase +import godot.common.extensions.convertToSnakeCase import java.io.BufferedWriter class RegistrationFileGenerator( diff --git a/kt/godot-library/build.gradle.kts b/kt/godot-library/build.gradle.kts index b953bf0c76..a6c16c5ee7 100644 --- a/kt/godot-library/build.gradle.kts +++ b/kt/godot-library/build.gradle.kts @@ -37,7 +37,7 @@ dependencies { // added here as a transitive dependency so the user can use reflection // we need to add it here so reflection is available where the code is loaded (Bootstrap.kt) otherwise it will not work api(kotlin("reflect", version = libs.versions.kotlin.get())) - implementation("com.utopia-rise:tools-common:$fullGodotKotlinJvmVersion") + implementation("com.utopia-rise:common:$fullGodotKotlinJvmVersion") testImplementation("junit", "junit", "4.12") } diff --git a/kt/godot-library/src/main/kotlin/godot/core/Constructors.kt b/kt/godot-library/src/main/kotlin/godot/core/Constructors.kt index 6d3137a181..c9c285cef0 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/Constructors.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/Constructors.kt @@ -4,7 +4,7 @@ package godot.core import godot.core.memory.MemoryManager import godot.core.memory.TransferContext -import godot.tools.common.constants.Constraints +import godot.common.constants.Constraints import godot.util.VoidPtr import godot.util.threadLocal diff --git a/kt/godot-library/src/main/kotlin/godot/core/Functions.kt b/kt/godot-library/src/main/kotlin/godot/core/Functions.kt index 0931220979..dc23f5d81e 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/Functions.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/Functions.kt @@ -3,7 +3,7 @@ package godot.core import godot.core.memory.TransferContext -import godot.tools.common.extensions.convertToSnakeCase +import godot.common.extensions.convertToSnakeCase import godot.util.GodotLogging data class KtFunctionInfo( diff --git a/kt/godot-library/src/main/kotlin/godot/core/ParametersReader.kt b/kt/godot-library/src/main/kotlin/godot/core/ParametersReader.kt index 72a82272e7..1ce93b1018 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/ParametersReader.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/ParametersReader.kt @@ -1,7 +1,7 @@ package godot.core import godot.core.memory.TransferContext -import godot.tools.common.constants.Constraints +import godot.common.constants.Constraints import godot.util.threadLocal internal open class ParametersReader { diff --git a/kt/godot-library/src/main/kotlin/godot/core/Signal.kt b/kt/godot-library/src/main/kotlin/godot/core/Signal.kt index 210d223a48..0979d290c2 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/Signal.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/Signal.kt @@ -3,7 +3,7 @@ package godot.core import godot.Node import godot.Object import godot.global.GD -import godot.tools.common.extensions.convertToSnakeCase +import godot.common.extensions.convertToSnakeCase private val connectMethodName = "connect".asStringName() diff --git a/kt/godot-library/src/main/kotlin/godot/core/memory/MemoryManager.kt b/kt/godot-library/src/main/kotlin/godot/core/memory/MemoryManager.kt index d0feef4340..2123d026a4 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/memory/MemoryManager.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/memory/MemoryManager.kt @@ -9,7 +9,7 @@ import godot.core.ObjectID import godot.core.StringName import godot.core.TypeManager import godot.core.VariantParser -import godot.tools.common.extensions.convertToSnakeCase +import godot.common.extensions.convertToSnakeCase import godot.util.LRUCache import godot.util.VoidPtr import java.util.concurrent.ConcurrentHashMap diff --git a/kt/godot-library/src/main/kotlin/godot/core/memory/TransferContext.kt b/kt/godot-library/src/main/kotlin/godot/core/memory/TransferContext.kt index 2d1f2401b6..e77532d929 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/memory/TransferContext.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/memory/TransferContext.kt @@ -4,7 +4,7 @@ import godot.core.KtObject import godot.core.LongStringQueue import godot.core.ObjectID import godot.core.VariantConverter -import godot.tools.common.constants.Constraints +import godot.common.constants.Constraints import godot.util.VoidPtr import godot.util.threadLocal import kotlincompile.definitions.GodotJvmBuildConfig diff --git a/kt/godot-library/src/main/kotlin/godot/registration/Registration.kt b/kt/godot-library/src/main/kotlin/godot/registration/Registration.kt index 3b94ca7da1..7acb047795 100644 --- a/kt/godot-library/src/main/kotlin/godot/registration/Registration.kt +++ b/kt/godot-library/src/main/kotlin/godot/registration/Registration.kt @@ -34,8 +34,8 @@ import godot.core.VariantConverter import godot.core.VariantParser import godot.core.toVariantArray import godot.core.variantArrayOf -import godot.tools.common.constants.Constraints -import godot.tools.common.extensions.convertToSnakeCase +import godot.common.constants.Constraints +import godot.common.extensions.convertToSnakeCase import kotlin.reflect.KClass import kotlin.reflect.KFunction1 import kotlin.reflect.KFunction10 diff --git a/kt/plugins/godot-gradle-plugin/src/main/kotlin/godot/gradle/projectExt/setupConfigurationsAndCompilations.kt b/kt/plugins/godot-gradle-plugin/src/main/kotlin/godot/gradle/projectExt/setupConfigurationsAndCompilations.kt index 33d051e2db..1d0894be6c 100644 --- a/kt/plugins/godot-gradle-plugin/src/main/kotlin/godot/gradle/projectExt/setupConfigurationsAndCompilations.kt +++ b/kt/plugins/godot-gradle-plugin/src/main/kotlin/godot/gradle/projectExt/setupConfigurationsAndCompilations.kt @@ -33,7 +33,7 @@ fun Project.setupConfigurationsAndCompilations() { with(it.dependencies) { add(dependencies.create("org.jetbrains.kotlin:kotlin-stdlib:${kotlinJvmExtension.coreLibrariesVersion}")) add(dependencies.create("com.utopia-rise:$godotLibraryArtifactName:${GodotBuildProperties.assembledGodotKotlinJvmVersion}")) - add(dependencies.create("com.utopia-rise:tools-common:${GodotBuildProperties.assembledGodotKotlinJvmVersion}")) + add(dependencies.create("com.utopia-rise:common:${GodotBuildProperties.assembledGodotKotlinJvmVersion}")) // add reflection explicitly so it's usable in exported projects as well. See: GH-571 add(dependencies.create("org.jetbrains.kotlin:kotlin-reflect:${GodotBuildProperties.supportedKotlinVersion}")) diff --git a/kt/plugins/godot-intellij-plugin/src/main/kotlin/godot/intellij/plugin/annotator/clazz/RegisterClassAnnotator.kt b/kt/plugins/godot-intellij-plugin/src/main/kotlin/godot/intellij/plugin/annotator/clazz/RegisterClassAnnotator.kt index 9990c1f091..4915f965e6 100644 --- a/kt/plugins/godot-intellij-plugin/src/main/kotlin/godot/intellij/plugin/annotator/clazz/RegisterClassAnnotator.kt +++ b/kt/plugins/godot-intellij-plugin/src/main/kotlin/godot/intellij/plugin/annotator/clazz/RegisterClassAnnotator.kt @@ -21,7 +21,7 @@ import godot.intellij.plugin.extension.registeredClassNameCache import godot.intellij.plugin.extension.resolveToDescriptor import godot.intellij.plugin.quickfix.ClassAlreadyRegisteredQuickFix import godot.intellij.plugin.quickfix.ClassNotRegisteredQuickFix -import godot.tools.common.constants.Constraints +import godot.common.constants.Constraints import godot.tools.common.constants.GodotKotlinJvmTypes import godot.tools.common.constants.godotCorePackage import org.jetbrains.kotlin.idea.base.util.module diff --git a/kt/plugins/godot-intellij-plugin/src/main/kotlin/godot/intellij/plugin/annotator/function/RegisterFunctionAnnotator.kt b/kt/plugins/godot-intellij-plugin/src/main/kotlin/godot/intellij/plugin/annotator/function/RegisterFunctionAnnotator.kt index 153c68780e..9d42989a14 100644 --- a/kt/plugins/godot-intellij-plugin/src/main/kotlin/godot/intellij/plugin/annotator/function/RegisterFunctionAnnotator.kt +++ b/kt/plugins/godot-intellij-plugin/src/main/kotlin/godot/intellij/plugin/annotator/function/RegisterFunctionAnnotator.kt @@ -11,7 +11,7 @@ import godot.intellij.plugin.data.model.REGISTER_FUNCTION_ANNOTATION import godot.intellij.plugin.extension.isInGodotRoot import godot.intellij.plugin.extension.registerProblem import godot.intellij.plugin.quickfix.FunctionNotRegisteredQuickFix -import godot.tools.common.constants.Constraints +import godot.common.constants.Constraints import godot.tools.common.constants.GodotTypes import org.jetbrains.kotlin.asJava.toLightMethods import org.jetbrains.kotlin.idea.caches.resolve.resolveToDescriptorIfAny diff --git a/kt/plugins/godot-intellij-plugin/src/main/kotlin/godot/intellij/plugin/data/cache/signalconnection/SignalConnectionCache.kt b/kt/plugins/godot-intellij-plugin/src/main/kotlin/godot/intellij/plugin/data/cache/signalconnection/SignalConnectionCache.kt index 9837717f00..660ba2b79d 100644 --- a/kt/plugins/godot-intellij-plugin/src/main/kotlin/godot/intellij/plugin/data/cache/signalconnection/SignalConnectionCache.kt +++ b/kt/plugins/godot-intellij-plugin/src/main/kotlin/godot/intellij/plugin/data/cache/signalconnection/SignalConnectionCache.kt @@ -6,7 +6,7 @@ import godot.intellij.plugin.data.model.IncomingSignalConnectionDataContainer import godot.intellij.plugin.data.model.OutgoingSignalConnectionDataContainer import godot.intellij.plugin.extension.asResPath import godot.tools.common.constants.FileExtensions -import godot.tools.common.extensions.convertToCamelCase +import godot.common.extensions.convertToCamelCase class SignalConnectionCache { private val incomingSignalConnectionDataContainers: MutableMap>> = diff --git a/kt/plugins/godot-intellij-plugin/src/main/kotlin/godot/intellij/plugin/linemarker/RegisteredNameLineMarker.kt b/kt/plugins/godot-intellij-plugin/src/main/kotlin/godot/intellij/plugin/linemarker/RegisteredNameLineMarker.kt index 80d36f653c..76b2589546 100644 --- a/kt/plugins/godot-intellij-plugin/src/main/kotlin/godot/intellij/plugin/linemarker/RegisteredNameLineMarker.kt +++ b/kt/plugins/godot-intellij-plugin/src/main/kotlin/godot/intellij/plugin/linemarker/RegisteredNameLineMarker.kt @@ -20,7 +20,7 @@ import godot.intellij.plugin.data.model.REGISTER_SIGNAL_ANNOTATION import godot.intellij.plugin.extension.getRegisteredClassName import godot.intellij.plugin.extension.isAbstract import godot.intellij.plugin.extension.isInGodotRoot -import godot.tools.common.extensions.convertToSnakeCase +import godot.common.extensions.convertToSnakeCase import org.jetbrains.kotlin.idea.refactoring.isAbstract import org.jetbrains.kotlin.idea.util.findAnnotation import org.jetbrains.kotlin.lexer.KtTokens diff --git a/kt/settings.gradle.kts b/kt/settings.gradle.kts index cb1c636104..81c9d0cf1c 100644 --- a/kt/settings.gradle.kts +++ b/kt/settings.gradle.kts @@ -59,6 +59,12 @@ subdir("utils") { include("godot-build-props") } +includeBuild("common") { + dependencySubstitution { + substitute(module("com.utopia-rise:common")).using(project(":")) + } +} + includeBuild("tools-common") { dependencySubstitution { substitute(module("com.utopia-rise:tools-common")).using(project(":")) diff --git a/kt/tools-common/build.gradle.kts b/kt/tools-common/build.gradle.kts index 5a7d7f0c44..9c5e90e098 100644 --- a/kt/tools-common/build.gradle.kts +++ b/kt/tools-common/build.gradle.kts @@ -18,6 +18,7 @@ kotlin { dependencies { implementation(libs.kotlinPoet) + api("com.utopia-rise:common:$fullGodotKotlinJvmVersion") } publishing { diff --git a/src/constraints.h b/src/constraints.h index 1f3d1bb74f..3bbefdadbc 100644 --- a/src/constraints.h +++ b/src/constraints.h @@ -1,10 +1,10 @@ #ifndef GODOT_JVM_CONSTRAINTS_H #define GODOT_JVM_CONSTRAINTS_H -// when changed, also update godot.tools.common.constants.Constraints.MAX_CONSTRUCTOR_ARG_COUNT! +// when changed, also update godot.common.constants.Constraints.MAX_CONSTRUCTOR_ARG_COUNT! static constexpr const int MAX_CONSTRUCTOR_ARG_COUNT {8}; -// when changed, also update godot.tools.common.constants.Constraints.MAX_FUNCTION_ARG_COUNT! +// when changed, also update godot.common.constants.Constraints.MAX_FUNCTION_ARG_COUNT! static constexpr const int MAX_FUNCTION_ARG_COUNT {16}; #endif //GODOT_JVM_CONSTRAINTS_H From 9fbfb27749b434f182ae0f78ea75db019e6d73a3 Mon Sep 17 00:00:00 2001 From: Ced Naru Date: Sun, 13 Oct 2024 11:56:00 +0200 Subject: [PATCH 2/8] Move utils methods to common + add interop --- .../codegen/constants/GodotClassNames.kt | 5 - .../services/impl/GenerationService.kt | 4 +- .../godot/common/interop/NativePointer.kt | 12 + .../kotlin/godot/common/interop}/ObjectID.kt | 4 +- .../main/kotlin/godot/common}/util/Cache.kt | 4 +- .../godot/common}/util/IndexedIterator.kt | 8 +- .../kotlin/godot/common}/util/MathFuncs.kt | 14 +- .../main/kotlin/godot/common/util/Nullable.kt | 3 + .../common}/util/ThreadLocalDelegates.kt | 6 +- .../main/kotlin/godot/common/util/Types.kt} | 10 +- .../godot/coroutines/awaitResourceLoad.kt | 2 +- .../main/kotlin/godot/core/Constructors.kt | 4 +- .../src/main/kotlin/godot/core/CoreType.kt | 7 +- .../src/main/kotlin/godot/core/Functions.kt | 1 - .../src/main/kotlin/godot/core/KtObject.kt | 18 +- .../{util/logging.kt => core/Logging.kt} | 6 +- .../kotlin/godot/core/ParametersReader.kt | 2 +- .../src/main/kotlin/godot/core/Properties.kt | 1 - .../src/main/kotlin/godot/core/TypeManager.kt | 2 +- .../src/main/kotlin/godot/core/Variant.kt | 10 +- .../kotlin/godot/core/bridge/Dictionary.kt | 50 +- .../godot/core/bridge/LambdaCallable.kt | 3 +- .../godot/core/bridge/NativeCallable.kt | 49 +- .../main/kotlin/godot/core/bridge/NodePath.kt | 37 +- .../kotlin/godot/core/bridge/StringName.kt | 12 +- .../kotlin/godot/core/bridge/VariantArray.kt | 100 +- .../godot/core/bridge/packed/PackedArray.kt | 48 +- .../core/bridge/packed/PackedByteArray.kt | 94 +- .../core/bridge/packed/PackedColorArray.kt | 12 +- .../core/bridge/packed/PackedFloat32Array.kt | 16 +- .../core/bridge/packed/PackedFloat64Array.kt | 16 +- .../core/bridge/packed/PackedInt32Array.kt | 16 +- .../core/bridge/packed/PackedInt64Array.kt | 16 +- .../core/bridge/packed/PackedStringArray.kt | 12 +- .../core/bridge/packed/PackedVector2Array.kt | 12 +- .../core/bridge/packed/PackedVector3Array.kt | 12 +- .../core/bridge/packed/PackedVector4Array.kt | 12 +- .../src/main/kotlin/godot/core/math/AABB.kt | 2 +- .../src/main/kotlin/godot/core/math/Basis.kt | 12 +- .../src/main/kotlin/godot/core/math/Color.kt | 8 +- .../src/main/kotlin/godot/core/math/Plane.kt | 8 +- .../main/kotlin/godot/core/math/Projection.kt | 2 +- .../main/kotlin/godot/core/math/Quaternion.kt | 16 +- .../src/main/kotlin/godot/core/math/Rect2.kt | 2 +- .../kotlin/godot/core/math/Transform2D.kt | 8 +- .../kotlin/godot/core/math/Transform3D.kt | 2 +- .../main/kotlin/godot/core/math/Vector2.kt | 22 +- .../main/kotlin/godot/core/math/Vector2i.kt | 2 +- .../main/kotlin/godot/core/math/Vector3.kt | 22 +- .../main/kotlin/godot/core/math/Vector3i.kt | 4 +- .../main/kotlin/godot/core/math/Vector4.kt | 12 +- .../main/kotlin/godot/core/math/Vector4i.kt | 2 +- .../kotlin/godot/core/memory/GodotBinding.kt | 2 +- .../kotlin/godot/core/memory/MemoryManager.kt | 12 +- .../godot/core/memory/NativeCoreBinding.kt | 2 +- .../godot/core/memory/TransferContext.kt | 8 +- .../main/kotlin/godot/gen/godot/AESContext.kt | 10 +- .../main/kotlin/godot/gen/godot/AStar2D.kt | 48 +- .../main/kotlin/godot/gen/godot/AStar3D.kt | 48 +- .../kotlin/godot/gen/godot/AStarGrid2D.kt | 66 +- .../kotlin/godot/gen/godot/AcceptDialog.kt | 34 +- .../godot/gen/godot/AnimatableBody2D.kt | 6 +- .../godot/gen/godot/AnimatableBody3D.kt | 6 +- .../godot/gen/godot/AnimatedSprite2D.kt | 56 +- .../godot/gen/godot/AnimatedSprite3D.kt | 40 +- .../kotlin/godot/gen/godot/AnimatedTexture.kt | 30 +- .../main/kotlin/godot/gen/godot/Animation.kt | 150 +-- .../godot/gen/godot/AnimationLibrary.kt | 14 +- .../kotlin/godot/gen/godot/AnimationMixer.kt | 79 +- .../kotlin/godot/gen/godot/AnimationNode.kt | 32 +- .../godot/gen/godot/AnimationNodeAnimation.kt | 30 +- .../gen/godot/AnimationNodeBlendSpace1D.kt | 40 +- .../gen/godot/AnimationNodeBlendSpace2D.kt | 56 +- .../godot/gen/godot/AnimationNodeBlendTree.kt | 24 +- .../godot/gen/godot/AnimationNodeOneShot.kt | 38 +- .../gen/godot/AnimationNodeStateMachine.kt | 52 +- .../AnimationNodeStateMachinePlayback.kt | 22 +- .../AnimationNodeStateMachineTransition.kt | 38 +- .../godot/gen/godot/AnimationNodeSync.kt | 6 +- .../gen/godot/AnimationNodeTransition.kt | 28 +- .../kotlin/godot/gen/godot/AnimationPlayer.kt | 88 +- .../kotlin/godot/gen/godot/AnimationTree.kt | 18 +- .../src/main/kotlin/godot/gen/godot/Area2D.kt | 74 +- .../src/main/kotlin/godot/gen/godot/Area3D.kt | 102 +- .../main/kotlin/godot/gen/godot/ArrayMesh.kt | 53 +- .../kotlin/godot/gen/godot/ArrayOccluder3D.kt | 8 +- .../godot/gen/godot/AspectRatioContainer.kt | 18 +- .../kotlin/godot/gen/godot/AtlasTexture.kt | 18 +- .../godot/gen/godot/AudioEffectAmplify.kt | 6 +- .../godot/gen/godot/AudioEffectCapture.kt | 20 +- .../godot/gen/godot/AudioEffectChorus.kt | 38 +- .../godot/gen/godot/AudioEffectCompressor.kt | 30 +- .../godot/gen/godot/AudioEffectDelay.kt | 54 +- .../godot/gen/godot/AudioEffectDistortion.kt | 22 +- .../kotlin/godot/gen/godot/AudioEffectEQ.kt | 8 +- .../godot/gen/godot/AudioEffectFilter.kt | 18 +- .../godot/gen/godot/AudioEffectHardLimiter.kt | 14 +- .../godot/gen/godot/AudioEffectLimiter.kt | 18 +- .../godot/gen/godot/AudioEffectPanner.kt | 6 +- .../godot/gen/godot/AudioEffectPhaser.kt | 22 +- .../godot/gen/godot/AudioEffectPitchShift.kt | 14 +- .../godot/gen/godot/AudioEffectRecord.kt | 12 +- .../godot/gen/godot/AudioEffectReverb.kt | 34 +- .../gen/godot/AudioEffectSpectrumAnalyzer.kt | 14 +- .../AudioEffectSpectrumAnalyzerInstance.kt | 4 +- .../gen/godot/AudioEffectStereoEnhance.kt | 14 +- .../kotlin/godot/gen/godot/AudioListener2D.kt | 8 +- .../kotlin/godot/gen/godot/AudioListener3D.kt | 10 +- .../kotlin/godot/gen/godot/AudioServer.kt | 100 +- .../kotlin/godot/gen/godot/AudioStream.kt | 14 +- .../godot/gen/godot/AudioStreamGenerator.kt | 10 +- .../gen/godot/AudioStreamGeneratorPlayback.kt | 14 +- .../godot/gen/godot/AudioStreamInteractive.kt | 48 +- .../kotlin/godot/gen/godot/AudioStreamMP3.kt | 26 +- .../godot/gen/godot/AudioStreamOggVorbis.kt | 26 +- .../godot/gen/godot/AudioStreamPlayback.kt | 6 +- .../godot/AudioStreamPlaybackInteractive.kt | 6 +- .../godot/AudioStreamPlaybackPolyphonic.kt | 12 +- .../gen/godot/AudioStreamPlaybackResampled.kt | 4 +- .../godot/gen/godot/AudioStreamPlayer.kt | 52 +- .../godot/gen/godot/AudioStreamPlayer2D.kt | 64 +- .../godot/gen/godot/AudioStreamPlayer3D.kt | 97 +- .../godot/gen/godot/AudioStreamPlaylist.kt | 24 +- .../godot/gen/godot/AudioStreamPolyphonic.kt | 6 +- .../godot/gen/godot/AudioStreamRandomizer.kt | 32 +- .../gen/godot/AudioStreamSynchronized.kt | 14 +- .../kotlin/godot/gen/godot/AudioStreamWAV.kt | 32 +- .../kotlin/godot/gen/godot/BackBufferCopy.kt | 10 +- .../main/kotlin/godot/gen/godot/BaseButton.kt | 48 +- .../kotlin/godot/gen/godot/BaseMaterial3D.kt | 274 ++--- .../src/main/kotlin/godot/gen/godot/BitMap.kt | 28 +- .../src/main/kotlin/godot/gen/godot/Bone2D.kt | 24 +- .../godot/gen/godot/BoneAttachment3D.kt | 24 +- .../main/kotlin/godot/gen/godot/BoneMap.kt | 12 +- .../kotlin/godot/gen/godot/BoxContainer.kt | 12 +- .../main/kotlin/godot/gen/godot/BoxMesh.kt | 18 +- .../kotlin/godot/gen/godot/BoxOccluder3D.kt | 6 +- .../main/kotlin/godot/gen/godot/BoxShape3D.kt | 6 +- .../src/main/kotlin/godot/gen/godot/Button.kt | 50 +- .../kotlin/godot/gen/godot/ButtonGroup.kt | 10 +- .../kotlin/godot/gen/godot/CPUParticles2D.kt | 138 +-- .../kotlin/godot/gen/godot/CPUParticles3D.kt | 166 +-- .../main/kotlin/godot/gen/godot/CSGBox3D.kt | 10 +- .../kotlin/godot/gen/godot/CSGCylinder3D.kt | 26 +- .../main/kotlin/godot/gen/godot/CSGMesh3D.kt | 10 +- .../kotlin/godot/gen/godot/CSGPolygon3D.kt | 66 +- .../kotlin/godot/gen/godot/CSGPrimitive3D.kt | 6 +- .../main/kotlin/godot/gen/godot/CSGShape3D.kt | 42 +- .../kotlin/godot/gen/godot/CSGSphere3D.kt | 22 +- .../main/kotlin/godot/gen/godot/CSGTorus3D.kt | 26 +- .../kotlin/godot/gen/godot/CallbackTweener.kt | 4 +- .../main/kotlin/godot/gen/godot/Camera2D.kt | 100 +- .../main/kotlin/godot/gen/godot/Camera3D.kt | 100 +- .../godot/gen/godot/CameraAttributes.kt | 22 +- .../gen/godot/CameraAttributesPhysical.kt | 36 +- .../gen/godot/CameraAttributesPractical.kt | 38 +- .../main/kotlin/godot/gen/godot/CameraFeed.kt | 18 +- .../kotlin/godot/gen/godot/CameraServer.kt | 12 +- .../kotlin/godot/gen/godot/CameraTexture.kt | 14 +- .../kotlin/godot/gen/godot/CanvasGroup.kt | 14 +- .../main/kotlin/godot/gen/godot/CanvasItem.kt | 176 +-- .../godot/gen/godot/CanvasItemMaterial.kt | 26 +- .../kotlin/godot/gen/godot/CanvasLayer.kt | 46 +- .../kotlin/godot/gen/godot/CanvasModulate.kt | 6 +- .../kotlin/godot/gen/godot/CanvasTexture.kt | 30 +- .../kotlin/godot/gen/godot/CapsuleMesh.kt | 18 +- .../kotlin/godot/gen/godot/CapsuleShape2D.kt | 10 +- .../kotlin/godot/gen/godot/CapsuleShape3D.kt | 10 +- .../kotlin/godot/gen/godot/CenterContainer.kt | 6 +- .../kotlin/godot/gen/godot/CharFXTransform.kt | 54 +- .../kotlin/godot/gen/godot/CharacterBody2D.kt | 98 +- .../kotlin/godot/gen/godot/CharacterBody3D.kt | 100 +- .../kotlin/godot/gen/godot/CircleShape2D.kt | 6 +- .../main/kotlin/godot/gen/godot/ClassDB.kt | 55 +- .../main/kotlin/godot/gen/godot/CodeEdit.kt | 220 ++-- .../kotlin/godot/gen/godot/CodeHighlighter.kt | 58 +- .../godot/gen/godot/CollisionObject2D.kt | 70 +- .../godot/gen/godot/CollisionObject3D.kt | 66 +- .../godot/gen/godot/CollisionPolygon2D.kt | 22 +- .../godot/gen/godot/CollisionPolygon3D.kt | 18 +- .../godot/gen/godot/CollisionShape2D.kt | 22 +- .../godot/gen/godot/CollisionShape3D.kt | 14 +- .../kotlin/godot/gen/godot/ColorPicker.kt | 58 +- .../godot/gen/godot/ColorPickerButton.kt | 14 +- .../main/kotlin/godot/gen/godot/ColorRect.kt | 6 +- .../main/kotlin/godot/gen/godot/Compositor.kt | 6 +- .../godot/gen/godot/CompositorEffect.kt | 30 +- .../godot/gen/godot/CompressedTexture2D.kt | 6 +- .../godot/gen/godot/CompressedTexture3D.kt | 6 +- .../gen/godot/CompressedTextureLayered.kt | 6 +- .../godot/gen/godot/ConcavePolygonShape2D.kt | 6 +- .../godot/gen/godot/ConcavePolygonShape3D.kt | 10 +- .../godot/gen/godot/ConeTwistJoint3D.kt | 6 +- .../main/kotlin/godot/gen/godot/ConfigFile.kt | 36 +- .../godot/gen/godot/ConfirmationDialog.kt | 8 +- .../main/kotlin/godot/gen/godot/Container.kt | 6 +- .../main/kotlin/godot/gen/godot/Control.kt | 258 ++--- .../godot/gen/godot/ConvexPolygonShape2D.kt | 8 +- .../godot/gen/godot/ConvexPolygonShape3D.kt | 6 +- .../src/main/kotlin/godot/gen/godot/Crypto.kt | 20 +- .../main/kotlin/godot/gen/godot/CryptoKey.kt | 12 +- .../main/kotlin/godot/gen/godot/Cubemap.kt | 4 +- .../kotlin/godot/gen/godot/CubemapArray.kt | 4 +- .../src/main/kotlin/godot/gen/godot/Curve.kt | 54 +- .../main/kotlin/godot/gen/godot/Curve2D.kt | 48 +- .../main/kotlin/godot/gen/godot/Curve3D.kt | 62 +- .../kotlin/godot/gen/godot/CurveTexture.kt | 12 +- .../kotlin/godot/gen/godot/CurveXYZTexture.kt | 16 +- .../kotlin/godot/gen/godot/CylinderMesh.kt | 30 +- .../kotlin/godot/gen/godot/CylinderShape3D.kt | 10 +- .../main/kotlin/godot/gen/godot/DTLSServer.kt | 6 +- .../godot/gen/godot/DampedSpringJoint2D.kt | 18 +- .../src/main/kotlin/godot/gen/godot/Decal.kt | 50 +- .../main/kotlin/godot/gen/godot/DirAccess.kt | 52 +- .../godot/gen/godot/DirectionalLight2D.kt | 6 +- .../godot/gen/godot/DirectionalLight3D.kt | 14 +- .../kotlin/godot/gen/godot/DisplayServer.kt | 371 +++--- .../kotlin/godot/gen/godot/ENetConnection.kt | 38 +- .../godot/gen/godot/ENetMultiplayerPeer.kt | 16 +- .../kotlin/godot/gen/godot/ENetPacketPeer.kt | 32 +- .../godot/gen/godot/EncodedObjectAsID.kt | 6 +- .../src/main/kotlin/godot/gen/godot/Engine.kt | 76 +- .../kotlin/godot/gen/godot/EngineDebugger.kt | 48 +- .../kotlin/godot/gen/godot/Environment.kt | 372 +++--- .../main/kotlin/godot/gen/godot/Expression.kt | 10 +- .../main/kotlin/godot/gen/godot/FBXState.kt | 6 +- .../kotlin/godot/gen/godot/FastNoiseLite.kt | 86 +- .../main/kotlin/godot/gen/godot/FileAccess.kt | 82 +- .../main/kotlin/godot/gen/godot/FileDialog.kt | 74 +- .../kotlin/godot/gen/godot/FlowContainer.kt | 20 +- .../kotlin/godot/gen/godot/FogMaterial.kt | 26 +- .../main/kotlin/godot/gen/godot/FogVolume.kt | 14 +- .../src/main/kotlin/godot/gen/godot/Font.kt | 70 +- .../main/kotlin/godot/gen/godot/FontFile.kt | 206 ++-- .../kotlin/godot/gen/godot/FontVariation.kt | 30 +- .../godot/gen/godot/FramebufferCacheRD.kt | 2 +- .../kotlin/godot/gen/godot/GDExtension.kt | 6 +- .../godot/gen/godot/GDExtensionManager.kt | 14 +- .../main/kotlin/godot/gen/godot/GDScript.kt | 4 +- .../kotlin/godot/gen/godot/GLTFAccessor.kt | 62 +- .../kotlin/godot/gen/godot/GLTFAnimation.kt | 14 +- .../kotlin/godot/gen/godot/GLTFBufferView.kt | 28 +- .../main/kotlin/godot/gen/godot/GLTFCamera.kt | 26 +- .../kotlin/godot/gen/godot/GLTFDocument.kt | 26 +- .../main/kotlin/godot/gen/godot/GLTFLight.kt | 34 +- .../main/kotlin/godot/gen/godot/GLTFMesh.kt | 22 +- .../main/kotlin/godot/gen/godot/GLTFNode.kt | 58 +- .../kotlin/godot/gen/godot/GLTFPhysicsBody.kt | 38 +- .../godot/gen/godot/GLTFPhysicsShape.kt | 36 +- .../kotlin/godot/gen/godot/GLTFSkeleton.kt | 24 +- .../main/kotlin/godot/gen/godot/GLTFSkin.kt | 42 +- .../kotlin/godot/gen/godot/GLTFSpecGloss.kt | 22 +- .../main/kotlin/godot/gen/godot/GLTFState.kt | 138 +-- .../kotlin/godot/gen/godot/GLTFTexture.kt | 10 +- .../godot/gen/godot/GLTFTextureSampler.kt | 18 +- .../kotlin/godot/gen/godot/GPUParticles2D.kt | 106 +- .../kotlin/godot/gen/godot/GPUParticles3D.kt | 110 +- .../gen/godot/GPUParticlesAttractor3D.kt | 18 +- .../gen/godot/GPUParticlesAttractorBox3D.kt | 6 +- .../godot/GPUParticlesAttractorSphere3D.kt | 6 +- .../GPUParticlesAttractorVectorField3D.kt | 10 +- .../gen/godot/GPUParticlesCollision3D.kt | 6 +- .../gen/godot/GPUParticlesCollisionBox3D.kt | 6 +- .../GPUParticlesCollisionHeightField3D.kt | 18 +- .../gen/godot/GPUParticlesCollisionSDF3D.kt | 26 +- .../godot/GPUParticlesCollisionSphere3D.kt | 6 +- .../godot/gen/godot/Generic6DOFJoint3D.kt | 26 +- .../main/kotlin/godot/gen/godot/Geometry2D.kt | 48 +- .../main/kotlin/godot/gen/godot/Geometry3D.kt | 36 +- .../godot/gen/godot/GeometryInstance3D.kt | 67 +- .../main/kotlin/godot/gen/godot/Gradient.kt | 36 +- .../godot/gen/godot/GradientTexture1D.kt | 12 +- .../godot/gen/godot/GradientTexture2D.kt | 30 +- .../main/kotlin/godot/gen/godot/GraphEdit.kt | 142 +-- .../kotlin/godot/gen/godot/GraphElement.kt | 22 +- .../main/kotlin/godot/gen/godot/GraphFrame.kt | 28 +- .../main/kotlin/godot/gen/godot/GraphNode.kt | 74 +- .../kotlin/godot/gen/godot/GridContainer.kt | 6 +- .../main/kotlin/godot/gen/godot/GridMap.kt | 96 +- .../kotlin/godot/gen/godot/GrooveJoint2D.kt | 10 +- .../kotlin/godot/gen/godot/HMACContext.kt | 8 +- .../main/kotlin/godot/gen/godot/HTTPClient.kt | 46 +- .../kotlin/godot/gen/godot/HTTPRequest.kt | 48 +- .../kotlin/godot/gen/godot/HashingContext.kt | 8 +- .../godot/gen/godot/HeightMapShape3D.kt | 20 +- .../kotlin/godot/gen/godot/HingeJoint3D.kt | 10 +- .../src/main/kotlin/godot/gen/godot/IP.kt | 23 +- .../src/main/kotlin/godot/gen/godot/Image.kt | 136 +-- .../gen/godot/ImageFormatLoaderExtension.kt | 6 +- .../kotlin/godot/gen/godot/ImageTexture.kt | 10 +- .../kotlin/godot/gen/godot/ImageTexture3D.kt | 6 +- .../godot/gen/godot/ImageTextureLayered.kt | 6 +- .../kotlin/godot/gen/godot/ImmediateMesh.kt | 22 +- .../kotlin/godot/gen/godot/ImporterMesh.kt | 48 +- .../godot/gen/godot/ImporterMeshInstance3D.kt | 42 +- .../src/main/kotlin/godot/gen/godot/Input.kt | 110 +- .../main/kotlin/godot/gen/godot/InputEvent.kt | 32 +- .../godot/gen/godot/InputEventAction.kt | 16 +- .../godot/gen/godot/InputEventFromWindow.kt | 6 +- .../godot/gen/godot/InputEventGesture.kt | 6 +- .../godot/gen/godot/InputEventJoypadButton.kt | 12 +- .../godot/gen/godot/InputEventJoypadMotion.kt | 10 +- .../kotlin/godot/gen/godot/InputEventKey.kt | 40 +- .../kotlin/godot/gen/godot/InputEventMIDI.kt | 34 +- .../gen/godot/InputEventMagnifyGesture.kt | 6 +- .../kotlin/godot/gen/godot/InputEventMouse.kt | 14 +- .../godot/gen/godot/InputEventMouseButton.kt | 18 +- .../godot/gen/godot/InputEventMouseMotion.kt | 30 +- .../godot/gen/godot/InputEventPanGesture.kt | 6 +- .../godot/gen/godot/InputEventScreenDrag.kt | 38 +- .../godot/gen/godot/InputEventScreenTouch.kt | 18 +- .../godot/gen/godot/InputEventShortcut.kt | 6 +- .../gen/godot/InputEventWithModifiers.kt | 26 +- .../main/kotlin/godot/gen/godot/InputMap.kt | 28 +- .../godot/gen/godot/InstancePlaceholder.kt | 8 +- .../main/kotlin/godot/gen/godot/ItemList.kt | 148 +-- .../src/main/kotlin/godot/gen/godot/JSON.kt | 14 +- .../main/kotlin/godot/gen/godot/JSONRPC.kt | 16 +- .../godot/gen/godot/JavaClassWrapper.kt | 4 +- .../godot/gen/godot/JavaScriptBridge.kt | 18 +- .../main/kotlin/godot/gen/godot/Joint2D.kt | 20 +- .../main/kotlin/godot/gen/godot/Joint3D.kt | 20 +- .../main/kotlin/godot/gen/godot/JvmScript.kt | 4 +- .../godot/gen/godot/KinematicCollision2D.kt | 28 +- .../godot/gen/godot/KinematicCollision3D.kt | 30 +- .../src/main/kotlin/godot/gen/godot/Label.kt | 93 +- .../main/kotlin/godot/gen/godot/Label3D.kt | 121 +- .../kotlin/godot/gen/godot/LabelSettings.kt | 38 +- .../main/kotlin/godot/gen/godot/Light2D.kt | 66 +- .../main/kotlin/godot/gen/godot/Light3D.kt | 60 +- .../kotlin/godot/gen/godot/LightOccluder2D.kt | 14 +- .../main/kotlin/godot/gen/godot/LightmapGI.kt | 78 +- .../kotlin/godot/gen/godot/LightmapGIData.kt | 22 +- .../src/main/kotlin/godot/gen/godot/Line2D.kt | 70 +- .../main/kotlin/godot/gen/godot/LineEdit.kt | 153 ++- .../main/kotlin/godot/gen/godot/LinkButton.kt | 31 +- .../main/kotlin/godot/gen/godot/Marker2D.kt | 6 +- .../main/kotlin/godot/gen/godot/Marker3D.kt | 6 +- .../main/kotlin/godot/gen/godot/Marshalls.kt | 14 +- .../main/kotlin/godot/gen/godot/Material.kt | 14 +- .../main/kotlin/godot/gen/godot/MenuBar.kt | 50 +- .../main/kotlin/godot/gen/godot/MenuButton.kt | 16 +- .../src/main/kotlin/godot/gen/godot/Mesh.kt | 30 +- .../godot/MeshConvexDecompositionSettings.kt | 54 +- .../kotlin/godot/gen/godot/MeshDataTool.kt | 78 +- .../kotlin/godot/gen/godot/MeshInstance2D.kt | 10 +- .../kotlin/godot/gen/godot/MeshInstance3D.kt | 42 +- .../kotlin/godot/gen/godot/MeshLibrary.kt | 47 +- .../kotlin/godot/gen/godot/MeshTexture.kt | 14 +- .../kotlin/godot/gen/godot/MethodTweener.kt | 8 +- .../kotlin/godot/gen/godot/MissingNode.kt | 14 +- .../kotlin/godot/gen/godot/MissingResource.kt | 10 +- .../godot/gen/godot/MobileVRInterface.kt | 42 +- .../kotlin/godot/gen/godot/MovieWriter.kt | 2 +- .../main/kotlin/godot/gen/godot/MultiMesh.kt | 53 +- .../godot/gen/godot/MultiMeshInstance2D.kt | 10 +- .../godot/gen/godot/MultiMeshInstance3D.kt | 6 +- .../kotlin/godot/gen/godot/MultiplayerAPI.kt | 24 +- .../kotlin/godot/gen/godot/MultiplayerPeer.kt | 36 +- .../godot/gen/godot/MultiplayerSpawner.kt | 24 +- .../gen/godot/MultiplayerSynchronizer.kt | 36 +- .../src/main/kotlin/godot/gen/godot/Mutex.kt | 8 +- .../main/kotlin/godot/gen/godot/NativeMenu.kt | 134 +-- .../godot/gen/godot/NavigationAgent2D.kt | 144 +-- .../godot/gen/godot/NavigationAgent3D.kt | 156 +-- .../godot/gen/godot/NavigationLink2D.kt | 44 +- .../godot/gen/godot/NavigationLink3D.kt | 44 +- .../kotlin/godot/gen/godot/NavigationMesh.kt | 118 +- .../gen/godot/NavigationMeshGenerator.kt | 10 +- .../NavigationMeshSourceGeometryData2D.kt | 32 +- .../NavigationMeshSourceGeometryData3D.kt | 32 +- .../godot/gen/godot/NavigationObstacle2D.kt | 40 +- .../godot/gen/godot/NavigationObstacle3D.kt | 48 +- .../godot/NavigationPathQueryParameters2D.kt | 38 +- .../godot/NavigationPathQueryParameters3D.kt | 38 +- .../gen/godot/NavigationPathQueryResult2D.kt | 20 +- .../gen/godot/NavigationPathQueryResult3D.kt | 20 +- .../godot/gen/godot/NavigationPolygon.kt | 74 +- .../godot/gen/godot/NavigationRegion2D.kt | 42 +- .../godot/gen/godot/NavigationRegion3D.kt | 42 +- .../godot/gen/godot/NavigationServer2D.kt | 252 ++--- .../godot/gen/godot/NavigationServer3D.kt | 290 ++--- .../kotlin/godot/gen/godot/NinePatchRect.kt | 26 +- .../src/main/kotlin/godot/gen/godot/Node.kt | 230 ++-- .../src/main/kotlin/godot/gen/godot/Node2D.kt | 68 +- .../src/main/kotlin/godot/gen/godot/Node3D.kt | 142 +-- .../src/main/kotlin/godot/gen/godot/Noise.kt | 20 +- .../kotlin/godot/gen/godot/NoiseTexture2D.kt | 46 +- .../kotlin/godot/gen/godot/NoiseTexture3D.kt | 32 +- .../src/main/kotlin/godot/gen/godot/OS.kt | 152 ++- .../src/main/kotlin/godot/gen/godot/Object.kt | 94 +- .../main/kotlin/godot/gen/godot/Occluder3D.kt | 6 +- .../godot/gen/godot/OccluderInstance3D.kt | 18 +- .../godot/gen/godot/OccluderPolygon2D.kt | 14 +- .../godot/gen/godot/OggPacketSequence.kt | 16 +- .../kotlin/godot/gen/godot/OmniLight3D.kt | 6 +- .../godot/gen/godot/OpenXRAPIExtension.kt | 39 +- .../kotlin/godot/gen/godot/OpenXRAction.kt | 14 +- .../kotlin/godot/gen/godot/OpenXRActionMap.kt | 32 +- .../kotlin/godot/gen/godot/OpenXRActionSet.kt | 20 +- .../godot/gen/godot/OpenXRCompositionLayer.kt | 22 +- .../godot/OpenXRCompositionLayerCylinder.kt | 18 +- .../godot/OpenXRCompositionLayerEquirect.kt | 22 +- .../gen/godot/OpenXRCompositionLayerQuad.kt | 6 +- .../godot/OpenXRExtensionWrapperExtension.kt | 6 +- .../main/kotlin/godot/gen/godot/OpenXRHand.kt | 22 +- .../kotlin/godot/gen/godot/OpenXRIPBinding.kt | 18 +- .../gen/godot/OpenXRInteractionProfile.kt | 14 +- .../godot/OpenXRInteractionProfileMetadata.kt | 10 +- .../kotlin/godot/gen/godot/OpenXRInterface.kt | 60 +- .../godot/gen/godot/OptimizedTranslation.kt | 4 +- .../kotlin/godot/gen/godot/OptionButton.kt | 70 +- .../main/kotlin/godot/gen/godot/PCKPacker.kt | 8 +- .../godot/gen/godot/PackedDataContainer.kt | 6 +- .../godot/gen/godot/PackedDataContainerRef.kt | 4 +- .../kotlin/godot/gen/godot/PackedScene.kt | 10 +- .../main/kotlin/godot/gen/godot/PacketPeer.kt | 18 +- .../kotlin/godot/gen/godot/PacketPeerDTLS.kt | 10 +- .../godot/gen/godot/PacketPeerStream.kt | 14 +- .../kotlin/godot/gen/godot/PacketPeerUDP.kt | 28 +- .../godot/gen/godot/PanoramaSkyMaterial.kt | 14 +- .../main/kotlin/godot/gen/godot/Parallax2D.kt | 42 +- .../godot/gen/godot/ParallaxBackground.kt | 26 +- .../kotlin/godot/gen/godot/ParallaxLayer.kt | 14 +- .../gen/godot/ParticleProcessMaterial.kt | 186 +-- .../src/main/kotlin/godot/gen/godot/Path2D.kt | 6 +- .../src/main/kotlin/godot/gen/godot/Path3D.kt | 6 +- .../kotlin/godot/gen/godot/PathFollow2D.kt | 30 +- .../kotlin/godot/gen/godot/PathFollow3D.kt | 38 +- .../kotlin/godot/gen/godot/Performance.kt | 16 +- .../kotlin/godot/gen/godot/PhysicalBone2D.kt | 26 +- .../kotlin/godot/gen/godot/PhysicalBone3D.kt | 76 +- .../gen/godot/PhysicalBoneSimulator3D.kt | 12 +- .../godot/gen/godot/PhysicalSkyMaterial.kt | 46 +- .../kotlin/godot/gen/godot/PhysicsBody2D.kt | 14 +- .../kotlin/godot/gen/godot/PhysicsBody3D.kt | 18 +- .../gen/godot/PhysicsDirectBodyState2D.kt | 91 +- .../gen/godot/PhysicsDirectBodyState3D.kt | 95 +- .../gen/godot/PhysicsDirectSpaceState2D.kt | 14 +- .../PhysicsDirectSpaceState2DExtension.kt | 4 +- .../gen/godot/PhysicsDirectSpaceState3D.kt | 14 +- .../PhysicsDirectSpaceState3DExtension.kt | 4 +- .../kotlin/godot/gen/godot/PhysicsMaterial.kt | 18 +- .../godot/PhysicsPointQueryParameters2D.kt | 26 +- .../godot/PhysicsPointQueryParameters3D.kt | 22 +- .../gen/godot/PhysicsRayQueryParameters2D.kt | 30 +- .../gen/godot/PhysicsRayQueryParameters3D.kt | 34 +- .../kotlin/godot/gen/godot/PhysicsServer2D.kt | 243 ++-- .../godot/gen/godot/PhysicsServer2DManager.kt | 6 +- .../kotlin/godot/gen/godot/PhysicsServer3D.kt | 341 +++--- .../godot/gen/godot/PhysicsServer3DManager.kt | 6 +- .../PhysicsServer3DRenderingServerHandler.kt | 8 +- .../godot/PhysicsShapeQueryParameters2D.kt | 38 +- .../godot/PhysicsShapeQueryParameters3D.kt | 38 +- .../godot/PhysicsTestMotionParameters2D.kt | 30 +- .../godot/PhysicsTestMotionParameters3D.kt | 34 +- .../gen/godot/PhysicsTestMotionResult2D.kt | 28 +- .../gen/godot/PhysicsTestMotionResult3D.kt | 30 +- .../main/kotlin/godot/gen/godot/PinJoint2D.kt | 26 +- .../main/kotlin/godot/gen/godot/PinJoint3D.kt | 6 +- .../kotlin/godot/gen/godot/PlaceholderMesh.kt | 4 +- .../godot/gen/godot/PlaceholderTexture2D.kt | 4 +- .../godot/gen/godot/PlaceholderTexture3D.kt | 6 +- .../gen/godot/PlaceholderTextureLayered.kt | 8 +- .../main/kotlin/godot/gen/godot/PlaneMesh.kt | 22 +- .../kotlin/godot/gen/godot/PointLight2D.kt | 14 +- .../main/kotlin/godot/gen/godot/Polygon2D.kt | 78 +- .../godot/gen/godot/PolygonOccluder3D.kt | 6 +- .../godot/gen/godot/PolygonPathFinder.kt | 18 +- .../main/kotlin/godot/gen/godot/PopupMenu.kt | 176 +-- .../gen/godot/PortableCompressedTexture2D.kt | 16 +- .../kotlin/godot/gen/godot/PrimitiveMesh.kt | 27 +- .../main/kotlin/godot/gen/godot/PrismMesh.kt | 22 +- .../godot/gen/godot/ProceduralSkyMaterial.kt | 58 +- .../kotlin/godot/gen/godot/ProgressBar.kt | 18 +- .../kotlin/godot/gen/godot/ProjectSettings.kt | 38 +- .../kotlin/godot/gen/godot/PropertyTweener.kt | 16 +- .../kotlin/godot/gen/godot/QuadOccluder3D.kt | 6 +- .../godot/gen/godot/RDAttachmentFormat.kt | 14 +- .../godot/gen/godot/RDFramebufferPass.kt | 23 +- .../gen/godot/RDPipelineColorBlendState.kt | 18 +- .../RDPipelineColorBlendStateAttachment.kt | 48 +- .../gen/godot/RDPipelineDepthStencilState.kt | 86 +- .../gen/godot/RDPipelineMultisampleState.kt | 26 +- .../gen/godot/RDPipelineRasterizationState.kt | 46 +- .../godot/RDPipelineSpecializationConstant.kt | 10 +- .../kotlin/godot/gen/godot/RDSamplerState.kt | 62 +- .../kotlin/godot/gen/godot/RDShaderFile.kt | 12 +- .../kotlin/godot/gen/godot/RDShaderSPIRV.kt | 10 +- .../kotlin/godot/gen/godot/RDShaderSource.kt | 10 +- .../kotlin/godot/gen/godot/RDTextureFormat.kt | 42 +- .../kotlin/godot/gen/godot/RDTextureView.kt | 22 +- .../main/kotlin/godot/gen/godot/RDUniform.kt | 16 +- .../godot/gen/godot/RDVertexAttribute.kt | 22 +- .../godot/gen/godot/RandomNumberGenerator.kt | 24 +- .../src/main/kotlin/godot/gen/godot/Range.kt | 48 +- .../main/kotlin/godot/gen/godot/RayCast2D.kt | 58 +- .../main/kotlin/godot/gen/godot/RayCast3D.kt | 72 +- .../godot/gen/godot/RectangleShape2D.kt | 6 +- .../main/kotlin/godot/gen/godot/RefCounted.kt | 10 +- .../kotlin/godot/gen/godot/ReferenceRect.kt | 14 +- .../kotlin/godot/gen/godot/ReflectionProbe.kt | 58 +- .../src/main/kotlin/godot/gen/godot/RegEx.kt | 20 +- .../main/kotlin/godot/gen/godot/RegExMatch.kt | 16 +- .../godot/gen/godot/RemoteTransform2D.kt | 24 +- .../godot/gen/godot/RemoteTransform3D.kt | 24 +- .../main/kotlin/godot/gen/godot/RenderData.kt | 10 +- .../godot/gen/godot/RenderSceneBuffers.kt | 4 +- .../godot/RenderSceneBuffersConfiguration.kt | 38 +- .../godot/gen/godot/RenderSceneBuffersRD.kt | 56 +- .../kotlin/godot/gen/godot/RenderSceneData.kt | 14 +- .../kotlin/godot/gen/godot/RenderingDevice.kt | 198 ++-- .../kotlin/godot/gen/godot/RenderingServer.kt | 1004 ++++++++--------- .../main/kotlin/godot/gen/godot/Resource.kt | 30 +- .../kotlin/godot/gen/godot/ResourceLoader.kt | 26 +- .../godot/gen/godot/ResourcePreloader.kt | 14 +- .../kotlin/godot/gen/godot/ResourceSaver.kt | 11 +- .../kotlin/godot/gen/godot/ResourceUID.kt | 18 +- .../kotlin/godot/gen/godot/RibbonTrailMesh.kt | 26 +- .../kotlin/godot/gen/godot/RichTextLabel.kt | 237 ++-- .../kotlin/godot/gen/godot/RigidBody2D.kt | 118 +- .../kotlin/godot/gen/godot/RigidBody3D.kt | 120 +- .../kotlin/godot/gen/godot/RootMotionView.kt | 22 +- .../godot/gen/godot/SceneMultiplayer.kt | 47 +- .../godot/gen/godot/SceneReplicationConfig.kt | 28 +- .../main/kotlin/godot/gen/godot/SceneState.kt | 44 +- .../main/kotlin/godot/gen/godot/SceneTree.kt | 90 +- .../kotlin/godot/gen/godot/SceneTreeTimer.kt | 6 +- .../src/main/kotlin/godot/gen/godot/Script.kt | 36 +- .../main/kotlin/godot/gen/godot/ScrollBar.kt | 6 +- .../kotlin/godot/gen/godot/ScrollContainer.kt | 40 +- .../kotlin/godot/gen/godot/SegmentShape2D.kt | 10 +- .../main/kotlin/godot/gen/godot/Semaphore.kt | 8 +- .../godot/gen/godot/SeparationRayShape2D.kt | 10 +- .../godot/gen/godot/SeparationRayShape3D.kt | 10 +- .../src/main/kotlin/godot/gen/godot/Shader.kt | 14 +- .../kotlin/godot/gen/godot/ShaderInclude.kt | 6 +- .../kotlin/godot/gen/godot/ShaderMaterial.kt | 10 +- .../main/kotlin/godot/gen/godot/Shape2D.kt | 19 +- .../main/kotlin/godot/gen/godot/Shape3D.kt | 12 +- .../kotlin/godot/gen/godot/ShapeCast2D.kt | 72 +- .../kotlin/godot/gen/godot/ShapeCast3D.kt | 78 +- .../main/kotlin/godot/gen/godot/Shortcut.kt | 12 +- .../main/kotlin/godot/gen/godot/Skeleton2D.kt | 18 +- .../main/kotlin/godot/gen/godot/Skeleton3D.kt | 104 +- .../kotlin/godot/gen/godot/SkeletonIK3D.kt | 50 +- .../godot/gen/godot/SkeletonModification2D.kt | 22 +- .../gen/godot/SkeletonModification2DCCDIK.kt | 42 +- .../gen/godot/SkeletonModification2DFABRIK.kt | 26 +- .../gen/godot/SkeletonModification2DJiggle.kt | 70 +- .../gen/godot/SkeletonModification2DLookAt.kt | 34 +- .../SkeletonModification2DPhysicalBones.kt | 16 +- .../SkeletonModification2DStackHolder.kt | 6 +- .../godot/SkeletonModification2DTwoBoneIK.kt | 34 +- .../gen/godot/SkeletonModificationStack2D.kt | 32 +- .../godot/gen/godot/SkeletonModifier3D.kt | 12 +- .../kotlin/godot/gen/godot/SkeletonProfile.kt | 60 +- .../src/main/kotlin/godot/gen/godot/Skin.kt | 24 +- .../kotlin/godot/gen/godot/SkinReference.kt | 6 +- .../src/main/kotlin/godot/gen/godot/Sky.kt | 14 +- .../src/main/kotlin/godot/gen/godot/Slider.kt | 18 +- .../kotlin/godot/gen/godot/SliderJoint3D.kt | 6 +- .../main/kotlin/godot/gen/godot/SoftBody3D.kt | 68 +- .../main/kotlin/godot/gen/godot/SphereMesh.kt | 22 +- .../godot/gen/godot/SphereOccluder3D.kt | 6 +- .../kotlin/godot/gen/godot/SphereShape3D.kt | 6 +- .../main/kotlin/godot/gen/godot/SpinBox.kt | 34 +- .../kotlin/godot/gen/godot/SplitContainer.kt | 20 +- .../kotlin/godot/gen/godot/SpringArm3D.kt | 26 +- .../main/kotlin/godot/gen/godot/Sprite2D.kt | 54 +- .../main/kotlin/godot/gen/godot/Sprite3D.kt | 30 +- .../kotlin/godot/gen/godot/SpriteBase3D.kt | 70 +- .../kotlin/godot/gen/godot/SpriteFrames.kt | 36 +- .../kotlin/godot/gen/godot/StaticBody2D.kt | 14 +- .../kotlin/godot/gen/godot/StaticBody3D.kt | 14 +- .../kotlin/godot/gen/godot/StatusIndicator.kt | 20 +- .../main/kotlin/godot/gen/godot/StreamPeer.kt | 68 +- .../godot/gen/godot/StreamPeerBuffer.kt | 18 +- .../kotlin/godot/gen/godot/StreamPeerGZIP.kt | 10 +- .../kotlin/godot/gen/godot/StreamPeerTCP.kt | 20 +- .../kotlin/godot/gen/godot/StreamPeerTLS.kt | 14 +- .../main/kotlin/godot/gen/godot/StyleBox.kt | 20 +- .../kotlin/godot/gen/godot/StyleBoxFlat.kt | 66 +- .../kotlin/godot/gen/godot/StyleBoxLine.kt | 22 +- .../kotlin/godot/gen/godot/StyleBoxTexture.kt | 38 +- .../kotlin/godot/gen/godot/SubViewport.kt | 22 +- .../godot/gen/godot/SubViewportContainer.kt | 10 +- .../kotlin/godot/gen/godot/SurfaceTool.kt | 68 +- .../godot/gen/godot/SyntaxHighlighter.kt | 10 +- .../main/kotlin/godot/gen/godot/SystemFont.kt | 58 +- .../main/kotlin/godot/gen/godot/TCPServer.kt | 14 +- .../main/kotlin/godot/gen/godot/TLSOptions.kt | 14 +- .../src/main/kotlin/godot/gen/godot/TabBar.kt | 114 +- .../kotlin/godot/gen/godot/TabContainer.kt | 100 +- .../main/kotlin/godot/gen/godot/TextEdit.kt | 471 ++++---- .../main/kotlin/godot/gen/godot/TextLine.kt | 74 +- .../main/kotlin/godot/gen/godot/TextMesh.kt | 75 +- .../kotlin/godot/gen/godot/TextParagraph.kt | 114 +- .../main/kotlin/godot/gen/godot/TextServer.kt | 436 ++++--- .../godot/gen/godot/TextServerManager.kt | 18 +- .../main/kotlin/godot/gen/godot/Texture2D.kt | 20 +- .../kotlin/godot/gen/godot/Texture2DArray.kt | 4 +- .../kotlin/godot/gen/godot/Texture2DRD.kt | 6 +- .../main/kotlin/godot/gen/godot/Texture3D.kt | 16 +- .../kotlin/godot/gen/godot/Texture3DRD.kt | 6 +- .../kotlin/godot/gen/godot/TextureButton.kt | 42 +- .../kotlin/godot/gen/godot/TextureLayered.kt | 16 +- .../godot/gen/godot/TextureLayeredRD.kt | 6 +- .../godot/gen/godot/TextureProgressBar.kt | 54 +- .../kotlin/godot/gen/godot/TextureRect.kt | 22 +- .../src/main/kotlin/godot/gen/godot/Theme.kt | 138 +-- .../main/kotlin/godot/gen/godot/ThemeDB.kt | 26 +- .../src/main/kotlin/godot/gen/godot/Thread.kt | 12 +- .../main/kotlin/godot/gen/godot/TileData.kt | 96 +- .../main/kotlin/godot/gen/godot/TileMap.kt | 118 +- .../kotlin/godot/gen/godot/TileMapLayer.kt | 98 +- .../kotlin/godot/gen/godot/TileMapPattern.kt | 22 +- .../main/kotlin/godot/gen/godot/TileSet.kt | 174 +-- .../godot/gen/godot/TileSetAtlasSource.kt | 84 +- .../godot/TileSetScenesCollectionSource.kt | 24 +- .../kotlin/godot/gen/godot/TileSetSource.kt | 14 +- .../src/main/kotlin/godot/gen/godot/Time.kt | 45 +- .../src/main/kotlin/godot/gen/godot/Timer.kt | 30 +- .../main/kotlin/godot/gen/godot/TorusMesh.kt | 18 +- .../godot/gen/godot/TouchScreenButton.kt | 40 +- .../kotlin/godot/gen/godot/Translation.kt | 23 +- .../godot/gen/godot/TranslationServer.kt | 48 +- .../src/main/kotlin/godot/gen/godot/Tree.kt | 124 +- .../main/kotlin/godot/gen/godot/TreeItem.kt | 225 ++-- .../kotlin/godot/gen/godot/TubeTrailMesh.kt | 34 +- .../src/main/kotlin/godot/gen/godot/Tween.kt | 48 +- .../main/kotlin/godot/gen/godot/UDPServer.kt | 20 +- .../src/main/kotlin/godot/gen/godot/UPNP.kt | 36 +- .../main/kotlin/godot/gen/godot/UPNPDevice.kt | 34 +- .../main/kotlin/godot/gen/godot/UndoRedo.kt | 48 +- .../godot/gen/godot/UniformSetCacheRD.kt | 2 +- .../kotlin/godot/gen/godot/VehicleBody3D.kt | 14 +- .../kotlin/godot/gen/godot/VehicleWheel3D.kt | 66 +- .../kotlin/godot/gen/godot/VideoStream.kt | 6 +- .../godot/gen/godot/VideoStreamPlayback.kt | 4 +- .../godot/gen/godot/VideoStreamPlayer.kt | 58 +- .../main/kotlin/godot/gen/godot/Viewport.kt | 230 ++-- .../kotlin/godot/gen/godot/ViewportTexture.kt | 6 +- .../gen/godot/VisibleOnScreenEnabler2D.kt | 10 +- .../gen/godot/VisibleOnScreenEnabler3D.kt | 10 +- .../gen/godot/VisibleOnScreenNotifier2D.kt | 8 +- .../gen/godot/VisibleOnScreenNotifier3D.kt | 6 +- .../godot/gen/godot/VisualInstance3D.kt | 26 +- .../kotlin/godot/gen/godot/VisualShader.kt | 46 +- .../godot/gen/godot/VisualShaderNode.kt | 24 +- .../gen/godot/VisualShaderNodeBillboard.kt | 10 +- .../godot/VisualShaderNodeBooleanConstant.kt | 6 +- .../godot/VisualShaderNodeBooleanParameter.kt | 10 +- .../godot/gen/godot/VisualShaderNodeClamp.kt | 6 +- .../godot/VisualShaderNodeColorConstant.kt | 6 +- .../gen/godot/VisualShaderNodeColorFunc.kt | 6 +- .../gen/godot/VisualShaderNodeColorOp.kt | 6 +- .../godot/VisualShaderNodeColorParameter.kt | 10 +- .../gen/godot/VisualShaderNodeComment.kt | 6 +- .../gen/godot/VisualShaderNodeCompare.kt | 14 +- .../gen/godot/VisualShaderNodeCubemap.kt | 14 +- .../gen/godot/VisualShaderNodeCurveTexture.kt | 6 +- .../godot/VisualShaderNodeCurveXYZTexture.kt | 6 +- .../godot/gen/godot/VisualShaderNodeCustom.kt | 4 +- .../godot/VisualShaderNodeDerivativeFunc.kt | 14 +- .../gen/godot/VisualShaderNodeExpression.kt | 6 +- .../godot/VisualShaderNodeFloatConstant.kt | 6 +- .../gen/godot/VisualShaderNodeFloatFunc.kt | 6 +- .../gen/godot/VisualShaderNodeFloatOp.kt | 6 +- .../godot/VisualShaderNodeFloatParameter.kt | 26 +- .../godot/gen/godot/VisualShaderNodeFrame.kt | 26 +- .../gen/godot/VisualShaderNodeGroupBase.kt | 44 +- .../godot/gen/godot/VisualShaderNodeInput.kt | 8 +- .../gen/godot/VisualShaderNodeIntConstant.kt | 6 +- .../gen/godot/VisualShaderNodeIntFunc.kt | 6 +- .../godot/gen/godot/VisualShaderNodeIntOp.kt | 6 +- .../gen/godot/VisualShaderNodeIntParameter.kt | 26 +- .../godot/gen/godot/VisualShaderNodeIs.kt | 6 +- .../godot/gen/godot/VisualShaderNodeMix.kt | 6 +- .../gen/godot/VisualShaderNodeMultiplyAdd.kt | 6 +- .../gen/godot/VisualShaderNodeParameter.kt | 10 +- .../gen/godot/VisualShaderNodeParameterRef.kt | 6 +- .../VisualShaderNodeParticleAccelerator.kt | 6 +- .../gen/godot/VisualShaderNodeParticleEmit.kt | 6 +- .../godot/VisualShaderNodeParticleEmitter.kt | 6 +- .../VisualShaderNodeParticleMeshEmitter.kt | 14 +- ...alShaderNodeParticleMultiplyByAxisAngle.kt | 6 +- .../VisualShaderNodeParticleRandomness.kt | 6 +- .../gen/godot/VisualShaderNodeReroute.kt | 4 +- .../godot/VisualShaderNodeResizableBase.kt | 6 +- .../gen/godot/VisualShaderNodeSample3D.kt | 6 +- .../gen/godot/VisualShaderNodeSmoothStep.kt | 6 +- .../godot/gen/godot/VisualShaderNodeStep.kt | 6 +- .../godot/gen/godot/VisualShaderNodeSwitch.kt | 6 +- .../gen/godot/VisualShaderNodeTexture.kt | 14 +- .../godot/VisualShaderNodeTexture2DArray.kt | 6 +- .../gen/godot/VisualShaderNodeTexture3D.kt | 6 +- .../godot/VisualShaderNodeTextureParameter.kt | 22 +- .../VisualShaderNodeTransformConstant.kt | 6 +- .../godot/VisualShaderNodeTransformFunc.kt | 6 +- .../gen/godot/VisualShaderNodeTransformOp.kt | 6 +- .../VisualShaderNodeTransformParameter.kt | 10 +- .../godot/VisualShaderNodeTransformVecMult.kt | 6 +- .../gen/godot/VisualShaderNodeUIntConstant.kt | 6 +- .../gen/godot/VisualShaderNodeUIntFunc.kt | 6 +- .../godot/gen/godot/VisualShaderNodeUIntOp.kt | 6 +- .../godot/VisualShaderNodeUIntParameter.kt | 10 +- .../godot/gen/godot/VisualShaderNodeUVFunc.kt | 6 +- .../gen/godot/VisualShaderNodeVarying.kt | 10 +- .../gen/godot/VisualShaderNodeVec2Constant.kt | 6 +- .../godot/VisualShaderNodeVec2Parameter.kt | 10 +- .../gen/godot/VisualShaderNodeVec3Constant.kt | 6 +- .../godot/VisualShaderNodeVec3Parameter.kt | 10 +- .../gen/godot/VisualShaderNodeVec4Constant.kt | 6 +- .../godot/VisualShaderNodeVec4Parameter.kt | 10 +- .../gen/godot/VisualShaderNodeVectorBase.kt | 6 +- .../gen/godot/VisualShaderNodeVectorFunc.kt | 6 +- .../gen/godot/VisualShaderNodeVectorOp.kt | 6 +- .../main/kotlin/godot/gen/godot/VoxelGI.kt | 22 +- .../kotlin/godot/gen/godot/VoxelGIData.kt | 44 +- .../main/kotlin/godot/gen/godot/WeakRef.kt | 4 +- .../godot/gen/godot/WebRTCDataChannel.kt | 30 +- .../godot/gen/godot/WebRTCMultiplayerPeer.kt | 18 +- .../godot/gen/godot/WebRTCPeerConnection.kt | 24 +- .../gen/godot/WebSocketMultiplayerPeer.kt | 36 +- .../kotlin/godot/gen/godot/WebSocketPeer.kt | 54 +- .../kotlin/godot/gen/godot/WebXRInterface.kt | 38 +- .../src/main/kotlin/godot/gen/godot/Window.kt | 240 ++-- .../godot/gen/godot/WorkerThreadPool.kt | 16 +- .../main/kotlin/godot/gen/godot/World2D.kt | 10 +- .../main/kotlin/godot/gen/godot/World3D.kt | 22 +- .../godot/gen/godot/WorldBoundaryShape2D.kt | 10 +- .../godot/gen/godot/WorldBoundaryShape3D.kt | 6 +- .../godot/gen/godot/WorldEnvironment.kt | 14 +- .../kotlin/godot/gen/godot/X509Certificate.kt | 10 +- .../main/kotlin/godot/gen/godot/XMLParser.kt | 36 +- .../main/kotlin/godot/gen/godot/XRAnchor3D.kt | 6 +- .../godot/gen/godot/XRBodyModifier3D.kt | 14 +- .../kotlin/godot/gen/godot/XRBodyTracker.kt | 18 +- .../kotlin/godot/gen/godot/XRController3D.kt | 12 +- .../godot/gen/godot/XRFaceModifier3D.kt | 10 +- .../kotlin/godot/gen/godot/XRFaceTracker.kt | 10 +- .../godot/gen/godot/XRHandModifier3D.kt | 10 +- .../kotlin/godot/gen/godot/XRHandTracker.kt | 30 +- .../kotlin/godot/gen/godot/XRInterface.kt | 58 +- .../godot/gen/godot/XRInterfaceExtension.kt | 12 +- .../main/kotlin/godot/gen/godot/XRNode3D.kt | 22 +- .../main/kotlin/godot/gen/godot/XROrigin3D.kt | 10 +- .../src/main/kotlin/godot/gen/godot/XRPose.kt | 28 +- .../godot/gen/godot/XRPositionalTracker.kt | 22 +- .../main/kotlin/godot/gen/godot/XRServer.kt | 42 +- .../main/kotlin/godot/gen/godot/XRTracker.kt | 14 +- .../src/main/kotlin/godot/gen/godot/XRVRS.kt | 12 +- .../main/kotlin/godot/gen/godot/ZIPPacker.kt | 12 +- .../main/kotlin/godot/gen/godot/ZIPReader.kt | 12 +- .../src/main/kotlin/godot/global/GD.kt | 4 +- .../src/main/kotlin/godot/global/GDCore.kt | 2 +- .../src/main/kotlin/godot/global/GDMath.kt | 14 +- .../main/kotlin/godot/runtime/Bootstrap.kt | 2 +- .../src/main/kotlin/godot/util/Nullable.kt | 4 - .../src/test/kotlin/godot/core/AABBTest.kt | 2 +- .../src/test/kotlin/godot/core/BasisTest.kt | 4 +- .../src/test/kotlin/godot/core/ColorTest.kt | 4 +- .../test/kotlin/godot/core/QuaternionTest.kt | 4 +- .../src/test/kotlin/godot/core/Rect2Test.kt | 4 +- .../test/kotlin/godot/core/Transform2DTest.kt | 8 +- .../test/kotlin/godot/core/Transform3DTest.kt | 2 +- .../src/test/kotlin/godot/core/Vector2Test.kt | 10 +- .../test/kotlin/godot/core/Vector2iTest.kt | 2 +- .../src/test/kotlin/godot/core/Vector3Test.kt | 8 +- .../test/kotlin/godot/core/Vector3iTest.kt | 2 +- .../src/test/kotlin/godot/core/Vector4Test.kt | 4 +- .../test/kotlin/godot/core/Vector4iTest.kt | 2 +- .../godot/tools/common/constants/Classes.kt | 3 +- .../godot/tools/common/constants/Packages.kt | 1 + 775 files changed, 13823 insertions(+), 13880 deletions(-) delete mode 100644 kt/api-generator/src/main/kotlin/godot/codegen/constants/GodotClassNames.kt create mode 100644 kt/common/src/main/kotlin/godot/common/interop/NativePointer.kt rename kt/{godot-library/src/main/kotlin/godot/core => common/src/main/kotlin/godot/common/interop}/ObjectID.kt (92%) rename kt/{godot-library/src/main/kotlin/godot => common/src/main/kotlin/godot/common}/util/Cache.kt (54%) rename kt/{godot-library/src/main/kotlin/godot => common/src/main/kotlin/godot/common}/util/IndexedIterator.kt (92%) rename kt/{godot-library/src/main/kotlin/godot => common/src/main/kotlin/godot/common}/util/MathFuncs.kt (88%) create mode 100644 kt/common/src/main/kotlin/godot/common/util/Nullable.kt rename kt/{godot-library/src/main/kotlin/godot => common/src/main/kotlin/godot/common}/util/ThreadLocalDelegates.kt (54%) rename kt/{godot-library/src/main/kotlin/godot/util/Utils.kt => common/src/main/kotlin/godot/common/util/Types.kt} (72%) rename kt/godot-library/src/main/kotlin/godot/{util/logging.kt => core/Logging.kt} (87%) delete mode 100644 kt/godot-library/src/main/kotlin/godot/util/Nullable.kt diff --git a/kt/api-generator/src/main/kotlin/godot/codegen/constants/GodotClassNames.kt b/kt/api-generator/src/main/kotlin/godot/codegen/constants/GodotClassNames.kt deleted file mode 100644 index 7c4eccbfd7..0000000000 --- a/kt/api-generator/src/main/kotlin/godot/codegen/constants/GodotClassNames.kt +++ /dev/null @@ -1,5 +0,0 @@ -package godot.codegen.constants - -import com.squareup.kotlinpoet.ClassName - -val VOID_PTR = ClassName("godot.util", "VoidPtr") \ No newline at end of file diff --git a/kt/api-generator/src/main/kotlin/godot/codegen/services/impl/GenerationService.kt b/kt/api-generator/src/main/kotlin/godot/codegen/services/impl/GenerationService.kt index c916af1959..d5169a6fe4 100644 --- a/kt/api-generator/src/main/kotlin/godot/codegen/services/impl/GenerationService.kt +++ b/kt/api-generator/src/main/kotlin/godot/codegen/services/impl/GenerationService.kt @@ -18,7 +18,6 @@ import com.squareup.kotlinpoet.TypeSpec import com.squareup.kotlinpoet.TypeVariableName import com.squareup.kotlinpoet.UNIT import com.squareup.kotlinpoet.asClassName -import godot.codegen.constants.VOID_PTR import godot.codegen.constants.jvmReservedMethods import godot.codegen.exceptions.ClassGenerationException import godot.codegen.extensions.applyJvmNameIfNecessary @@ -57,6 +56,7 @@ import godot.tools.common.constants.TRANSFER_CONTEXT import godot.tools.common.constants.TYPE_MANAGER import godot.tools.common.constants.VARIANT_CASTER_ANY import godot.tools.common.constants.VARIANT_PARSER_LONG +import godot.tools.common.constants.VOID_PTR import godot.tools.common.constants.godotApiPackage import godot.tools.common.constants.godotCorePackage import java.util.* @@ -853,7 +853,7 @@ class GenerationService( val rawPtr = if (isStatic) { "0" //nullpointer } else { - "rawPtr" + "ptr" } addStatement( diff --git a/kt/common/src/main/kotlin/godot/common/interop/NativePointer.kt b/kt/common/src/main/kotlin/godot/common/interop/NativePointer.kt new file mode 100644 index 0000000000..f8a70aec59 --- /dev/null +++ b/kt/common/src/main/kotlin/godot/common/interop/NativePointer.kt @@ -0,0 +1,12 @@ +package godot.common.interop + +typealias VoidPtr = Long +const val nullptr: VoidPtr = 0L + +interface ValuePointer { + val ptr: VoidPtr +} + +interface IdentityPointer: ValuePointer { + val objectID: ObjectID +} diff --git a/kt/godot-library/src/main/kotlin/godot/core/ObjectID.kt b/kt/common/src/main/kotlin/godot/common/interop/ObjectID.kt similarity index 92% rename from kt/godot-library/src/main/kotlin/godot/core/ObjectID.kt rename to kt/common/src/main/kotlin/godot/common/interop/ObjectID.kt index 6ad114bde8..f30fb1ec04 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/ObjectID.kt +++ b/kt/common/src/main/kotlin/godot/common/interop/ObjectID.kt @@ -1,4 +1,6 @@ -package godot.core +package godot.common.interop + +val nullObjectID = ObjectID(-1L) @JvmInline value class ObjectID(val id: Long) { diff --git a/kt/godot-library/src/main/kotlin/godot/util/Cache.kt b/kt/common/src/main/kotlin/godot/common/util/Cache.kt similarity index 54% rename from kt/godot-library/src/main/kotlin/godot/util/Cache.kt rename to kt/common/src/main/kotlin/godot/common/util/Cache.kt index c824fade70..a79de48769 100644 --- a/kt/godot-library/src/main/kotlin/godot/util/Cache.kt +++ b/kt/common/src/main/kotlin/godot/common/util/Cache.kt @@ -1,7 +1,7 @@ -package godot.util +package godot.common.util // A basic LRU cache. -internal class LRUCache(private val capacity: Int) : LinkedHashMap(capacity, 0.75f, true) { +class LRUCache(private val capacity: Int) : LinkedHashMap(capacity, 0.75f, true) { override fun removeEldestEntry(eldest: MutableMap.MutableEntry?): Boolean { return size > capacity } diff --git a/kt/godot-library/src/main/kotlin/godot/util/IndexedIterator.kt b/kt/common/src/main/kotlin/godot/common/util/IndexedIterator.kt similarity index 92% rename from kt/godot-library/src/main/kotlin/godot/util/IndexedIterator.kt rename to kt/common/src/main/kotlin/godot/common/util/IndexedIterator.kt index 6aae1b0713..6472bc731f 100644 --- a/kt/godot-library/src/main/kotlin/godot/util/IndexedIterator.kt +++ b/kt/common/src/main/kotlin/godot/common/util/IndexedIterator.kt @@ -1,7 +1,7 @@ -package godot.util +package godot.common.util @Suppress("UNCHECKED_CAST") -internal class IndexedIterator( +class IndexedIterator( private var size: () -> Int, private val getter: (Int) -> T, private val eraser: (Int) -> Unit @@ -23,7 +23,7 @@ internal class IndexedIterator( } } -internal class Entry( +class Entry( override val key: K, private val getter: (K) -> V, private val setter: (K, V) -> Unit @@ -42,7 +42,7 @@ internal class Entry( } @Suppress("UNCHECKED_CAST") -internal class MapIterator( +class MapIterator( private val keyIterator: MutableIterator, private val getter: (K) -> V, private val setter: (K, V) -> Unit, diff --git a/kt/godot-library/src/main/kotlin/godot/util/MathFuncs.kt b/kt/common/src/main/kotlin/godot/common/util/MathFuncs.kt similarity index 88% rename from kt/godot-library/src/main/kotlin/godot/util/MathFuncs.kt rename to kt/common/src/main/kotlin/godot/common/util/MathFuncs.kt index a05a70eb82..66be24adb8 100644 --- a/kt/godot-library/src/main/kotlin/godot/util/MathFuncs.kt +++ b/kt/common/src/main/kotlin/godot/common/util/MathFuncs.kt @@ -1,6 +1,6 @@ @file:Suppress("NOTHING_TO_INLINE", "FloatingPointLiteralPrecision") -package godot.util +package godot.common.util import kotlin.math.abs import kotlin.math.floor @@ -63,19 +63,19 @@ fun RealT.fposmod(b: RealT): RealT { return value } -internal fun snapped(value: NaturalT, step: NaturalT) = if (step != 0) { +fun snapped(value: NaturalT, step: NaturalT) = if (step != 0) { (floor(value.toRealT() / step.toRealT() + 0.5) * step).toNaturalT() } else { value } -internal fun snapped(value: RealT, step: RealT) = if (step != 0.0) { +fun snapped(value: RealT, step: RealT) = if (step != 0.0) { floor(value / step + 0.5) * step } else { value } -internal fun bezierDerivative(start: RealT, control1: RealT, control2: RealT, end: RealT, t: RealT): RealT { +fun bezierDerivative(start: RealT, control1: RealT, control2: RealT, end: RealT, t: RealT): RealT { /* Formula from Wikipedia article on Bezier curves. */ val omt = 1.0 - t val omt2 = omt * omt @@ -84,7 +84,7 @@ internal fun bezierDerivative(start: RealT, control1: RealT, control2: RealT, en return (control1 - start) * 3.0f * omt2 + (control2 - control1) * 6.0f * omt * t + (end - control2) * 3.0f * t2 } -internal fun bezierInterpolate(start: RealT, control1: RealT, control2: RealT, end: RealT, t: RealT): RealT { +fun bezierInterpolate(start: RealT, control1: RealT, control2: RealT, end: RealT, t: RealT): RealT { /* Formula from Wikipedia article on Bezier curves. */ val omt: Double = 1.0 - t val omt2 = omt * omt @@ -95,7 +95,7 @@ internal fun bezierInterpolate(start: RealT, control1: RealT, control2: RealT, e return start * omt3 + control1 * omt2 * t * 3.0 + control2 * omt * t2 * 3.0 + end * t3 } -internal fun cubicInterpolate( +fun cubicInterpolate( from: Double, to: Double, pre: Double, @@ -110,7 +110,7 @@ internal fun cubicInterpolate( inline fun lerp(from: Float, to: Float, weight: Float) = from + (to - from) * weight inline fun lerp(from: Double, to: Double, weight: Double) = from + (to - from) * weight -internal fun lerpAngle(from: RealT, to: RealT, weight: RealT): RealT { +fun lerpAngle(from: RealT, to: RealT, weight: RealT): RealT { var difference = (to - from).rem(TAU) difference = (2 * difference).rem(TAU) - difference return from + difference * weight; diff --git a/kt/common/src/main/kotlin/godot/common/util/Nullable.kt b/kt/common/src/main/kotlin/godot/common/util/Nullable.kt new file mode 100644 index 0000000000..7bc8b75d54 --- /dev/null +++ b/kt/common/src/main/kotlin/godot/common/util/Nullable.kt @@ -0,0 +1,3 @@ +package godot.common.util + +inline fun isNullable(): Boolean = null is T diff --git a/kt/godot-library/src/main/kotlin/godot/util/ThreadLocalDelegates.kt b/kt/common/src/main/kotlin/godot/common/util/ThreadLocalDelegates.kt similarity index 54% rename from kt/godot-library/src/main/kotlin/godot/util/ThreadLocalDelegates.kt rename to kt/common/src/main/kotlin/godot/common/util/ThreadLocalDelegates.kt index 5d0535a2ec..b9832490c7 100644 --- a/kt/godot-library/src/main/kotlin/godot/util/ThreadLocalDelegates.kt +++ b/kt/common/src/main/kotlin/godot/common/util/ThreadLocalDelegates.kt @@ -1,10 +1,10 @@ -package godot.util +package godot.common.util import kotlin.reflect.KProperty -internal class ThreadLocalDelegate(val provider: () -> T) { +class ThreadLocalDelegate(val provider: () -> T) { private val threadLocal = ThreadLocal.withInitial { provider() } operator fun getValue(thisRef: Any?, property: KProperty<*>): T = threadLocal.get() } -internal fun threadLocal(provider: () -> T) = ThreadLocalDelegate(provider) +fun threadLocal(provider: () -> T) = ThreadLocalDelegate(provider) diff --git a/kt/godot-library/src/main/kotlin/godot/util/Utils.kt b/kt/common/src/main/kotlin/godot/common/util/Types.kt similarity index 72% rename from kt/godot-library/src/main/kotlin/godot/util/Utils.kt rename to kt/common/src/main/kotlin/godot/common/util/Types.kt index 9b866dcb0c..bbc1f46f33 100644 --- a/kt/godot-library/src/main/kotlin/godot/util/Utils.kt +++ b/kt/common/src/main/kotlin/godot/common/util/Types.kt @@ -1,19 +1,11 @@ @file:JvmName("Utils") @file:Suppress("NOTHING_TO_INLINE") -package godot.util - -import godot.core.ObjectID -import java.util.* +package godot.common.util typealias RealT = Double typealias NaturalT = Int -typealias VoidPtr = Long - -const val nullptr: VoidPtr = 0L -val nullObjectID = ObjectID(-1L) - inline fun Number.toRealT(): RealT = this.toDouble() inline fun Double.toRealT(): RealT = this inline fun Float.toRealT(): RealT = this.toDouble() diff --git a/kt/godot-coroutine-library/src/main/kotlin/godot/coroutines/awaitResourceLoad.kt b/kt/godot-coroutine-library/src/main/kotlin/godot/coroutines/awaitResourceLoad.kt index 068afbf1b9..8aec29de11 100644 --- a/kt/godot-coroutine-library/src/main/kotlin/godot/coroutines/awaitResourceLoad.kt +++ b/kt/godot-coroutine-library/src/main/kotlin/godot/coroutines/awaitResourceLoad.kt @@ -6,7 +6,7 @@ import godot.ResourceLoader import godot.ResourceLoader.CacheMode import godot.core.variantArrayOf import godot.global.GD -import godot.util.RealT +import godot.common.util.RealT import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Job diff --git a/kt/godot-library/src/main/kotlin/godot/core/Constructors.kt b/kt/godot-library/src/main/kotlin/godot/core/Constructors.kt index c9c285cef0..5a24568e60 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/Constructors.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/Constructors.kt @@ -5,8 +5,8 @@ package godot.core import godot.core.memory.MemoryManager import godot.core.memory.TransferContext import godot.common.constants.Constraints -import godot.util.VoidPtr -import godot.util.threadLocal +import godot.common.interop.VoidPtr +import godot.common.util.threadLocal abstract class KtConstructor( vararg argsTypes: VariantConverter diff --git a/kt/godot-library/src/main/kotlin/godot/core/CoreType.kt b/kt/godot-library/src/main/kotlin/godot/core/CoreType.kt index 2fa6ac8c0b..161b78b24d 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/CoreType.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/CoreType.kt @@ -1,6 +1,7 @@ package godot.core -import godot.util.VoidPtr +import godot.common.interop.ValuePointer +import godot.common.interop.VoidPtr /** * This interface should not be inherited within user code. @@ -9,6 +10,6 @@ import godot.util.VoidPtr */ interface CoreType -abstract class NativeCoreType : CoreType { - internal var _handle: VoidPtr = 0 +abstract class NativeCoreType : CoreType, ValuePointer { + override var ptr: VoidPtr = 0 } diff --git a/kt/godot-library/src/main/kotlin/godot/core/Functions.kt b/kt/godot-library/src/main/kotlin/godot/core/Functions.kt index dc23f5d81e..6c8879f038 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/Functions.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/Functions.kt @@ -4,7 +4,6 @@ package godot.core import godot.core.memory.TransferContext import godot.common.extensions.convertToSnakeCase -import godot.util.GodotLogging data class KtFunctionInfo( val name: String, diff --git a/kt/godot-library/src/main/kotlin/godot/core/KtObject.kt b/kt/godot-library/src/main/kotlin/godot/core/KtObject.kt index 60c4676ce2..464de127fc 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/KtObject.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/KtObject.kt @@ -1,16 +1,18 @@ package godot.core +import godot.common.interop.IdentityPointer +import godot.common.interop.ObjectID +import godot.common.interop.VoidPtr +import godot.common.interop.nullObjectID +import godot.common.interop.nullptr import godot.core.memory.MemoryManager import godot.core.memory.TransferContext -import godot.util.VoidPtr -import godot.util.nullObjectID -import godot.util.nullptr import kotlincompile.definitions.GodotJvmBuildConfig class GodotNotification internal constructor(val block: Any.(Int) -> Unit) @Suppress("LeakingThis") -abstract class KtObject { +abstract class KtObject: IdentityPointer { /** Used to prevent the new method to be executed when called from instantiateWith * Instead we use the values set in that class */ @@ -24,7 +26,7 @@ abstract class KtObject { } } - var rawPtr: VoidPtr = nullptr + override var ptr: VoidPtr = nullptr set(value) { if (GodotJvmBuildConfig.DEBUG) { require(field == nullptr) { @@ -34,7 +36,7 @@ abstract class KtObject { field = value } - var objectID: ObjectID = nullObjectID + override var objectID: ObjectID = nullObjectID set(value) { if (GodotJvmBuildConfig.DEBUG) { require(field == nullObjectID) { @@ -51,7 +53,7 @@ abstract class KtObject { if (config.ptr != nullptr) { // Native object already exists, so we know the id and ptr without going back to the other side. - rawPtr = config.ptr + ptr = config.ptr objectID = config.objectID config.reset() // We don't need to register the instance to the MemoryManager, it is the responsibility of the caller. @@ -95,7 +97,7 @@ abstract class KtObject { open fun _onDestroy() = Unit fun free() { - MemoryManager.freeObject(rawPtr) + MemoryManager.freeObject(ptr) } internal companion object { diff --git a/kt/godot-library/src/main/kotlin/godot/util/logging.kt b/kt/godot-library/src/main/kotlin/godot/core/Logging.kt similarity index 87% rename from kt/godot-library/src/main/kotlin/godot/util/logging.kt rename to kt/godot-library/src/main/kotlin/godot/core/Logging.kt index 671726d03b..24dbc50679 100644 --- a/kt/godot-library/src/main/kotlin/godot/util/logging.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/Logging.kt @@ -1,4 +1,4 @@ -package godot.util +package godot.core import godot.global.GD @@ -11,7 +11,7 @@ private const val RESET = "$ESCAPE[0m" */ private const val BG_JUMP = 10 -private enum class Color(baseCode: Int) { +private enum class PrintColor(baseCode: Int) { RED(31), GREEN(32), YELLOW(33); @@ -31,6 +31,6 @@ internal object GodotLogging { internal object JVMLogging { fun info(message: String) = println("Godot-JVM: $message") - fun warning(message: String) = println("${Color.YELLOW.foreground}$message$RESET") + fun warning(message: String) = println("${PrintColor.YELLOW.foreground}$message$RESET") fun error(message: String) = System.err.println("Godot-JVM: $message") } diff --git a/kt/godot-library/src/main/kotlin/godot/core/ParametersReader.kt b/kt/godot-library/src/main/kotlin/godot/core/ParametersReader.kt index 1ce93b1018..534c1746be 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/ParametersReader.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/ParametersReader.kt @@ -2,7 +2,7 @@ package godot.core import godot.core.memory.TransferContext import godot.common.constants.Constraints -import godot.util.threadLocal +import godot.common.util.threadLocal internal open class ParametersReader { val paramsArray by threadLocal { diff --git a/kt/godot-library/src/main/kotlin/godot/core/Properties.kt b/kt/godot-library/src/main/kotlin/godot/core/Properties.kt index 10bf383760..d34faa35fd 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/Properties.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/Properties.kt @@ -3,7 +3,6 @@ package godot.core import godot.PropertyHint import godot.PropertyUsageFlags import godot.core.memory.TransferContext -import godot.util.GodotLogging import kotlin.reflect.KMutableProperty1 data class KtPropertyInfo( diff --git a/kt/godot-library/src/main/kotlin/godot/core/TypeManager.kt b/kt/godot-library/src/main/kotlin/godot/core/TypeManager.kt index 2f54bd3636..069b40ab85 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/TypeManager.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/TypeManager.kt @@ -1,7 +1,7 @@ package godot.core import godot.Object -import godot.util.VoidPtr +import godot.common.interop.VoidPtr import kotlin.reflect.KClass internal object TypeManager { diff --git a/kt/godot-library/src/main/kotlin/godot/core/Variant.kt b/kt/godot-library/src/main/kotlin/godot/core/Variant.kt index 8792a51209..3837c8e924 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/Variant.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/Variant.kt @@ -2,8 +2,8 @@ package godot.core import godot.Object import godot.core.memory.MemoryManager -import godot.util.nullptr -import godot.util.toRealT +import godot.common.interop.nullptr +import godot.common.util.toRealT import java.nio.ByteBuffer private var ByteBuffer.bool: Boolean @@ -94,7 +94,7 @@ private var ByteBuffer.obj: KtObject? return MemoryManager.getInstanceOrCreate(ptr, id, constructorIndex) } set(value) { - putLong(value?.rawPtr ?: nullptr) + putLong(value?.ptr ?: nullptr) } private var ByteBuffer.variantType: Int @@ -384,7 +384,7 @@ enum class VariantParser(override val id: Int) : VariantConverter { override fun toUnsafeGodot(buffer: ByteBuffer, any: Any?) { if (any is NativeCallable) { buffer.bool = false - buffer.putLong(any._handle) + buffer.putLong(any.ptr) } else { require(any is LambdaCallable<*>) buffer.bool = true @@ -551,6 +551,6 @@ sealed class VariantCaster(val coreVariant: VariantParser) : VariantConverter { private inline fun toGodotNativeCoreType(buffer: ByteBuffer, any: Any?) { require(any is T) - buffer.putLong(any._handle) + buffer.putLong(any.ptr) } diff --git a/kt/godot-library/src/main/kotlin/godot/core/bridge/Dictionary.kt b/kt/godot-library/src/main/kotlin/godot/core/bridge/Dictionary.kt index a809d615cc..36a6af64a1 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/bridge/Dictionary.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/bridge/Dictionary.kt @@ -3,11 +3,11 @@ package godot.core import godot.annotation.CoreTypeHelper +import godot.common.interop.VoidPtr import godot.core.memory.MemoryManager import godot.core.memory.TransferContext -import godot.util.MapIterator -import godot.util.VoidPtr -import godot.util.isNullable +import godot.common.util.MapIterator +import godot.common.util.isNullable import kotlincompile.definitions.GodotJvmBuildConfig import kotlin.jvm.internal.Reflection import kotlin.reflect.KClass @@ -21,7 +21,7 @@ class Dictionary : NativeCoreType, MutableMap { internal constructor(handle: VoidPtr) { keyVariantConverter = VariantCaster.ANY valueVariantConverter = VariantCaster.ANY - _handle = handle + ptr = handle MemoryManager.registerNativeCoreType(this, VariantParser.DICTIONARY) } @@ -44,7 +44,7 @@ class Dictionary : NativeCoreType, MutableMap { this.keyVariantConverter = keyVariantConverter!! this.valueVariantConverter = valueVariantConverter!! - _handle = Bridge.engine_call_constructor() + ptr = Bridge.engine_call_constructor() MemoryManager.registerNativeCoreType(this, VariantParser.DICTIONARY) } @@ -52,7 +52,7 @@ class Dictionary : NativeCoreType, MutableMap { //PROPERTIES override val size: Int get() { - Bridge.engine_call_size(_handle) + Bridge.engine_call_size(ptr) return TransferContext.readReturnValue(VariantCaster.INT) as Int } @@ -155,7 +155,7 @@ class Dictionary : NativeCoreType, MutableMap { constructor(other: Dictionary) { keyVariantConverter = other.keyVariantConverter valueVariantConverter = other.valueVariantConverter - _handle = other._handle + ptr = other.ptr MemoryManager.registerNativeCoreType(this, VariantParser.DICTIONARY) } @@ -165,7 +165,7 @@ class Dictionary : NativeCoreType, MutableMap { * Clear the dictionary, removing all key/value pairs. */ override fun clear() { - Bridge.engine_call_clear(_handle) + Bridge.engine_call_clear(ptr) } override fun containsKey(key: K) = contains(key) @@ -185,7 +185,7 @@ class Dictionary : NativeCoreType, MutableMap { fun duplicate(deep: Boolean): Dictionary { TransferContext.writeArguments(VariantParser.BOOL to deep) - Bridge.engine_call_duplicate(_handle) + Bridge.engine_call_duplicate(ptr) @Suppress("UNCHECKED_CAST") return (TransferContext.readReturnValue(VariantParser.DICTIONARY) as Dictionary).also { it.keyVariantConverter = keyVariantConverter @@ -198,12 +198,12 @@ class Dictionary : NativeCoreType, MutableMap { */ fun erase(key: K) { TransferContext.writeArguments(keyVariantConverter to key) - Bridge.engine_call_erase(_handle) + Bridge.engine_call_erase(ptr) } fun findKey(value: V): K { TransferContext.writeArguments(valueVariantConverter to value) - Bridge.engine_call_find_key(_handle) + Bridge.engine_call_find_key(ptr) @Suppress("UNCHECKED_CAST") return TransferContext.readReturnValue(keyVariantConverter) as K } @@ -214,7 +214,7 @@ class Dictionary : NativeCoreType, MutableMap { */ fun get(key: K, default: V?): V? { TransferContext.writeArguments(keyVariantConverter to key, valueVariantConverter to default) - Bridge.engine_call_get(_handle) + Bridge.engine_call_get(ptr) @Suppress("UNCHECKED_CAST") return TransferContext.readReturnValue(valueVariantConverter) as V? } @@ -225,7 +225,7 @@ class Dictionary : NativeCoreType, MutableMap { */ fun has(key: K): Boolean { TransferContext.writeArguments(keyVariantConverter to key) - Bridge.engine_call_has(_handle) + Bridge.engine_call_has(ptr) return TransferContext.readReturnValue(VariantParser.BOOL) as Boolean } @@ -235,7 +235,7 @@ class Dictionary : NativeCoreType, MutableMap { */ fun hasAll(keys: VariantArray): Boolean { TransferContext.writeArguments(VariantParser.ARRAY to keys) - Bridge.engine_call_hasAll(_handle) + Bridge.engine_call_hasAll(ptr) return TransferContext.readReturnValue(VariantParser.BOOL) as Boolean } @@ -244,7 +244,7 @@ class Dictionary : NativeCoreType, MutableMap { * Returns a hashed integer value representing the dictionary contents. This can be used to compare dictionaries by value */ fun hash(): Int { - Bridge.engine_call_hash(_handle) + Bridge.engine_call_hash(ptr) return TransferContext.readReturnValue(VariantCaster.INT) as Int } @@ -252,7 +252,7 @@ class Dictionary : NativeCoreType, MutableMap { * Returns true if the dictionary is read-only. See [makeReadOnly] */ fun isReadOnly(): Boolean { - Bridge.engine_call_is_read_only(_handle) + Bridge.engine_call_is_read_only(ptr) return TransferContext.readReturnValue(VariantParser.BOOL) as Boolean } @@ -260,7 +260,7 @@ class Dictionary : NativeCoreType, MutableMap { * Returns true if the dictionary is empty. */ override fun isEmpty(): Boolean { - Bridge.engine_call_is_empty(_handle) + Bridge.engine_call_is_empty(ptr) return TransferContext.readReturnValue(VariantParser.BOOL) as Boolean } @@ -268,7 +268,7 @@ class Dictionary : NativeCoreType, MutableMap { * Returns the list of keys in the Dictionary. */ fun keys(): VariantArray { - Bridge.engine_call_keys(_handle) + Bridge.engine_call_keys(ptr) @Suppress("UNCHECKED_CAST") return (TransferContext.readReturnValue(VariantParser.ARRAY) as VariantArray).also { it.variantConverter = keyVariantConverter @@ -276,12 +276,12 @@ class Dictionary : NativeCoreType, MutableMap { } fun makeReadOnly() { - Bridge.engine_call_make_read_only(_handle) + Bridge.engine_call_make_read_only(ptr) } fun merge(dictionary: Dictionary, overwrite: Boolean = false) { TransferContext.writeArguments(VariantParser.DICTIONARY to dictionary, VariantParser.BOOL to overwrite) - Bridge.engine_call_merge(_handle) + Bridge.engine_call_merge(ptr) } override fun put(key: K, value: V): V? { @@ -306,7 +306,7 @@ class Dictionary : NativeCoreType, MutableMap { * Returns the list of values in the Dictionary. */ fun values(): VariantArray { - Bridge.engine_call_values(_handle) + Bridge.engine_call_values(ptr) @Suppress("UNCHECKED_CAST") return (TransferContext.readReturnValue(VariantParser.ARRAY) as VariantArray).also { it.variantConverter = valueVariantConverter @@ -317,7 +317,7 @@ class Dictionary : NativeCoreType, MutableMap { //UTILITIES override operator fun get(key: K): V { TransferContext.writeArguments(keyVariantConverter to key) - Bridge.engine_call_operator_get(_handle) + Bridge.engine_call_operator_get(ptr) @Suppress("UNCHECKED_CAST") return TransferContext.readReturnValue(valueVariantConverter) as V } @@ -332,7 +332,7 @@ class Dictionary : NativeCoreType, MutableMap { operator fun set(key: K, value: V) { TransferContext.writeArguments(keyVariantConverter to key, valueVariantConverter to value) - Bridge.engine_call_operator_set(_handle) + Bridge.engine_call_operator_set(ptr) } operator fun contains(key: K): Boolean = has(key) @@ -342,12 +342,12 @@ class Dictionary : NativeCoreType, MutableMap { return false } TransferContext.writeArguments(VariantParser.DICTIONARY to this, VariantParser.DICTIONARY to other) - Bridge.engine_call_equals(_handle) + Bridge.engine_call_equals(ptr) return TransferContext.readReturnValue(VariantParser.BOOL) as Boolean } override fun hashCode(): Int { - return _handle.hashCode() + return ptr.hashCode() } override fun toString(): String { diff --git a/kt/godot-library/src/main/kotlin/godot/core/bridge/LambdaCallable.kt b/kt/godot-library/src/main/kotlin/godot/core/bridge/LambdaCallable.kt index b38cc1cb18..c48d41284e 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/bridge/LambdaCallable.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/bridge/LambdaCallable.kt @@ -3,8 +3,7 @@ package godot.core import godot.core.memory.TransferContext -import godot.util.GodotLogging -import godot.util.VoidPtr +import godot.common.interop.VoidPtr abstract class LambdaCallable( internal val variantConverter: VariantConverter, diff --git a/kt/godot-library/src/main/kotlin/godot/core/bridge/NativeCallable.kt b/kt/godot-library/src/main/kotlin/godot/core/bridge/NativeCallable.kt index 5a5edafdf2..aeaa7f2c46 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/bridge/NativeCallable.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/bridge/NativeCallable.kt @@ -4,134 +4,135 @@ package godot.core import godot.Object +import godot.common.interop.ObjectID import godot.core.memory.MemoryManager import godot.core.memory.TransferContext -import godot.util.VoidPtr +import godot.common.interop.VoidPtr import kotlin.reflect.KCallable class NativeCallable : NativeCoreType, Callable { internal constructor() { - _handle = Bridge.engine_call_constructor() + ptr = Bridge.engine_call_constructor() MemoryManager.registerNativeCoreType(this, VariantParser.CALLABLE) } internal constructor(target: Object, methodName: StringName) { TransferContext.writeArguments(VariantParser.OBJECT to target, VariantParser.STRING_NAME to methodName) - _handle = Bridge.engine_call_constructor_object_string_name() + ptr = Bridge.engine_call_constructor_object_string_name() MemoryManager.registerNativeCoreType(this, VariantParser.CALLABLE) } internal constructor(callable: NativeCallable) { TransferContext.writeArguments(VariantParser.CALLABLE to callable) - _handle = Bridge.engine_call_copy_constructor() + ptr = Bridge.engine_call_copy_constructor() MemoryManager.registerNativeCoreType(this, VariantParser.CALLABLE) } internal constructor(lambdaCallable: LambdaCallable<*>) { // We pass all params using jni as we're often in a context of sending parameters to cpp, so we should not rewind buffer. - _handle = Bridge.engine_call_constructor_kt_custom_callable(lambdaCallable, lambdaCallable.variantConverter.id, lambdaCallable.hashCode()) + ptr = Bridge.engine_call_constructor_kt_custom_callable(lambdaCallable, lambdaCallable.variantConverter.id, lambdaCallable.hashCode()) MemoryManager.registerNativeCoreType(this, VariantParser.CALLABLE) } internal constructor(_handle: VoidPtr){ - this._handle = _handle + this.ptr = _handle MemoryManager.registerNativeCoreType(this, VariantParser.CALLABLE) } fun bind(vararg args: Any?): NativeCallable { TransferContext.writeArguments(*args.map { VariantCaster.ANY to it }.toTypedArray()) - Bridge.engine_call_bind(_handle) + Bridge.engine_call_bind(ptr) return TransferContext.readReturnValue(VariantParser.CALLABLE) as NativeCallable } fun bindv(args: VariantArray): NativeCallable { TransferContext.writeArguments(VariantParser.ARRAY to args) - Bridge.engine_call_bindv(_handle) + Bridge.engine_call_bindv(ptr) return TransferContext.readReturnValue(VariantParser.CALLABLE) as NativeCallable } override fun call(vararg args: Any?): Any? { TransferContext.writeArguments(*args.map { VariantCaster.ANY to it }.toTypedArray()) - Bridge.engine_call_call(_handle) + Bridge.engine_call_call(ptr) return TransferContext.readReturnValue(VariantCaster.ANY) } fun callDeferred(vararg args: Any?) { TransferContext.writeArguments(*args.map { VariantCaster.ANY to it }.toTypedArray()) - Bridge.engine_call_call_deferred(_handle) + Bridge.engine_call_call_deferred(ptr) } fun callv(args: VariantArray): Any? { TransferContext.writeArguments(VariantParser.ARRAY to args) - Bridge.engine_call_callv(_handle) + Bridge.engine_call_callv(ptr) return TransferContext.readReturnValue(VariantCaster.ANY) } fun getBoundArguments(): VariantArray { - Bridge.engine_call_get_bound_arguments(_handle) + Bridge.engine_call_get_bound_arguments(ptr) @Suppress("UNCHECKED_CAST") return TransferContext.readReturnValue(VariantParser.ARRAY) as VariantArray } fun getBoundArgumentCount(): Int { - Bridge.engine_call_get_bound_arguments_count(_handle) + Bridge.engine_call_get_bound_arguments_count(ptr) return TransferContext.readReturnValue(VariantCaster.INT) as Int } fun getMethod(): StringName { - Bridge.engine_call_get_method(_handle) + Bridge.engine_call_get_method(ptr) return TransferContext.readReturnValue(VariantParser.STRING_NAME) as StringName } fun getObject(): Object { - Bridge.engine_call_get_object(_handle) + Bridge.engine_call_get_object(ptr) return TransferContext.readReturnValue(VariantParser.OBJECT) as Object } fun getObjectId(): ObjectID { - Bridge.engine_call_get_object_id(_handle) + Bridge.engine_call_get_object_id(ptr) return ObjectID(TransferContext.readReturnValue(VariantParser.LONG) as Long) } override fun hashCode(): Int { - Bridge.engine_call_hash(_handle) + Bridge.engine_call_hash(ptr) return TransferContext.readReturnValue(VariantCaster.INT) as Int } fun isCustom(): Boolean { - Bridge.engine_call_is_custom(_handle) + Bridge.engine_call_is_custom(ptr) return TransferContext.readReturnValue(VariantParser.BOOL) as Boolean } fun isNull(): Boolean { - Bridge.engine_call_is_null(_handle) + Bridge.engine_call_is_null(ptr) return TransferContext.readReturnValue(VariantParser.BOOL) as Boolean } fun isStandard(): Boolean { - Bridge.engine_call_is_standard(_handle) + Bridge.engine_call_is_standard(ptr) return TransferContext.readReturnValue(VariantParser.BOOL) as Boolean } fun isValid(): Boolean { - Bridge.engine_call_is_valid(_handle) + Bridge.engine_call_is_valid(ptr) return TransferContext.readReturnValue(VariantParser.BOOL) as Boolean } fun rpc(vararg args: Any?) { TransferContext.writeArguments(*args.map { VariantCaster.ANY to it }.toTypedArray()) - Bridge.engine_call_rpc(_handle) + Bridge.engine_call_rpc(ptr) } fun rpcId(peerId: Long, vararg args: Any?) { TransferContext.writeArguments(VariantParser.LONG to peerId, *args.map { VariantCaster.ANY to it }.toTypedArray()) - Bridge.engine_call_rpc_id(_handle) + Bridge.engine_call_rpc_id(ptr) } fun unbind(argCount: Int): NativeCallable { TransferContext.writeArguments(VariantCaster.INT to argCount) - Bridge.engine_call_unbind(_handle) + Bridge.engine_call_unbind(ptr) return TransferContext.readReturnValue(VariantParser.CALLABLE) as NativeCallable } diff --git a/kt/godot-library/src/main/kotlin/godot/core/bridge/NodePath.kt b/kt/godot-library/src/main/kotlin/godot/core/bridge/NodePath.kt index a4d91dda75..51939e579d 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/bridge/NodePath.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/bridge/NodePath.kt @@ -5,8 +5,7 @@ package godot.core import godot.core.memory.MemoryManager import godot.core.memory.TransferContext -import godot.util.VoidPtr -import kotlin.reflect.KFunction +import godot.common.interop.VoidPtr import kotlin.reflect.KProperty @Suppress("MemberVisibilityCanBePrivate") @@ -14,26 +13,26 @@ class NodePath : NativeCoreType { //INTERNAL internal constructor(_handle: VoidPtr) { - this._handle = _handle + this.ptr = _handle MemoryManager.registerNativeCoreType(this, VariantParser.NODE_PATH) } //CONSTRUCTORS constructor() { - _handle = Bridge.engine_call_constructor() + ptr = Bridge.engine_call_constructor() MemoryManager.registerNativeCoreType(this, VariantParser.NODE_PATH) } constructor(from: String) { TransferContext.writeArguments(VariantParser.STRING to from) - _handle = Bridge.engine_call_constructor_string() + ptr = Bridge.engine_call_constructor_string() MemoryManager.registerNativeCoreType(this, VariantParser.NODE_PATH) } constructor(from: NodePath) { TransferContext.writeArguments(VariantParser.NODE_PATH to from) - _handle = Bridge.engine_call_constructor_node_path() + ptr = Bridge.engine_call_constructor_node_path() MemoryManager.registerNativeCoreType(this, VariantParser.NODE_PATH) } @@ -42,7 +41,7 @@ class NodePath : NativeCoreType { //PROPERTIES val path: String get() { - Bridge.engine_call_path(_handle) + Bridge.engine_call_path(ptr) return TransferContext.readReturnValue(VariantParser.STRING) as String } @@ -51,7 +50,7 @@ class NodePath : NativeCoreType { * name (defaults to resolving from the current node). */ fun getAsPropertyPath(): NodePath { - Bridge.engine_call_getAsPropertyPath(_handle) + Bridge.engine_call_getAsPropertyPath(ptr) return TransferContext.readReturnValue(VariantParser.NODE_PATH) as NodePath } @@ -60,7 +59,7 @@ class NodePath : NativeCoreType { */ fun getName(idx: Int): String { TransferContext.writeArguments(VariantCaster.INT to idx) - Bridge.engine_call_getName(_handle) + Bridge.engine_call_getName(ptr) return TransferContext.readReturnValue(VariantParser.STRING) as String } @@ -68,7 +67,7 @@ class NodePath : NativeCoreType { * Get the number of node names which make up the path. */ fun getNameCount(): Int { - Bridge.engine_call_getNameCount(_handle) + Bridge.engine_call_getNameCount(ptr) return TransferContext.readReturnValue(VariantCaster.INT) as Int } @@ -77,7 +76,7 @@ class NodePath : NativeCoreType { */ fun getSubname(idx: Int): String { TransferContext.writeArguments(VariantCaster.INT to idx) - Bridge.engine_call_getSubname(_handle) + Bridge.engine_call_getSubname(ptr) return TransferContext.readReturnValue(VariantParser.STRING) as String } @@ -85,7 +84,7 @@ class NodePath : NativeCoreType { * Get the number of resource names in the path. */ fun getSubnameCount(): Int { - Bridge.engine_call_getSubnameCount(_handle) + Bridge.engine_call_getSubnameCount(ptr) return TransferContext.readReturnValue(VariantCaster.INT) as Int } @@ -93,7 +92,7 @@ class NodePath : NativeCoreType { * Return true if the node path is absolute (not relative). */ fun isAbsolute(): Boolean { - Bridge.engine_call_isAbsolute(_handle) + Bridge.engine_call_isAbsolute(ptr) return TransferContext.readReturnValue(VariantParser.BOOL) as Boolean } @@ -101,7 +100,7 @@ class NodePath : NativeCoreType { * Returns the 32-bit hash value representing the NodePath's contents. */ fun hash(): Int { - Bridge.engine_call_hash(_handle) + Bridge.engine_call_hash(ptr) return TransferContext.readReturnValue(VariantCaster.INT) as Int } @@ -109,7 +108,7 @@ class NodePath : NativeCoreType { * Return true if the node path is empty. */ fun isEmpty(): Boolean { - Bridge.engine_call_isEmpty(_handle) + Bridge.engine_call_isEmpty(ptr) return TransferContext.readReturnValue(VariantParser.BOOL) as Boolean } @@ -117,7 +116,7 @@ class NodePath : NativeCoreType { * Returns all paths concatenated with a slash character (/) as separator without subnames. */ fun getConcatenatedNames(): StringName { - Bridge.engine_call_getConcatenatedNames(_handle) + Bridge.engine_call_getConcatenatedNames(ptr) return TransferContext.readReturnValue(VariantParser.STRING_NAME) as StringName } @@ -126,7 +125,7 @@ class NodePath : NativeCoreType { * in a node path. */ fun getConcatenatedSubnames(): StringName { - Bridge.engine_call_getConcatenatedSubnames(_handle) + Bridge.engine_call_getConcatenatedSubnames(ptr) return TransferContext.readReturnValue(VariantParser.STRING_NAME) as StringName } @@ -135,7 +134,7 @@ class NodePath : NativeCoreType { override fun equals(other: Any?): Boolean { return if (other is NodePath) { TransferContext.writeArguments(VariantParser.NODE_PATH to other) - Bridge.engine_call_equals(_handle) + Bridge.engine_call_equals(ptr) return TransferContext.readReturnValue(VariantParser.BOOL) as Boolean } else { false @@ -143,7 +142,7 @@ class NodePath : NativeCoreType { } override fun hashCode(): Int { - return _handle.hashCode() + return ptr.hashCode() } override fun toString(): String { diff --git a/kt/godot-library/src/main/kotlin/godot/core/bridge/StringName.kt b/kt/godot-library/src/main/kotlin/godot/core/bridge/StringName.kt index f8b87f61a2..8bff113444 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/bridge/StringName.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/bridge/StringName.kt @@ -5,7 +5,7 @@ package godot.core import godot.core.memory.MemoryManager import godot.core.memory.TransferContext -import godot.util.VoidPtr +import godot.common.interop.VoidPtr import kotlin.reflect.KFunction import kotlin.reflect.KProperty @@ -13,31 +13,31 @@ class StringName : NativeCoreType { //INTERNAL internal constructor(_handle: VoidPtr) { - this._handle = _handle + this.ptr = _handle MemoryManager.registerNativeCoreType(this, VariantParser.STRING_NAME) } //CONSTRUCTORS constructor() { - _handle = Bridge.engine_call_constructor() + ptr = Bridge.engine_call_constructor() MemoryManager.registerNativeCoreType(this, VariantParser.STRING_NAME) } constructor(string: String) { TransferContext.writeArguments(VariantParser.STRING to string) - _handle = Bridge.engine_call_constructor_string() + ptr = Bridge.engine_call_constructor_string() MemoryManager.registerNativeCoreType(this, VariantParser.STRING_NAME) } constructor(stringName: StringName) { TransferContext.writeArguments(VariantParser.STRING_NAME to stringName) - _handle = Bridge.engine_call_copy_constructor() + ptr = Bridge.engine_call_copy_constructor() MemoryManager.registerNativeCoreType(this, VariantParser.STRING_NAME) } override fun toString(): String { TransferContext.writeArguments() - Bridge.engine_call_operator_string(_handle) + Bridge.engine_call_operator_string(ptr) return TransferContext.readReturnValue(VariantParser.STRING) as String } diff --git a/kt/godot-library/src/main/kotlin/godot/core/bridge/VariantArray.kt b/kt/godot-library/src/main/kotlin/godot/core/bridge/VariantArray.kt index d30ad70d46..9fc332c62c 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/bridge/VariantArray.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/bridge/VariantArray.kt @@ -5,9 +5,9 @@ package godot.core import godot.annotation.CoreTypeHelper import godot.core.memory.MemoryManager import godot.core.memory.TransferContext -import godot.util.IndexedIterator -import godot.util.VoidPtr -import godot.util.isNullable +import godot.common.util.IndexedIterator +import godot.common.interop.VoidPtr +import godot.common.util.isNullable import kotlincompile.definitions.GodotJvmBuildConfig import kotlin.jvm.internal.Reflection import kotlin.reflect.KClass @@ -24,7 +24,7 @@ class VariantArray : NativeCoreType, MutableCollection { @PublishedApi internal constructor(handle: VoidPtr, converter: VariantConverter) { variantConverter = converter - _handle = handle + ptr = handle MemoryManager.registerNativeCoreType(this, VariantParser.ARRAY) } @@ -41,7 +41,7 @@ class VariantArray : NativeCoreType, MutableCollection { } this.variantConverter = variantConverter!! - _handle = if (variantConverter != VariantCaster.ANY) { + ptr = if (variantConverter != VariantCaster.ANY) { TransferContext.writeArguments( VariantCaster.INT to variantConverter.id, VariantCaster.INT to (TypeManager.engineTypeToId[parameterClazz] ?: -1), @@ -61,7 +61,7 @@ class VariantArray : NativeCoreType, MutableCollection { */ override val size: Int get() { - Bridge.engine_call_size(_handle) + Bridge.engine_call_size(ptr) return TransferContext.readReturnValue(VariantCaster.INT) as Int } @@ -70,7 +70,7 @@ class VariantArray : NativeCoreType, MutableCollection { */ constructor(other: VariantArray) { this.variantConverter = other.variantConverter - this._handle = other._handle + this.ptr = other.ptr MemoryManager.registerNativeCoreType(this, VariantParser.ARRAY) } @@ -91,14 +91,14 @@ class VariantArray : NativeCoreType, MutableCollection { * Clears the array. This is equivalent to using resize with a size of 0. */ override fun clear() { - Bridge.engine_call_clear(_handle) + Bridge.engine_call_clear(ptr) } /** * Returns true if the array is empty. */ override fun isEmpty(): Boolean { - Bridge.engine_call_isEmpty(_handle) + Bridge.engine_call_isEmpty(ptr) return TransferContext.readReturnValue(VariantParser.BOOL) as Boolean } @@ -106,7 +106,7 @@ class VariantArray : NativeCoreType, MutableCollection { * Returns true if the array is read-only. */ fun isReadOnly(): Boolean { - Bridge.engine_call_isReadOnly(_handle) + Bridge.engine_call_isReadOnly(ptr) return TransferContext.readReturnValue(VariantParser.BOOL) as Boolean } @@ -115,7 +115,7 @@ class VariantArray : NativeCoreType, MutableCollection { * type safety for the [get] operator. */ fun isTyped(): Boolean { - Bridge.engine_call_isTyped(_handle) + Bridge.engine_call_isTyped(ptr) return TransferContext.readReturnValue(VariantParser.BOOL) as Boolean } @@ -123,7 +123,7 @@ class VariantArray : NativeCoreType, MutableCollection { * Returns a hashed integer value representing the array contents. */ fun hash(): Int { - Bridge.engine_call_hash(_handle) + Bridge.engine_call_hash(ptr) return TransferContext.readReturnValue(VariantCaster.INT) as Int } @@ -131,7 +131,7 @@ class VariantArray : NativeCoreType, MutableCollection { * Reverses the order of the elements in the array. */ fun invert() { - Bridge.engine_call_reverse(_handle) + Bridge.engine_call_reverse(ptr) } override fun remove(element: T): Boolean { @@ -148,7 +148,7 @@ class VariantArray : NativeCoreType, MutableCollection { */ fun removeAt(position: Int) { TransferContext.writeArguments(VariantCaster.INT to position) - Bridge.engine_call_removeAt(_handle) + Bridge.engine_call_removeAt(ptr) } override fun removeAll(elements: Collection): Boolean { @@ -165,7 +165,7 @@ class VariantArray : NativeCoreType, MutableCollection { */ fun resize(size: Int) { TransferContext.writeArguments(VariantCaster.INT to size) - Bridge.engine_call_resize(_handle) + Bridge.engine_call_resize(ptr) } override fun retainAll(elements: Collection): Boolean { @@ -187,7 +187,7 @@ class VariantArray : NativeCoreType, MutableCollection { * Call @randomize to ensure that a new seed will be used each time if you want non-reproducible shuffling. */ fun shuffle() { - Bridge.engine_call_shuffle(_handle) + Bridge.engine_call_shuffle(ptr) } @@ -195,7 +195,7 @@ class VariantArray : NativeCoreType, MutableCollection { * Sorts the array. */ fun sort() { - Bridge.engine_call_sort(_handle) + Bridge.engine_call_sort(ptr) } /** @@ -204,7 +204,7 @@ class VariantArray : NativeCoreType, MutableCollection { */ fun sortCustom(obj: KtObject, func: String) { TransferContext.writeArguments(VariantParser.OBJECT to obj, VariantParser.STRING to func) - Bridge.engine_call_sortCustom(_handle) + Bridge.engine_call_sortCustom(ptr) } //API @@ -225,7 +225,7 @@ class VariantArray : NativeCoreType, MutableCollection { */ fun all(callable: Callable): Boolean { TransferContext.writeArguments(VariantParser.CALLABLE to callable) - Bridge.engine_call_all(_handle) + Bridge.engine_call_all(ptr) return TransferContext.readReturnValue(VariantParser.BOOL) as Boolean } @@ -245,7 +245,7 @@ class VariantArray : NativeCoreType, MutableCollection { */ fun any(callable: Callable): Boolean { TransferContext.writeArguments(VariantParser.CALLABLE to callable) - Bridge.engine_call_any(_handle) + Bridge.engine_call_any(ptr) return TransferContext.readReturnValue(VariantParser.BOOL) as Boolean } @@ -254,7 +254,7 @@ class VariantArray : NativeCoreType, MutableCollection { */ fun append(value: T) { TransferContext.writeArguments(variantConverter to value) - Bridge.engine_call_append(_handle) + Bridge.engine_call_append(ptr) } /** @@ -262,14 +262,14 @@ class VariantArray : NativeCoreType, MutableCollection { */ fun appendArray(array: VariantArray) { TransferContext.writeArguments(VariantParser.ARRAY to array) - Bridge.engine_call_appendArray(_handle) + Bridge.engine_call_appendArray(ptr) } /** * Returns the last element of the array. Prints an error and returns `null` if the array is empty. */ fun back(): T { - Bridge.engine_call_back(_handle) + Bridge.engine_call_back(ptr) return TransferContext.readReturnValue(variantConverter) as T } @@ -282,7 +282,7 @@ class VariantArray : NativeCoreType, MutableCollection { @JvmOverloads fun bsearch(value: T, before: Boolean = true): Int { TransferContext.writeArguments(variantConverter to value, VariantParser.BOOL to before) - Bridge.engine_call_bsearch(_handle) + Bridge.engine_call_bsearch(ptr) return TransferContext.readReturnValue(VariantCaster.INT) as Int } @@ -299,7 +299,7 @@ class VariantArray : NativeCoreType, MutableCollection { variantConverter to value, VariantParser.OBJECT to obj, VariantParser.STRING to func, VariantParser.BOOL to before ) - Bridge.engine_call_bsearchCustom(_handle) + Bridge.engine_call_bsearchCustom(ptr) return TransferContext.readReturnValue(VariantCaster.INT) as Int } @@ -308,7 +308,7 @@ class VariantArray : NativeCoreType, MutableCollection { */ fun count(value: T): Int { TransferContext.writeArguments(variantConverter to value) - Bridge.engine_call_count(_handle) + Bridge.engine_call_count(ptr) return TransferContext.readReturnValue(VariantCaster.INT) as Int } @@ -321,7 +321,7 @@ class VariantArray : NativeCoreType, MutableCollection { */ fun duplicate(deep: Boolean): VariantArray { TransferContext.writeArguments(VariantParser.BOOL to deep) - Bridge.engine_call_duplicate(_handle) + Bridge.engine_call_duplicate(ptr) return (TransferContext.readReturnValue(VariantParser.ARRAY) as VariantArray).also { it.variantConverter = variantConverter } @@ -332,7 +332,7 @@ class VariantArray : NativeCoreType, MutableCollection { */ fun erase(value: T) { TransferContext.writeArguments(variantConverter to value) - Bridge.engine_call_erase(_handle) + Bridge.engine_call_erase(ptr) } /** @@ -344,7 +344,7 @@ class VariantArray : NativeCoreType, MutableCollection { */ fun fill(value: T) { TransferContext.writeArguments(variantConverter to value) - Bridge.engine_call_fill(_handle) + Bridge.engine_call_fill(ptr) } /** @@ -357,7 +357,7 @@ class VariantArray : NativeCoreType, MutableCollection { */ fun filter(callable: Callable): VariantArray { TransferContext.writeArguments(VariantParser.CALLABLE to callable) - Bridge.engine_call_filter(_handle) + Bridge.engine_call_filter(ptr) return (TransferContext.readReturnValue(VariantParser.ARRAY) as VariantArray).also { it.variantConverter = variantConverter } @@ -369,7 +369,7 @@ class VariantArray : NativeCoreType, MutableCollection { */ fun find(what: T, from: Int): Int { TransferContext.writeArguments(variantConverter to what, VariantCaster.INT to from) - Bridge.engine_call_find(_handle) + Bridge.engine_call_find(ptr) return TransferContext.readReturnValue(VariantCaster.INT) as Int } @@ -377,7 +377,7 @@ class VariantArray : NativeCoreType, MutableCollection { * Returns the first element of the array, or null if the array is empty. */ fun front(): T? { - Bridge.engine_call_front(_handle) + Bridge.engine_call_front(ptr) return TransferContext.readReturnValue(variantConverter) as T? } @@ -390,7 +390,7 @@ class VariantArray : NativeCoreType, MutableCollection { * Returns a class name of a typed [VariantArray] of type [VariantParser.OBJECT]. */ fun getTypedClassName(): StringName { - Bridge.engine_call_getTypedClassName(_handle) + Bridge.engine_call_getTypedClassName(ptr) return TransferContext.readReturnValue(VariantParser.STRING_NAME) as StringName } @@ -398,7 +398,7 @@ class VariantArray : NativeCoreType, MutableCollection { * Returns the script associated with a typed array tied to a class name. */ fun getTypedScript(): Any { - Bridge.engine_call_getTypedScript(_handle) + Bridge.engine_call_getTypedScript(ptr) return TransferContext.readReturnValue(VariantCaster.ANY) as Any } @@ -407,7 +407,7 @@ class VariantArray : NativeCoreType, MutableCollection { */ fun has(value: T): Boolean { TransferContext.writeArguments(variantConverter to value) - Bridge.engine_call_has(_handle) + Bridge.engine_call_has(ptr) return TransferContext.readReturnValue(VariantParser.BOOL) as Boolean } @@ -417,7 +417,7 @@ class VariantArray : NativeCoreType, MutableCollection { */ fun insert(position: Int, value: T) { TransferContext.writeArguments(VariantCaster.INT to position, variantConverter to value) - Bridge.engine_call_insert(_handle) + Bridge.engine_call_insert(ptr) } /** @@ -428,7 +428,7 @@ class VariantArray : NativeCoreType, MutableCollection { */ fun map(callable: Callable): VariantArray { TransferContext.writeArguments(VariantParser.CALLABLE to callable) - Bridge.engine_call_map(_handle) + Bridge.engine_call_map(ptr) return (TransferContext.readReturnValue(VariantParser.ARRAY) as VariantArray).also { it.variantConverter = VariantCaster.ANY } @@ -439,7 +439,7 @@ class VariantArray : NativeCoreType, MutableCollection { * If the elements can't be compared, null is returned. */ fun max(): T? { - Bridge.engine_call_max(_handle) + Bridge.engine_call_max(ptr) return TransferContext.readReturnValue(variantConverter) as T? } @@ -448,7 +448,7 @@ class VariantArray : NativeCoreType, MutableCollection { * If the elements can't be compared, null is returned. */ fun min(): T? { - Bridge.engine_call_min(_handle) + Bridge.engine_call_min(ptr) return TransferContext.readReturnValue(variantConverter) as T? } @@ -456,7 +456,7 @@ class VariantArray : NativeCoreType, MutableCollection { * Returns a random value from the target array. */ fun pickRandom(): T? { - Bridge.engine_call_pickRandom(_handle) + Bridge.engine_call_pickRandom(ptr) return TransferContext.readReturnValue(variantConverter) as T? } @@ -465,7 +465,7 @@ class VariantArray : NativeCoreType, MutableCollection { * Returns null if the array is empty. */ fun popBack(): T? { - Bridge.engine_call_popBack(_handle) + Bridge.engine_call_popBack(ptr) return TransferContext.readReturnValue(variantConverter) as T? } @@ -474,7 +474,7 @@ class VariantArray : NativeCoreType, MutableCollection { * Returns null if the array is empty. */ fun popFront(): T? { - Bridge.engine_call_popFront(_handle) + Bridge.engine_call_popFront(ptr) return TransferContext.readReturnValue(variantConverter) as T? } @@ -483,7 +483,7 @@ class VariantArray : NativeCoreType, MutableCollection { */ fun pushBack(value: T) { TransferContext.writeArguments(variantConverter to value) - Bridge.engine_call_pushBack(_handle) + Bridge.engine_call_pushBack(ptr) } /** @@ -491,12 +491,12 @@ class VariantArray : NativeCoreType, MutableCollection { */ fun pushFront(value: T) { TransferContext.writeArguments(variantConverter to value) - Bridge.engine_call_pushFront(_handle) + Bridge.engine_call_pushFront(ptr) } fun reduce(callable: Callable, accum: Any?): Any? { TransferContext.writeArguments(VariantParser.CALLABLE to callable, VariantCaster.ANY to accum) - Bridge.engine_call_reduce(_handle) + Bridge.engine_call_reduce(ptr) return TransferContext.readReturnValue(VariantCaster.ANY) } @@ -507,7 +507,7 @@ class VariantArray : NativeCoreType, MutableCollection { */ fun rfind(what: T, from: Int): Int { TransferContext.writeArguments(variantConverter to what, VariantCaster.INT to from) - Bridge.engine_call_rfind(_handle) + Bridge.engine_call_rfind(ptr) return TransferContext.readReturnValue(VariantCaster.INT) as Int } @@ -527,7 +527,7 @@ class VariantArray : NativeCoreType, MutableCollection { VariantCaster.INT to begin, VariantCaster.INT to end, VariantCaster.INT to step, VariantParser.BOOL to deep ) - Bridge.engine_call_slice(_handle) + Bridge.engine_call_slice(ptr) return (TransferContext.readReturnValue(VariantParser.ARRAY) as VariantArray).also { it.variantConverter = variantConverter } @@ -537,7 +537,7 @@ class VariantArray : NativeCoreType, MutableCollection { //UTILITIES operator fun set(idx: Int, data: T) { TransferContext.writeArguments(VariantCaster.INT to idx, variantConverter to data) - Bridge.engine_call_operator_set(_handle) + Bridge.engine_call_operator_set(ptr) } @CoreTypeHelper @@ -550,7 +550,7 @@ class VariantArray : NativeCoreType, MutableCollection { operator fun get(idx: Int): T { TransferContext.writeArguments(VariantCaster.INT to idx) - Bridge.engine_call_operator_get(_handle) + Bridge.engine_call_operator_get(ptr) return TransferContext.readReturnValue(variantConverter) as T } @@ -586,7 +586,7 @@ class VariantArray : NativeCoreType, MutableCollection { } override fun hashCode(): Int { - return _handle.hashCode() + return ptr.hashCode() } override fun toString(): String { diff --git a/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedArray.kt b/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedArray.kt index 6c4ea65e13..3afea372b4 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedArray.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedArray.kt @@ -3,8 +3,8 @@ package godot.core import godot.core.memory.TransferContext -import godot.util.IndexedIterator -import godot.util.VoidPtr +import godot.common.util.IndexedIterator +import godot.common.interop.VoidPtr abstract class PackedArray, T> internal constructor() : NativeCoreType(), Iterable { internal abstract val bridge: PackedArrayBridge @@ -12,7 +12,7 @@ abstract class PackedArray, T> internal constr //PROPERTIES val size: Int get() { - bridge.engine_call_size(_handle) + bridge.engine_call_size(ptr) return TransferContext.readReturnValue(VariantCaster.INT) as Int } @@ -22,7 +22,7 @@ abstract class PackedArray, T> internal constr */ fun append(value: T) { TransferContext.writeArguments(bridge.elementVariantType to value) - bridge.engine_call_append(_handle) + bridge.engine_call_append(ptr) } @@ -31,7 +31,7 @@ abstract class PackedArray, T> internal constr */ fun appendArray(array: Derived) { TransferContext.writeArguments(bridge.packedArrayVariantType to array) - bridge.engine_call_appendArray(_handle) + bridge.engine_call_appendArray(ptr) } /** @@ -43,7 +43,7 @@ abstract class PackedArray, T> internal constr */ fun bsearch(value: T, before: Boolean = true): Int { TransferContext.writeArguments(bridge.elementVariantType to value, VariantParser.BOOL to before) - bridge.engine_call_bsearch(_handle) + bridge.engine_call_bsearch(ptr) return TransferContext.readReturnValue(VariantCaster.INT) as Int } @@ -51,7 +51,7 @@ abstract class PackedArray, T> internal constr * Clears the array. This is equivalent to using [resize] with a size of `0`. */ fun clear() { - bridge.engine_call_clear(_handle) + bridge.engine_call_clear(ptr) } /** @@ -59,7 +59,7 @@ abstract class PackedArray, T> internal constr */ fun count(value: T): Int { TransferContext.writeArguments(bridge.elementVariantType to value) - bridge.engine_call_count(_handle) + bridge.engine_call_count(ptr) return TransferContext.readReturnValue(VariantCaster.INT) as Int } @@ -68,7 +68,7 @@ abstract class PackedArray, T> internal constr */ @Suppress("UNCHECKED_CAST") fun duplicate(): Derived { - bridge.engine_call_duplicate(_handle) + bridge.engine_call_duplicate(ptr) return TransferContext.readReturnValue(bridge.packedArrayVariantType) as Derived } @@ -78,7 +78,7 @@ abstract class PackedArray, T> internal constr */ fun fill(value: T) { TransferContext.writeArguments(bridge.elementVariantType to value) - bridge.engine_call_fill(_handle) + bridge.engine_call_fill(ptr) } /** @@ -87,7 +87,7 @@ abstract class PackedArray, T> internal constr */ fun find(value: T): Int { TransferContext.writeArguments(bridge.elementVariantType to value) - bridge.engine_call_find(_handle) + bridge.engine_call_find(ptr) return TransferContext.readReturnValue(VariantCaster.INT) as Int } @@ -97,7 +97,7 @@ abstract class PackedArray, T> internal constr @Suppress("UNCHECKED_CAST") operator fun get(idx: Int): T { TransferContext.writeArguments(VariantCaster.INT to idx) - bridge.engine_call_get(_handle) + bridge.engine_call_get(ptr) return TransferContext.readReturnValue(bridge.elementVariantType) as T } @@ -106,7 +106,7 @@ abstract class PackedArray, T> internal constr */ fun has(value: T): Boolean { TransferContext.writeArguments(bridge.elementVariantType to value) - bridge.engine_call_has(_handle) + bridge.engine_call_has(ptr) return TransferContext.readReturnValue(VariantParser.BOOL) as Boolean } @@ -116,14 +116,14 @@ abstract class PackedArray, T> internal constr */ fun insert(idx: Int, data: T) { TransferContext.writeArguments(VariantCaster.INT to idx, bridge.elementVariantType to data) - bridge.engine_call_insert(_handle) + bridge.engine_call_insert(ptr) } /** * Returns true if the array is empty. */ fun isEmpty(): Boolean { - bridge.engine_call_is_empty(_handle) + bridge.engine_call_is_empty(ptr) return TransferContext.readReturnValue(VariantParser.BOOL) as Boolean } @@ -132,7 +132,7 @@ abstract class PackedArray, T> internal constr */ fun pushBack(data: T) { TransferContext.writeArguments(bridge.elementVariantType to data) - bridge.engine_call_pushback(_handle) + bridge.engine_call_pushback(ptr) } /** @@ -140,7 +140,7 @@ abstract class PackedArray, T> internal constr */ fun removeAt(idx: Int) { TransferContext.writeArguments(VariantCaster.INT to idx) - bridge.engine_call_remove_at(_handle) + bridge.engine_call_remove_at(ptr) } /** @@ -149,14 +149,14 @@ abstract class PackedArray, T> internal constr */ fun resize(size: Int) { TransferContext.writeArguments(VariantCaster.INT to size) - bridge.engine_call_resize(_handle) + bridge.engine_call_resize(ptr) } /** * Reverses the order of the elements in the array. */ fun reverse() { - bridge.engine_call_reverse(_handle) + bridge.engine_call_reverse(ptr) } /** @@ -165,7 +165,7 @@ abstract class PackedArray, T> internal constr */ fun rfind(value: T, from: Int = -1): Int { TransferContext.writeArguments(bridge.elementVariantType to value, VariantCaster.INT to from) - bridge.engine_call_rfind(_handle) + bridge.engine_call_rfind(ptr) return TransferContext.readReturnValue(VariantCaster.INT) as Int } @@ -174,7 +174,7 @@ abstract class PackedArray, T> internal constr */ operator fun set(idx: Int, data: T) { TransferContext.writeArguments(VariantCaster.INT to idx, bridge.elementVariantType to data) - bridge.engine_call_set(_handle) + bridge.engine_call_set(ptr) } /** @@ -189,16 +189,16 @@ abstract class PackedArray, T> internal constr @Suppress("UNCHECKED_CAST") fun slice(begin: Int, end: Int = Int.MAX_VALUE): Derived { TransferContext.writeArguments(VariantCaster.INT to begin, VariantCaster.INT to end) - bridge.engine_call_slice(_handle) + bridge.engine_call_slice(ptr) return TransferContext.readReturnValue(bridge.packedArrayVariantType) as Derived } fun sort() { - bridge.engine_call_sort(_handle) + bridge.engine_call_sort(ptr) } fun toPackedByteArray(): PackedByteArray { - bridge.engine_call_to_byte_array(_handle) + bridge.engine_call_to_byte_array(ptr) return TransferContext.readReturnValue(VariantParser.PACKED_BYTE_ARRAY) as PackedByteArray } diff --git a/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedByteArray.kt b/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedByteArray.kt index e282852f75..b7bc3bafed 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedByteArray.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedByteArray.kt @@ -4,7 +4,7 @@ package godot.core import godot.core.memory.MemoryManager import godot.core.memory.TransferContext -import godot.util.VoidPtr +import godot.common.interop.VoidPtr @Suppress("MemberVisibilityCanBePrivate", "unused") class PackedByteArray : PackedArray { @@ -35,7 +35,7 @@ class PackedByteArray : PackedArray { //INTERNALS internal constructor(handle: VoidPtr) { - this._handle = handle + this.ptr = handle MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_BYTE_ARRAY) } @@ -44,7 +44,7 @@ class PackedByteArray : PackedArray { * Constructs an empty PackedByteArray. */ constructor() { - _handle = Bridge.engine_call_constructor() + ptr = Bridge.engine_call_constructor() MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_BYTE_ARRAY) } @@ -53,7 +53,7 @@ class PackedByteArray : PackedArray { */ constructor(from: PackedByteArray) { TransferContext.writeArguments(VariantParser.PACKED_BYTE_ARRAY to from) - _handle = Bridge.engine_call_constructor_packed_array() + ptr = Bridge.engine_call_constructor_packed_array() MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_BYTE_ARRAY) } @@ -62,7 +62,7 @@ class PackedByteArray : PackedArray { */ constructor(from: VariantArray) { TransferContext.writeArguments(VariantParser.ARRAY to from) - _handle = Bridge.engine_call_constructor_array() + ptr = Bridge.engine_call_constructor_array() MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_BYTE_ARRAY) } @@ -70,7 +70,7 @@ class PackedByteArray : PackedArray { * Constructs a new [PackedByteArray] from an existing Kotlin [ByteArray] or Java byte[]. */ constructor(from: ByteArray) { - _handle = Bridge.engine_convert_to_godot(from) + ptr = Bridge.engine_convert_to_godot(from) MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_BYTE_ARRAY) } @@ -82,7 +82,7 @@ class PackedByteArray : PackedArray { @JvmOverloads fun compress(compressionMode: CompressionMode = CompressionMode.COMPRESSION_FASTLZ): PackedByteArray { TransferContext.writeArguments(VariantCaster.INT to compressionMode.ordinal) - Bridge.engine_call_compress(_handle) + Bridge.engine_call_compress(ptr) return TransferContext.readReturnValue(VariantParser.PACKED_BYTE_ARRAY) as PackedByteArray } @@ -92,7 +92,7 @@ class PackedByteArray : PackedArray { */ fun decodeDouble(byteOffset: Int): Double { TransferContext.writeArguments(VariantCaster.INT to byteOffset) - Bridge.engine_call_decode_double(_handle) + Bridge.engine_call_decode_double(ptr) return TransferContext.readReturnValue(VariantParser.DOUBLE) as Double } @@ -102,7 +102,7 @@ class PackedByteArray : PackedArray { */ fun decodeFloat(byteOffset: Int): Float { TransferContext.writeArguments(VariantCaster.INT to byteOffset) - Bridge.engine_call_decode_float(_handle) + Bridge.engine_call_decode_float(ptr) return TransferContext.readReturnValue(VariantCaster.FLOAT) as Float } @@ -112,7 +112,7 @@ class PackedByteArray : PackedArray { */ fun decodeHalf(byteOffset: Int): Float { TransferContext.writeArguments(VariantCaster.INT to byteOffset) - Bridge.engine_call_decode_half(_handle) + Bridge.engine_call_decode_half(ptr) return TransferContext.readReturnValue(VariantCaster.FLOAT) as Float } @@ -122,7 +122,7 @@ class PackedByteArray : PackedArray { */ fun decodeS16(byteOffset: Int): Int { TransferContext.writeArguments(VariantCaster.INT to byteOffset) - Bridge.engine_call_decode_s16(_handle) + Bridge.engine_call_decode_s16(ptr) return TransferContext.readReturnValue(VariantCaster.INT) as Int } @@ -132,7 +132,7 @@ class PackedByteArray : PackedArray { */ fun decodeS32(byteOffset: Int): Int { TransferContext.writeArguments(VariantCaster.INT to byteOffset) - Bridge.engine_call_decode_s32(_handle) + Bridge.engine_call_decode_s32(ptr) return TransferContext.readReturnValue(VariantCaster.INT) as Int } @@ -142,7 +142,7 @@ class PackedByteArray : PackedArray { */ fun decodeS64(byteOffset: Int): Long { TransferContext.writeArguments(VariantCaster.INT to byteOffset) - Bridge.engine_call_decode_s64(_handle) + Bridge.engine_call_decode_s64(ptr) return TransferContext.readReturnValue(VariantParser.LONG) as Long } @@ -152,7 +152,7 @@ class PackedByteArray : PackedArray { */ fun decodeS8(byteOffset: Int): Int { TransferContext.writeArguments(VariantCaster.INT to byteOffset) - Bridge.engine_call_decode_s8(_handle) + Bridge.engine_call_decode_s8(ptr) return TransferContext.readReturnValue(VariantCaster.INT) as Int } @@ -162,7 +162,7 @@ class PackedByteArray : PackedArray { */ fun decodeU16(byteOffset: Int): Int { TransferContext.writeArguments(VariantCaster.INT to byteOffset) - Bridge.engine_call_decode_u16(_handle) + Bridge.engine_call_decode_u16(ptr) return TransferContext.readReturnValue(VariantCaster.INT) as Int } @@ -172,7 +172,7 @@ class PackedByteArray : PackedArray { */ fun decodeU32(byteOffset: Int): Int { TransferContext.writeArguments(VariantCaster.INT to byteOffset) - Bridge.engine_call_decode_u32(_handle) + Bridge.engine_call_decode_u32(ptr) return TransferContext.readReturnValue(VariantCaster.INT) as Int } @@ -182,7 +182,7 @@ class PackedByteArray : PackedArray { */ fun decodeU64(byteOffset: Int): Long { TransferContext.writeArguments(VariantCaster.INT to byteOffset) - Bridge.engine_call_decode_u64(_handle) + Bridge.engine_call_decode_u64(ptr) return TransferContext.readReturnValue(VariantParser.LONG) as Long } @@ -192,7 +192,7 @@ class PackedByteArray : PackedArray { */ fun decodeU8(byteOffset: Int): Int { TransferContext.writeArguments(VariantCaster.INT to byteOffset) - Bridge.engine_call_decode_u8(_handle) + Bridge.engine_call_decode_u8(ptr) return TransferContext.readReturnValue(VariantCaster.INT) as Int } @@ -202,7 +202,7 @@ class PackedByteArray : PackedArray { */ fun decodeVar(byteOffset: Int, allowObjects: Boolean = false): Any { TransferContext.writeArguments(VariantCaster.INT to byteOffset, VariantParser.BOOL to allowObjects) - Bridge.engine_call_decode_var(_handle) + Bridge.engine_call_decode_var(ptr) return TransferContext.readReturnValue(VariantCaster.ANY) as Any } @@ -212,7 +212,7 @@ class PackedByteArray : PackedArray { */ fun decodeVarSize(byteOffset: Int, allowObjects: Boolean = false): Int { TransferContext.writeArguments(VariantCaster.INT to byteOffset, VariantParser.BOOL to allowObjects) - Bridge.engine_call_decode_var(_handle) + Bridge.engine_call_decode_var(ptr) return TransferContext.readReturnValue(VariantCaster.INT) as Int } @@ -230,7 +230,7 @@ class PackedByteArray : PackedArray { VariantCaster.INT to bufferSize, VariantCaster.INT to compressionMode.ordinal ) - Bridge.engine_call_decompress(_handle) + Bridge.engine_call_decompress(ptr) return TransferContext.readReturnValue(VariantParser.PACKED_BYTE_ARRAY) as PackedByteArray } @@ -249,7 +249,7 @@ class PackedByteArray : PackedArray { VariantCaster.INT to maxOutputSize, VariantCaster.INT to compressionMode.ordinal ) - Bridge.engine_call_decompress_dynamic(_handle) + Bridge.engine_call_decompress_dynamic(ptr) return TransferContext.readReturnValue(VariantParser.PACKED_BYTE_ARRAY) as PackedByteArray } @@ -259,7 +259,7 @@ class PackedByteArray : PackedArray { */ fun encodeDouble(byteOffset: Int, value: Double) { TransferContext.writeArguments(VariantCaster.INT to byteOffset, VariantParser.DOUBLE to value) - Bridge.engine_call_encode_double(_handle) + Bridge.engine_call_encode_double(ptr) } /** @@ -268,7 +268,7 @@ class PackedByteArray : PackedArray { */ fun encodeFloat(byteOffset: Int, value: Float) { TransferContext.writeArguments(VariantCaster.INT to byteOffset, VariantCaster.FLOAT to value) - Bridge.engine_call_encode_double(_handle) + Bridge.engine_call_encode_double(ptr) } /** @@ -277,7 +277,7 @@ class PackedByteArray : PackedArray { */ fun encodeHalf(byteOffset: Int, value: Float) { TransferContext.writeArguments(VariantCaster.INT to byteOffset, VariantCaster.FLOAT to value) - Bridge.engine_call_encode_double(_handle) + Bridge.engine_call_encode_double(ptr) } /** @@ -286,7 +286,7 @@ class PackedByteArray : PackedArray { */ fun encodeS16(byteOffset: Int, value: Int) { TransferContext.writeArguments(VariantCaster.INT to byteOffset, VariantCaster.INT to value) - Bridge.engine_call_decode_s16(_handle) + Bridge.engine_call_decode_s16(ptr) } /** @@ -295,7 +295,7 @@ class PackedByteArray : PackedArray { */ fun encodeS32(byteOffset: Int, value: Int) { TransferContext.writeArguments(VariantCaster.INT to byteOffset, VariantCaster.INT to value) - Bridge.engine_call_decode_s32(_handle) + Bridge.engine_call_decode_s32(ptr) } /** @@ -304,7 +304,7 @@ class PackedByteArray : PackedArray { */ fun encodeS64(byteOffset: Int, value: Long) { TransferContext.writeArguments(VariantCaster.INT to byteOffset, VariantParser.LONG to value) - Bridge.engine_call_decode_s64(_handle) + Bridge.engine_call_decode_s64(ptr) } /** @@ -313,7 +313,7 @@ class PackedByteArray : PackedArray { */ fun encodeS8(byteOffset: Int, value: Int) { TransferContext.writeArguments(VariantCaster.INT to byteOffset, VariantCaster.INT to value) - Bridge.engine_call_decode_s8(_handle) + Bridge.engine_call_decode_s8(ptr) } /** @@ -322,7 +322,7 @@ class PackedByteArray : PackedArray { */ fun encodeU16(byteOffset: Int, value: Int) { TransferContext.writeArguments(VariantCaster.INT to byteOffset, VariantCaster.INT to value) - Bridge.engine_call_decode_u16(_handle) + Bridge.engine_call_decode_u16(ptr) } /** @@ -331,7 +331,7 @@ class PackedByteArray : PackedArray { */ fun encodeU32(byteOffset: Int, value: Int) { TransferContext.writeArguments(VariantCaster.INT to byteOffset, VariantCaster.INT to value) - Bridge.engine_call_decode_u32(_handle) + Bridge.engine_call_decode_u32(ptr) } /** @@ -340,7 +340,7 @@ class PackedByteArray : PackedArray { */ fun encodeU64(byteOffset: Int, value: Long) { TransferContext.writeArguments(VariantCaster.INT to byteOffset, VariantParser.LONG to value) - Bridge.engine_call_decode_u64(_handle) + Bridge.engine_call_decode_u64(ptr) } /** @@ -349,7 +349,7 @@ class PackedByteArray : PackedArray { */ fun encodeU8(byteOffset: Int, value: Int) { TransferContext.writeArguments(VariantCaster.INT to byteOffset, VariantCaster.INT to value) - Bridge.engine_call_decode_u8(_handle) + Bridge.engine_call_decode_u8(ptr) } /** @@ -363,7 +363,7 @@ class PackedByteArray : PackedArray { VariantCaster.ANY to value, VariantParser.BOOL to allowObjects ) - Bridge.engine_call_encode_var(_handle) + Bridge.engine_call_encode_var(ptr) } /** @@ -374,7 +374,7 @@ class PackedByteArray : PackedArray { * For parsing user input always use get_string_from_utf8. */ fun getStringFromAscii(): String { - Bridge.engine_call_get_string_from_ascii(_handle) + Bridge.engine_call_get_string_from_ascii(ptr) return TransferContext.readReturnValue(VariantParser.STRING) as String } @@ -383,7 +383,7 @@ class PackedByteArray : PackedArray { * string if source array is not valid UTF-16 string. */ fun getStringFromUtf16(): String { - Bridge.engine_call_get_string_from_utf16(_handle) + Bridge.engine_call_get_string_from_utf16(ptr) return TransferContext.readReturnValue(VariantParser.STRING) as String } @@ -392,7 +392,7 @@ class PackedByteArray : PackedArray { * not valid UTF-32 string. */ fun getStringFromUtf32(): String { - Bridge.engine_call_get_string_from_utf32(_handle) + Bridge.engine_call_get_string_from_utf32(ptr) return TransferContext.readReturnValue(VariantParser.STRING) as String } @@ -401,7 +401,7 @@ class PackedByteArray : PackedArray { * Returns empty string if source array is not valid wide string. */ fun getStringFromWchar(): String { - Bridge.engine_call_get_string_from_wchar(_handle) + Bridge.engine_call_get_string_from_wchar(ptr) return TransferContext.readReturnValue(VariantParser.STRING) as String } @@ -412,13 +412,13 @@ class PackedByteArray : PackedArray { * For user input this function should always be preferred. */ fun getStringFromUtf8(): String { - Bridge.engine_call_get_string_from_utf8(_handle) + Bridge.engine_call_get_string_from_utf8(ptr) return TransferContext.readReturnValue(VariantParser.STRING) as String } fun hasEncodedVar(byteOffset: Int, allowObjects: Boolean = false): Boolean { TransferContext.writeArguments(VariantCaster.INT to byteOffset, VariantParser.BOOL to allowObjects) - Bridge.engine_call_has_encoded_var(_handle) + Bridge.engine_call_has_encoded_var(ptr) return TransferContext.readReturnValue(VariantParser.BOOL) as Boolean } @@ -426,24 +426,24 @@ class PackedByteArray : PackedArray { * Returns a hexadecimal representation of this array as a String. */ fun hexEncode(): String { - Bridge.engine_call_hex_encode(_handle) + Bridge.engine_call_hex_encode(ptr) return TransferContext.readReturnValue(VariantParser.STRING) as String } fun toPackedFloat32Array(): PackedFloat32Array { - Bridge.engine_call_to_float32_array(_handle) + Bridge.engine_call_to_float32_array(ptr) return TransferContext.readReturnValue(VariantParser.PACKED_FLOAT_32_ARRAY) as PackedFloat32Array } fun toPackedFloat64Array(): PackedFloat64Array { - Bridge.engine_call_to_float64_array(_handle) + Bridge.engine_call_to_float64_array(ptr) return TransferContext.readReturnValue(VariantParser.PACKED_FLOAT_64_ARRAY) as PackedFloat64Array } fun toPackedInt32Array(): PackedInt32Array { - Bridge.engine_call_to_int32_array(_handle) + Bridge.engine_call_to_int32_array(ptr) return TransferContext.readReturnValue(VariantParser.PACKED_INT_32_ARRAY) as PackedInt32Array } fun toPackedInt64Array(): PackedInt64Array { - Bridge.engine_call_to_int64_array(_handle) + Bridge.engine_call_to_int64_array(ptr) return TransferContext.readReturnValue(VariantParser.PACKED_INT_64_ARRAY) as PackedInt64Array } @@ -467,10 +467,10 @@ class PackedByteArray : PackedArray { } override fun hashCode(): Int { - return _handle.hashCode() + return ptr.hashCode() } - fun toByteArray(): ByteArray = Bridge.engine_convert_to_jvm(_handle) + fun toByteArray(): ByteArray = Bridge.engine_convert_to_jvm(ptr) @Suppress("FunctionName", "LocalVariableName") internal object Bridge : PackedArrayBridge { diff --git a/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedColorArray.kt b/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedColorArray.kt index 1fecfaa3e6..778b3c0952 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedColorArray.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedColorArray.kt @@ -4,7 +4,7 @@ package godot.core import godot.core.memory.MemoryManager import godot.core.memory.TransferContext -import godot.util.VoidPtr +import godot.common.interop.VoidPtr @Suppress("MemberVisibilityCanBePrivate", "unused") class PackedColorArray : PackedArray { @@ -13,13 +13,13 @@ class PackedColorArray : PackedArray { // INTERNALS internal constructor(_handle: VoidPtr) { - this._handle = _handle + this.ptr = _handle MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_COLOR_ARRAY) } //CONSTRUCTOR constructor() { - _handle = Bridge.engine_call_constructor() + ptr = Bridge.engine_call_constructor() MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_COLOR_ARRAY) } @@ -28,7 +28,7 @@ class PackedColorArray : PackedArray { */ constructor(from: PackedColorArray) { TransferContext.writeArguments(VariantParser.PACKED_COLOR_ARRAY to from) - _handle = Bridge.engine_call_constructor_packed_array() + ptr = Bridge.engine_call_constructor_packed_array() MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_COLOR_ARRAY) } @@ -37,7 +37,7 @@ class PackedColorArray : PackedArray { */ constructor(from: VariantArray) { TransferContext.writeArguments(VariantParser.ARRAY to from) - _handle = Bridge.engine_call_constructor_array() + ptr = Bridge.engine_call_constructor_array() MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_COLOR_ARRAY) } @@ -60,7 +60,7 @@ class PackedColorArray : PackedArray { } override fun hashCode(): Int { - return _handle.hashCode() + return ptr.hashCode() } diff --git a/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedFloat32Array.kt b/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedFloat32Array.kt index 16becb877b..d2d2fafa1e 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedFloat32Array.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedFloat32Array.kt @@ -4,7 +4,7 @@ package godot.core import godot.core.memory.MemoryManager import godot.core.memory.TransferContext -import godot.util.VoidPtr +import godot.common.interop.VoidPtr @Suppress("MemberVisibilityCanBePrivate", "unused") class PackedFloat32Array : PackedArray { @@ -12,7 +12,7 @@ class PackedFloat32Array : PackedArray { //INTERNALS internal constructor(_handle: VoidPtr) { - this._handle = _handle + this.ptr = _handle MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_FLOAT_32_ARRAY) } @@ -21,7 +21,7 @@ class PackedFloat32Array : PackedArray { * Constructs an empty [PackedFloat32Array]. */ constructor() { - _handle = Bridge.engine_call_constructor() + ptr = Bridge.engine_call_constructor() MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_FLOAT_32_ARRAY) } @@ -30,7 +30,7 @@ class PackedFloat32Array : PackedArray { */ constructor(from: PackedFloat32Array) { TransferContext.writeArguments(VariantParser.PACKED_FLOAT_32_ARRAY to from) - _handle = Bridge.engine_call_constructor_packed_array() + ptr = Bridge.engine_call_constructor_packed_array() MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_FLOAT_32_ARRAY) } @@ -39,7 +39,7 @@ class PackedFloat32Array : PackedArray { */ constructor(from: VariantArray) { TransferContext.writeArguments(VariantParser.ARRAY to from) - _handle = Bridge.engine_call_constructor_array() + ptr = Bridge.engine_call_constructor_array() MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_FLOAT_32_ARRAY) } @@ -47,7 +47,7 @@ class PackedFloat32Array : PackedArray { * Constructs a new [PackedFloat32Array] from an existing Kotlin [FloatArray] or Java float[]. */ constructor(from: FloatArray) { - _handle = Bridge.engine_convert_to_godot(from) + ptr = Bridge.engine_convert_to_godot(from) MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_FLOAT_32_ARRAY) } @@ -70,10 +70,10 @@ class PackedFloat32Array : PackedArray { } override fun hashCode(): Int { - return _handle.hashCode() + return ptr.hashCode() } - fun toFloatArray(): FloatArray = Bridge.engine_convert_to_jvm(_handle) + fun toFloatArray(): FloatArray = Bridge.engine_convert_to_jvm(ptr) @Suppress("LocalVariableName") internal object Bridge : PackedArrayBridge { diff --git a/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedFloat64Array.kt b/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedFloat64Array.kt index fa79300aac..a7507b6d62 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedFloat64Array.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedFloat64Array.kt @@ -4,7 +4,7 @@ package godot.core import godot.core.memory.MemoryManager import godot.core.memory.TransferContext -import godot.util.VoidPtr +import godot.common.interop.VoidPtr @Suppress("MemberVisibilityCanBePrivate", "unused") class PackedFloat64Array : PackedArray { @@ -12,13 +12,13 @@ class PackedFloat64Array : PackedArray { //INTERNALS internal constructor(_handle: VoidPtr) { - this._handle = _handle + this.ptr = _handle MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_FLOAT_64_ARRAY) } //CONSTRUCTOR constructor() { - _handle = Bridge.engine_call_constructor() + ptr = Bridge.engine_call_constructor() MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_FLOAT_64_ARRAY) } @@ -27,7 +27,7 @@ class PackedFloat64Array : PackedArray { */ constructor(from: PackedFloat64Array) { TransferContext.writeArguments(VariantParser.PACKED_FLOAT_64_ARRAY to from) - _handle = Bridge.engine_call_constructor_packed_array() + ptr = Bridge.engine_call_constructor_packed_array() MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_FLOAT_64_ARRAY) } @@ -36,7 +36,7 @@ class PackedFloat64Array : PackedArray { */ constructor(from: VariantArray) { TransferContext.writeArguments(VariantParser.ARRAY to from) - _handle = Bridge.engine_call_constructor_array() + ptr = Bridge.engine_call_constructor_array() MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_FLOAT_64_ARRAY) } @@ -44,7 +44,7 @@ class PackedFloat64Array : PackedArray { * Constructs a new [PackedFloat64Array] from an existing Kotlin [DoubleArray] or Java double[]. */ constructor(from: DoubleArray) { - _handle = Bridge.engine_convert_to_godot(from) + ptr = Bridge.engine_convert_to_godot(from) MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_FLOAT_64_ARRAY) } @@ -67,10 +67,10 @@ class PackedFloat64Array : PackedArray { } override fun hashCode(): Int { - return _handle.hashCode() + return ptr.hashCode() } - fun toDoubleArray(): DoubleArray = Bridge.engine_convert_to_jvm(_handle) + fun toDoubleArray(): DoubleArray = Bridge.engine_convert_to_jvm(ptr) @Suppress("LocalVariableName") internal object Bridge : PackedArrayBridge { diff --git a/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedInt32Array.kt b/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedInt32Array.kt index bbd46a8eba..6f4fab550d 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedInt32Array.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedInt32Array.kt @@ -4,7 +4,7 @@ package godot.core import godot.core.memory.MemoryManager import godot.core.memory.TransferContext -import godot.util.VoidPtr +import godot.common.interop.VoidPtr @Suppress("MemberVisibilityCanBePrivate", "unused") class PackedInt32Array : PackedArray { @@ -13,13 +13,13 @@ class PackedInt32Array : PackedArray { //INTERNALS internal constructor(_handle: VoidPtr) { - this._handle = _handle + this.ptr = _handle MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_INT_32_ARRAY) } //CONSTRUCTOR constructor() { - _handle = Bridge.engine_call_constructor() + ptr = Bridge.engine_call_constructor() MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_INT_32_ARRAY) } @@ -28,7 +28,7 @@ class PackedInt32Array : PackedArray { */ constructor(from: PackedInt32Array) { TransferContext.writeArguments(VariantParser.PACKED_INT_32_ARRAY to from) - _handle = Bridge.engine_call_constructor_packed_array() + ptr = Bridge.engine_call_constructor_packed_array() MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_INT_32_ARRAY) } @@ -37,7 +37,7 @@ class PackedInt32Array : PackedArray { */ constructor(from: VariantArray) { TransferContext.writeArguments(VariantParser.ARRAY to from) - _handle = Bridge.engine_call_constructor_array() + ptr = Bridge.engine_call_constructor_array() MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_INT_32_ARRAY) } @@ -45,7 +45,7 @@ class PackedInt32Array : PackedArray { * Constructs a new [PackedInt32Array] from an existing Kotlin [IntArray] or Java int[]. */ constructor(from: IntArray) { - _handle = Bridge.engine_convert_to_godot(from) + ptr = Bridge.engine_convert_to_godot(from) MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_INT_32_ARRAY) } @@ -68,10 +68,10 @@ class PackedInt32Array : PackedArray { } override fun hashCode(): Int { - return _handle.hashCode() + return ptr.hashCode() } - fun toIntArray(): IntArray = Bridge.engine_convert_to_jvm(_handle) + fun toIntArray(): IntArray = Bridge.engine_convert_to_jvm(ptr) @Suppress("LocalVariableName") internal object Bridge : PackedArrayBridge { diff --git a/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedInt64Array.kt b/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedInt64Array.kt index b7b67b9195..7201b8a3e7 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedInt64Array.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedInt64Array.kt @@ -4,7 +4,7 @@ package godot.core import godot.core.memory.MemoryManager import godot.core.memory.TransferContext -import godot.util.VoidPtr +import godot.common.interop.VoidPtr @Suppress("MemberVisibilityCanBePrivate", "unused") class PackedInt64Array : PackedArray { @@ -13,13 +13,13 @@ class PackedInt64Array : PackedArray { //INTERNALS internal constructor(_handle: VoidPtr) { - this._handle = _handle + this.ptr = _handle MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_INT_32_ARRAY) } //CONSTRUCTOR constructor() { - _handle = Bridge.engine_call_constructor() + ptr = Bridge.engine_call_constructor() MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_INT_32_ARRAY) } @@ -28,7 +28,7 @@ class PackedInt64Array : PackedArray { */ constructor(from: PackedInt64Array) { TransferContext.writeArguments(VariantParser.PACKED_INT_64_ARRAY to from) - _handle = Bridge.engine_call_constructor_packed_array() + ptr = Bridge.engine_call_constructor_packed_array() MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_INT_64_ARRAY) } @@ -37,7 +37,7 @@ class PackedInt64Array : PackedArray { */ constructor(from: VariantArray) { TransferContext.writeArguments(VariantParser.ARRAY to from) - _handle = Bridge.engine_call_constructor_array() + ptr = Bridge.engine_call_constructor_array() MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_INT_64_ARRAY) } @@ -45,7 +45,7 @@ class PackedInt64Array : PackedArray { * Constructs a new [PackedInt64Array] from an existing Kotlin [LongArray] or Java long[]. */ constructor(from: LongArray) { - _handle = Bridge.engine_convert_to_godot(from) + ptr = Bridge.engine_convert_to_godot(from) MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_INT_64_ARRAY) } @@ -68,10 +68,10 @@ class PackedInt64Array : PackedArray { } override fun hashCode(): Int { - return _handle.hashCode() + return ptr.hashCode() } - fun toLongArray(): LongArray = Bridge.engine_convert_to_jvm(_handle) + fun toLongArray(): LongArray = Bridge.engine_convert_to_jvm(ptr) @Suppress("LocalVariableName") internal object Bridge : PackedArrayBridge { diff --git a/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedStringArray.kt b/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedStringArray.kt index f8112c3549..1ea9c921e7 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedStringArray.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedStringArray.kt @@ -4,7 +4,7 @@ package godot.core import godot.core.memory.MemoryManager import godot.core.memory.TransferContext -import godot.util.VoidPtr +import godot.common.interop.VoidPtr @Suppress("MemberVisibilityCanBePrivate", "unused") class PackedStringArray : PackedArray { @@ -13,13 +13,13 @@ class PackedStringArray : PackedArray { //INTERNALS internal constructor(_handle: VoidPtr) { - this._handle = _handle + this.ptr = _handle MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_STRING_ARRAY) } //CONSTRUCTOR constructor() { - _handle = Bridge.engine_call_constructor() + ptr = Bridge.engine_call_constructor() MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_STRING_ARRAY) } @@ -28,7 +28,7 @@ class PackedStringArray : PackedArray { */ constructor(from: PackedStringArray) { TransferContext.writeArguments(VariantParser.PACKED_STRING_ARRAY to from) - _handle = Bridge.engine_call_constructor_packed_array() + ptr = Bridge.engine_call_constructor_packed_array() MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_STRING_ARRAY) } @@ -37,7 +37,7 @@ class PackedStringArray : PackedArray { */ constructor(from: VariantArray) { TransferContext.writeArguments(VariantParser.ARRAY to from) - _handle = Bridge.engine_call_constructor_array() + ptr = Bridge.engine_call_constructor_array() MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_STRING_ARRAY) } @@ -60,7 +60,7 @@ class PackedStringArray : PackedArray { } override fun hashCode(): Int { - return _handle.hashCode() + return ptr.hashCode() } diff --git a/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedVector2Array.kt b/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedVector2Array.kt index 84be4b9b7b..818ecb2abe 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedVector2Array.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedVector2Array.kt @@ -4,7 +4,7 @@ package godot.core import godot.core.memory.MemoryManager import godot.core.memory.TransferContext -import godot.util.VoidPtr +import godot.common.interop.VoidPtr @Suppress("MemberVisibilityCanBePrivate", "unused") class PackedVector2Array : PackedArray { @@ -13,13 +13,13 @@ class PackedVector2Array : PackedArray { //INTERNALS internal constructor(@Suppress("LocalVariableName") _handle: VoidPtr) { - this._handle = _handle + this.ptr = _handle MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_VECTOR2_ARRAY) } //CONSTRUCTOR constructor() { - _handle = bridge.engine_call_constructor() + ptr = bridge.engine_call_constructor() MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_VECTOR2_ARRAY) } @@ -28,7 +28,7 @@ class PackedVector2Array : PackedArray { */ constructor(from: PackedVector2Array) { TransferContext.writeArguments(VariantParser.PACKED_VECTOR2_ARRAY to from) - _handle = Bridge.engine_call_constructor_packed_array() + ptr = Bridge.engine_call_constructor_packed_array() MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_VECTOR2_ARRAY) } @@ -37,7 +37,7 @@ class PackedVector2Array : PackedArray { */ constructor(from: VariantArray) { TransferContext.writeArguments(VariantParser.ARRAY to from) - _handle = Bridge.engine_call_constructor_array() + ptr = Bridge.engine_call_constructor_array() MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_VECTOR2_ARRAY) } @@ -60,7 +60,7 @@ class PackedVector2Array : PackedArray { } override fun hashCode(): Int { - return _handle.hashCode() + return ptr.hashCode() } diff --git a/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedVector3Array.kt b/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedVector3Array.kt index 9f49f8261b..e61040a2be 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedVector3Array.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedVector3Array.kt @@ -4,7 +4,7 @@ package godot.core import godot.core.memory.MemoryManager import godot.core.memory.TransferContext -import godot.util.VoidPtr +import godot.common.interop.VoidPtr @Suppress("MemberVisibilityCanBePrivate", "unused") class PackedVector3Array : PackedArray { @@ -13,13 +13,13 @@ class PackedVector3Array : PackedArray { //INTERNALS internal constructor(_handle: VoidPtr) { - this._handle = _handle + this.ptr = _handle MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_VECTOR3_ARRAY) } //CONSTRUCTOR constructor() { - _handle = Bridge.engine_call_constructor() + ptr = Bridge.engine_call_constructor() MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_VECTOR3_ARRAY) } @@ -28,7 +28,7 @@ class PackedVector3Array : PackedArray { */ constructor(from: PackedVector3Array) { TransferContext.writeArguments(VariantParser.PACKED_VECTOR3_ARRAY to from) - _handle = Bridge.engine_call_constructor_packed_array() + ptr = Bridge.engine_call_constructor_packed_array() MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_VECTOR3_ARRAY) } @@ -37,7 +37,7 @@ class PackedVector3Array : PackedArray { */ constructor(from: VariantArray) { TransferContext.writeArguments(VariantParser.ARRAY to from) - _handle = Bridge.engine_call_constructor_array() + ptr = Bridge.engine_call_constructor_array() MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_VECTOR3_ARRAY) } @@ -60,7 +60,7 @@ class PackedVector3Array : PackedArray { } override fun hashCode(): Int { - return _handle.hashCode() + return ptr.hashCode() } diff --git a/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedVector4Array.kt b/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedVector4Array.kt index 25bc27dbf7..311272a43a 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedVector4Array.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/bridge/packed/PackedVector4Array.kt @@ -4,20 +4,20 @@ package godot.core import godot.core.memory.MemoryManager import godot.core.memory.TransferContext -import godot.util.VoidPtr +import godot.common.interop.VoidPtr class PackedVector4Array : PackedArray { override val bridge = Bridge //INTERNALS internal constructor(_handle: VoidPtr) { - this._handle = _handle + this.ptr = _handle MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_VECTOR4_ARRAY) } //CONSTRUCTOR constructor() { - _handle = bridge.engine_call_constructor() + ptr = bridge.engine_call_constructor() MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_VECTOR4_ARRAY) } @@ -26,7 +26,7 @@ class PackedVector4Array : PackedArray { */ constructor(from: PackedVector4Array) { TransferContext.writeArguments(VariantParser.PACKED_VECTOR4_ARRAY to from) - _handle = Bridge.engine_call_constructor_packed_array() + ptr = Bridge.engine_call_constructor_packed_array() MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_VECTOR4_ARRAY) } @@ -35,7 +35,7 @@ class PackedVector4Array : PackedArray { */ constructor(from: VariantArray) { TransferContext.writeArguments(VariantParser.ARRAY to from) - _handle = Bridge.engine_call_constructor_array() + ptr = Bridge.engine_call_constructor_array() MemoryManager.registerNativeCoreType(this, VariantParser.PACKED_VECTOR4_ARRAY) } @@ -58,7 +58,7 @@ class PackedVector4Array : PackedArray { } override fun hashCode(): Int { - return _handle.hashCode() + return ptr.hashCode() } @Suppress("LocalVariableName") diff --git a/kt/godot-library/src/main/kotlin/godot/core/math/AABB.kt b/kt/godot-library/src/main/kotlin/godot/core/math/AABB.kt index 2fc9c3ad03..95e9e20e78 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/math/AABB.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/math/AABB.kt @@ -4,7 +4,7 @@ package godot.core import godot.annotation.CoreTypeHelper import godot.annotation.CoreTypeLocalCopy -import godot.util.RealT +import godot.common.util.RealT import kotlincompile.definitions.GodotJvmBuildConfig class AABB( diff --git a/kt/godot-library/src/main/kotlin/godot/core/math/Basis.kt b/kt/godot-library/src/main/kotlin/godot/core/math/Basis.kt index 6dbdc774ec..61ecf64d48 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/math/Basis.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/math/Basis.kt @@ -5,12 +5,12 @@ package godot.core import godot.EulerOrder import godot.annotation.CoreTypeHelper import godot.annotation.CoreTypeLocalCopy -import godot.util.CMP_EPSILON -import godot.util.RealT -import godot.util.UNIT_EPSILON -import godot.util.isEqualApprox -import godot.util.isZeroApprox -import godot.util.toRealT +import godot.common.util.CMP_EPSILON +import godot.common.util.RealT +import godot.common.util.UNIT_EPSILON +import godot.common.util.isEqualApprox +import godot.common.util.isZeroApprox +import godot.common.util.toRealT import kotlincompile.definitions.GodotJvmBuildConfig import kotlin.math.PI import kotlin.math.asin diff --git a/kt/godot-library/src/main/kotlin/godot/core/math/Color.kt b/kt/godot-library/src/main/kotlin/godot/core/math/Color.kt index d8930acd60..8a287c2503 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/math/Color.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/math/Color.kt @@ -2,10 +2,10 @@ package godot.core -import godot.util.RealT -import godot.util.isEqualApprox -import godot.util.lerp -import godot.util.toRealT +import godot.common.util.RealT +import godot.common.util.isEqualApprox +import godot.common.util.lerp +import godot.common.util.toRealT import kotlin.math.floor import kotlin.math.max import kotlin.math.min diff --git a/kt/godot-library/src/main/kotlin/godot/core/math/Plane.kt b/kt/godot-library/src/main/kotlin/godot/core/math/Plane.kt index cf73717f83..6dd8a079c6 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/math/Plane.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/math/Plane.kt @@ -4,10 +4,10 @@ package godot.core import godot.annotation.CoreTypeHelper import godot.annotation.CoreTypeLocalCopy -import godot.util.CMP_EPSILON -import godot.util.RealT -import godot.util.isEqualApprox -import godot.util.toRealT +import godot.common.util.CMP_EPSILON +import godot.common.util.RealT +import godot.common.util.isEqualApprox +import godot.common.util.toRealT import kotlin.math.abs class Plane( diff --git a/kt/godot-library/src/main/kotlin/godot/core/math/Projection.kt b/kt/godot-library/src/main/kotlin/godot/core/math/Projection.kt index eb0c6b72eb..2f0a019155 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/math/Projection.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/math/Projection.kt @@ -10,7 +10,7 @@ import godot.global.GD.atan import godot.global.GD.cos import godot.global.GD.sin import godot.global.GD.tan -import godot.util.RealT +import godot.common.util.RealT import kotlin.math.abs class Projection( diff --git a/kt/godot-library/src/main/kotlin/godot/core/math/Quaternion.kt b/kt/godot-library/src/main/kotlin/godot/core/math/Quaternion.kt index 843beecfd0..c1cc90660f 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/math/Quaternion.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/math/Quaternion.kt @@ -3,14 +3,14 @@ package godot.core import godot.EulerOrder -import godot.util.CMP_EPSILON -import godot.util.RealT -import godot.util.cubicInterpolate -import godot.util.cubicInterpolateInTime -import godot.util.isEqualApprox -import godot.util.isZeroApprox -import godot.util.signbit -import godot.util.toRealT +import godot.common.util.CMP_EPSILON +import godot.common.util.RealT +import godot.common.util.cubicInterpolate +import godot.common.util.cubicInterpolateInTime +import godot.common.util.isEqualApprox +import godot.common.util.isZeroApprox +import godot.common.util.signbit +import godot.common.util.toRealT import kotlincompile.definitions.GodotJvmBuildConfig import kotlin.math.abs import kotlin.math.acos diff --git a/kt/godot-library/src/main/kotlin/godot/core/math/Rect2.kt b/kt/godot-library/src/main/kotlin/godot/core/math/Rect2.kt index 7aac969f60..affc7c2919 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/math/Rect2.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/math/Rect2.kt @@ -5,7 +5,7 @@ package godot.core import godot.Side import godot.annotation.CoreTypeHelper import godot.annotation.CoreTypeLocalCopy -import godot.util.RealT +import godot.common.util.RealT import kotlin.math.max import kotlin.math.min diff --git a/kt/godot-library/src/main/kotlin/godot/core/math/Transform2D.kt b/kt/godot-library/src/main/kotlin/godot/core/math/Transform2D.kt index 48f0491436..0dddc0b05a 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/math/Transform2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/math/Transform2D.kt @@ -4,10 +4,10 @@ package godot.core import godot.annotation.CoreTypeHelper import godot.annotation.CoreTypeLocalCopy -import godot.util.RealT -import godot.util.isEqualApprox -import godot.util.lerpAngle -import godot.util.toRealT +import godot.common.util.RealT +import godot.common.util.isEqualApprox +import godot.common.util.lerpAngle +import godot.common.util.toRealT import kotlincompile.definitions.GodotJvmBuildConfig import kotlin.math.PI import kotlin.math.acos diff --git a/kt/godot-library/src/main/kotlin/godot/core/math/Transform3D.kt b/kt/godot-library/src/main/kotlin/godot/core/math/Transform3D.kt index 6330d7d786..26ed6d77ff 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/math/Transform3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/math/Transform3D.kt @@ -4,7 +4,7 @@ package godot.core import godot.annotation.CoreTypeHelper import godot.annotation.CoreTypeLocalCopy -import godot.util.RealT +import godot.common.util.RealT import kotlincompile.definitions.GodotJvmBuildConfig class Transform3D( diff --git a/kt/godot-library/src/main/kotlin/godot/core/math/Vector2.kt b/kt/godot-library/src/main/kotlin/godot/core/math/Vector2.kt index 030b31321e..1508123fff 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/math/Vector2.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/math/Vector2.kt @@ -2,17 +2,17 @@ package godot.core -import godot.util.CMP_EPSILON -import godot.util.RealT -import godot.util.bezierDerivative -import godot.util.bezierInterpolate -import godot.util.cubicInterpolateInTime -import godot.util.fposmod -import godot.util.isEqualApprox -import godot.util.isZeroApprox -import godot.util.lerp -import godot.util.snapped -import godot.util.toRealT +import godot.common.util.CMP_EPSILON +import godot.common.util.RealT +import godot.common.util.bezierDerivative +import godot.common.util.bezierInterpolate +import godot.common.util.cubicInterpolateInTime +import godot.common.util.fposmod +import godot.common.util.isEqualApprox +import godot.common.util.isZeroApprox +import godot.common.util.lerp +import godot.common.util.snapped +import godot.common.util.toRealT import kotlincompile.definitions.GodotJvmBuildConfig import kotlin.math.abs import kotlin.math.atan2 diff --git a/kt/godot-library/src/main/kotlin/godot/core/math/Vector2i.kt b/kt/godot-library/src/main/kotlin/godot/core/math/Vector2i.kt index ad21e89631..f1bc042e5f 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/math/Vector2i.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/math/Vector2i.kt @@ -2,7 +2,7 @@ package godot.core -import godot.util.snapped +import godot.common.util.snapped import kotlin.math.max import kotlin.math.min import kotlin.math.sqrt diff --git a/kt/godot-library/src/main/kotlin/godot/core/math/Vector3.kt b/kt/godot-library/src/main/kotlin/godot/core/math/Vector3.kt index 2943e40a73..1ea9e4a841 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/math/Vector3.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/math/Vector3.kt @@ -2,17 +2,17 @@ package godot.core -import godot.util.CMP_EPSILON -import godot.util.RealT -import godot.util.bezierDerivative -import godot.util.bezierInterpolate -import godot.util.cubicInterpolateInTime -import godot.util.fposmod -import godot.util.isEqualApprox -import godot.util.isZeroApprox -import godot.util.lerp -import godot.util.snapped -import godot.util.toRealT +import godot.common.util.CMP_EPSILON +import godot.common.util.RealT +import godot.common.util.bezierDerivative +import godot.common.util.bezierInterpolate +import godot.common.util.cubicInterpolateInTime +import godot.common.util.fposmod +import godot.common.util.isEqualApprox +import godot.common.util.isZeroApprox +import godot.common.util.lerp +import godot.common.util.snapped +import godot.common.util.toRealT import kotlincompile.definitions.GodotJvmBuildConfig import kotlin.math.abs import kotlin.math.atan2 diff --git a/kt/godot-library/src/main/kotlin/godot/core/math/Vector3i.kt b/kt/godot-library/src/main/kotlin/godot/core/math/Vector3i.kt index d3764134bf..a027e90b95 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/math/Vector3i.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/math/Vector3i.kt @@ -2,8 +2,8 @@ package godot.core -import godot.util.RealT -import godot.util.snapped +import godot.common.util.RealT +import godot.common.util.snapped import kotlin.math.max import kotlin.math.min import kotlin.math.sqrt diff --git a/kt/godot-library/src/main/kotlin/godot/core/math/Vector4.kt b/kt/godot-library/src/main/kotlin/godot/core/math/Vector4.kt index b75d6a5c01..935bbe1d75 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/math/Vector4.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/math/Vector4.kt @@ -2,12 +2,12 @@ package godot.core -import godot.util.RealT -import godot.util.cubicInterpolateInTime -import godot.util.fposmod -import godot.util.isEqualApprox -import godot.util.snapped -import godot.util.toRealT +import godot.common.util.RealT +import godot.common.util.cubicInterpolateInTime +import godot.common.util.fposmod +import godot.common.util.isEqualApprox +import godot.common.util.snapped +import godot.common.util.toRealT import kotlin.math.abs import kotlin.math.ceil import kotlin.math.floor diff --git a/kt/godot-library/src/main/kotlin/godot/core/math/Vector4i.kt b/kt/godot-library/src/main/kotlin/godot/core/math/Vector4i.kt index 4d9d321486..d383c9f4d1 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/math/Vector4i.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/math/Vector4i.kt @@ -2,7 +2,7 @@ package godot.core -import godot.util.snapped +import godot.common.util.snapped import kotlin.math.abs import kotlin.math.max import kotlin.math.min diff --git a/kt/godot-library/src/main/kotlin/godot/core/memory/GodotBinding.kt b/kt/godot-library/src/main/kotlin/godot/core/memory/GodotBinding.kt index c2fbaa91b0..14c1444323 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/memory/GodotBinding.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/memory/GodotBinding.kt @@ -1,7 +1,7 @@ package godot.core.memory import godot.core.KtObject -import godot.core.ObjectID +import godot.common.interop.ObjectID import java.lang.ref.ReferenceQueue import java.lang.ref.WeakReference diff --git a/kt/godot-library/src/main/kotlin/godot/core/memory/MemoryManager.kt b/kt/godot-library/src/main/kotlin/godot/core/memory/MemoryManager.kt index 2123d026a4..c9d9a7bd55 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/memory/MemoryManager.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/memory/MemoryManager.kt @@ -5,13 +5,13 @@ package godot.core.memory import godot.core.KtObject import godot.core.NativeCoreType import godot.core.NodePath -import godot.core.ObjectID +import godot.common.interop.ObjectID import godot.core.StringName import godot.core.TypeManager import godot.core.VariantParser import godot.common.extensions.convertToSnakeCase -import godot.util.LRUCache -import godot.util.VoidPtr +import godot.common.util.LRUCache +import godot.common.interop.VoidPtr import java.util.concurrent.ConcurrentHashMap import java.util.concurrent.locks.ReentrantReadWriteLock import kotlin.concurrent.read @@ -177,7 +177,7 @@ internal object MemoryManager { // We create a wrapper to replace the script instance, if it doesn't exist already. val wrapper = KtObject( - scriptInstance.rawPtr, + scriptInstance.ptr, id, TypeManager.engineTypesConstructors[constructorIndex], ) @@ -223,10 +223,10 @@ internal object MemoryManager { } } - fun isInstanceValid(ktObject: KtObject) = checkInstance(ktObject.rawPtr, ktObject.objectID.id) + fun isInstanceValid(ktObject: KtObject) = checkInstance(ktObject.ptr, ktObject.objectID.id) fun registerNativeCoreType(nativeCoreType: NativeCoreType, variantType: VariantParser) { - val rawPtr = nativeCoreType._handle + val rawPtr = nativeCoreType.ptr nativeCoreTypeMap[rawPtr] = NativeCoreBinding(nativeCoreType, variantType) } diff --git a/kt/godot-library/src/main/kotlin/godot/core/memory/NativeCoreBinding.kt b/kt/godot-library/src/main/kotlin/godot/core/memory/NativeCoreBinding.kt index 1d7d79a360..99b8ec59ee 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/memory/NativeCoreBinding.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/memory/NativeCoreBinding.kt @@ -9,7 +9,7 @@ internal class NativeCoreBinding( ref: NativeCoreType, val variantType: VariantParser ) : WeakReference(ref, queue) { - val ptr = ref._handle + val ptr = ref.ptr companion object { /** Queue to be notified when the GC runs on NativeCoreTypes.*/ diff --git a/kt/godot-library/src/main/kotlin/godot/core/memory/TransferContext.kt b/kt/godot-library/src/main/kotlin/godot/core/memory/TransferContext.kt index e77532d929..e951e8e258 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/memory/TransferContext.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/memory/TransferContext.kt @@ -2,11 +2,11 @@ package godot.core.memory import godot.core.KtObject import godot.core.LongStringQueue -import godot.core.ObjectID +import godot.common.interop.ObjectID import godot.core.VariantConverter import godot.common.constants.Constraints -import godot.util.VoidPtr -import godot.util.threadLocal +import godot.common.interop.VoidPtr +import godot.common.util.threadLocal import kotlincompile.definitions.GodotJvmBuildConfig import java.nio.ByteBuffer import java.nio.ByteOrder @@ -85,7 +85,7 @@ internal object TransferContext { fun initializeKtObject(obj: KtObject) { buffer.rewind() - obj.rawPtr = buffer.long + obj.ptr = buffer.long obj.objectID = ObjectID(buffer.long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AESContext.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AESContext.kt index 8bb8312c9b..5fa2b3a3cd 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AESContext.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AESContext.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedByteArray import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -115,7 +115,7 @@ public open class AESContext : RefCounted() { iv: PackedByteArray = PackedByteArray(), ): Error { TransferContext.writeArguments(LONG to mode.id, PACKED_BYTE_ARRAY to key, PACKED_BYTE_ARRAY to iv) - TransferContext.callMethod(rawPtr, MethodBindings.startPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.startPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -126,7 +126,7 @@ public open class AESContext : RefCounted() { */ public final fun update(src: PackedByteArray): PackedByteArray { TransferContext.writeArguments(PACKED_BYTE_ARRAY to src) - TransferContext.callMethod(rawPtr, MethodBindings.updatePtr, PACKED_BYTE_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.updatePtr, PACKED_BYTE_ARRAY) return (TransferContext.readReturnValue(PACKED_BYTE_ARRAY) as PackedByteArray) } @@ -138,7 +138,7 @@ public open class AESContext : RefCounted() { */ public final fun getIvState(): PackedByteArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getIvStatePtr, PACKED_BYTE_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getIvStatePtr, PACKED_BYTE_ARRAY) return (TransferContext.readReturnValue(PACKED_BYTE_ARRAY) as PackedByteArray) } @@ -147,7 +147,7 @@ public open class AESContext : RefCounted() { */ public final fun finish(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.finishPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.finishPtr, NIL) } public enum class Mode( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AStar2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AStar2D.kt index 3971f96c4c..2470bf86cb 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AStar2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AStar2D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedInt64Array import godot.core.PackedVector2Array import godot.core.TypeManager @@ -19,7 +20,6 @@ import godot.core.VariantParser.PACKED_VECTOR2_ARRAY import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -63,7 +63,7 @@ public open class AStar2D : RefCounted() { */ public final fun getAvailablePointId(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAvailablePointIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAvailablePointIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -95,7 +95,7 @@ public open class AStar2D : RefCounted() { weightScale: Float = 1.0f, ): Unit { TransferContext.writeArguments(LONG to id, VECTOR2 to position, DOUBLE to weightScale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.addPointPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addPointPtr, NIL) } /** @@ -103,7 +103,7 @@ public open class AStar2D : RefCounted() { */ public final fun getPointPosition(id: Long): Vector2 { TransferContext.writeArguments(LONG to id) - TransferContext.callMethod(rawPtr, MethodBindings.getPointPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getPointPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -112,7 +112,7 @@ public open class AStar2D : RefCounted() { */ public final fun setPointPosition(id: Long, position: Vector2): Unit { TransferContext.writeArguments(LONG to id, VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.setPointPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPointPositionPtr, NIL) } /** @@ -120,7 +120,7 @@ public open class AStar2D : RefCounted() { */ public final fun getPointWeightScale(id: Long): Float { TransferContext.writeArguments(LONG to id) - TransferContext.callMethod(rawPtr, MethodBindings.getPointWeightScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPointWeightScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -131,7 +131,7 @@ public open class AStar2D : RefCounted() { */ public final fun setPointWeightScale(id: Long, weightScale: Float): Unit { TransferContext.writeArguments(LONG to id, DOUBLE to weightScale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPointWeightScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPointWeightScalePtr, NIL) } /** @@ -139,7 +139,7 @@ public open class AStar2D : RefCounted() { */ public final fun removePoint(id: Long): Unit { TransferContext.writeArguments(LONG to id) - TransferContext.callMethod(rawPtr, MethodBindings.removePointPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removePointPtr, NIL) } /** @@ -147,7 +147,7 @@ public open class AStar2D : RefCounted() { */ public final fun hasPoint(id: Long): Boolean { TransferContext.writeArguments(LONG to id) - TransferContext.callMethod(rawPtr, MethodBindings.hasPointPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasPointPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -183,7 +183,7 @@ public open class AStar2D : RefCounted() { */ public final fun getPointConnections(id: Long): PackedInt64Array { TransferContext.writeArguments(LONG to id) - TransferContext.callMethod(rawPtr, MethodBindings.getPointConnectionsPtr, PACKED_INT_64_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getPointConnectionsPtr, PACKED_INT_64_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_64_ARRAY) as PackedInt64Array) } @@ -192,7 +192,7 @@ public open class AStar2D : RefCounted() { */ public final fun getPointIds(): PackedInt64Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPointIdsPtr, PACKED_INT_64_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getPointIdsPtr, PACKED_INT_64_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_64_ARRAY) as PackedInt64Array) } @@ -203,7 +203,7 @@ public open class AStar2D : RefCounted() { @JvmOverloads public final fun setPointDisabled(id: Long, disabled: Boolean = true): Unit { TransferContext.writeArguments(LONG to id, BOOL to disabled) - TransferContext.callMethod(rawPtr, MethodBindings.setPointDisabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPointDisabledPtr, NIL) } /** @@ -211,7 +211,7 @@ public open class AStar2D : RefCounted() { */ public final fun isPointDisabled(id: Long): Boolean { TransferContext.writeArguments(LONG to id) - TransferContext.callMethod(rawPtr, MethodBindings.isPointDisabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPointDisabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -241,7 +241,7 @@ public open class AStar2D : RefCounted() { bidirectional: Boolean = true, ): Unit { TransferContext.writeArguments(LONG to id, LONG to toId, BOOL to bidirectional) - TransferContext.callMethod(rawPtr, MethodBindings.connectPointsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.connectPointsPtr, NIL) } /** @@ -255,7 +255,7 @@ public open class AStar2D : RefCounted() { bidirectional: Boolean = true, ): Unit { TransferContext.writeArguments(LONG to id, LONG to toId, BOOL to bidirectional) - TransferContext.callMethod(rawPtr, MethodBindings.disconnectPointsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.disconnectPointsPtr, NIL) } /** @@ -269,7 +269,7 @@ public open class AStar2D : RefCounted() { bidirectional: Boolean = true, ): Boolean { TransferContext.writeArguments(LONG to id, LONG to toId, BOOL to bidirectional) - TransferContext.callMethod(rawPtr, MethodBindings.arePointsConnectedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.arePointsConnectedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -278,7 +278,7 @@ public open class AStar2D : RefCounted() { */ public final fun getPointCount(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPointCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPointCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -288,7 +288,7 @@ public open class AStar2D : RefCounted() { */ public final fun getPointCapacity(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPointCapacityPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPointCapacityPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -299,7 +299,7 @@ public open class AStar2D : RefCounted() { */ public final fun reserveSpace(numNodes: Long): Unit { TransferContext.writeArguments(LONG to numNodes) - TransferContext.callMethod(rawPtr, MethodBindings.reserveSpacePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.reserveSpacePtr, NIL) } /** @@ -307,7 +307,7 @@ public open class AStar2D : RefCounted() { */ public final fun clear(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPtr, NIL) } /** @@ -319,7 +319,7 @@ public open class AStar2D : RefCounted() { @JvmOverloads public final fun getClosestPoint(toPosition: Vector2, includeDisabled: Boolean = false): Long { TransferContext.writeArguments(VECTOR2 to toPosition, BOOL to includeDisabled) - TransferContext.callMethod(rawPtr, MethodBindings.getClosestPointPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getClosestPointPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -349,7 +349,7 @@ public open class AStar2D : RefCounted() { */ public final fun getClosestPositionInSegment(toPosition: Vector2): Vector2 { TransferContext.writeArguments(VECTOR2 to toPosition) - TransferContext.callMethod(rawPtr, MethodBindings.getClosestPositionInSegmentPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getClosestPositionInSegmentPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -368,7 +368,7 @@ public open class AStar2D : RefCounted() { allowPartialPath: Boolean = false, ): PackedVector2Array { TransferContext.writeArguments(LONG to fromId, LONG to toId, BOOL to allowPartialPath) - TransferContext.callMethod(rawPtr, MethodBindings.getPointPathPtr, PACKED_VECTOR2_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getPointPathPtr, PACKED_VECTOR2_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR2_ARRAY) as PackedVector2Array) } @@ -418,7 +418,7 @@ public open class AStar2D : RefCounted() { allowPartialPath: Boolean = false, ): PackedInt64Array { TransferContext.writeArguments(LONG to fromId, LONG to toId, BOOL to allowPartialPath) - TransferContext.callMethod(rawPtr, MethodBindings.getIdPathPtr, PACKED_INT_64_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getIdPathPtr, PACKED_INT_64_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_64_ARRAY) as PackedInt64Array) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AStar3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AStar3D.kt index 05362aa2b5..ddb8ecd4a0 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AStar3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AStar3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedInt64Array import godot.core.PackedVector3Array import godot.core.TypeManager @@ -19,7 +20,6 @@ import godot.core.VariantParser.PACKED_VECTOR3_ARRAY import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -108,7 +108,7 @@ public open class AStar3D : RefCounted() { */ public final fun getAvailablePointId(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAvailablePointIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAvailablePointIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -141,7 +141,7 @@ public open class AStar3D : RefCounted() { weightScale: Float = 1.0f, ): Unit { TransferContext.writeArguments(LONG to id, VECTOR3 to position, DOUBLE to weightScale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.addPointPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addPointPtr, NIL) } /** @@ -149,7 +149,7 @@ public open class AStar3D : RefCounted() { */ public final fun getPointPosition(id: Long): Vector3 { TransferContext.writeArguments(LONG to id) - TransferContext.callMethod(rawPtr, MethodBindings.getPointPositionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getPointPositionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -158,7 +158,7 @@ public open class AStar3D : RefCounted() { */ public final fun setPointPosition(id: Long, position: Vector3): Unit { TransferContext.writeArguments(LONG to id, VECTOR3 to position) - TransferContext.callMethod(rawPtr, MethodBindings.setPointPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPointPositionPtr, NIL) } /** @@ -166,7 +166,7 @@ public open class AStar3D : RefCounted() { */ public final fun getPointWeightScale(id: Long): Float { TransferContext.writeArguments(LONG to id) - TransferContext.callMethod(rawPtr, MethodBindings.getPointWeightScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPointWeightScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -177,7 +177,7 @@ public open class AStar3D : RefCounted() { */ public final fun setPointWeightScale(id: Long, weightScale: Float): Unit { TransferContext.writeArguments(LONG to id, DOUBLE to weightScale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPointWeightScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPointWeightScalePtr, NIL) } /** @@ -185,7 +185,7 @@ public open class AStar3D : RefCounted() { */ public final fun removePoint(id: Long): Unit { TransferContext.writeArguments(LONG to id) - TransferContext.callMethod(rawPtr, MethodBindings.removePointPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removePointPtr, NIL) } /** @@ -193,7 +193,7 @@ public open class AStar3D : RefCounted() { */ public final fun hasPoint(id: Long): Boolean { TransferContext.writeArguments(LONG to id) - TransferContext.callMethod(rawPtr, MethodBindings.hasPointPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasPointPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -228,7 +228,7 @@ public open class AStar3D : RefCounted() { */ public final fun getPointConnections(id: Long): PackedInt64Array { TransferContext.writeArguments(LONG to id) - TransferContext.callMethod(rawPtr, MethodBindings.getPointConnectionsPtr, PACKED_INT_64_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getPointConnectionsPtr, PACKED_INT_64_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_64_ARRAY) as PackedInt64Array) } @@ -237,7 +237,7 @@ public open class AStar3D : RefCounted() { */ public final fun getPointIds(): PackedInt64Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPointIdsPtr, PACKED_INT_64_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getPointIdsPtr, PACKED_INT_64_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_64_ARRAY) as PackedInt64Array) } @@ -248,7 +248,7 @@ public open class AStar3D : RefCounted() { @JvmOverloads public final fun setPointDisabled(id: Long, disabled: Boolean = true): Unit { TransferContext.writeArguments(LONG to id, BOOL to disabled) - TransferContext.callMethod(rawPtr, MethodBindings.setPointDisabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPointDisabledPtr, NIL) } /** @@ -256,7 +256,7 @@ public open class AStar3D : RefCounted() { */ public final fun isPointDisabled(id: Long): Boolean { TransferContext.writeArguments(LONG to id) - TransferContext.callMethod(rawPtr, MethodBindings.isPointDisabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPointDisabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -286,7 +286,7 @@ public open class AStar3D : RefCounted() { bidirectional: Boolean = true, ): Unit { TransferContext.writeArguments(LONG to id, LONG to toId, BOOL to bidirectional) - TransferContext.callMethod(rawPtr, MethodBindings.connectPointsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.connectPointsPtr, NIL) } /** @@ -300,7 +300,7 @@ public open class AStar3D : RefCounted() { bidirectional: Boolean = true, ): Unit { TransferContext.writeArguments(LONG to id, LONG to toId, BOOL to bidirectional) - TransferContext.callMethod(rawPtr, MethodBindings.disconnectPointsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.disconnectPointsPtr, NIL) } /** @@ -314,7 +314,7 @@ public open class AStar3D : RefCounted() { bidirectional: Boolean = true, ): Boolean { TransferContext.writeArguments(LONG to id, LONG to toId, BOOL to bidirectional) - TransferContext.callMethod(rawPtr, MethodBindings.arePointsConnectedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.arePointsConnectedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -323,7 +323,7 @@ public open class AStar3D : RefCounted() { */ public final fun getPointCount(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPointCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPointCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -333,7 +333,7 @@ public open class AStar3D : RefCounted() { */ public final fun getPointCapacity(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPointCapacityPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPointCapacityPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -344,7 +344,7 @@ public open class AStar3D : RefCounted() { */ public final fun reserveSpace(numNodes: Long): Unit { TransferContext.writeArguments(LONG to numNodes) - TransferContext.callMethod(rawPtr, MethodBindings.reserveSpacePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.reserveSpacePtr, NIL) } /** @@ -352,7 +352,7 @@ public open class AStar3D : RefCounted() { */ public final fun clear(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPtr, NIL) } /** @@ -364,7 +364,7 @@ public open class AStar3D : RefCounted() { @JvmOverloads public final fun getClosestPoint(toPosition: Vector3, includeDisabled: Boolean = false): Long { TransferContext.writeArguments(VECTOR3 to toPosition, BOOL to includeDisabled) - TransferContext.callMethod(rawPtr, MethodBindings.getClosestPointPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getClosestPointPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -394,7 +394,7 @@ public open class AStar3D : RefCounted() { */ public final fun getClosestPositionInSegment(toPosition: Vector3): Vector3 { TransferContext.writeArguments(VECTOR3 to toPosition) - TransferContext.callMethod(rawPtr, MethodBindings.getClosestPositionInSegmentPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getClosestPositionInSegmentPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -413,7 +413,7 @@ public open class AStar3D : RefCounted() { allowPartialPath: Boolean = false, ): PackedVector3Array { TransferContext.writeArguments(LONG to fromId, LONG to toId, BOOL to allowPartialPath) - TransferContext.callMethod(rawPtr, MethodBindings.getPointPathPtr, PACKED_VECTOR3_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getPointPathPtr, PACKED_VECTOR3_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR3_ARRAY) as PackedVector3Array) } @@ -462,7 +462,7 @@ public open class AStar3D : RefCounted() { allowPartialPath: Boolean = false, ): PackedInt64Array { TransferContext.writeArguments(LONG to fromId, LONG to toId, BOOL to allowPartialPath) - TransferContext.callMethod(rawPtr, MethodBindings.getIdPathPtr, PACKED_INT_64_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getIdPathPtr, PACKED_INT_64_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_64_ARRAY) as PackedInt64Array) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AStarGrid2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AStarGrid2D.kt index ccb9d085d1..70ba97bcb2 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AStarGrid2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AStarGrid2D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedVector2Array import godot.core.Rect2i import godot.core.TypeManager @@ -25,7 +26,6 @@ import godot.core.VariantParser.VECTOR2I import godot.core.Vector2 import godot.core.Vector2i import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -308,56 +308,56 @@ public open class AStarGrid2D : RefCounted() { public final fun setRegion(region: Rect2i): Unit { TransferContext.writeArguments(RECT2I to region) - TransferContext.callMethod(rawPtr, MethodBindings.setRegionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRegionPtr, NIL) } public final fun getRegion(): Rect2i { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRegionPtr, RECT2I) + TransferContext.callMethod(ptr, MethodBindings.getRegionPtr, RECT2I) return (TransferContext.readReturnValue(RECT2I) as Rect2i) } public final fun setSize(size: Vector2i): Unit { TransferContext.writeArguments(VECTOR2I to size) - TransferContext.callMethod(rawPtr, MethodBindings.setSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSizePtr, NIL) } public final fun getSize(): Vector2i { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSizePtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getSizePtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } public final fun setOffset(offset: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.setOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOffsetPtr, NIL) } public final fun getOffset(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOffsetPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getOffsetPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setCellSize(cellSize: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to cellSize) - TransferContext.callMethod(rawPtr, MethodBindings.setCellSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCellSizePtr, NIL) } public final fun getCellSize(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCellSizePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getCellSizePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setCellShape(cellShape: CellShape): Unit { TransferContext.writeArguments(LONG to cellShape.id) - TransferContext.callMethod(rawPtr, MethodBindings.setCellShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCellShapePtr, NIL) } public final fun getCellShape(): CellShape { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCellShapePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCellShapePtr, LONG) return AStarGrid2D.CellShape.from(TransferContext.readReturnValue(LONG) as Long) } @@ -367,7 +367,7 @@ public open class AStarGrid2D : RefCounted() { */ public final fun isInBounds(x: Int, y: Int): Boolean { TransferContext.writeArguments(LONG to x.toLong(), LONG to y.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isInBoundsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isInBoundsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -377,7 +377,7 @@ public open class AStarGrid2D : RefCounted() { */ public final fun isInBoundsv(id: Vector2i): Boolean { TransferContext.writeArguments(VECTOR2I to id) - TransferContext.callMethod(rawPtr, MethodBindings.isInBoundsvPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isInBoundsvPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -386,7 +386,7 @@ public open class AStarGrid2D : RefCounted() { */ public final fun isDirty(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDirtyPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDirtyPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -398,50 +398,50 @@ public open class AStarGrid2D : RefCounted() { */ public final fun update(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.updatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.updatePtr, NIL) } public final fun setJumpingEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setJumpingEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setJumpingEnabledPtr, NIL) } public final fun isJumpingEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isJumpingEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isJumpingEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDiagonalMode(mode: DiagonalMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setDiagonalModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDiagonalModePtr, NIL) } public final fun getDiagonalMode(): DiagonalMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDiagonalModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDiagonalModePtr, LONG) return AStarGrid2D.DiagonalMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setDefaultComputeHeuristic(heuristic: Heuristic): Unit { TransferContext.writeArguments(LONG to heuristic.id) - TransferContext.callMethod(rawPtr, MethodBindings.setDefaultComputeHeuristicPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDefaultComputeHeuristicPtr, NIL) } public final fun getDefaultComputeHeuristic(): Heuristic { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDefaultComputeHeuristicPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDefaultComputeHeuristicPtr, LONG) return AStarGrid2D.Heuristic.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setDefaultEstimateHeuristic(heuristic: Heuristic): Unit { TransferContext.writeArguments(LONG to heuristic.id) - TransferContext.callMethod(rawPtr, MethodBindings.setDefaultEstimateHeuristicPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDefaultEstimateHeuristicPtr, NIL) } public final fun getDefaultEstimateHeuristic(): Heuristic { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDefaultEstimateHeuristicPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDefaultEstimateHeuristicPtr, LONG) return AStarGrid2D.Heuristic.from(TransferContext.readReturnValue(LONG) as Long) } @@ -453,7 +453,7 @@ public open class AStarGrid2D : RefCounted() { @JvmOverloads public final fun setPointSolid(id: Vector2i, solid: Boolean = true): Unit { TransferContext.writeArguments(VECTOR2I to id, BOOL to solid) - TransferContext.callMethod(rawPtr, MethodBindings.setPointSolidPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPointSolidPtr, NIL) } /** @@ -461,7 +461,7 @@ public open class AStarGrid2D : RefCounted() { */ public final fun isPointSolid(id: Vector2i): Boolean { TransferContext.writeArguments(VECTOR2I to id) - TransferContext.callMethod(rawPtr, MethodBindings.isPointSolidPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPointSolidPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -473,7 +473,7 @@ public open class AStarGrid2D : RefCounted() { */ public final fun setPointWeightScale(id: Vector2i, weightScale: Float): Unit { TransferContext.writeArguments(VECTOR2I to id, DOUBLE to weightScale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPointWeightScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPointWeightScalePtr, NIL) } /** @@ -481,7 +481,7 @@ public open class AStarGrid2D : RefCounted() { */ public final fun getPointWeightScale(id: Vector2i): Float { TransferContext.writeArguments(VECTOR2I to id) - TransferContext.callMethod(rawPtr, MethodBindings.getPointWeightScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPointWeightScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -492,7 +492,7 @@ public open class AStarGrid2D : RefCounted() { @JvmOverloads public final fun fillSolidRegion(region: Rect2i, solid: Boolean = true): Unit { TransferContext.writeArguments(RECT2I to region, BOOL to solid) - TransferContext.callMethod(rawPtr, MethodBindings.fillSolidRegionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fillSolidRegionPtr, NIL) } /** @@ -501,7 +501,7 @@ public open class AStarGrid2D : RefCounted() { */ public final fun fillWeightScaleRegion(region: Rect2i, weightScale: Float): Unit { TransferContext.writeArguments(RECT2I to region, DOUBLE to weightScale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.fillWeightScaleRegionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fillWeightScaleRegionPtr, NIL) } /** @@ -509,7 +509,7 @@ public open class AStarGrid2D : RefCounted() { */ public final fun clear(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPtr, NIL) } /** @@ -517,7 +517,7 @@ public open class AStarGrid2D : RefCounted() { */ public final fun getPointPosition(id: Vector2i): Vector2 { TransferContext.writeArguments(VECTOR2I to id) - TransferContext.callMethod(rawPtr, MethodBindings.getPointPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getPointPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -536,7 +536,7 @@ public open class AStarGrid2D : RefCounted() { allowPartialPath: Boolean = false, ): PackedVector2Array { TransferContext.writeArguments(VECTOR2I to fromId, VECTOR2I to toId, BOOL to allowPartialPath) - TransferContext.callMethod(rawPtr, MethodBindings.getPointPathPtr, PACKED_VECTOR2_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getPointPathPtr, PACKED_VECTOR2_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR2_ARRAY) as PackedVector2Array) } @@ -553,7 +553,7 @@ public open class AStarGrid2D : RefCounted() { allowPartialPath: Boolean = false, ): VariantArray { TransferContext.writeArguments(VECTOR2I to fromId, VECTOR2I to toId, BOOL to allowPartialPath) - TransferContext.callMethod(rawPtr, MethodBindings.getIdPathPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getIdPathPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AcceptDialog.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AcceptDialog.kt index f8dd932622..7472c6f5c0 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AcceptDialog.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AcceptDialog.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.Signal1 import godot.core.StringName @@ -16,7 +17,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.String @@ -120,7 +120,7 @@ public open class AcceptDialog : Window() { */ public final fun getOkButton(): Button? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOkButtonPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getOkButtonPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Button?) } @@ -131,29 +131,29 @@ public open class AcceptDialog : Window() { */ public final fun getLabel(): Label? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLabelPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getLabelPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Label?) } public final fun setHideOnOk(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setHideOnOkPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHideOnOkPtr, NIL) } public final fun getHideOnOk(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHideOnOkPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getHideOnOkPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCloseOnEscape(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setCloseOnEscapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCloseOnEscapePtr, NIL) } public final fun getCloseOnEscape(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCloseOnEscapePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getCloseOnEscapePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -170,7 +170,7 @@ public open class AcceptDialog : Window() { action: String = "", ): Button? { TransferContext.writeArguments(STRING to text, BOOL to right, STRING to action) - TransferContext.callMethod(rawPtr, MethodBindings.addButtonPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.addButtonPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Button?) } @@ -181,7 +181,7 @@ public open class AcceptDialog : Window() { */ public final fun addCancelButton(name: String): Button? { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.addCancelButtonPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.addCancelButtonPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Button?) } @@ -192,7 +192,7 @@ public open class AcceptDialog : Window() { */ public final fun removeButton(button: Button?): Unit { TransferContext.writeArguments(OBJECT to button) - TransferContext.callMethod(rawPtr, MethodBindings.removeButtonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeButtonPtr, NIL) } /** @@ -201,39 +201,39 @@ public open class AcceptDialog : Window() { */ public final fun registerTextEnter(lineEdit: LineEdit?): Unit { TransferContext.writeArguments(OBJECT to lineEdit) - TransferContext.callMethod(rawPtr, MethodBindings.registerTextEnterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.registerTextEnterPtr, NIL) } public final fun setText(text: String): Unit { TransferContext.writeArguments(STRING to text) - TransferContext.callMethod(rawPtr, MethodBindings.setTextPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextPtr, NIL) } public final fun getText(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getTextPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setAutowrap(autowrap: Boolean): Unit { TransferContext.writeArguments(BOOL to autowrap) - TransferContext.callMethod(rawPtr, MethodBindings.setAutowrapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutowrapPtr, NIL) } public final fun hasAutowrap(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasAutowrapPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasAutowrapPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setOkButtonText(text: String): Unit { TransferContext.writeArguments(STRING to text) - TransferContext.callMethod(rawPtr, MethodBindings.setOkButtonTextPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOkButtonTextPtr, NIL) } public final fun getOkButtonText(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOkButtonTextPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getOkButtonTextPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimatableBody2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimatableBody2D.kt index 81616813ed..150d0a1887 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimatableBody2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimatableBody2D.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -47,12 +47,12 @@ public open class AnimatableBody2D : StaticBody2D() { public final fun setSyncToPhysics(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setSyncToPhysicsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSyncToPhysicsPtr, NIL) } public final fun isSyncToPhysicsEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSyncToPhysicsEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSyncToPhysicsEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimatableBody3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimatableBody3D.kt index a7a90b6331..6cbb961b01 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimatableBody3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimatableBody3D.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -47,12 +47,12 @@ public open class AnimatableBody3D : StaticBody3D() { public final fun setSyncToPhysics(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setSyncToPhysicsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSyncToPhysicsPtr, NIL) } public final fun isSyncToPhysicsEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSyncToPhysicsEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSyncToPhysicsEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimatedSprite2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimatedSprite2D.kt index 83fc3bd4bf..c8c7d1fede 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimatedSprite2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimatedSprite2D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.StringName import godot.core.TypeManager @@ -22,7 +23,6 @@ import godot.core.VariantParser.STRING_NAME import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -221,34 +221,34 @@ public open class AnimatedSprite2D : Node2D() { public final fun setSpriteFrames(spriteFrames: SpriteFrames?): Unit { TransferContext.writeArguments(OBJECT to spriteFrames) - TransferContext.callMethod(rawPtr, MethodBindings.setSpriteFramesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSpriteFramesPtr, NIL) } public final fun getSpriteFrames(): SpriteFrames? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSpriteFramesPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getSpriteFramesPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as SpriteFrames?) } public final fun setAnimation(name: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.setAnimationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAnimationPtr, NIL) } public final fun getAnimation(): StringName { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAnimationPtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getAnimationPtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } public final fun setAutoplay(name: String): Unit { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.setAutoplayPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutoplayPtr, NIL) } public final fun getAutoplay(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAutoplayPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getAutoplayPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -258,7 +258,7 @@ public open class AnimatedSprite2D : Node2D() { */ public final fun isPlaying(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isPlayingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPlayingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -275,7 +275,7 @@ public open class AnimatedSprite2D : Node2D() { fromEnd: Boolean = false, ): Unit { TransferContext.writeArguments(STRING_NAME to name, DOUBLE to customSpeed.toDouble(), BOOL to fromEnd) - TransferContext.callMethod(rawPtr, MethodBindings.playPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.playPtr, NIL) } /** @@ -286,7 +286,7 @@ public open class AnimatedSprite2D : Node2D() { @JvmOverloads public final fun playBackwards(name: StringName = StringName("")): Unit { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.playBackwardsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.playBackwardsPtr, NIL) } /** @@ -297,7 +297,7 @@ public open class AnimatedSprite2D : Node2D() { */ public final fun pause(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.pausePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pausePtr, NIL) } /** @@ -306,72 +306,72 @@ public open class AnimatedSprite2D : Node2D() { */ public final fun stop(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.stopPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.stopPtr, NIL) } public final fun setCentered(centered: Boolean): Unit { TransferContext.writeArguments(BOOL to centered) - TransferContext.callMethod(rawPtr, MethodBindings.setCenteredPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCenteredPtr, NIL) } public final fun isCentered(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCenteredPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCenteredPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setOffset(offset: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.setOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOffsetPtr, NIL) } public final fun getOffset(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOffsetPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getOffsetPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setFlipH(flipH: Boolean): Unit { TransferContext.writeArguments(BOOL to flipH) - TransferContext.callMethod(rawPtr, MethodBindings.setFlipHPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFlipHPtr, NIL) } public final fun isFlippedH(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isFlippedHPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isFlippedHPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setFlipV(flipV: Boolean): Unit { TransferContext.writeArguments(BOOL to flipV) - TransferContext.callMethod(rawPtr, MethodBindings.setFlipVPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFlipVPtr, NIL) } public final fun isFlippedV(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isFlippedVPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isFlippedVPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setFrame(frame: Int): Unit { TransferContext.writeArguments(LONG to frame.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setFramePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFramePtr, NIL) } public final fun getFrame(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFramePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFramePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setFrameProgress(progress: Float): Unit { TransferContext.writeArguments(DOUBLE to progress.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFrameProgressPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFrameProgressPtr, NIL) } public final fun getFrameProgress(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFrameProgressPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFrameProgressPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -392,17 +392,17 @@ public open class AnimatedSprite2D : Node2D() { */ public final fun setFrameAndProgress(frame: Int, progress: Float): Unit { TransferContext.writeArguments(LONG to frame.toLong(), DOUBLE to progress.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFrameAndProgressPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFrameAndProgressPtr, NIL) } public final fun setSpeedScale(speedScale: Float): Unit { TransferContext.writeArguments(DOUBLE to speedScale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSpeedScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSpeedScalePtr, NIL) } public final fun getSpeedScale(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSpeedScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSpeedScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -414,7 +414,7 @@ public open class AnimatedSprite2D : Node2D() { */ public final fun getPlayingSpeed(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPlayingSpeedPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPlayingSpeedPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimatedSprite3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimatedSprite3D.kt index 593478d252..5456dc1359 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimatedSprite3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimatedSprite3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.StringName import godot.core.TypeManager @@ -18,7 +19,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -145,34 +145,34 @@ public open class AnimatedSprite3D : SpriteBase3D() { public final fun setSpriteFrames(spriteFrames: SpriteFrames?): Unit { TransferContext.writeArguments(OBJECT to spriteFrames) - TransferContext.callMethod(rawPtr, MethodBindings.setSpriteFramesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSpriteFramesPtr, NIL) } public final fun getSpriteFrames(): SpriteFrames? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSpriteFramesPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getSpriteFramesPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as SpriteFrames?) } public final fun setAnimation(name: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.setAnimationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAnimationPtr, NIL) } public final fun getAnimation(): StringName { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAnimationPtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getAnimationPtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } public final fun setAutoplay(name: String): Unit { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.setAutoplayPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutoplayPtr, NIL) } public final fun getAutoplay(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAutoplayPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getAutoplayPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -182,7 +182,7 @@ public open class AnimatedSprite3D : SpriteBase3D() { */ public final fun isPlaying(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isPlayingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPlayingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -199,7 +199,7 @@ public open class AnimatedSprite3D : SpriteBase3D() { fromEnd: Boolean = false, ): Unit { TransferContext.writeArguments(STRING_NAME to name, DOUBLE to customSpeed.toDouble(), BOOL to fromEnd) - TransferContext.callMethod(rawPtr, MethodBindings.playPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.playPtr, NIL) } /** @@ -210,7 +210,7 @@ public open class AnimatedSprite3D : SpriteBase3D() { @JvmOverloads public final fun playBackwards(name: StringName = StringName("")): Unit { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.playBackwardsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.playBackwardsPtr, NIL) } /** @@ -221,7 +221,7 @@ public open class AnimatedSprite3D : SpriteBase3D() { */ public final fun pause(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.pausePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pausePtr, NIL) } /** @@ -230,28 +230,28 @@ public open class AnimatedSprite3D : SpriteBase3D() { */ public final fun stop(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.stopPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.stopPtr, NIL) } public final fun setFrame(frame: Int): Unit { TransferContext.writeArguments(LONG to frame.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setFramePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFramePtr, NIL) } public final fun getFrame(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFramePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFramePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setFrameProgress(progress: Float): Unit { TransferContext.writeArguments(DOUBLE to progress.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFrameProgressPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFrameProgressPtr, NIL) } public final fun getFrameProgress(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFrameProgressPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFrameProgressPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -272,17 +272,17 @@ public open class AnimatedSprite3D : SpriteBase3D() { */ public final fun setFrameAndProgress(frame: Int, progress: Float): Unit { TransferContext.writeArguments(LONG to frame.toLong(), DOUBLE to progress.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFrameAndProgressPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFrameAndProgressPtr, NIL) } public final fun setSpeedScale(speedScale: Float): Unit { TransferContext.writeArguments(DOUBLE to speedScale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSpeedScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSpeedScalePtr, NIL) } public final fun getSpeedScale(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSpeedScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSpeedScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -294,7 +294,7 @@ public open class AnimatedSprite3D : SpriteBase3D() { */ public final fun getPlayingSpeed(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPlayingSpeedPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPlayingSpeedPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimatedTexture.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimatedTexture.kt index 8bf0bae780..52e6017533 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimatedTexture.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimatedTexture.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE @@ -14,7 +15,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -107,56 +107,56 @@ public open class AnimatedTexture : Texture2D() { public final fun setFrames(frames: Int): Unit { TransferContext.writeArguments(LONG to frames.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setFramesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFramesPtr, NIL) } public final fun getFrames(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFramesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFramesPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setCurrentFrame(frame: Int): Unit { TransferContext.writeArguments(LONG to frame.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setCurrentFramePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCurrentFramePtr, NIL) } public final fun getCurrentFrame(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCurrentFramePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCurrentFramePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setPause(pause: Boolean): Unit { TransferContext.writeArguments(BOOL to pause) - TransferContext.callMethod(rawPtr, MethodBindings.setPausePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPausePtr, NIL) } public final fun getPause(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPausePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getPausePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setOneShot(oneShot: Boolean): Unit { TransferContext.writeArguments(BOOL to oneShot) - TransferContext.callMethod(rawPtr, MethodBindings.setOneShotPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOneShotPtr, NIL) } public final fun getOneShot(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOneShotPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getOneShotPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSpeedScale(scale: Float): Unit { TransferContext.writeArguments(DOUBLE to scale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSpeedScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSpeedScalePtr, NIL) } public final fun getSpeedScale(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSpeedScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSpeedScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -168,7 +168,7 @@ public open class AnimatedTexture : Texture2D() { */ public final fun setFrameTexture(frame: Int, texture: Texture2D?): Unit { TransferContext.writeArguments(LONG to frame.toLong(), OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setFrameTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFrameTexturePtr, NIL) } /** @@ -176,7 +176,7 @@ public open class AnimatedTexture : Texture2D() { */ public final fun getFrameTexture(frame: Int): Texture2D? { TransferContext.writeArguments(LONG to frame.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getFrameTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getFrameTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } @@ -186,7 +186,7 @@ public open class AnimatedTexture : Texture2D() { */ public final fun setFrameDuration(frame: Int, duration: Float): Unit { TransferContext.writeArguments(LONG to frame.toLong(), DOUBLE to duration.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFrameDurationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFrameDurationPtr, NIL) } /** @@ -194,7 +194,7 @@ public open class AnimatedTexture : Texture2D() { */ public final fun getFrameDuration(frame: Int): Float { TransferContext.writeArguments(LONG to frame.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getFrameDurationPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFrameDurationPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Animation.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Animation.kt index 8730a83bce..0ccf12d35d 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Animation.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Animation.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.Quaternion import godot.core.StringName @@ -27,7 +28,6 @@ import godot.core.VariantParser.VECTOR3 import godot.core.Vector2 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -131,7 +131,7 @@ public open class Animation : Resource() { @JvmOverloads public final fun addTrack(type: TrackType, atPosition: Int = -1): Int { TransferContext.writeArguments(LONG to type.id, LONG to atPosition.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addTrackPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.addTrackPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -140,7 +140,7 @@ public open class Animation : Resource() { */ public final fun removeTrack(trackIdx: Int): Unit { TransferContext.writeArguments(LONG to trackIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeTrackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeTrackPtr, NIL) } /** @@ -148,7 +148,7 @@ public open class Animation : Resource() { */ public final fun getTrackCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTrackCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTrackCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -157,7 +157,7 @@ public open class Animation : Resource() { */ public final fun trackGetType(trackIdx: Int): TrackType { TransferContext.writeArguments(LONG to trackIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.trackGetTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.trackGetTypePtr, LONG) return Animation.TrackType.from(TransferContext.readReturnValue(LONG) as Long) } @@ -166,7 +166,7 @@ public open class Animation : Resource() { */ public final fun trackGetPath(trackIdx: Int): NodePath { TransferContext.writeArguments(LONG to trackIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.trackGetPathPtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.trackGetPathPtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } @@ -178,7 +178,7 @@ public open class Animation : Resource() { */ public final fun trackSetPath(trackIdx: Int, path: NodePath): Unit { TransferContext.writeArguments(LONG to trackIdx.toLong(), NODE_PATH to path) - TransferContext.callMethod(rawPtr, MethodBindings.trackSetPathPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.trackSetPathPtr, NIL) } /** @@ -186,7 +186,7 @@ public open class Animation : Resource() { */ public final fun findTrack(path: NodePath, type: TrackType): Int { TransferContext.writeArguments(NODE_PATH to path, LONG to type.id) - TransferContext.callMethod(rawPtr, MethodBindings.findTrackPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.findTrackPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -195,7 +195,7 @@ public open class Animation : Resource() { */ public final fun trackMoveUp(trackIdx: Int): Unit { TransferContext.writeArguments(LONG to trackIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.trackMoveUpPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.trackMoveUpPtr, NIL) } /** @@ -203,7 +203,7 @@ public open class Animation : Resource() { */ public final fun trackMoveDown(trackIdx: Int): Unit { TransferContext.writeArguments(LONG to trackIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.trackMoveDownPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.trackMoveDownPtr, NIL) } /** @@ -211,7 +211,7 @@ public open class Animation : Resource() { */ public final fun trackMoveTo(trackIdx: Int, toIdx: Int): Unit { TransferContext.writeArguments(LONG to trackIdx.toLong(), LONG to toIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.trackMoveToPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.trackMoveToPtr, NIL) } /** @@ -219,7 +219,7 @@ public open class Animation : Resource() { */ public final fun trackSwap(trackIdx: Int, withIdx: Int): Unit { TransferContext.writeArguments(LONG to trackIdx.toLong(), LONG to withIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.trackSwapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.trackSwapPtr, NIL) } /** @@ -227,7 +227,7 @@ public open class Animation : Resource() { */ public final fun trackSetImported(trackIdx: Int, imported: Boolean): Unit { TransferContext.writeArguments(LONG to trackIdx.toLong(), BOOL to imported) - TransferContext.callMethod(rawPtr, MethodBindings.trackSetImportedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.trackSetImportedPtr, NIL) } /** @@ -235,7 +235,7 @@ public open class Animation : Resource() { */ public final fun trackIsImported(trackIdx: Int): Boolean { TransferContext.writeArguments(LONG to trackIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.trackIsImportedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.trackIsImportedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -244,7 +244,7 @@ public open class Animation : Resource() { */ public final fun trackSetEnabled(trackIdx: Int, enabled: Boolean): Unit { TransferContext.writeArguments(LONG to trackIdx.toLong(), BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.trackSetEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.trackSetEnabledPtr, NIL) } /** @@ -252,7 +252,7 @@ public open class Animation : Resource() { */ public final fun trackIsEnabled(trackIdx: Int): Boolean { TransferContext.writeArguments(LONG to trackIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.trackIsEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.trackIsEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -265,7 +265,7 @@ public open class Animation : Resource() { position: Vector3, ): Int { TransferContext.writeArguments(LONG to trackIdx.toLong(), DOUBLE to time, VECTOR3 to position) - TransferContext.callMethod(rawPtr, MethodBindings.positionTrackInsertKeyPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.positionTrackInsertKeyPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -278,7 +278,7 @@ public open class Animation : Resource() { rotation: Quaternion, ): Int { TransferContext.writeArguments(LONG to trackIdx.toLong(), DOUBLE to time, QUATERNION to rotation) - TransferContext.callMethod(rawPtr, MethodBindings.rotationTrackInsertKeyPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.rotationTrackInsertKeyPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -291,7 +291,7 @@ public open class Animation : Resource() { scale: Vector3, ): Int { TransferContext.writeArguments(LONG to trackIdx.toLong(), DOUBLE to time, VECTOR3 to scale) - TransferContext.callMethod(rawPtr, MethodBindings.scaleTrackInsertKeyPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.scaleTrackInsertKeyPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -304,7 +304,7 @@ public open class Animation : Resource() { amount: Float, ): Int { TransferContext.writeArguments(LONG to trackIdx.toLong(), DOUBLE to time, DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.blendShapeTrackInsertKeyPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.blendShapeTrackInsertKeyPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -319,7 +319,7 @@ public open class Animation : Resource() { backward: Boolean = false, ): Vector3 { TransferContext.writeArguments(LONG to trackIdx.toLong(), DOUBLE to timeSec, BOOL to backward) - TransferContext.callMethod(rawPtr, MethodBindings.positionTrackInterpolatePtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.positionTrackInterpolatePtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -334,7 +334,7 @@ public open class Animation : Resource() { backward: Boolean = false, ): Quaternion { TransferContext.writeArguments(LONG to trackIdx.toLong(), DOUBLE to timeSec, BOOL to backward) - TransferContext.callMethod(rawPtr, MethodBindings.rotationTrackInterpolatePtr, QUATERNION) + TransferContext.callMethod(ptr, MethodBindings.rotationTrackInterpolatePtr, QUATERNION) return (TransferContext.readReturnValue(QUATERNION) as Quaternion) } @@ -349,7 +349,7 @@ public open class Animation : Resource() { backward: Boolean = false, ): Vector3 { TransferContext.writeArguments(LONG to trackIdx.toLong(), DOUBLE to timeSec, BOOL to backward) - TransferContext.callMethod(rawPtr, MethodBindings.scaleTrackInterpolatePtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.scaleTrackInterpolatePtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -364,7 +364,7 @@ public open class Animation : Resource() { backward: Boolean = false, ): Float { TransferContext.writeArguments(LONG to trackIdx.toLong(), DOUBLE to timeSec, BOOL to backward) - TransferContext.callMethod(rawPtr, MethodBindings.blendShapeTrackInterpolatePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.blendShapeTrackInterpolatePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -379,7 +379,7 @@ public open class Animation : Resource() { transition: Float = 1.0f, ): Int { TransferContext.writeArguments(LONG to trackIdx.toLong(), DOUBLE to time, ANY to key, DOUBLE to transition.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.trackInsertKeyPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.trackInsertKeyPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -388,7 +388,7 @@ public open class Animation : Resource() { */ public final fun trackRemoveKey(trackIdx: Int, keyIdx: Int): Unit { TransferContext.writeArguments(LONG to trackIdx.toLong(), LONG to keyIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.trackRemoveKeyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.trackRemoveKeyPtr, NIL) } /** @@ -396,7 +396,7 @@ public open class Animation : Resource() { */ public final fun trackRemoveKeyAtTime(trackIdx: Int, time: Double): Unit { TransferContext.writeArguments(LONG to trackIdx.toLong(), DOUBLE to time) - TransferContext.callMethod(rawPtr, MethodBindings.trackRemoveKeyAtTimePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.trackRemoveKeyAtTimePtr, NIL) } /** @@ -408,7 +408,7 @@ public open class Animation : Resource() { `value`: Any?, ): Unit { TransferContext.writeArguments(LONG to trackIdx.toLong(), LONG to key.toLong(), ANY to value) - TransferContext.callMethod(rawPtr, MethodBindings.trackSetKeyValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.trackSetKeyValuePtr, NIL) } /** @@ -421,7 +421,7 @@ public open class Animation : Resource() { transition: Float, ): Unit { TransferContext.writeArguments(LONG to trackIdx.toLong(), LONG to keyIdx.toLong(), DOUBLE to transition.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.trackSetKeyTransitionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.trackSetKeyTransitionPtr, NIL) } /** @@ -433,7 +433,7 @@ public open class Animation : Resource() { time: Double, ): Unit { TransferContext.writeArguments(LONG to trackIdx.toLong(), LONG to keyIdx.toLong(), DOUBLE to time) - TransferContext.callMethod(rawPtr, MethodBindings.trackSetKeyTimePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.trackSetKeyTimePtr, NIL) } /** @@ -442,7 +442,7 @@ public open class Animation : Resource() { */ public final fun trackGetKeyTransition(trackIdx: Int, keyIdx: Int): Float { TransferContext.writeArguments(LONG to trackIdx.toLong(), LONG to keyIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.trackGetKeyTransitionPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.trackGetKeyTransitionPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -451,7 +451,7 @@ public open class Animation : Resource() { */ public final fun trackGetKeyCount(trackIdx: Int): Int { TransferContext.writeArguments(LONG to trackIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.trackGetKeyCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.trackGetKeyCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -460,7 +460,7 @@ public open class Animation : Resource() { */ public final fun trackGetKeyValue(trackIdx: Int, keyIdx: Int): Any? { TransferContext.writeArguments(LONG to trackIdx.toLong(), LONG to keyIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.trackGetKeyValuePtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.trackGetKeyValuePtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -469,7 +469,7 @@ public open class Animation : Resource() { */ public final fun trackGetKeyTime(trackIdx: Int, keyIdx: Int): Double { TransferContext.writeArguments(LONG to trackIdx.toLong(), LONG to keyIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.trackGetKeyTimePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.trackGetKeyTimePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -492,7 +492,7 @@ public open class Animation : Resource() { backward: Boolean = false, ): Int { TransferContext.writeArguments(LONG to trackIdx.toLong(), DOUBLE to time, LONG to findMode.id, BOOL to limit, BOOL to backward) - TransferContext.callMethod(rawPtr, MethodBindings.trackFindKeyPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.trackFindKeyPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -502,7 +502,7 @@ public open class Animation : Resource() { public final fun trackSetInterpolationType(trackIdx: Int, interpolation: InterpolationType): Unit { TransferContext.writeArguments(LONG to trackIdx.toLong(), LONG to interpolation.id) - TransferContext.callMethod(rawPtr, MethodBindings.trackSetInterpolationTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.trackSetInterpolationTypePtr, NIL) } /** @@ -510,7 +510,7 @@ public open class Animation : Resource() { */ public final fun trackGetInterpolationType(trackIdx: Int): InterpolationType { TransferContext.writeArguments(LONG to trackIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.trackGetInterpolationTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.trackGetInterpolationTypePtr, LONG) return Animation.InterpolationType.from(TransferContext.readReturnValue(LONG) as Long) } @@ -519,7 +519,7 @@ public open class Animation : Resource() { */ public final fun trackSetInterpolationLoopWrap(trackIdx: Int, interpolation: Boolean): Unit { TransferContext.writeArguments(LONG to trackIdx.toLong(), BOOL to interpolation) - TransferContext.callMethod(rawPtr, MethodBindings.trackSetInterpolationLoopWrapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.trackSetInterpolationLoopWrapPtr, NIL) } /** @@ -528,7 +528,7 @@ public open class Animation : Resource() { */ public final fun trackGetInterpolationLoopWrap(trackIdx: Int): Boolean { TransferContext.writeArguments(LONG to trackIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.trackGetInterpolationLoopWrapPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.trackGetInterpolationLoopWrapPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -537,7 +537,7 @@ public open class Animation : Resource() { */ public final fun trackIsCompressed(trackIdx: Int): Boolean { TransferContext.writeArguments(LONG to trackIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.trackIsCompressedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.trackIsCompressedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -546,7 +546,7 @@ public open class Animation : Resource() { */ public final fun valueTrackSetUpdateMode(trackIdx: Int, mode: UpdateMode): Unit { TransferContext.writeArguments(LONG to trackIdx.toLong(), LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.valueTrackSetUpdateModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.valueTrackSetUpdateModePtr, NIL) } /** @@ -554,7 +554,7 @@ public open class Animation : Resource() { */ public final fun valueTrackGetUpdateMode(trackIdx: Int): UpdateMode { TransferContext.writeArguments(LONG to trackIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.valueTrackGetUpdateModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.valueTrackGetUpdateModePtr, LONG) return Animation.UpdateMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -572,7 +572,7 @@ public open class Animation : Resource() { backward: Boolean = false, ): Any? { TransferContext.writeArguments(LONG to trackIdx.toLong(), DOUBLE to timeSec, BOOL to backward) - TransferContext.callMethod(rawPtr, MethodBindings.valueTrackInterpolatePtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.valueTrackInterpolatePtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -581,7 +581,7 @@ public open class Animation : Resource() { */ public final fun methodTrackGetName(trackIdx: Int, keyIdx: Int): StringName { TransferContext.writeArguments(LONG to trackIdx.toLong(), LONG to keyIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.methodTrackGetNamePtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.methodTrackGetNamePtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } @@ -590,7 +590,7 @@ public open class Animation : Resource() { */ public final fun methodTrackGetParams(trackIdx: Int, keyIdx: Int): VariantArray { TransferContext.writeArguments(LONG to trackIdx.toLong(), LONG to keyIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.methodTrackGetParamsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.methodTrackGetParamsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -609,7 +609,7 @@ public open class Animation : Resource() { outHandle: Vector2 = Vector2(0, 0), ): Int { TransferContext.writeArguments(LONG to trackIdx.toLong(), DOUBLE to time, DOUBLE to value.toDouble(), VECTOR2 to inHandle, VECTOR2 to outHandle) - TransferContext.callMethod(rawPtr, MethodBindings.bezierTrackInsertKeyPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.bezierTrackInsertKeyPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -623,7 +623,7 @@ public open class Animation : Resource() { `value`: Float, ): Unit { TransferContext.writeArguments(LONG to trackIdx.toLong(), LONG to keyIdx.toLong(), DOUBLE to value.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.bezierTrackSetKeyValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bezierTrackSetKeyValuePtr, NIL) } /** @@ -638,7 +638,7 @@ public open class Animation : Resource() { balancedValueTimeRatio: Float = 1.0f, ): Unit { TransferContext.writeArguments(LONG to trackIdx.toLong(), LONG to keyIdx.toLong(), VECTOR2 to inHandle, DOUBLE to balancedValueTimeRatio.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.bezierTrackSetKeyInHandlePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bezierTrackSetKeyInHandlePtr, NIL) } /** @@ -653,7 +653,7 @@ public open class Animation : Resource() { balancedValueTimeRatio: Float = 1.0f, ): Unit { TransferContext.writeArguments(LONG to trackIdx.toLong(), LONG to keyIdx.toLong(), VECTOR2 to outHandle, DOUBLE to balancedValueTimeRatio.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.bezierTrackSetKeyOutHandlePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bezierTrackSetKeyOutHandlePtr, NIL) } /** @@ -662,7 +662,7 @@ public open class Animation : Resource() { */ public final fun bezierTrackGetKeyValue(trackIdx: Int, keyIdx: Int): Float { TransferContext.writeArguments(LONG to trackIdx.toLong(), LONG to keyIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.bezierTrackGetKeyValuePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.bezierTrackGetKeyValuePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -672,7 +672,7 @@ public open class Animation : Resource() { */ public final fun bezierTrackGetKeyInHandle(trackIdx: Int, keyIdx: Int): Vector2 { TransferContext.writeArguments(LONG to trackIdx.toLong(), LONG to keyIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.bezierTrackGetKeyInHandlePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.bezierTrackGetKeyInHandlePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -682,7 +682,7 @@ public open class Animation : Resource() { */ public final fun bezierTrackGetKeyOutHandle(trackIdx: Int, keyIdx: Int): Vector2 { TransferContext.writeArguments(LONG to trackIdx.toLong(), LONG to keyIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.bezierTrackGetKeyOutHandlePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.bezierTrackGetKeyOutHandlePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -692,7 +692,7 @@ public open class Animation : Resource() { */ public final fun bezierTrackInterpolate(trackIdx: Int, time: Double): Float { TransferContext.writeArguments(LONG to trackIdx.toLong(), DOUBLE to time) - TransferContext.callMethod(rawPtr, MethodBindings.bezierTrackInterpolatePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.bezierTrackInterpolatePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -711,7 +711,7 @@ public open class Animation : Resource() { endOffset: Float = 0.0f, ): Int { TransferContext.writeArguments(LONG to trackIdx.toLong(), DOUBLE to time, OBJECT to stream, DOUBLE to startOffset.toDouble(), DOUBLE to endOffset.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.audioTrackInsertKeyPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.audioTrackInsertKeyPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -725,7 +725,7 @@ public open class Animation : Resource() { stream: Resource?, ): Unit { TransferContext.writeArguments(LONG to trackIdx.toLong(), LONG to keyIdx.toLong(), OBJECT to stream) - TransferContext.callMethod(rawPtr, MethodBindings.audioTrackSetKeyStreamPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.audioTrackSetKeyStreamPtr, NIL) } /** @@ -738,7 +738,7 @@ public open class Animation : Resource() { offset: Float, ): Unit { TransferContext.writeArguments(LONG to trackIdx.toLong(), LONG to keyIdx.toLong(), DOUBLE to offset.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.audioTrackSetKeyStartOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.audioTrackSetKeyStartOffsetPtr, NIL) } /** @@ -751,7 +751,7 @@ public open class Animation : Resource() { offset: Float, ): Unit { TransferContext.writeArguments(LONG to trackIdx.toLong(), LONG to keyIdx.toLong(), DOUBLE to offset.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.audioTrackSetKeyEndOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.audioTrackSetKeyEndOffsetPtr, NIL) } /** @@ -760,7 +760,7 @@ public open class Animation : Resource() { */ public final fun audioTrackGetKeyStream(trackIdx: Int, keyIdx: Int): Resource? { TransferContext.writeArguments(LONG to trackIdx.toLong(), LONG to keyIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.audioTrackGetKeyStreamPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.audioTrackGetKeyStreamPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Resource?) } @@ -771,7 +771,7 @@ public open class Animation : Resource() { */ public final fun audioTrackGetKeyStartOffset(trackIdx: Int, keyIdx: Int): Float { TransferContext.writeArguments(LONG to trackIdx.toLong(), LONG to keyIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.audioTrackGetKeyStartOffsetPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.audioTrackGetKeyStartOffsetPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -782,7 +782,7 @@ public open class Animation : Resource() { */ public final fun audioTrackGetKeyEndOffset(trackIdx: Int, keyIdx: Int): Float { TransferContext.writeArguments(LONG to trackIdx.toLong(), LONG to keyIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.audioTrackGetKeyEndOffsetPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.audioTrackGetKeyEndOffsetPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -792,7 +792,7 @@ public open class Animation : Resource() { */ public final fun audioTrackSetUseBlend(trackIdx: Int, enable: Boolean): Unit { TransferContext.writeArguments(LONG to trackIdx.toLong(), BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.audioTrackSetUseBlendPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.audioTrackSetUseBlendPtr, NIL) } /** @@ -800,7 +800,7 @@ public open class Animation : Resource() { */ public final fun audioTrackIsUseBlend(trackIdx: Int): Boolean { TransferContext.writeArguments(LONG to trackIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.audioTrackIsUseBlendPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.audioTrackIsUseBlendPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -814,7 +814,7 @@ public open class Animation : Resource() { animation: StringName, ): Int { TransferContext.writeArguments(LONG to trackIdx.toLong(), DOUBLE to time, STRING_NAME to animation) - TransferContext.callMethod(rawPtr, MethodBindings.animationTrackInsertKeyPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.animationTrackInsertKeyPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -828,7 +828,7 @@ public open class Animation : Resource() { animation: StringName, ): Unit { TransferContext.writeArguments(LONG to trackIdx.toLong(), LONG to keyIdx.toLong(), STRING_NAME to animation) - TransferContext.callMethod(rawPtr, MethodBindings.animationTrackSetKeyAnimationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.animationTrackSetKeyAnimationPtr, NIL) } /** @@ -837,40 +837,40 @@ public open class Animation : Resource() { */ public final fun animationTrackGetKeyAnimation(trackIdx: Int, keyIdx: Int): StringName { TransferContext.writeArguments(LONG to trackIdx.toLong(), LONG to keyIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.animationTrackGetKeyAnimationPtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.animationTrackGetKeyAnimationPtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } public final fun setLength(timeSec: Float): Unit { TransferContext.writeArguments(DOUBLE to timeSec.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setLengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLengthPtr, NIL) } public final fun getLength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setLoopMode(loopMode: LoopMode): Unit { TransferContext.writeArguments(LONG to loopMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setLoopModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLoopModePtr, NIL) } public final fun getLoopMode(): LoopMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLoopModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLoopModePtr, LONG) return Animation.LoopMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setStep(sizeSec: Float): Unit { TransferContext.writeArguments(DOUBLE to sizeSec.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setStepPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStepPtr, NIL) } public final fun getStep(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStepPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getStepPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -879,7 +879,7 @@ public open class Animation : Resource() { */ public final fun clear(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPtr, NIL) } /** @@ -887,7 +887,7 @@ public open class Animation : Resource() { */ public final fun copyTrack(trackIdx: Int, toAnimation: Animation?): Unit { TransferContext.writeArguments(LONG to trackIdx.toLong(), OBJECT to toAnimation) - TransferContext.callMethod(rawPtr, MethodBindings.copyTrackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.copyTrackPtr, NIL) } /** @@ -906,12 +906,12 @@ public open class Animation : Resource() { splitTolerance: Float = 4.0f, ): Unit { TransferContext.writeArguments(LONG to pageSize, LONG to fps, DOUBLE to splitTolerance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.compressPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.compressPtr, NIL) } public final fun isCaptureIncluded(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCaptureIncludedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCaptureIncludedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationLibrary.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationLibrary.kt index baccb6b2e9..cce4a3dfd7 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationLibrary.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationLibrary.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal1 import godot.core.Signal2 import godot.core.StringName @@ -19,7 +20,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -63,7 +63,7 @@ public open class AnimationLibrary : Resource() { */ public final fun addAnimation(name: StringName, animation: Animation?): Error { TransferContext.writeArguments(STRING_NAME to name, OBJECT to animation) - TransferContext.callMethod(rawPtr, MethodBindings.addAnimationPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.addAnimationPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -72,7 +72,7 @@ public open class AnimationLibrary : Resource() { */ public final fun removeAnimation(name: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.removeAnimationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeAnimationPtr, NIL) } /** @@ -80,7 +80,7 @@ public open class AnimationLibrary : Resource() { */ public final fun renameAnimation(name: StringName, newname: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to newname) - TransferContext.callMethod(rawPtr, MethodBindings.renameAnimationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.renameAnimationPtr, NIL) } /** @@ -88,7 +88,7 @@ public open class AnimationLibrary : Resource() { */ public final fun hasAnimation(name: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.hasAnimationPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasAnimationPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -98,7 +98,7 @@ public open class AnimationLibrary : Resource() { */ public final fun getAnimation(name: StringName): Animation? { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.getAnimationPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getAnimationPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Animation?) } @@ -107,7 +107,7 @@ public open class AnimationLibrary : Resource() { */ public final fun getAnimationList(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAnimationListPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getAnimationListPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationMixer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationMixer.kt index 917539b2a2..c0025d8d6b 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationMixer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationMixer.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.PackedStringArray import godot.core.Quaternion @@ -28,7 +29,6 @@ import godot.core.VariantParser.STRING_NAME import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -247,7 +247,7 @@ public open class AnimationMixer internal constructor() : Node() { */ public final fun addAnimationLibrary(name: StringName, library: AnimationLibrary?): Error { TransferContext.writeArguments(STRING_NAME to name, OBJECT to library) - TransferContext.callMethod(rawPtr, MethodBindings.addAnimationLibraryPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.addAnimationLibraryPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -256,7 +256,7 @@ public open class AnimationMixer internal constructor() : Node() { */ public final fun removeAnimationLibrary(name: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.removeAnimationLibraryPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeAnimationLibraryPtr, NIL) } /** @@ -264,7 +264,7 @@ public open class AnimationMixer internal constructor() : Node() { */ public final fun renameAnimationLibrary(name: StringName, newname: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to newname) - TransferContext.callMethod(rawPtr, MethodBindings.renameAnimationLibraryPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.renameAnimationLibraryPtr, NIL) } /** @@ -272,7 +272,7 @@ public open class AnimationMixer internal constructor() : Node() { */ public final fun hasAnimationLibrary(name: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.hasAnimationLibraryPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasAnimationLibraryPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -282,7 +282,7 @@ public open class AnimationMixer internal constructor() : Node() { */ public final fun getAnimationLibrary(name: StringName): AnimationLibrary? { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.getAnimationLibraryPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getAnimationLibraryPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as AnimationLibrary?) } @@ -291,7 +291,7 @@ public open class AnimationMixer internal constructor() : Node() { */ public final fun getAnimationLibraryList(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAnimationLibraryListPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getAnimationLibraryListPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -300,7 +300,7 @@ public open class AnimationMixer internal constructor() : Node() { */ public final fun hasAnimation(name: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.hasAnimationPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasAnimationPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -310,7 +310,7 @@ public open class AnimationMixer internal constructor() : Node() { */ public final fun getAnimation(name: StringName): Animation? { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.getAnimationPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getAnimationPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Animation?) } @@ -319,95 +319,95 @@ public open class AnimationMixer internal constructor() : Node() { */ public final fun getAnimationList(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAnimationListPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getAnimationListPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } public final fun setActive(active: Boolean): Unit { TransferContext.writeArguments(BOOL to active) - TransferContext.callMethod(rawPtr, MethodBindings.setActivePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setActivePtr, NIL) } public final fun isActive(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isActivePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isActivePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDeterministic(deterministic: Boolean): Unit { TransferContext.writeArguments(BOOL to deterministic) - TransferContext.callMethod(rawPtr, MethodBindings.setDeterministicPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDeterministicPtr, NIL) } public final fun isDeterministic(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDeterministicPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDeterministicPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setRootNode(path: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to path) - TransferContext.callMethod(rawPtr, MethodBindings.setRootNodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRootNodePtr, NIL) } public final fun getRootNode(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRootNodePtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getRootNodePtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } public final fun setCallbackModeProcess(mode: AnimationCallbackModeProcess): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setCallbackModeProcessPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCallbackModeProcessPtr, NIL) } public final fun getCallbackModeProcess(): AnimationCallbackModeProcess { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCallbackModeProcessPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCallbackModeProcessPtr, LONG) return AnimationMixer.AnimationCallbackModeProcess.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setCallbackModeMethod(mode: AnimationCallbackModeMethod): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setCallbackModeMethodPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCallbackModeMethodPtr, NIL) } public final fun getCallbackModeMethod(): AnimationCallbackModeMethod { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCallbackModeMethodPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCallbackModeMethodPtr, LONG) return AnimationMixer.AnimationCallbackModeMethod.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setCallbackModeDiscrete(mode: AnimationCallbackModeDiscrete): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setCallbackModeDiscretePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCallbackModeDiscretePtr, NIL) } public final fun getCallbackModeDiscrete(): AnimationCallbackModeDiscrete { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCallbackModeDiscretePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCallbackModeDiscretePtr, LONG) return AnimationMixer.AnimationCallbackModeDiscrete.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setAudioMaxPolyphony(maxPolyphony: Int): Unit { TransferContext.writeArguments(LONG to maxPolyphony.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setAudioMaxPolyphonyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAudioMaxPolyphonyPtr, NIL) } public final fun getAudioMaxPolyphony(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAudioMaxPolyphonyPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAudioMaxPolyphonyPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setRootMotionTrack(path: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to path) - TransferContext.callMethod(rawPtr, MethodBindings.setRootMotionTrackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRootMotionTrackPtr, NIL) } public final fun getRootMotionTrack(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRootMotionTrackPtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getRootMotionTrackPtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } @@ -450,7 +450,7 @@ public open class AnimationMixer internal constructor() : Node() { */ public final fun getRootMotionPosition(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRootMotionPositionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getRootMotionPositionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -472,7 +472,7 @@ public open class AnimationMixer internal constructor() : Node() { */ public final fun getRootMotionRotation(): Quaternion { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRootMotionRotationPtr, QUATERNION) + TransferContext.callMethod(ptr, MethodBindings.getRootMotionRotationPtr, QUATERNION) return (TransferContext.readReturnValue(QUATERNION) as Quaternion) } @@ -500,7 +500,7 @@ public open class AnimationMixer internal constructor() : Node() { */ public final fun getRootMotionScale(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRootMotionScalePtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getRootMotionScalePtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -532,7 +532,7 @@ public open class AnimationMixer internal constructor() : Node() { */ public final fun getRootMotionPositionAccumulator(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRootMotionPositionAccumulatorPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getRootMotionPositionAccumulatorPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -567,8 +567,7 @@ public open class AnimationMixer internal constructor() : Node() { */ public final fun getRootMotionRotationAccumulator(): Quaternion { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRootMotionRotationAccumulatorPtr, - QUATERNION) + TransferContext.callMethod(ptr, MethodBindings.getRootMotionRotationAccumulatorPtr, QUATERNION) return (TransferContext.readReturnValue(QUATERNION) as Quaternion) } @@ -599,7 +598,7 @@ public open class AnimationMixer internal constructor() : Node() { */ public final fun getRootMotionScaleAccumulator(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRootMotionScaleAccumulatorPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getRootMotionScaleAccumulatorPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -609,7 +608,7 @@ public open class AnimationMixer internal constructor() : Node() { */ public final fun clearCaches(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearCachesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearCachesPtr, NIL) } /** @@ -617,7 +616,7 @@ public open class AnimationMixer internal constructor() : Node() { */ public final fun advance(delta: Double): Unit { TransferContext.writeArguments(DOUBLE to delta) - TransferContext.callMethod(rawPtr, MethodBindings.advancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.advancePtr, NIL) } /** @@ -639,17 +638,17 @@ public open class AnimationMixer internal constructor() : Node() { easeType: Tween.EaseType = Tween.EaseType.EASE_IN, ): Unit { TransferContext.writeArguments(STRING_NAME to name, DOUBLE to duration, LONG to transType.id, LONG to easeType.id) - TransferContext.callMethod(rawPtr, MethodBindings.capturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.capturePtr, NIL) } public final fun setResetOnSaveEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setResetOnSaveEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setResetOnSaveEnabledPtr, NIL) } public final fun isResetOnSaveEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isResetOnSaveEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isResetOnSaveEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -658,7 +657,7 @@ public open class AnimationMixer internal constructor() : Node() { */ public final fun findAnimation(animation: Animation?): StringName { TransferContext.writeArguments(OBJECT to animation) - TransferContext.callMethod(rawPtr, MethodBindings.findAnimationPtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.findAnimationPtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } @@ -668,7 +667,7 @@ public open class AnimationMixer internal constructor() : Node() { */ public final fun findAnimationLibrary(animation: Animation?): StringName { TransferContext.writeArguments(OBJECT to animation) - TransferContext.callMethod(rawPtr, MethodBindings.findAnimationLibraryPtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.findAnimationLibraryPtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNode.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNode.kt index bd111285b0..7b5b3ed02c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNode.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNode.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.NodePath import godot.core.Signal0 @@ -25,7 +26,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -178,7 +178,7 @@ public open class AnimationNode : Resource() { */ public final fun addInput(name: String): Boolean { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.addInputPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.addInputPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -187,7 +187,7 @@ public open class AnimationNode : Resource() { */ public final fun removeInput(index: Int): Unit { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeInputPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeInputPtr, NIL) } /** @@ -195,7 +195,7 @@ public open class AnimationNode : Resource() { */ public final fun setInputName(input: Int, name: String): Boolean { TransferContext.writeArguments(LONG to input.toLong(), STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.setInputNamePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.setInputNamePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -204,7 +204,7 @@ public open class AnimationNode : Resource() { */ public final fun getInputName(input: Int): String { TransferContext.writeArguments(LONG to input.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getInputNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getInputNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -214,7 +214,7 @@ public open class AnimationNode : Resource() { */ public final fun getInputCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInputCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getInputCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -223,7 +223,7 @@ public open class AnimationNode : Resource() { */ public final fun findInput(name: String): Int { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.findInputPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.findInputPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -232,7 +232,7 @@ public open class AnimationNode : Resource() { */ public final fun setFilterPath(path: NodePath, enable: Boolean): Unit { TransferContext.writeArguments(NODE_PATH to path, BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setFilterPathPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFilterPathPtr, NIL) } /** @@ -240,18 +240,18 @@ public open class AnimationNode : Resource() { */ public final fun isPathFiltered(path: NodePath): Boolean { TransferContext.writeArguments(NODE_PATH to path) - TransferContext.callMethod(rawPtr, MethodBindings.isPathFilteredPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPathFilteredPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setFilterEnabled(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setFilterEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFilterEnabledPtr, NIL) } public final fun isFilterEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isFilterEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isFilterEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -272,7 +272,7 @@ public open class AnimationNode : Resource() { loopedFlag: Animation.LoopedFlag = Animation.LoopedFlag.LOOPED_FLAG_NONE, ): Unit { TransferContext.writeArguments(STRING_NAME to animation, DOUBLE to time, DOUBLE to delta, BOOL to seeked, BOOL to isExternalSeeking, DOUBLE to blend.toDouble(), LONG to loopedFlag.id) - TransferContext.callMethod(rawPtr, MethodBindings.blendAnimationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.blendAnimationPtr, NIL) } /** @@ -293,7 +293,7 @@ public open class AnimationNode : Resource() { testOnly: Boolean = false, ): Double { TransferContext.writeArguments(STRING_NAME to name, OBJECT to node, DOUBLE to time, BOOL to seek, BOOL to isExternalSeeking, DOUBLE to blend.toDouble(), LONG to filter.id, BOOL to sync, BOOL to testOnly) - TransferContext.callMethod(rawPtr, MethodBindings.blendNodePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.blendNodePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -315,7 +315,7 @@ public open class AnimationNode : Resource() { testOnly: Boolean = false, ): Double { TransferContext.writeArguments(LONG to inputIndex.toLong(), DOUBLE to time, BOOL to seek, BOOL to isExternalSeeking, DOUBLE to blend.toDouble(), LONG to filter.id, BOOL to sync, BOOL to testOnly) - TransferContext.callMethod(rawPtr, MethodBindings.blendInputPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.blendInputPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -325,7 +325,7 @@ public open class AnimationNode : Resource() { */ public final fun setParameter(name: StringName, `value`: Any?): Unit { TransferContext.writeArguments(STRING_NAME to name, ANY to value) - TransferContext.callMethod(rawPtr, MethodBindings.setParameterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setParameterPtr, NIL) } /** @@ -334,7 +334,7 @@ public open class AnimationNode : Resource() { */ public final fun getParameter(name: StringName): Any? { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.getParameterPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getParameterPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeAnimation.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeAnimation.kt index 7c86d93d5c..f82e65ccd1 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeAnimation.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeAnimation.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.StringName import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -15,7 +16,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Int @@ -123,78 +123,78 @@ public open class AnimationNodeAnimation : AnimationRootNode() { public final fun setAnimation(name: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.setAnimationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAnimationPtr, NIL) } public final fun getAnimation(): StringName { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAnimationPtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getAnimationPtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } public final fun setPlayMode(mode: PlayMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setPlayModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPlayModePtr, NIL) } public final fun getPlayMode(): PlayMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPlayModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPlayModePtr, LONG) return AnimationNodeAnimation.PlayMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setUseCustomTimeline(useCustomTimeline: Boolean): Unit { TransferContext.writeArguments(BOOL to useCustomTimeline) - TransferContext.callMethod(rawPtr, MethodBindings.setUseCustomTimelinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseCustomTimelinePtr, NIL) } public final fun isUsingCustomTimeline(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUsingCustomTimelinePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUsingCustomTimelinePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setTimelineLength(timelineLength: Double): Unit { TransferContext.writeArguments(DOUBLE to timelineLength) - TransferContext.callMethod(rawPtr, MethodBindings.setTimelineLengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTimelineLengthPtr, NIL) } public final fun getTimelineLength(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTimelineLengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTimelineLengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun setStretchTimeScale(stretchTimeScale: Boolean): Unit { TransferContext.writeArguments(BOOL to stretchTimeScale) - TransferContext.callMethod(rawPtr, MethodBindings.setStretchTimeScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStretchTimeScalePtr, NIL) } public final fun isStretchingTimeScale(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isStretchingTimeScalePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isStretchingTimeScalePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setStartOffset(startOffset: Double): Unit { TransferContext.writeArguments(DOUBLE to startOffset) - TransferContext.callMethod(rawPtr, MethodBindings.setStartOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStartOffsetPtr, NIL) } public final fun getStartOffset(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStartOffsetPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getStartOffsetPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun setLoopMode(loopMode: Animation.LoopMode): Unit { TransferContext.writeArguments(LONG to loopMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setLoopModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLoopModePtr, NIL) } public final fun getLoopMode(): Animation.LoopMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLoopModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLoopModePtr, LONG) return Animation.LoopMode.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlendSpace1D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlendSpace1D.kt index 94aba240f7..b12c0b5279 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlendSpace1D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlendSpace1D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE @@ -15,7 +16,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -119,7 +119,7 @@ public open class AnimationNodeBlendSpace1D : AnimationRootNode() { atIndex: Int = -1, ): Unit { TransferContext.writeArguments(OBJECT to node, DOUBLE to pos.toDouble(), LONG to atIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addBlendPointPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addBlendPointPtr, NIL) } /** @@ -127,7 +127,7 @@ public open class AnimationNodeBlendSpace1D : AnimationRootNode() { */ public final fun setBlendPointPosition(point: Int, pos: Float): Unit { TransferContext.writeArguments(LONG to point.toLong(), DOUBLE to pos.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setBlendPointPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBlendPointPositionPtr, NIL) } /** @@ -135,7 +135,7 @@ public open class AnimationNodeBlendSpace1D : AnimationRootNode() { */ public final fun getBlendPointPosition(point: Int): Float { TransferContext.writeArguments(LONG to point.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBlendPointPositionPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getBlendPointPositionPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -144,7 +144,7 @@ public open class AnimationNodeBlendSpace1D : AnimationRootNode() { */ public final fun setBlendPointNode(point: Int, node: AnimationRootNode?): Unit { TransferContext.writeArguments(LONG to point.toLong(), OBJECT to node) - TransferContext.callMethod(rawPtr, MethodBindings.setBlendPointNodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBlendPointNodePtr, NIL) } /** @@ -152,7 +152,7 @@ public open class AnimationNodeBlendSpace1D : AnimationRootNode() { */ public final fun getBlendPointNode(point: Int): AnimationRootNode? { TransferContext.writeArguments(LONG to point.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBlendPointNodePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getBlendPointNodePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as AnimationRootNode?) } @@ -161,7 +161,7 @@ public open class AnimationNodeBlendSpace1D : AnimationRootNode() { */ public final fun removeBlendPoint(point: Int): Unit { TransferContext.writeArguments(LONG to point.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeBlendPointPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeBlendPointPtr, NIL) } /** @@ -169,73 +169,73 @@ public open class AnimationNodeBlendSpace1D : AnimationRootNode() { */ public final fun getBlendPointCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBlendPointCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBlendPointCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setMinSpace(minSpace: Float): Unit { TransferContext.writeArguments(DOUBLE to minSpace.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMinSpacePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMinSpacePtr, NIL) } public final fun getMinSpace(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMinSpacePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMinSpacePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setMaxSpace(maxSpace: Float): Unit { TransferContext.writeArguments(DOUBLE to maxSpace.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxSpacePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxSpacePtr, NIL) } public final fun getMaxSpace(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxSpacePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMaxSpacePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSnap(snap: Float): Unit { TransferContext.writeArguments(DOUBLE to snap.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSnapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSnapPtr, NIL) } public final fun getSnap(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSnapPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSnapPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setValueLabel(text: String): Unit { TransferContext.writeArguments(STRING to text) - TransferContext.callMethod(rawPtr, MethodBindings.setValueLabelPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setValueLabelPtr, NIL) } public final fun getValueLabel(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getValueLabelPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getValueLabelPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setBlendMode(mode: BlendMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setBlendModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBlendModePtr, NIL) } public final fun getBlendMode(): BlendMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBlendModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBlendModePtr, LONG) return AnimationNodeBlendSpace1D.BlendMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setUseSync(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setUseSyncPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseSyncPtr, NIL) } public final fun isUsingSync(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUsingSyncPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUsingSyncPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlendSpace2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlendSpace2D.kt index 747ed40a0a..027a2bba0c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlendSpace2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlendSpace2D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -19,7 +20,6 @@ import godot.core.VariantParser.STRING import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -228,7 +228,7 @@ public open class AnimationNodeBlendSpace2D : AnimationRootNode() { atIndex: Int = -1, ): Unit { TransferContext.writeArguments(OBJECT to node, VECTOR2 to pos, LONG to atIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addBlendPointPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addBlendPointPtr, NIL) } /** @@ -236,7 +236,7 @@ public open class AnimationNodeBlendSpace2D : AnimationRootNode() { */ public final fun setBlendPointPosition(point: Int, pos: Vector2): Unit { TransferContext.writeArguments(LONG to point.toLong(), VECTOR2 to pos) - TransferContext.callMethod(rawPtr, MethodBindings.setBlendPointPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBlendPointPositionPtr, NIL) } /** @@ -244,7 +244,7 @@ public open class AnimationNodeBlendSpace2D : AnimationRootNode() { */ public final fun getBlendPointPosition(point: Int): Vector2 { TransferContext.writeArguments(LONG to point.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBlendPointPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getBlendPointPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -253,7 +253,7 @@ public open class AnimationNodeBlendSpace2D : AnimationRootNode() { */ public final fun setBlendPointNode(point: Int, node: AnimationRootNode?): Unit { TransferContext.writeArguments(LONG to point.toLong(), OBJECT to node) - TransferContext.callMethod(rawPtr, MethodBindings.setBlendPointNodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBlendPointNodePtr, NIL) } /** @@ -261,7 +261,7 @@ public open class AnimationNodeBlendSpace2D : AnimationRootNode() { */ public final fun getBlendPointNode(point: Int): AnimationRootNode? { TransferContext.writeArguments(LONG to point.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBlendPointNodePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getBlendPointNodePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as AnimationRootNode?) } @@ -270,7 +270,7 @@ public open class AnimationNodeBlendSpace2D : AnimationRootNode() { */ public final fun removeBlendPoint(point: Int): Unit { TransferContext.writeArguments(LONG to point.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeBlendPointPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeBlendPointPtr, NIL) } /** @@ -278,7 +278,7 @@ public open class AnimationNodeBlendSpace2D : AnimationRootNode() { */ public final fun getBlendPointCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBlendPointCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBlendPointCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -295,7 +295,7 @@ public open class AnimationNodeBlendSpace2D : AnimationRootNode() { atIndex: Int = -1, ): Unit { TransferContext.writeArguments(LONG to x.toLong(), LONG to y.toLong(), LONG to z.toLong(), LONG to atIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addTrianglePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addTrianglePtr, NIL) } /** @@ -303,7 +303,7 @@ public open class AnimationNodeBlendSpace2D : AnimationRootNode() { */ public final fun getTrianglePoint(triangle: Int, point: Int): Int { TransferContext.writeArguments(LONG to triangle.toLong(), LONG to point.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTrianglePointPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTrianglePointPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -312,7 +312,7 @@ public open class AnimationNodeBlendSpace2D : AnimationRootNode() { */ public final fun removeTriangle(triangle: Int): Unit { TransferContext.writeArguments(LONG to triangle.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeTrianglePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeTrianglePtr, NIL) } /** @@ -320,95 +320,95 @@ public open class AnimationNodeBlendSpace2D : AnimationRootNode() { */ public final fun getTriangleCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTriangleCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTriangleCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setMinSpace(minSpace: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to minSpace) - TransferContext.callMethod(rawPtr, MethodBindings.setMinSpacePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMinSpacePtr, NIL) } public final fun getMinSpace(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMinSpacePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getMinSpacePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setMaxSpace(maxSpace: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to maxSpace) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxSpacePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxSpacePtr, NIL) } public final fun getMaxSpace(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxSpacePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getMaxSpacePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setSnap(snap: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to snap) - TransferContext.callMethod(rawPtr, MethodBindings.setSnapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSnapPtr, NIL) } public final fun getSnap(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSnapPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getSnapPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setXLabel(text: String): Unit { TransferContext.writeArguments(STRING to text) - TransferContext.callMethod(rawPtr, MethodBindings.setXLabelPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setXLabelPtr, NIL) } public final fun getXLabel(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getXLabelPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getXLabelPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setYLabel(text: String): Unit { TransferContext.writeArguments(STRING to text) - TransferContext.callMethod(rawPtr, MethodBindings.setYLabelPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setYLabelPtr, NIL) } public final fun getYLabel(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getYLabelPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getYLabelPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setAutoTriangles(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setAutoTrianglesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutoTrianglesPtr, NIL) } public final fun getAutoTriangles(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAutoTrianglesPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getAutoTrianglesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setBlendMode(mode: BlendMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setBlendModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBlendModePtr, NIL) } public final fun getBlendMode(): BlendMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBlendModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBlendModePtr, LONG) return AnimationNodeBlendSpace2D.BlendMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setUseSync(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setUseSyncPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseSyncPtr, NIL) } public final fun isUsingSync(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUsingSyncPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUsingSyncPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlendTree.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlendTree.kt index 23fbdfe569..090c8cb460 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlendTree.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlendTree.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal1 import godot.core.StringName import godot.core.TypeManager @@ -20,7 +21,6 @@ import godot.core.VariantParser.STRING_NAME import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -93,7 +93,7 @@ public open class AnimationNodeBlendTree : AnimationRootNode() { position: Vector2 = Vector2(0, 0), ): Unit { TransferContext.writeArguments(STRING_NAME to name, OBJECT to node, VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.addNodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addNodePtr, NIL) } /** @@ -101,7 +101,7 @@ public open class AnimationNodeBlendTree : AnimationRootNode() { */ public final fun getNode(name: StringName): AnimationNode? { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.getNodePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getNodePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as AnimationNode?) } @@ -110,7 +110,7 @@ public open class AnimationNodeBlendTree : AnimationRootNode() { */ public final fun removeNode(name: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.removeNodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeNodePtr, NIL) } /** @@ -118,7 +118,7 @@ public open class AnimationNodeBlendTree : AnimationRootNode() { */ public final fun renameNode(name: StringName, newName: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to newName) - TransferContext.callMethod(rawPtr, MethodBindings.renameNodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.renameNodePtr, NIL) } /** @@ -126,7 +126,7 @@ public open class AnimationNodeBlendTree : AnimationRootNode() { */ public final fun hasNode(name: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.hasNodePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasNodePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -140,7 +140,7 @@ public open class AnimationNodeBlendTree : AnimationRootNode() { outputNode: StringName, ): Unit { TransferContext.writeArguments(STRING_NAME to inputNode, LONG to inputIndex.toLong(), STRING_NAME to outputNode) - TransferContext.callMethod(rawPtr, MethodBindings.connectNodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.connectNodePtr, NIL) } /** @@ -148,7 +148,7 @@ public open class AnimationNodeBlendTree : AnimationRootNode() { */ public final fun disconnectNode(inputNode: StringName, inputIndex: Int): Unit { TransferContext.writeArguments(STRING_NAME to inputNode, LONG to inputIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.disconnectNodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.disconnectNodePtr, NIL) } /** @@ -156,7 +156,7 @@ public open class AnimationNodeBlendTree : AnimationRootNode() { */ public final fun setNodePosition(name: StringName, position: Vector2): Unit { TransferContext.writeArguments(STRING_NAME to name, VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.setNodePositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNodePositionPtr, NIL) } /** @@ -164,18 +164,18 @@ public open class AnimationNodeBlendTree : AnimationRootNode() { */ public final fun getNodePosition(name: StringName): Vector2 { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.getNodePositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getNodePositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setGraphOffset(offset: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.setGraphOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGraphOffsetPtr, NIL) } public final fun getGraphOffset(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGraphOffsetPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getGraphOffsetPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeOneShot.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeOneShot.kt index e5408c2faa..4ac0ee6190 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeOneShot.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeOneShot.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE @@ -14,7 +15,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Int @@ -204,100 +204,100 @@ public open class AnimationNodeOneShot : AnimationNodeSync() { public final fun setFadeinTime(time: Double): Unit { TransferContext.writeArguments(DOUBLE to time) - TransferContext.callMethod(rawPtr, MethodBindings.setFadeinTimePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFadeinTimePtr, NIL) } public final fun getFadeinTime(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFadeinTimePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFadeinTimePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun setFadeinCurve(curve: Curve?): Unit { TransferContext.writeArguments(OBJECT to curve) - TransferContext.callMethod(rawPtr, MethodBindings.setFadeinCurvePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFadeinCurvePtr, NIL) } public final fun getFadeinCurve(): Curve? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFadeinCurvePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getFadeinCurvePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Curve?) } public final fun setFadeoutTime(time: Double): Unit { TransferContext.writeArguments(DOUBLE to time) - TransferContext.callMethod(rawPtr, MethodBindings.setFadeoutTimePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFadeoutTimePtr, NIL) } public final fun getFadeoutTime(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFadeoutTimePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFadeoutTimePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun setFadeoutCurve(curve: Curve?): Unit { TransferContext.writeArguments(OBJECT to curve) - TransferContext.callMethod(rawPtr, MethodBindings.setFadeoutCurvePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFadeoutCurvePtr, NIL) } public final fun getFadeoutCurve(): Curve? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFadeoutCurvePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getFadeoutCurvePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Curve?) } public final fun setBreakLoopAtEnd(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setBreakLoopAtEndPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBreakLoopAtEndPtr, NIL) } public final fun isLoopBrokenAtEnd(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isLoopBrokenAtEndPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isLoopBrokenAtEndPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAutorestart(active: Boolean): Unit { TransferContext.writeArguments(BOOL to active) - TransferContext.callMethod(rawPtr, MethodBindings.setAutorestartPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutorestartPtr, NIL) } public final fun hasAutorestart(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasAutorestartPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasAutorestartPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAutorestartDelay(time: Double): Unit { TransferContext.writeArguments(DOUBLE to time) - TransferContext.callMethod(rawPtr, MethodBindings.setAutorestartDelayPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutorestartDelayPtr, NIL) } public final fun getAutorestartDelay(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAutorestartDelayPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAutorestartDelayPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun setAutorestartRandomDelay(time: Double): Unit { TransferContext.writeArguments(DOUBLE to time) - TransferContext.callMethod(rawPtr, MethodBindings.setAutorestartRandomDelayPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutorestartRandomDelayPtr, NIL) } public final fun getAutorestartRandomDelay(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAutorestartRandomDelayPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAutorestartRandomDelayPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun setMixMode(mode: MixMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setMixModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMixModePtr, NIL) } public final fun getMixMode(): MixMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMixModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMixModePtr, LONG) return AnimationNodeOneShot.MixMode.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeStateMachine.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeStateMachine.kt index df7c3d8554..4bb1fea4f7 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeStateMachine.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeStateMachine.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.StringName import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -17,7 +18,6 @@ import godot.core.VariantParser.STRING_NAME import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -100,7 +100,7 @@ public open class AnimationNodeStateMachine : AnimationRootNode() { position: Vector2 = Vector2(0, 0), ): Unit { TransferContext.writeArguments(STRING_NAME to name, OBJECT to node, VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.addNodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addNodePtr, NIL) } /** @@ -108,7 +108,7 @@ public open class AnimationNodeStateMachine : AnimationRootNode() { */ public final fun replaceNode(name: StringName, node: AnimationNode?): Unit { TransferContext.writeArguments(STRING_NAME to name, OBJECT to node) - TransferContext.callMethod(rawPtr, MethodBindings.replaceNodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.replaceNodePtr, NIL) } /** @@ -116,7 +116,7 @@ public open class AnimationNodeStateMachine : AnimationRootNode() { */ public final fun getNode(name: StringName): AnimationNode? { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.getNodePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getNodePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as AnimationNode?) } @@ -125,7 +125,7 @@ public open class AnimationNodeStateMachine : AnimationRootNode() { */ public final fun removeNode(name: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.removeNodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeNodePtr, NIL) } /** @@ -133,7 +133,7 @@ public open class AnimationNodeStateMachine : AnimationRootNode() { */ public final fun renameNode(name: StringName, newName: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to newName) - TransferContext.callMethod(rawPtr, MethodBindings.renameNodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.renameNodePtr, NIL) } /** @@ -141,7 +141,7 @@ public open class AnimationNodeStateMachine : AnimationRootNode() { */ public final fun hasNode(name: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.hasNodePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasNodePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -150,7 +150,7 @@ public open class AnimationNodeStateMachine : AnimationRootNode() { */ public final fun getNodeName(node: AnimationNode?): StringName { TransferContext.writeArguments(OBJECT to node) - TransferContext.callMethod(rawPtr, MethodBindings.getNodeNamePtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getNodeNamePtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } @@ -159,7 +159,7 @@ public open class AnimationNodeStateMachine : AnimationRootNode() { */ public final fun setNodePosition(name: StringName, position: Vector2): Unit { TransferContext.writeArguments(STRING_NAME to name, VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.setNodePositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNodePositionPtr, NIL) } /** @@ -167,7 +167,7 @@ public open class AnimationNodeStateMachine : AnimationRootNode() { */ public final fun getNodePosition(name: StringName): Vector2 { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.getNodePositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getNodePositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -176,7 +176,7 @@ public open class AnimationNodeStateMachine : AnimationRootNode() { */ public final fun hasTransition(from: StringName, to: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to from, STRING_NAME to to) - TransferContext.callMethod(rawPtr, MethodBindings.hasTransitionPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasTransitionPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -189,7 +189,7 @@ public open class AnimationNodeStateMachine : AnimationRootNode() { transition: AnimationNodeStateMachineTransition?, ): Unit { TransferContext.writeArguments(STRING_NAME to from, STRING_NAME to to, OBJECT to transition) - TransferContext.callMethod(rawPtr, MethodBindings.addTransitionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addTransitionPtr, NIL) } /** @@ -197,7 +197,7 @@ public open class AnimationNodeStateMachine : AnimationRootNode() { */ public final fun getTransition(idx: Int): AnimationNodeStateMachineTransition? { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTransitionPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTransitionPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as AnimationNodeStateMachineTransition?) } @@ -206,7 +206,7 @@ public open class AnimationNodeStateMachine : AnimationRootNode() { */ public final fun getTransitionFrom(idx: Int): StringName { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTransitionFromPtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getTransitionFromPtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } @@ -215,7 +215,7 @@ public open class AnimationNodeStateMachine : AnimationRootNode() { */ public final fun getTransitionTo(idx: Int): StringName { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTransitionToPtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getTransitionToPtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } @@ -224,7 +224,7 @@ public open class AnimationNodeStateMachine : AnimationRootNode() { */ public final fun getTransitionCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTransitionCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTransitionCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -233,7 +233,7 @@ public open class AnimationNodeStateMachine : AnimationRootNode() { */ public final fun removeTransitionByIndex(idx: Int): Unit { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeTransitionByIndexPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeTransitionByIndexPtr, NIL) } /** @@ -241,7 +241,7 @@ public open class AnimationNodeStateMachine : AnimationRootNode() { */ public final fun removeTransition(from: StringName, to: StringName): Unit { TransferContext.writeArguments(STRING_NAME to from, STRING_NAME to to) - TransferContext.callMethod(rawPtr, MethodBindings.removeTransitionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeTransitionPtr, NIL) } /** @@ -249,7 +249,7 @@ public open class AnimationNodeStateMachine : AnimationRootNode() { */ public final fun setGraphOffset(offset: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.setGraphOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGraphOffsetPtr, NIL) } /** @@ -257,40 +257,40 @@ public open class AnimationNodeStateMachine : AnimationRootNode() { */ public final fun getGraphOffset(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGraphOffsetPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getGraphOffsetPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setStateMachineType(stateMachineType: StateMachineType): Unit { TransferContext.writeArguments(LONG to stateMachineType.id) - TransferContext.callMethod(rawPtr, MethodBindings.setStateMachineTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStateMachineTypePtr, NIL) } public final fun getStateMachineType(): StateMachineType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStateMachineTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getStateMachineTypePtr, LONG) return AnimationNodeStateMachine.StateMachineType.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setAllowTransitionToSelf(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setAllowTransitionToSelfPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAllowTransitionToSelfPtr, NIL) } public final fun isAllowTransitionToSelf(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isAllowTransitionToSelfPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isAllowTransitionToSelfPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setResetEnds(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setResetEndsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setResetEndsPtr, NIL) } public final fun areEndsReset(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.areEndsResetPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.areEndsResetPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeStateMachinePlayback.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeStateMachinePlayback.kt index e010ef1f36..a05ce7add0 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeStateMachinePlayback.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeStateMachinePlayback.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.StringName import godot.core.TypeManager import godot.core.VariantArray @@ -16,7 +17,6 @@ import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -58,7 +58,7 @@ public open class AnimationNodeStateMachinePlayback : Resource() { @JvmOverloads public final fun travel(toNode: StringName, resetOnTeleport: Boolean = true): Unit { TransferContext.writeArguments(STRING_NAME to toNode, BOOL to resetOnTeleport) - TransferContext.callMethod(rawPtr, MethodBindings.travelPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.travelPtr, NIL) } /** @@ -68,7 +68,7 @@ public open class AnimationNodeStateMachinePlayback : Resource() { @JvmOverloads public final fun start(node: StringName, reset: Boolean = true): Unit { TransferContext.writeArguments(STRING_NAME to node, BOOL to reset) - TransferContext.callMethod(rawPtr, MethodBindings.startPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.startPtr, NIL) } /** @@ -77,7 +77,7 @@ public open class AnimationNodeStateMachinePlayback : Resource() { */ public final fun next(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.nextPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.nextPtr, NIL) } /** @@ -85,7 +85,7 @@ public open class AnimationNodeStateMachinePlayback : Resource() { */ public final fun stop(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.stopPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.stopPtr, NIL) } /** @@ -93,7 +93,7 @@ public open class AnimationNodeStateMachinePlayback : Resource() { */ public final fun isPlaying(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isPlayingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPlayingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -104,7 +104,7 @@ public open class AnimationNodeStateMachinePlayback : Resource() { */ public final fun getCurrentNode(): StringName { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCurrentNodePtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getCurrentNodePtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } @@ -113,7 +113,7 @@ public open class AnimationNodeStateMachinePlayback : Resource() { */ public final fun getCurrentPlayPosition(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCurrentPlayPositionPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCurrentPlayPositionPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -126,7 +126,7 @@ public open class AnimationNodeStateMachinePlayback : Resource() { */ public final fun getCurrentLength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCurrentLengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCurrentLengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -135,7 +135,7 @@ public open class AnimationNodeStateMachinePlayback : Resource() { */ public final fun getFadingFromNode(): StringName { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFadingFromNodePtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getFadingFromNodePtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } @@ -144,7 +144,7 @@ public open class AnimationNodeStateMachinePlayback : Resource() { */ public final fun getTravelPath(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTravelPathPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getTravelPathPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeStateMachineTransition.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeStateMachineTransition.kt index 8125f79b85..78af9a4d45 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeStateMachineTransition.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeStateMachineTransition.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.StringName import godot.core.TypeManager @@ -18,7 +19,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -170,100 +170,100 @@ public open class AnimationNodeStateMachineTransition : Resource() { public final fun setSwitchMode(mode: SwitchMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setSwitchModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSwitchModePtr, NIL) } public final fun getSwitchMode(): SwitchMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSwitchModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSwitchModePtr, LONG) return AnimationNodeStateMachineTransition.SwitchMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setAdvanceMode(mode: AdvanceMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setAdvanceModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAdvanceModePtr, NIL) } public final fun getAdvanceMode(): AdvanceMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAdvanceModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAdvanceModePtr, LONG) return AnimationNodeStateMachineTransition.AdvanceMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setAdvanceCondition(name: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.setAdvanceConditionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAdvanceConditionPtr, NIL) } public final fun getAdvanceCondition(): StringName { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAdvanceConditionPtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getAdvanceConditionPtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } public final fun setXfadeTime(secs: Float): Unit { TransferContext.writeArguments(DOUBLE to secs.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setXfadeTimePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setXfadeTimePtr, NIL) } public final fun getXfadeTime(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getXfadeTimePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getXfadeTimePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setXfadeCurve(curve: Curve?): Unit { TransferContext.writeArguments(OBJECT to curve) - TransferContext.callMethod(rawPtr, MethodBindings.setXfadeCurvePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setXfadeCurvePtr, NIL) } public final fun getXfadeCurve(): Curve? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getXfadeCurvePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getXfadeCurvePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Curve?) } public final fun setBreakLoopAtEnd(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setBreakLoopAtEndPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBreakLoopAtEndPtr, NIL) } public final fun isLoopBrokenAtEnd(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isLoopBrokenAtEndPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isLoopBrokenAtEndPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setReset(reset: Boolean): Unit { TransferContext.writeArguments(BOOL to reset) - TransferContext.callMethod(rawPtr, MethodBindings.setResetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setResetPtr, NIL) } public final fun isReset(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isResetPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isResetPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setPriority(priority: Int): Unit { TransferContext.writeArguments(LONG to priority.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setPriorityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPriorityPtr, NIL) } public final fun getPriority(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPriorityPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPriorityPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setAdvanceExpression(text: String): Unit { TransferContext.writeArguments(STRING to text) - TransferContext.callMethod(rawPtr, MethodBindings.setAdvanceExpressionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAdvanceExpressionPtr, NIL) } public final fun getAdvanceExpression(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAdvanceExpressionPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getAdvanceExpressionPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeSync.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeSync.kt index 0932a7dcb5..84750c8911 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeSync.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeSync.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -42,12 +42,12 @@ public open class AnimationNodeSync : AnimationNode() { public final fun setUseSync(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setUseSyncPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseSyncPtr, NIL) } public final fun isUsingSync(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUsingSyncPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUsingSyncPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeTransition.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeTransition.kt index e7faf5e587..b390907b6a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeTransition.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationNodeTransition.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE @@ -14,7 +15,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Int @@ -117,7 +117,7 @@ public open class AnimationNodeTransition : AnimationNodeSync() { public final fun setInputCount(inputCount: Int): Unit { TransferContext.writeArguments(LONG to inputCount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setInputCountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInputCountPtr, NIL) } /** @@ -127,7 +127,7 @@ public open class AnimationNodeTransition : AnimationNodeSync() { */ public final fun setInputAsAutoAdvance(input: Int, enable: Boolean): Unit { TransferContext.writeArguments(LONG to input.toLong(), BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setInputAsAutoAdvancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInputAsAutoAdvancePtr, NIL) } /** @@ -135,7 +135,7 @@ public open class AnimationNodeTransition : AnimationNodeSync() { */ public final fun isInputSetAsAutoAdvance(input: Int): Boolean { TransferContext.writeArguments(LONG to input.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isInputSetAsAutoAdvancePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isInputSetAsAutoAdvancePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -145,7 +145,7 @@ public open class AnimationNodeTransition : AnimationNodeSync() { */ public final fun setInputBreakLoopAtEnd(input: Int, enable: Boolean): Unit { TransferContext.writeArguments(LONG to input.toLong(), BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setInputBreakLoopAtEndPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInputBreakLoopAtEndPtr, NIL) } /** @@ -153,7 +153,7 @@ public open class AnimationNodeTransition : AnimationNodeSync() { */ public final fun isInputLoopBrokenAtEnd(input: Int): Boolean { TransferContext.writeArguments(LONG to input.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isInputLoopBrokenAtEndPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isInputLoopBrokenAtEndPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -162,7 +162,7 @@ public open class AnimationNodeTransition : AnimationNodeSync() { */ public final fun setInputReset(input: Int, enable: Boolean): Unit { TransferContext.writeArguments(LONG to input.toLong(), BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setInputResetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInputResetPtr, NIL) } /** @@ -170,40 +170,40 @@ public open class AnimationNodeTransition : AnimationNodeSync() { */ public final fun isInputReset(input: Int): Boolean { TransferContext.writeArguments(LONG to input.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isInputResetPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isInputResetPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setXfadeTime(time: Double): Unit { TransferContext.writeArguments(DOUBLE to time) - TransferContext.callMethod(rawPtr, MethodBindings.setXfadeTimePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setXfadeTimePtr, NIL) } public final fun getXfadeTime(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getXfadeTimePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getXfadeTimePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun setXfadeCurve(curve: Curve?): Unit { TransferContext.writeArguments(OBJECT to curve) - TransferContext.callMethod(rawPtr, MethodBindings.setXfadeCurvePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setXfadeCurvePtr, NIL) } public final fun getXfadeCurve(): Curve? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getXfadeCurvePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getXfadeCurvePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Curve?) } public final fun setAllowTransitionToSelf(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setAllowTransitionToSelfPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAllowTransitionToSelfPtr, NIL) } public final fun isAllowTransitionToSelf(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isAllowTransitionToSelfPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isAllowTransitionToSelfPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationPlayer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationPlayer.kt index 019b977408..d68082fbf2 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationPlayer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationPlayer.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.PackedStringArray import godot.core.Signal1 @@ -22,7 +23,6 @@ import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -212,7 +212,7 @@ public open class AnimationPlayer : AnimationMixer() { */ public final fun animationSetNext(animationFrom: StringName, animationTo: StringName): Unit { TransferContext.writeArguments(STRING_NAME to animationFrom, STRING_NAME to animationTo) - TransferContext.callMethod(rawPtr, MethodBindings.animationSetNextPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.animationSetNextPtr, NIL) } /** @@ -220,7 +220,7 @@ public open class AnimationPlayer : AnimationMixer() { */ public final fun animationGetNext(animationFrom: StringName): StringName { TransferContext.writeArguments(STRING_NAME to animationFrom) - TransferContext.callMethod(rawPtr, MethodBindings.animationGetNextPtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.animationGetNextPtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } @@ -233,7 +233,7 @@ public open class AnimationPlayer : AnimationMixer() { sec: Double, ): Unit { TransferContext.writeArguments(STRING_NAME to animationFrom, STRING_NAME to animationTo, DOUBLE to sec) - TransferContext.callMethod(rawPtr, MethodBindings.setBlendTimePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBlendTimePtr, NIL) } /** @@ -241,63 +241,63 @@ public open class AnimationPlayer : AnimationMixer() { */ public final fun getBlendTime(animationFrom: StringName, animationTo: StringName): Double { TransferContext.writeArguments(STRING_NAME to animationFrom, STRING_NAME to animationTo) - TransferContext.callMethod(rawPtr, MethodBindings.getBlendTimePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getBlendTimePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun setDefaultBlendTime(sec: Double): Unit { TransferContext.writeArguments(DOUBLE to sec) - TransferContext.callMethod(rawPtr, MethodBindings.setDefaultBlendTimePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDefaultBlendTimePtr, NIL) } public final fun getDefaultBlendTime(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDefaultBlendTimePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDefaultBlendTimePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun setAutoCapture(autoCapture: Boolean): Unit { TransferContext.writeArguments(BOOL to autoCapture) - TransferContext.callMethod(rawPtr, MethodBindings.setAutoCapturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutoCapturePtr, NIL) } public final fun isAutoCapture(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isAutoCapturePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isAutoCapturePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAutoCaptureDuration(autoCaptureDuration: Double): Unit { TransferContext.writeArguments(DOUBLE to autoCaptureDuration) - TransferContext.callMethod(rawPtr, MethodBindings.setAutoCaptureDurationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutoCaptureDurationPtr, NIL) } public final fun getAutoCaptureDuration(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAutoCaptureDurationPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAutoCaptureDurationPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun setAutoCaptureTransitionType(autoCaptureTransitionType: Tween.TransitionType): Unit { TransferContext.writeArguments(LONG to autoCaptureTransitionType.id) - TransferContext.callMethod(rawPtr, MethodBindings.setAutoCaptureTransitionTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutoCaptureTransitionTypePtr, NIL) } public final fun getAutoCaptureTransitionType(): Tween.TransitionType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAutoCaptureTransitionTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAutoCaptureTransitionTypePtr, LONG) return Tween.TransitionType.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setAutoCaptureEaseType(autoCaptureEaseType: Tween.EaseType): Unit { TransferContext.writeArguments(LONG to autoCaptureEaseType.id) - TransferContext.callMethod(rawPtr, MethodBindings.setAutoCaptureEaseTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutoCaptureEaseTypePtr, NIL) } public final fun getAutoCaptureEaseType(): Tween.EaseType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAutoCaptureEaseTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAutoCaptureEaseTypePtr, LONG) return Tween.EaseType.from(TransferContext.readReturnValue(LONG) as Long) } @@ -322,7 +322,7 @@ public open class AnimationPlayer : AnimationMixer() { fromEnd: Boolean = false, ): Unit { TransferContext.writeArguments(STRING_NAME to name, DOUBLE to customBlend, DOUBLE to customSpeed.toDouble(), BOOL to fromEnd) - TransferContext.callMethod(rawPtr, MethodBindings.playPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.playPtr, NIL) } /** @@ -334,7 +334,7 @@ public open class AnimationPlayer : AnimationMixer() { public final fun playBackwards(name: StringName = StringName(""), customBlend: Double = -1.0): Unit { TransferContext.writeArguments(STRING_NAME to name, DOUBLE to customBlend) - TransferContext.callMethod(rawPtr, MethodBindings.playBackwardsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.playBackwardsPtr, NIL) } /** @@ -365,7 +365,7 @@ public open class AnimationPlayer : AnimationMixer() { easeType: Tween.EaseType = Tween.EaseType.EASE_IN, ): Unit { TransferContext.writeArguments(STRING_NAME to name, DOUBLE to duration, DOUBLE to customBlend, DOUBLE to customSpeed.toDouble(), BOOL to fromEnd, LONG to transType.id, LONG to easeType.id) - TransferContext.callMethod(rawPtr, MethodBindings.playWithCapturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.playWithCapturePtr, NIL) } /** @@ -376,7 +376,7 @@ public open class AnimationPlayer : AnimationMixer() { */ public final fun pause(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.pausePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pausePtr, NIL) } /** @@ -388,7 +388,7 @@ public open class AnimationPlayer : AnimationMixer() { @JvmOverloads public final fun stop(keepState: Boolean = false): Unit { TransferContext.writeArguments(BOOL to keepState) - TransferContext.callMethod(rawPtr, MethodBindings.stopPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.stopPtr, NIL) } /** @@ -397,29 +397,29 @@ public open class AnimationPlayer : AnimationMixer() { */ public final fun isPlaying(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isPlayingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPlayingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCurrentAnimation(animation: String): Unit { TransferContext.writeArguments(STRING to animation) - TransferContext.callMethod(rawPtr, MethodBindings.setCurrentAnimationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCurrentAnimationPtr, NIL) } public final fun getCurrentAnimation(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCurrentAnimationPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getCurrentAnimationPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setAssignedAnimation(animation: String): Unit { TransferContext.writeArguments(STRING to animation) - TransferContext.callMethod(rawPtr, MethodBindings.setAssignedAnimationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAssignedAnimationPtr, NIL) } public final fun getAssignedAnimation(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAssignedAnimationPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getAssignedAnimationPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -431,7 +431,7 @@ public open class AnimationPlayer : AnimationMixer() { */ public final fun queue(name: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.queuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.queuePtr, NIL) } /** @@ -439,7 +439,7 @@ public open class AnimationPlayer : AnimationMixer() { */ public final fun getQueue(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getQueuePtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getQueuePtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -448,17 +448,17 @@ public open class AnimationPlayer : AnimationMixer() { */ public final fun clearQueue(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearQueuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearQueuePtr, NIL) } public final fun setSpeedScale(speed: Float): Unit { TransferContext.writeArguments(DOUBLE to speed.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSpeedScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSpeedScalePtr, NIL) } public final fun getSpeedScale(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSpeedScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSpeedScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -470,41 +470,41 @@ public open class AnimationPlayer : AnimationMixer() { */ public final fun getPlayingSpeed(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPlayingSpeedPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPlayingSpeedPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAutoplay(name: String): Unit { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.setAutoplayPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutoplayPtr, NIL) } public final fun getAutoplay(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAutoplayPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getAutoplayPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setMovieQuitOnFinishEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setMovieQuitOnFinishEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMovieQuitOnFinishEnabledPtr, NIL) } public final fun isMovieQuitOnFinishEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isMovieQuitOnFinishEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isMovieQuitOnFinishEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun getCurrentAnimationPosition(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCurrentAnimationPositionPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCurrentAnimationPositionPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun getCurrentAnimationLength(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCurrentAnimationLengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCurrentAnimationLengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -525,7 +525,7 @@ public open class AnimationPlayer : AnimationMixer() { updateOnly: Boolean = false, ): Unit { TransferContext.writeArguments(DOUBLE to seconds, BOOL to update, BOOL to updateOnly) - TransferContext.callMethod(rawPtr, MethodBindings.seekPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.seekPtr, NIL) } /** @@ -533,7 +533,7 @@ public open class AnimationPlayer : AnimationMixer() { */ public final fun setProcessCallback(mode: AnimationProcessCallback): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setProcessCallbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setProcessCallbackPtr, NIL) } /** @@ -541,7 +541,7 @@ public open class AnimationPlayer : AnimationMixer() { */ public final fun getProcessCallback(): AnimationProcessCallback { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getProcessCallbackPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getProcessCallbackPtr, LONG) return AnimationPlayer.AnimationProcessCallback.from(TransferContext.readReturnValue(LONG) as Long) } @@ -550,7 +550,7 @@ public open class AnimationPlayer : AnimationMixer() { */ public final fun setMethodCallMode(mode: AnimationMethodCallMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setMethodCallModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMethodCallModePtr, NIL) } /** @@ -558,7 +558,7 @@ public open class AnimationPlayer : AnimationMixer() { */ public final fun getMethodCallMode(): AnimationMethodCallMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMethodCallModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMethodCallModePtr, LONG) return AnimationPlayer.AnimationMethodCallMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -567,7 +567,7 @@ public open class AnimationPlayer : AnimationMixer() { */ public final fun setRoot(path: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to path) - TransferContext.callMethod(rawPtr, MethodBindings.setRootPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRootPtr, NIL) } /** @@ -575,7 +575,7 @@ public open class AnimationPlayer : AnimationMixer() { */ public final fun getRoot(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRootPtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getRootPtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationTree.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationTree.kt index a1351843b3..1ec4417a78 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationTree.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AnimationTree.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.Signal0 import godot.core.TypeManager @@ -15,7 +16,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -76,34 +76,34 @@ public open class AnimationTree : AnimationMixer() { public final fun setTreeRoot(animationNode: AnimationRootNode?): Unit { TransferContext.writeArguments(OBJECT to animationNode) - TransferContext.callMethod(rawPtr, MethodBindings.setTreeRootPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTreeRootPtr, NIL) } public final fun getTreeRoot(): AnimationRootNode? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTreeRootPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTreeRootPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as AnimationRootNode?) } public final fun setAdvanceExpressionBaseNode(path: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to path) - TransferContext.callMethod(rawPtr, MethodBindings.setAdvanceExpressionBaseNodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAdvanceExpressionBaseNodePtr, NIL) } public final fun getAdvanceExpressionBaseNode(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAdvanceExpressionBaseNodePtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getAdvanceExpressionBaseNodePtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } public final fun setAnimationPlayer(path: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to path) - TransferContext.callMethod(rawPtr, MethodBindings.setAnimationPlayerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAnimationPlayerPtr, NIL) } public final fun getAnimationPlayer(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAnimationPlayerPtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getAnimationPlayerPtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } @@ -112,7 +112,7 @@ public open class AnimationTree : AnimationMixer() { */ public final fun setProcessCallback(mode: AnimationProcessCallback): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setProcessCallbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setProcessCallbackPtr, NIL) } /** @@ -120,7 +120,7 @@ public open class AnimationTree : AnimationMixer() { */ public final fun getProcessCallback(): AnimationProcessCallback { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getProcessCallbackPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getProcessCallbackPtr, LONG) return AnimationTree.AnimationProcessCallback.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Area2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Area2D.kt index 6fc04f0104..a30f826963 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Area2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Area2D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.Signal1 import godot.core.Signal4 @@ -25,7 +26,6 @@ import godot.core.VariantParser.STRING_NAME import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -364,144 +364,144 @@ public open class Area2D : CollisionObject2D() { public final fun setGravitySpaceOverrideMode(spaceOverrideMode: SpaceOverride): Unit { TransferContext.writeArguments(LONG to spaceOverrideMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setGravitySpaceOverrideModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGravitySpaceOverrideModePtr, NIL) } public final fun getGravitySpaceOverrideMode(): SpaceOverride { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGravitySpaceOverrideModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getGravitySpaceOverrideModePtr, LONG) return Area2D.SpaceOverride.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setGravityIsPoint(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setGravityIsPointPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGravityIsPointPtr, NIL) } public final fun isGravityAPoint(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isGravityAPointPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isGravityAPointPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setGravityPointUnitDistance(distanceScale: Float): Unit { TransferContext.writeArguments(DOUBLE to distanceScale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setGravityPointUnitDistancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGravityPointUnitDistancePtr, NIL) } public final fun getGravityPointUnitDistance(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGravityPointUnitDistancePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getGravityPointUnitDistancePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setGravityPointCenter(center: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to center) - TransferContext.callMethod(rawPtr, MethodBindings.setGravityPointCenterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGravityPointCenterPtr, NIL) } public final fun getGravityPointCenter(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGravityPointCenterPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getGravityPointCenterPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setGravityDirection(direction: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to direction) - TransferContext.callMethod(rawPtr, MethodBindings.setGravityDirectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGravityDirectionPtr, NIL) } public final fun getGravityDirection(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGravityDirectionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getGravityDirectionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setGravity(gravity: Float): Unit { TransferContext.writeArguments(DOUBLE to gravity.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setGravityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGravityPtr, NIL) } public final fun getGravity(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGravityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getGravityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setLinearDampSpaceOverrideMode(spaceOverrideMode: SpaceOverride): Unit { TransferContext.writeArguments(LONG to spaceOverrideMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setLinearDampSpaceOverrideModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLinearDampSpaceOverrideModePtr, NIL) } public final fun getLinearDampSpaceOverrideMode(): SpaceOverride { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLinearDampSpaceOverrideModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLinearDampSpaceOverrideModePtr, LONG) return Area2D.SpaceOverride.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setAngularDampSpaceOverrideMode(spaceOverrideMode: SpaceOverride): Unit { TransferContext.writeArguments(LONG to spaceOverrideMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setAngularDampSpaceOverrideModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAngularDampSpaceOverrideModePtr, NIL) } public final fun getAngularDampSpaceOverrideMode(): SpaceOverride { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAngularDampSpaceOverrideModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAngularDampSpaceOverrideModePtr, LONG) return Area2D.SpaceOverride.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setLinearDamp(linearDamp: Float): Unit { TransferContext.writeArguments(DOUBLE to linearDamp.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setLinearDampPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLinearDampPtr, NIL) } public final fun getLinearDamp(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLinearDampPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLinearDampPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAngularDamp(angularDamp: Float): Unit { TransferContext.writeArguments(DOUBLE to angularDamp.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAngularDampPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAngularDampPtr, NIL) } public final fun getAngularDamp(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAngularDampPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAngularDampPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setPriority(priority: Int): Unit { TransferContext.writeArguments(LONG to priority.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setPriorityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPriorityPtr, NIL) } public final fun getPriority(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPriorityPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPriorityPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setMonitoring(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setMonitoringPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMonitoringPtr, NIL) } public final fun isMonitoring(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isMonitoringPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isMonitoringPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setMonitorable(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setMonitorablePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMonitorablePtr, NIL) } public final fun isMonitorable(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isMonitorablePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isMonitorablePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -515,7 +515,7 @@ public open class Area2D : CollisionObject2D() { */ public final fun getOverlappingBodies(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOverlappingBodiesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getOverlappingBodiesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -529,7 +529,7 @@ public open class Area2D : CollisionObject2D() { */ public final fun getOverlappingAreas(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOverlappingAreasPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getOverlappingAreasPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -543,7 +543,7 @@ public open class Area2D : CollisionObject2D() { */ public final fun hasOverlappingBodies(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasOverlappingBodiesPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasOverlappingBodiesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -557,7 +557,7 @@ public open class Area2D : CollisionObject2D() { */ public final fun hasOverlappingAreas(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasOverlappingAreasPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasOverlappingAreasPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -572,7 +572,7 @@ public open class Area2D : CollisionObject2D() { */ public final fun overlapsBody(body: Node?): Boolean { TransferContext.writeArguments(OBJECT to body) - TransferContext.callMethod(rawPtr, MethodBindings.overlapsBodyPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.overlapsBodyPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -584,29 +584,29 @@ public open class Area2D : CollisionObject2D() { */ public final fun overlapsArea(area: Node?): Boolean { TransferContext.writeArguments(OBJECT to area) - TransferContext.callMethod(rawPtr, MethodBindings.overlapsAreaPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.overlapsAreaPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAudioBusName(name: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.setAudioBusNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAudioBusNamePtr, NIL) } public final fun getAudioBusName(): StringName { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAudioBusNamePtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getAudioBusNamePtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } public final fun setAudioBusOverride(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setAudioBusOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAudioBusOverridePtr, NIL) } public final fun isOverridingAudioBus(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isOverridingAudioBusPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isOverridingAudioBusPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Area3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Area3D.kt index 6a5c5dbbd0..ce3eb84fb5 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Area3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Area3D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.RID import godot.core.Signal1 @@ -27,7 +28,6 @@ import godot.core.VariantParser.STRING_NAME import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -459,177 +459,177 @@ public open class Area3D : CollisionObject3D() { public final fun setGravitySpaceOverrideMode(spaceOverrideMode: SpaceOverride): Unit { TransferContext.writeArguments(LONG to spaceOverrideMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setGravitySpaceOverrideModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGravitySpaceOverrideModePtr, NIL) } public final fun getGravitySpaceOverrideMode(): SpaceOverride { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGravitySpaceOverrideModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getGravitySpaceOverrideModePtr, LONG) return Area3D.SpaceOverride.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setGravityIsPoint(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setGravityIsPointPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGravityIsPointPtr, NIL) } public final fun isGravityAPoint(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isGravityAPointPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isGravityAPointPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setGravityPointUnitDistance(distanceScale: Float): Unit { TransferContext.writeArguments(DOUBLE to distanceScale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setGravityPointUnitDistancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGravityPointUnitDistancePtr, NIL) } public final fun getGravityPointUnitDistance(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGravityPointUnitDistancePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getGravityPointUnitDistancePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setGravityPointCenter(center: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to center) - TransferContext.callMethod(rawPtr, MethodBindings.setGravityPointCenterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGravityPointCenterPtr, NIL) } public final fun getGravityPointCenter(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGravityPointCenterPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getGravityPointCenterPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setGravityDirection(direction: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to direction) - TransferContext.callMethod(rawPtr, MethodBindings.setGravityDirectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGravityDirectionPtr, NIL) } public final fun getGravityDirection(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGravityDirectionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getGravityDirectionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setGravity(gravity: Float): Unit { TransferContext.writeArguments(DOUBLE to gravity.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setGravityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGravityPtr, NIL) } public final fun getGravity(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGravityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getGravityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setLinearDampSpaceOverrideMode(spaceOverrideMode: SpaceOverride): Unit { TransferContext.writeArguments(LONG to spaceOverrideMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setLinearDampSpaceOverrideModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLinearDampSpaceOverrideModePtr, NIL) } public final fun getLinearDampSpaceOverrideMode(): SpaceOverride { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLinearDampSpaceOverrideModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLinearDampSpaceOverrideModePtr, LONG) return Area3D.SpaceOverride.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setAngularDampSpaceOverrideMode(spaceOverrideMode: SpaceOverride): Unit { TransferContext.writeArguments(LONG to spaceOverrideMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setAngularDampSpaceOverrideModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAngularDampSpaceOverrideModePtr, NIL) } public final fun getAngularDampSpaceOverrideMode(): SpaceOverride { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAngularDampSpaceOverrideModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAngularDampSpaceOverrideModePtr, LONG) return Area3D.SpaceOverride.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setAngularDamp(angularDamp: Float): Unit { TransferContext.writeArguments(DOUBLE to angularDamp.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAngularDampPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAngularDampPtr, NIL) } public final fun getAngularDamp(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAngularDampPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAngularDampPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setLinearDamp(linearDamp: Float): Unit { TransferContext.writeArguments(DOUBLE to linearDamp.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setLinearDampPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLinearDampPtr, NIL) } public final fun getLinearDamp(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLinearDampPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLinearDampPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setPriority(priority: Int): Unit { TransferContext.writeArguments(LONG to priority.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setPriorityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPriorityPtr, NIL) } public final fun getPriority(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPriorityPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPriorityPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setWindForceMagnitude(windForceMagnitude: Float): Unit { TransferContext.writeArguments(DOUBLE to windForceMagnitude.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setWindForceMagnitudePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setWindForceMagnitudePtr, NIL) } public final fun getWindForceMagnitude(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWindForceMagnitudePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getWindForceMagnitudePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setWindAttenuationFactor(windAttenuationFactor: Float): Unit { TransferContext.writeArguments(DOUBLE to windAttenuationFactor.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setWindAttenuationFactorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setWindAttenuationFactorPtr, NIL) } public final fun getWindAttenuationFactor(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWindAttenuationFactorPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getWindAttenuationFactorPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setWindSourcePath(windSourcePath: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to windSourcePath) - TransferContext.callMethod(rawPtr, MethodBindings.setWindSourcePathPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setWindSourcePathPtr, NIL) } public final fun getWindSourcePath(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWindSourcePathPtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getWindSourcePathPtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } public final fun setMonitorable(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setMonitorablePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMonitorablePtr, NIL) } public final fun isMonitorable(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isMonitorablePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isMonitorablePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setMonitoring(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setMonitoringPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMonitoringPtr, NIL) } public final fun isMonitoring(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isMonitoringPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isMonitoringPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -643,7 +643,7 @@ public open class Area3D : CollisionObject3D() { */ public final fun getOverlappingBodies(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOverlappingBodiesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getOverlappingBodiesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -657,7 +657,7 @@ public open class Area3D : CollisionObject3D() { */ public final fun getOverlappingAreas(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOverlappingAreasPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getOverlappingAreasPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -671,7 +671,7 @@ public open class Area3D : CollisionObject3D() { */ public final fun hasOverlappingBodies(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasOverlappingBodiesPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasOverlappingBodiesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -685,7 +685,7 @@ public open class Area3D : CollisionObject3D() { */ public final fun hasOverlappingAreas(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasOverlappingAreasPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasOverlappingAreasPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -700,7 +700,7 @@ public open class Area3D : CollisionObject3D() { */ public final fun overlapsBody(body: Node?): Boolean { TransferContext.writeArguments(OBJECT to body) - TransferContext.callMethod(rawPtr, MethodBindings.overlapsBodyPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.overlapsBodyPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -711,73 +711,73 @@ public open class Area3D : CollisionObject3D() { */ public final fun overlapsArea(area: Node?): Boolean { TransferContext.writeArguments(OBJECT to area) - TransferContext.callMethod(rawPtr, MethodBindings.overlapsAreaPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.overlapsAreaPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAudioBusOverride(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setAudioBusOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAudioBusOverridePtr, NIL) } public final fun isOverridingAudioBus(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isOverridingAudioBusPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isOverridingAudioBusPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAudioBusName(name: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.setAudioBusNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAudioBusNamePtr, NIL) } public final fun getAudioBusName(): StringName { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAudioBusNamePtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getAudioBusNamePtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } public final fun setUseReverbBus(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setUseReverbBusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseReverbBusPtr, NIL) } public final fun isUsingReverbBus(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUsingReverbBusPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUsingReverbBusPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setReverbBusName(name: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.setReverbBusNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setReverbBusNamePtr, NIL) } public final fun getReverbBusName(): StringName { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getReverbBusNamePtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getReverbBusNamePtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } public final fun setReverbAmount(amount: Float): Unit { TransferContext.writeArguments(DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setReverbAmountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setReverbAmountPtr, NIL) } public final fun getReverbAmount(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getReverbAmountPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getReverbAmountPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setReverbUniformity(amount: Float): Unit { TransferContext.writeArguments(DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setReverbUniformityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setReverbUniformityPtr, NIL) } public final fun getReverbUniformity(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getReverbUniformityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getReverbUniformityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ArrayMesh.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ArrayMesh.kt index 029f84623f..f8725a8370 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ArrayMesh.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ArrayMesh.kt @@ -10,6 +10,7 @@ import godot.Mesh.ArrayFormatValue import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.AABB import godot.core.Dictionary import godot.core.PackedByteArray @@ -28,7 +29,6 @@ import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME import godot.core.VariantParser.TRANSFORM3D import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Float import kotlin.Int @@ -164,7 +164,7 @@ public open class ArrayMesh : Mesh() { */ public final fun addBlendShape(name: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.addBlendShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addBlendShapePtr, NIL) } /** @@ -172,7 +172,7 @@ public open class ArrayMesh : Mesh() { */ public final fun getBlendShapeCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBlendShapeCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBlendShapeCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -181,7 +181,7 @@ public open class ArrayMesh : Mesh() { */ public final fun getBlendShapeName(index: Int): StringName { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBlendShapeNamePtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getBlendShapeNamePtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } @@ -190,7 +190,7 @@ public open class ArrayMesh : Mesh() { */ public final fun setBlendShapeName(index: Int, name: StringName): Unit { TransferContext.writeArguments(LONG to index.toLong(), STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.setBlendShapeNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBlendShapeNamePtr, NIL) } /** @@ -198,17 +198,17 @@ public open class ArrayMesh : Mesh() { */ public final fun clearBlendShapes(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearBlendShapesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearBlendShapesPtr, NIL) } public final fun setBlendShapeMode(mode: Mesh.BlendShapeMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setBlendShapeModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBlendShapeModePtr, NIL) } public final fun getBlendShapeMode(): Mesh.BlendShapeMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBlendShapeModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBlendShapeModePtr, LONG) return Mesh.BlendShapeMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -249,7 +249,7 @@ public open class ArrayMesh : Mesh() { flags: Mesh.ArrayFormat = Mesh.ArrayFormatValue(0), ): Unit { TransferContext.writeArguments(LONG to primitive.id, ARRAY to arrays, ARRAY to blendShapes, DICTIONARY to lods, LONG to flags.flag) - TransferContext.callMethod(rawPtr, MethodBindings.addSurfaceFromArraysPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addSurfaceFromArraysPtr, NIL) } /** @@ -257,7 +257,7 @@ public open class ArrayMesh : Mesh() { */ public final fun clearSurfaces(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearSurfacesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearSurfacesPtr, NIL) } public final fun surfaceUpdateVertexRegion( @@ -266,7 +266,7 @@ public open class ArrayMesh : Mesh() { `data`: PackedByteArray, ): Unit { TransferContext.writeArguments(LONG to surfIdx.toLong(), LONG to offset.toLong(), PACKED_BYTE_ARRAY to data) - TransferContext.callMethod(rawPtr, MethodBindings.surfaceUpdateVertexRegionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.surfaceUpdateVertexRegionPtr, NIL) } public final fun surfaceUpdateAttributeRegion( @@ -275,7 +275,7 @@ public open class ArrayMesh : Mesh() { `data`: PackedByteArray, ): Unit { TransferContext.writeArguments(LONG to surfIdx.toLong(), LONG to offset.toLong(), PACKED_BYTE_ARRAY to data) - TransferContext.callMethod(rawPtr, MethodBindings.surfaceUpdateAttributeRegionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.surfaceUpdateAttributeRegionPtr, NIL) } public final fun surfaceUpdateSkinRegion( @@ -284,7 +284,7 @@ public open class ArrayMesh : Mesh() { `data`: PackedByteArray, ): Unit { TransferContext.writeArguments(LONG to surfIdx.toLong(), LONG to offset.toLong(), PACKED_BYTE_ARRAY to data) - TransferContext.callMethod(rawPtr, MethodBindings.surfaceUpdateSkinRegionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.surfaceUpdateSkinRegionPtr, NIL) } /** @@ -293,7 +293,7 @@ public open class ArrayMesh : Mesh() { */ public final fun surfaceGetArrayLen(surfIdx: Int): Int { TransferContext.writeArguments(LONG to surfIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.surfaceGetArrayLenPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.surfaceGetArrayLenPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -303,7 +303,7 @@ public open class ArrayMesh : Mesh() { */ public final fun surfaceGetArrayIndexLen(surfIdx: Int): Int { TransferContext.writeArguments(LONG to surfIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.surfaceGetArrayIndexLenPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.surfaceGetArrayIndexLenPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -312,7 +312,7 @@ public open class ArrayMesh : Mesh() { */ public final fun surfaceGetFormat(surfIdx: Int): Mesh.ArrayFormat { TransferContext.writeArguments(LONG to surfIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.surfaceGetFormatPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.surfaceGetFormatPtr, LONG) return ArrayFormatValue(TransferContext.readReturnValue(LONG) as Long) } @@ -321,7 +321,7 @@ public open class ArrayMesh : Mesh() { */ public final fun surfaceGetPrimitiveType(surfIdx: Int): Mesh.PrimitiveType { TransferContext.writeArguments(LONG to surfIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.surfaceGetPrimitiveTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.surfaceGetPrimitiveTypePtr, LONG) return Mesh.PrimitiveType.from(TransferContext.readReturnValue(LONG) as Long) } @@ -331,7 +331,7 @@ public open class ArrayMesh : Mesh() { */ public final fun surfaceFindByName(name: String): Int { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.surfaceFindByNamePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.surfaceFindByNamePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -340,7 +340,7 @@ public open class ArrayMesh : Mesh() { */ public final fun surfaceSetName(surfIdx: Int, name: String): Unit { TransferContext.writeArguments(LONG to surfIdx.toLong(), STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.surfaceSetNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.surfaceSetNamePtr, NIL) } /** @@ -348,7 +348,7 @@ public open class ArrayMesh : Mesh() { */ public final fun surfaceGetName(surfIdx: Int): String { TransferContext.writeArguments(LONG to surfIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.surfaceGetNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.surfaceGetNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -357,7 +357,7 @@ public open class ArrayMesh : Mesh() { */ public final fun regenNormalMaps(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.regenNormalMapsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.regenNormalMapsPtr, NIL) } /** @@ -365,30 +365,29 @@ public open class ArrayMesh : Mesh() { */ public final fun lightmapUnwrap(transform: Transform3D, texelSize: Float): Error { TransferContext.writeArguments(TRANSFORM3D to transform, DOUBLE to texelSize.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.lightmapUnwrapPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.lightmapUnwrapPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setCustomAabb(aabb: AABB): Unit { TransferContext.writeArguments(godot.core.VariantParser.AABB to aabb) - TransferContext.callMethod(rawPtr, MethodBindings.setCustomAabbPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCustomAabbPtr, NIL) } public final fun getCustomAabb(): AABB { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCustomAabbPtr, - godot.core.VariantParser.AABB) + TransferContext.callMethod(ptr, MethodBindings.getCustomAabbPtr, godot.core.VariantParser.AABB) return (TransferContext.readReturnValue(godot.core.VariantParser.AABB) as AABB) } public final fun setShadowMesh(mesh: ArrayMesh?): Unit { TransferContext.writeArguments(OBJECT to mesh) - TransferContext.callMethod(rawPtr, MethodBindings.setShadowMeshPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShadowMeshPtr, NIL) } public final fun getShadowMesh(): ArrayMesh? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getShadowMeshPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getShadowMeshPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as ArrayMesh?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ArrayOccluder3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ArrayOccluder3D.kt index 13f0ad15b1..9b2e463491 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ArrayOccluder3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ArrayOccluder3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedInt32Array import godot.core.PackedVector3Array import godot.core.TypeManager @@ -14,7 +15,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_INT_32_ARRAY import godot.core.VariantParser.PACKED_VECTOR3_ARRAY import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -66,17 +66,17 @@ public open class ArrayOccluder3D : Occluder3D() { */ public final fun setArrays(vertices: PackedVector3Array, indices: PackedInt32Array): Unit { TransferContext.writeArguments(PACKED_VECTOR3_ARRAY to vertices, PACKED_INT_32_ARRAY to indices) - TransferContext.callMethod(rawPtr, MethodBindings.setArraysPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setArraysPtr, NIL) } public final fun setVertices(vertices: PackedVector3Array): Unit { TransferContext.writeArguments(PACKED_VECTOR3_ARRAY to vertices) - TransferContext.callMethod(rawPtr, MethodBindings.setVerticesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVerticesPtr, NIL) } public final fun setIndices(indices: PackedInt32Array): Unit { TransferContext.writeArguments(PACKED_INT_32_ARRAY to indices) - TransferContext.callMethod(rawPtr, MethodBindings.setIndicesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIndicesPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AspectRatioContainer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AspectRatioContainer.kt index 815b96d2c2..96da57a8a8 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AspectRatioContainer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AspectRatioContainer.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -79,45 +79,45 @@ public open class AspectRatioContainer : Container() { public final fun setRatio(ratio: Float): Unit { TransferContext.writeArguments(DOUBLE to ratio.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRatioPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRatioPtr, NIL) } public final fun getRatio(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRatioPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRatioPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setStretchMode(stretchMode: StretchMode): Unit { TransferContext.writeArguments(LONG to stretchMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setStretchModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStretchModePtr, NIL) } public final fun getStretchMode(): StretchMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStretchModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getStretchModePtr, LONG) return AspectRatioContainer.StretchMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setAlignmentHorizontal(alignmentHorizontal: AlignmentMode): Unit { TransferContext.writeArguments(LONG to alignmentHorizontal.id) - TransferContext.callMethod(rawPtr, MethodBindings.setAlignmentHorizontalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAlignmentHorizontalPtr, NIL) } public final fun getAlignmentHorizontal(): AlignmentMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAlignmentHorizontalPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAlignmentHorizontalPtr, LONG) return AspectRatioContainer.AlignmentMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setAlignmentVertical(alignmentVertical: AlignmentMode): Unit { TransferContext.writeArguments(LONG to alignmentVertical.id) - TransferContext.callMethod(rawPtr, MethodBindings.setAlignmentVerticalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAlignmentVerticalPtr, NIL) } public final fun getAlignmentVertical(): AlignmentMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAlignmentVerticalPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAlignmentVerticalPtr, LONG) return AspectRatioContainer.AlignmentMode.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AtlasTexture.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AtlasTexture.kt index d643bb3692..200cb2253f 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AtlasTexture.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AtlasTexture.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Rect2 import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -16,7 +17,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.RECT2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -141,45 +141,45 @@ public open class AtlasTexture : Texture2D() { public final fun setAtlas(atlas: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to atlas) - TransferContext.callMethod(rawPtr, MethodBindings.setAtlasPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAtlasPtr, NIL) } public final fun getAtlas(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAtlasPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getAtlasPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } public final fun setRegion(region: Rect2): Unit { TransferContext.writeArguments(RECT2 to region) - TransferContext.callMethod(rawPtr, MethodBindings.setRegionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRegionPtr, NIL) } public final fun getRegion(): Rect2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRegionPtr, RECT2) + TransferContext.callMethod(ptr, MethodBindings.getRegionPtr, RECT2) return (TransferContext.readReturnValue(RECT2) as Rect2) } public final fun setMargin(margin: Rect2): Unit { TransferContext.writeArguments(RECT2 to margin) - TransferContext.callMethod(rawPtr, MethodBindings.setMarginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMarginPtr, NIL) } public final fun getMargin(): Rect2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMarginPtr, RECT2) + TransferContext.callMethod(ptr, MethodBindings.getMarginPtr, RECT2) return (TransferContext.readReturnValue(RECT2) as Rect2) } public final fun setFilterClip(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setFilterClipPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFilterClipPtr, NIL) } public final fun hasFilterClip(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasFilterClipPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasFilterClipPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectAmplify.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectAmplify.kt index c62db34c42..6fd4d2b945 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectAmplify.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectAmplify.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -42,12 +42,12 @@ public open class AudioEffectAmplify : AudioEffect() { public final fun setVolumeDb(volume: Float): Unit { TransferContext.writeArguments(DOUBLE to volume.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVolumeDbPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVolumeDbPtr, NIL) } public final fun getVolumeDb(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVolumeDbPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVolumeDbPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectCapture.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectCapture.kt index be43f189b0..eff2806fdf 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectCapture.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectCapture.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedVector2Array import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -15,7 +16,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_VECTOR2_ARRAY import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -59,7 +59,7 @@ public open class AudioEffectCapture : AudioEffect() { */ public final fun canGetBuffer(frames: Int): Boolean { TransferContext.writeArguments(LONG to frames.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.canGetBufferPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.canGetBufferPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -72,7 +72,7 @@ public open class AudioEffectCapture : AudioEffect() { */ public final fun getBuffer(frames: Int): PackedVector2Array { TransferContext.writeArguments(LONG to frames.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBufferPtr, PACKED_VECTOR2_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getBufferPtr, PACKED_VECTOR2_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR2_ARRAY) as PackedVector2Array) } @@ -83,17 +83,17 @@ public open class AudioEffectCapture : AudioEffect() { */ public final fun clearBuffer(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearBufferPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearBufferPtr, NIL) } public final fun setBufferLength(bufferLengthSeconds: Float): Unit { TransferContext.writeArguments(DOUBLE to bufferLengthSeconds.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setBufferLengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBufferLengthPtr, NIL) } public final fun getBufferLength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBufferLengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getBufferLengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -102,7 +102,7 @@ public open class AudioEffectCapture : AudioEffect() { */ public final fun getFramesAvailable(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFramesAvailablePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFramesAvailablePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -111,7 +111,7 @@ public open class AudioEffectCapture : AudioEffect() { */ public final fun getDiscardedFrames(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDiscardedFramesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDiscardedFramesPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -120,7 +120,7 @@ public open class AudioEffectCapture : AudioEffect() { */ public final fun getBufferLengthFrames(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBufferLengthFramesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBufferLengthFramesPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -129,7 +129,7 @@ public open class AudioEffectCapture : AudioEffect() { */ public final fun getPushedFrames(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPushedFramesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPushedFramesPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectChorus.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectChorus.kt index 3998060593..8d30dbf966 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectChorus.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectChorus.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -66,100 +66,100 @@ public open class AudioEffectChorus : AudioEffect() { public final fun setVoiceCount(voices: Int): Unit { TransferContext.writeArguments(LONG to voices.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setVoiceCountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVoiceCountPtr, NIL) } public final fun getVoiceCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVoiceCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVoiceCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setVoiceDelayMs(voiceIdx: Int, delayMs: Float): Unit { TransferContext.writeArguments(LONG to voiceIdx.toLong(), DOUBLE to delayMs.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVoiceDelayMsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVoiceDelayMsPtr, NIL) } public final fun getVoiceDelayMs(voiceIdx: Int): Float { TransferContext.writeArguments(LONG to voiceIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getVoiceDelayMsPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVoiceDelayMsPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVoiceRateHz(voiceIdx: Int, rateHz: Float): Unit { TransferContext.writeArguments(LONG to voiceIdx.toLong(), DOUBLE to rateHz.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVoiceRateHzPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVoiceRateHzPtr, NIL) } public final fun getVoiceRateHz(voiceIdx: Int): Float { TransferContext.writeArguments(LONG to voiceIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getVoiceRateHzPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVoiceRateHzPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVoiceDepthMs(voiceIdx: Int, depthMs: Float): Unit { TransferContext.writeArguments(LONG to voiceIdx.toLong(), DOUBLE to depthMs.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVoiceDepthMsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVoiceDepthMsPtr, NIL) } public final fun getVoiceDepthMs(voiceIdx: Int): Float { TransferContext.writeArguments(LONG to voiceIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getVoiceDepthMsPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVoiceDepthMsPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVoiceLevelDb(voiceIdx: Int, levelDb: Float): Unit { TransferContext.writeArguments(LONG to voiceIdx.toLong(), DOUBLE to levelDb.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVoiceLevelDbPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVoiceLevelDbPtr, NIL) } public final fun getVoiceLevelDb(voiceIdx: Int): Float { TransferContext.writeArguments(LONG to voiceIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getVoiceLevelDbPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVoiceLevelDbPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVoiceCutoffHz(voiceIdx: Int, cutoffHz: Float): Unit { TransferContext.writeArguments(LONG to voiceIdx.toLong(), DOUBLE to cutoffHz.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVoiceCutoffHzPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVoiceCutoffHzPtr, NIL) } public final fun getVoiceCutoffHz(voiceIdx: Int): Float { TransferContext.writeArguments(LONG to voiceIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getVoiceCutoffHzPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVoiceCutoffHzPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVoicePan(voiceIdx: Int, pan: Float): Unit { TransferContext.writeArguments(LONG to voiceIdx.toLong(), DOUBLE to pan.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVoicePanPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVoicePanPtr, NIL) } public final fun getVoicePan(voiceIdx: Int): Float { TransferContext.writeArguments(LONG to voiceIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getVoicePanPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVoicePanPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setWet(amount: Float): Unit { TransferContext.writeArguments(DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setWetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setWetPtr, NIL) } public final fun getWet(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWetPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getWetPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDry(amount: Float): Unit { TransferContext.writeArguments(DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDryPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDryPtr, NIL) } public final fun getDry(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDryPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDryPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectCompressor.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectCompressor.kt index 0905863bd7..b478e0e90f 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectCompressor.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectCompressor.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.StringName import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -123,78 +123,78 @@ public open class AudioEffectCompressor : AudioEffect() { public final fun setThreshold(threshold: Float): Unit { TransferContext.writeArguments(DOUBLE to threshold.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setThresholdPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setThresholdPtr, NIL) } public final fun getThreshold(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getThresholdPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getThresholdPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setRatio(ratio: Float): Unit { TransferContext.writeArguments(DOUBLE to ratio.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRatioPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRatioPtr, NIL) } public final fun getRatio(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRatioPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRatioPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setGain(gain: Float): Unit { TransferContext.writeArguments(DOUBLE to gain.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setGainPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGainPtr, NIL) } public final fun getGain(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGainPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getGainPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAttackUs(attackUs: Float): Unit { TransferContext.writeArguments(DOUBLE to attackUs.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAttackUsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAttackUsPtr, NIL) } public final fun getAttackUs(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAttackUsPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAttackUsPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setReleaseMs(releaseMs: Float): Unit { TransferContext.writeArguments(DOUBLE to releaseMs.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setReleaseMsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setReleaseMsPtr, NIL) } public final fun getReleaseMs(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getReleaseMsPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getReleaseMsPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setMix(mix: Float): Unit { TransferContext.writeArguments(DOUBLE to mix.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMixPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMixPtr, NIL) } public final fun getMix(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMixPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMixPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSidechain(sidechain: StringName): Unit { TransferContext.writeArguments(STRING_NAME to sidechain) - TransferContext.callMethod(rawPtr, MethodBindings.setSidechainPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSidechainPtr, NIL) } public final fun getSidechain(): StringName { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSidechainPtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getSidechainPtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectDelay.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectDelay.kt index 129737a9e2..68bdb93db2 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectDelay.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectDelay.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -179,144 +179,144 @@ public open class AudioEffectDelay : AudioEffect() { public final fun setDry(amount: Float): Unit { TransferContext.writeArguments(DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDryPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDryPtr, NIL) } public final fun getDry(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDryPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDryPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setTap1Active(amount: Boolean): Unit { TransferContext.writeArguments(BOOL to amount) - TransferContext.callMethod(rawPtr, MethodBindings.setTap1ActivePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTap1ActivePtr, NIL) } public final fun isTap1Active(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isTap1ActivePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isTap1ActivePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setTap1DelayMs(amount: Float): Unit { TransferContext.writeArguments(DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTap1DelayMsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTap1DelayMsPtr, NIL) } public final fun getTap1DelayMs(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTap1DelayMsPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTap1DelayMsPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setTap1LevelDb(amount: Float): Unit { TransferContext.writeArguments(DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTap1LevelDbPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTap1LevelDbPtr, NIL) } public final fun getTap1LevelDb(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTap1LevelDbPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTap1LevelDbPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setTap1Pan(amount: Float): Unit { TransferContext.writeArguments(DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTap1PanPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTap1PanPtr, NIL) } public final fun getTap1Pan(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTap1PanPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTap1PanPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setTap2Active(amount: Boolean): Unit { TransferContext.writeArguments(BOOL to amount) - TransferContext.callMethod(rawPtr, MethodBindings.setTap2ActivePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTap2ActivePtr, NIL) } public final fun isTap2Active(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isTap2ActivePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isTap2ActivePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setTap2DelayMs(amount: Float): Unit { TransferContext.writeArguments(DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTap2DelayMsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTap2DelayMsPtr, NIL) } public final fun getTap2DelayMs(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTap2DelayMsPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTap2DelayMsPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setTap2LevelDb(amount: Float): Unit { TransferContext.writeArguments(DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTap2LevelDbPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTap2LevelDbPtr, NIL) } public final fun getTap2LevelDb(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTap2LevelDbPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTap2LevelDbPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setTap2Pan(amount: Float): Unit { TransferContext.writeArguments(DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTap2PanPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTap2PanPtr, NIL) } public final fun getTap2Pan(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTap2PanPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTap2PanPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setFeedbackActive(amount: Boolean): Unit { TransferContext.writeArguments(BOOL to amount) - TransferContext.callMethod(rawPtr, MethodBindings.setFeedbackActivePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFeedbackActivePtr, NIL) } public final fun isFeedbackActive(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isFeedbackActivePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isFeedbackActivePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setFeedbackDelayMs(amount: Float): Unit { TransferContext.writeArguments(DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFeedbackDelayMsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFeedbackDelayMsPtr, NIL) } public final fun getFeedbackDelayMs(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFeedbackDelayMsPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFeedbackDelayMsPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setFeedbackLevelDb(amount: Float): Unit { TransferContext.writeArguments(DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFeedbackLevelDbPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFeedbackLevelDbPtr, NIL) } public final fun getFeedbackLevelDb(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFeedbackLevelDbPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFeedbackLevelDbPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setFeedbackLowpass(amount: Float): Unit { TransferContext.writeArguments(DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFeedbackLowpassPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFeedbackLowpassPtr, NIL) } public final fun getFeedbackLowpass(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFeedbackLowpassPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFeedbackLowpassPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectDistortion.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectDistortion.kt index 2f83f03f0b..af43e2aa34 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectDistortion.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectDistortion.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -93,56 +93,56 @@ public open class AudioEffectDistortion : AudioEffect() { public final fun setMode(mode: Mode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setModePtr, NIL) } public final fun getMode(): Mode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getModePtr, LONG) return AudioEffectDistortion.Mode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setPreGain(preGain: Float): Unit { TransferContext.writeArguments(DOUBLE to preGain.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPreGainPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPreGainPtr, NIL) } public final fun getPreGain(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPreGainPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPreGainPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setKeepHfHz(keepHfHz: Float): Unit { TransferContext.writeArguments(DOUBLE to keepHfHz.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setKeepHfHzPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setKeepHfHzPtr, NIL) } public final fun getKeepHfHz(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getKeepHfHzPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getKeepHfHzPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDrive(drive: Float): Unit { TransferContext.writeArguments(DOUBLE to drive.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDrivePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDrivePtr, NIL) } public final fun getDrive(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDrivePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDrivePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setPostGain(postGain: Float): Unit { TransferContext.writeArguments(DOUBLE to postGain.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPostGainPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPostGainPtr, NIL) } public final fun getPostGain(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPostGainPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPostGainPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectEQ.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectEQ.kt index 35219dfe70..b271445418 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectEQ.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectEQ.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -37,7 +37,7 @@ public open class AudioEffectEQ : AudioEffect() { */ public final fun setBandGainDb(bandIdx: Int, volumeDb: Float): Unit { TransferContext.writeArguments(LONG to bandIdx.toLong(), DOUBLE to volumeDb.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setBandGainDbPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBandGainDbPtr, NIL) } /** @@ -45,7 +45,7 @@ public open class AudioEffectEQ : AudioEffect() { */ public final fun getBandGainDb(bandIdx: Int): Float { TransferContext.writeArguments(LONG to bandIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBandGainDbPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getBandGainDbPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -54,7 +54,7 @@ public open class AudioEffectEQ : AudioEffect() { */ public final fun getBandCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBandCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBandCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectFilter.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectFilter.kt index 3518a30822..17df559c97 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectFilter.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectFilter.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -73,45 +73,45 @@ public open class AudioEffectFilter : AudioEffect() { public final fun setCutoff(freq: Float): Unit { TransferContext.writeArguments(DOUBLE to freq.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setCutoffPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCutoffPtr, NIL) } public final fun getCutoff(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCutoffPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCutoffPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setResonance(amount: Float): Unit { TransferContext.writeArguments(DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setResonancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setResonancePtr, NIL) } public final fun getResonance(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getResonancePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getResonancePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setGain(amount: Float): Unit { TransferContext.writeArguments(DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setGainPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGainPtr, NIL) } public final fun getGain(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGainPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getGainPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDb(amount: FilterDB): Unit { TransferContext.writeArguments(LONG to amount.id) - TransferContext.callMethod(rawPtr, MethodBindings.setDbPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDbPtr, NIL) } public final fun getDb(): FilterDB { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDbPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDbPtr, LONG) return AudioEffectFilter.FilterDB.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectHardLimiter.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectHardLimiter.kt index 13399bff7f..cdabedd14f 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectHardLimiter.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectHardLimiter.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -69,34 +69,34 @@ public open class AudioEffectHardLimiter : AudioEffect() { public final fun setCeilingDb(ceiling: Float): Unit { TransferContext.writeArguments(DOUBLE to ceiling.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setCeilingDbPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCeilingDbPtr, NIL) } public final fun getCeilingDb(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCeilingDbPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCeilingDbPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setPreGainDb(pPreGain: Float): Unit { TransferContext.writeArguments(DOUBLE to pPreGain.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPreGainDbPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPreGainDbPtr, NIL) } public final fun getPreGainDb(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPreGainDbPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPreGainDbPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setRelease(pRelease: Float): Unit { TransferContext.writeArguments(DOUBLE to pRelease.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setReleasePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setReleasePtr, NIL) } public final fun getRelease(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getReleasePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getReleasePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectLimiter.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectLimiter.kt index 03b190eca7..108ff9eff4 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectLimiter.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectLimiter.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -76,45 +76,45 @@ public open class AudioEffectLimiter : AudioEffect() { public final fun setCeilingDb(ceiling: Float): Unit { TransferContext.writeArguments(DOUBLE to ceiling.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setCeilingDbPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCeilingDbPtr, NIL) } public final fun getCeilingDb(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCeilingDbPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCeilingDbPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setThresholdDb(threshold: Float): Unit { TransferContext.writeArguments(DOUBLE to threshold.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setThresholdDbPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setThresholdDbPtr, NIL) } public final fun getThresholdDb(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getThresholdDbPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getThresholdDbPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSoftClipDb(softClip: Float): Unit { TransferContext.writeArguments(DOUBLE to softClip.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSoftClipDbPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSoftClipDbPtr, NIL) } public final fun getSoftClipDb(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSoftClipDbPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSoftClipDbPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSoftClipRatio(softClip: Float): Unit { TransferContext.writeArguments(DOUBLE to softClip.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSoftClipRatioPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSoftClipRatioPtr, NIL) } public final fun getSoftClipRatio(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSoftClipRatioPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSoftClipRatioPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectPanner.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectPanner.kt index 86318a325a..c41f669c48 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectPanner.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectPanner.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -41,12 +41,12 @@ public open class AudioEffectPanner : AudioEffect() { public final fun setPan(cpanume: Float): Unit { TransferContext.writeArguments(DOUBLE to cpanume.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPanPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPanPtr, NIL) } public final fun getPan(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPanPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPanPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectPhaser.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectPhaser.kt index 5e9a8de4ff..50ab280e05 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectPhaser.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectPhaser.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -89,56 +89,56 @@ public open class AudioEffectPhaser : AudioEffect() { public final fun setRangeMinHz(hz: Float): Unit { TransferContext.writeArguments(DOUBLE to hz.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRangeMinHzPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRangeMinHzPtr, NIL) } public final fun getRangeMinHz(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRangeMinHzPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRangeMinHzPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setRangeMaxHz(hz: Float): Unit { TransferContext.writeArguments(DOUBLE to hz.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRangeMaxHzPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRangeMaxHzPtr, NIL) } public final fun getRangeMaxHz(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRangeMaxHzPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRangeMaxHzPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setRateHz(hz: Float): Unit { TransferContext.writeArguments(DOUBLE to hz.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRateHzPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRateHzPtr, NIL) } public final fun getRateHz(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRateHzPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRateHzPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setFeedback(fbk: Float): Unit { TransferContext.writeArguments(DOUBLE to fbk.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFeedbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFeedbackPtr, NIL) } public final fun getFeedback(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFeedbackPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFeedbackPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDepth(depth: Float): Unit { TransferContext.writeArguments(DOUBLE to depth.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDepthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDepthPtr, NIL) } public final fun getDepth(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDepthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDepthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectPitchShift.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectPitchShift.kt index f0de2b064b..fa336b8460 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectPitchShift.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectPitchShift.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -72,34 +72,34 @@ public open class AudioEffectPitchShift : AudioEffect() { public final fun setPitchScale(rate: Float): Unit { TransferContext.writeArguments(DOUBLE to rate.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPitchScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPitchScalePtr, NIL) } public final fun getPitchScale(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPitchScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPitchScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setOversampling(amount: Int): Unit { TransferContext.writeArguments(LONG to amount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setOversamplingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOversamplingPtr, NIL) } public final fun getOversampling(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOversamplingPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOversamplingPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setFftSize(size: FFTSize): Unit { TransferContext.writeArguments(LONG to size.id) - TransferContext.callMethod(rawPtr, MethodBindings.setFftSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFftSizePtr, NIL) } public final fun getFftSize(): FFTSize { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFftSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFftSizePtr, LONG) return AudioEffectPitchShift.FFTSize.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectRecord.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectRecord.kt index d5938671bb..fce1ccbb6b 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectRecord.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectRecord.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -55,7 +55,7 @@ public open class AudioEffectRecord : AudioEffect() { */ public final fun setRecordingActive(record: Boolean): Unit { TransferContext.writeArguments(BOOL to record) - TransferContext.callMethod(rawPtr, MethodBindings.setRecordingActivePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRecordingActivePtr, NIL) } /** @@ -63,18 +63,18 @@ public open class AudioEffectRecord : AudioEffect() { */ public final fun isRecordingActive(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isRecordingActivePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isRecordingActivePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setFormat(format: AudioStreamWAV.Format): Unit { TransferContext.writeArguments(LONG to format.id) - TransferContext.callMethod(rawPtr, MethodBindings.setFormatPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFormatPtr, NIL) } public final fun getFormat(): AudioStreamWAV.Format { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFormatPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFormatPtr, LONG) return AudioStreamWAV.Format.from(TransferContext.readReturnValue(LONG) as Long) } @@ -83,7 +83,7 @@ public open class AudioEffectRecord : AudioEffect() { */ public final fun getRecording(): AudioStreamWAV? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRecordingPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getRecordingPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as AudioStreamWAV?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectReverb.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectReverb.kt index 7034a3222e..e824730bc9 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectReverb.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectReverb.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -124,89 +124,89 @@ public open class AudioEffectReverb : AudioEffect() { public final fun setPredelayMsec(msec: Float): Unit { TransferContext.writeArguments(DOUBLE to msec.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPredelayMsecPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPredelayMsecPtr, NIL) } public final fun getPredelayMsec(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPredelayMsecPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPredelayMsecPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setPredelayFeedback(feedback: Float): Unit { TransferContext.writeArguments(DOUBLE to feedback.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPredelayFeedbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPredelayFeedbackPtr, NIL) } public final fun getPredelayFeedback(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPredelayFeedbackPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPredelayFeedbackPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setRoomSize(size: Float): Unit { TransferContext.writeArguments(DOUBLE to size.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRoomSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRoomSizePtr, NIL) } public final fun getRoomSize(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRoomSizePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRoomSizePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDamping(amount: Float): Unit { TransferContext.writeArguments(DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDampingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDampingPtr, NIL) } public final fun getDamping(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDampingPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDampingPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSpread(amount: Float): Unit { TransferContext.writeArguments(DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSpreadPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSpreadPtr, NIL) } public final fun getSpread(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSpreadPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSpreadPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDry(amount: Float): Unit { TransferContext.writeArguments(DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDryPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDryPtr, NIL) } public final fun getDry(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDryPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDryPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setWet(amount: Float): Unit { TransferContext.writeArguments(DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setWetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setWetPtr, NIL) } public final fun getWet(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWetPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getWetPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setHpf(amount: Float): Unit { TransferContext.writeArguments(DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setHpfPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHpfPtr, NIL) } public final fun getHpf(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHpfPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getHpfPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectSpectrumAnalyzer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectSpectrumAnalyzer.kt index 0dc5924562..d0c44162ee 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectSpectrumAnalyzer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectSpectrumAnalyzer.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -70,34 +70,34 @@ public open class AudioEffectSpectrumAnalyzer : AudioEffect() { public final fun setBufferLength(seconds: Float): Unit { TransferContext.writeArguments(DOUBLE to seconds.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setBufferLengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBufferLengthPtr, NIL) } public final fun getBufferLength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBufferLengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getBufferLengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setTapBackPos(seconds: Float): Unit { TransferContext.writeArguments(DOUBLE to seconds.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTapBackPosPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTapBackPosPtr, NIL) } public final fun getTapBackPos(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTapBackPosPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTapBackPosPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setFftSize(size: FFTSize): Unit { TransferContext.writeArguments(LONG to size.id) - TransferContext.callMethod(rawPtr, MethodBindings.setFftSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFftSizePtr, NIL) } public final fun getFftSize(): FFTSize { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFftSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFftSizePtr, LONG) return AudioEffectSpectrumAnalyzer.FFTSize.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectSpectrumAnalyzerInstance.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectSpectrumAnalyzerInstance.kt index fb61eab87c..d6696b7191 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectSpectrumAnalyzerInstance.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectSpectrumAnalyzerInstance.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Float import kotlin.Int import kotlin.Long @@ -46,7 +46,7 @@ public open class AudioEffectSpectrumAnalyzerInstance internal constructor() : A mode: MagnitudeMode = AudioEffectSpectrumAnalyzerInstance.MagnitudeMode.MAGNITUDE_MAX, ): Vector2 { TransferContext.writeArguments(DOUBLE to fromHz.toDouble(), DOUBLE to toHz.toDouble(), LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.getMagnitudeForFrequencyRangePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getMagnitudeForFrequencyRangePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectStereoEnhance.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectStereoEnhance.kt index e031d9c326..52b080e7d1 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectStereoEnhance.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioEffectStereoEnhance.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -59,34 +59,34 @@ public open class AudioEffectStereoEnhance : AudioEffect() { public final fun setPanPullout(amount: Float): Unit { TransferContext.writeArguments(DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPanPulloutPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPanPulloutPtr, NIL) } public final fun getPanPullout(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPanPulloutPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPanPulloutPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setTimePullout(amount: Float): Unit { TransferContext.writeArguments(DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTimePulloutPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTimePulloutPtr, NIL) } public final fun getTimePullout(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTimePulloutPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTimePulloutPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSurround(amount: Float): Unit { TransferContext.writeArguments(DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSurroundPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSurroundPtr, NIL) } public final fun getSurround(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSurroundPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSurroundPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioListener2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioListener2D.kt index dd5768db84..dd5a5f6d3c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioListener2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioListener2D.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -37,7 +37,7 @@ public open class AudioListener2D : Node2D() { */ public final fun makeCurrent(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.makeCurrentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.makeCurrentPtr, NIL) } /** @@ -45,7 +45,7 @@ public open class AudioListener2D : Node2D() { */ public final fun clearCurrent(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearCurrentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearCurrentPtr, NIL) } /** @@ -53,7 +53,7 @@ public open class AudioListener2D : Node2D() { */ public final fun isCurrent(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCurrentPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCurrentPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioListener3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioListener3D.kt index 69c8511acc..d1547f4152 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioListener3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioListener3D.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Transform3D import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser.TRANSFORM3D import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -35,7 +35,7 @@ public open class AudioListener3D : Node3D() { */ public final fun makeCurrent(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.makeCurrentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.makeCurrentPtr, NIL) } /** @@ -43,7 +43,7 @@ public open class AudioListener3D : Node3D() { */ public final fun clearCurrent(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearCurrentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearCurrentPtr, NIL) } /** @@ -53,7 +53,7 @@ public open class AudioListener3D : Node3D() { */ public final fun isCurrent(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCurrentPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCurrentPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -62,7 +62,7 @@ public open class AudioListener3D : Node3D() { */ public final fun getListenerTransform(): Transform3D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getListenerTransformPtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.getListenerTransformPtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioServer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioServer.kt index 70ad852dc3..e698e9e84c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioServer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioServer.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedStringArray import godot.core.Signal0 import godot.core.Signal3 @@ -21,7 +22,6 @@ import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -58,13 +58,13 @@ public object AudioServer : Object() { @JvmStatic public final fun setBusCount(amount: Int): Unit { TransferContext.writeArguments(LONG to amount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setBusCountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBusCountPtr, NIL) } @JvmStatic public final fun getBusCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBusCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBusCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -74,7 +74,7 @@ public object AudioServer : Object() { @JvmStatic public final fun removeBus(index: Int): Unit { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeBusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeBusPtr, NIL) } /** @@ -84,7 +84,7 @@ public object AudioServer : Object() { @JvmStatic public final fun addBus(atPosition: Int = -1): Unit { TransferContext.writeArguments(LONG to atPosition.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addBusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addBusPtr, NIL) } /** @@ -93,7 +93,7 @@ public object AudioServer : Object() { @JvmStatic public final fun moveBus(index: Int, toIndex: Int): Unit { TransferContext.writeArguments(LONG to index.toLong(), LONG to toIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.moveBusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.moveBusPtr, NIL) } /** @@ -102,7 +102,7 @@ public object AudioServer : Object() { @JvmStatic public final fun setBusName(busIdx: Int, name: String): Unit { TransferContext.writeArguments(LONG to busIdx.toLong(), STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.setBusNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBusNamePtr, NIL) } /** @@ -111,7 +111,7 @@ public object AudioServer : Object() { @JvmStatic public final fun getBusName(busIdx: Int): String { TransferContext.writeArguments(LONG to busIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBusNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getBusNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -122,7 +122,7 @@ public object AudioServer : Object() { @JvmStatic public final fun getBusIndex(busName: StringName): Int { TransferContext.writeArguments(STRING_NAME to busName) - TransferContext.callMethod(rawPtr, MethodBindings.getBusIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBusIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -132,7 +132,7 @@ public object AudioServer : Object() { @JvmStatic public final fun getBusChannels(busIdx: Int): Int { TransferContext.writeArguments(LONG to busIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBusChannelsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBusChannelsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -142,7 +142,7 @@ public object AudioServer : Object() { @JvmStatic public final fun setBusVolumeDb(busIdx: Int, volumeDb: Float): Unit { TransferContext.writeArguments(LONG to busIdx.toLong(), DOUBLE to volumeDb.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setBusVolumeDbPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBusVolumeDbPtr, NIL) } /** @@ -151,7 +151,7 @@ public object AudioServer : Object() { @JvmStatic public final fun getBusVolumeDb(busIdx: Int): Float { TransferContext.writeArguments(LONG to busIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBusVolumeDbPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getBusVolumeDbPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -161,7 +161,7 @@ public object AudioServer : Object() { @JvmStatic public final fun setBusSend(busIdx: Int, send: StringName): Unit { TransferContext.writeArguments(LONG to busIdx.toLong(), STRING_NAME to send) - TransferContext.callMethod(rawPtr, MethodBindings.setBusSendPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBusSendPtr, NIL) } /** @@ -170,7 +170,7 @@ public object AudioServer : Object() { @JvmStatic public final fun getBusSend(busIdx: Int): StringName { TransferContext.writeArguments(LONG to busIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBusSendPtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getBusSendPtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } @@ -180,7 +180,7 @@ public object AudioServer : Object() { @JvmStatic public final fun setBusSolo(busIdx: Int, enable: Boolean): Unit { TransferContext.writeArguments(LONG to busIdx.toLong(), BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setBusSoloPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBusSoloPtr, NIL) } /** @@ -189,7 +189,7 @@ public object AudioServer : Object() { @JvmStatic public final fun isBusSolo(busIdx: Int): Boolean { TransferContext.writeArguments(LONG to busIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isBusSoloPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isBusSoloPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -199,7 +199,7 @@ public object AudioServer : Object() { @JvmStatic public final fun setBusMute(busIdx: Int, enable: Boolean): Unit { TransferContext.writeArguments(LONG to busIdx.toLong(), BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setBusMutePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBusMutePtr, NIL) } /** @@ -208,7 +208,7 @@ public object AudioServer : Object() { @JvmStatic public final fun isBusMute(busIdx: Int): Boolean { TransferContext.writeArguments(LONG to busIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isBusMutePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isBusMutePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -218,7 +218,7 @@ public object AudioServer : Object() { @JvmStatic public final fun setBusBypassEffects(busIdx: Int, enable: Boolean): Unit { TransferContext.writeArguments(LONG to busIdx.toLong(), BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setBusBypassEffectsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBusBypassEffectsPtr, NIL) } /** @@ -227,7 +227,7 @@ public object AudioServer : Object() { @JvmStatic public final fun isBusBypassingEffects(busIdx: Int): Boolean { TransferContext.writeArguments(LONG to busIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isBusBypassingEffectsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isBusBypassingEffectsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -242,7 +242,7 @@ public object AudioServer : Object() { atPosition: Int = -1, ): Unit { TransferContext.writeArguments(LONG to busIdx.toLong(), OBJECT to effect, LONG to atPosition.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addBusEffectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addBusEffectPtr, NIL) } /** @@ -251,7 +251,7 @@ public object AudioServer : Object() { @JvmStatic public final fun removeBusEffect(busIdx: Int, effectIdx: Int): Unit { TransferContext.writeArguments(LONG to busIdx.toLong(), LONG to effectIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeBusEffectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeBusEffectPtr, NIL) } /** @@ -260,7 +260,7 @@ public object AudioServer : Object() { @JvmStatic public final fun getBusEffectCount(busIdx: Int): Int { TransferContext.writeArguments(LONG to busIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBusEffectCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBusEffectCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -270,7 +270,7 @@ public object AudioServer : Object() { @JvmStatic public final fun getBusEffect(busIdx: Int, effectIdx: Int): AudioEffect? { TransferContext.writeArguments(LONG to busIdx.toLong(), LONG to effectIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBusEffectPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getBusEffectPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as AudioEffect?) } @@ -286,7 +286,7 @@ public object AudioServer : Object() { channel: Int = 0, ): AudioEffectInstance? { TransferContext.writeArguments(LONG to busIdx.toLong(), LONG to effectIdx.toLong(), LONG to channel.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBusEffectInstancePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getBusEffectInstancePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as AudioEffectInstance?) } @@ -300,7 +300,7 @@ public object AudioServer : Object() { byEffectIdx: Int, ): Unit { TransferContext.writeArguments(LONG to busIdx.toLong(), LONG to effectIdx.toLong(), LONG to byEffectIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.swapBusEffectsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.swapBusEffectsPtr, NIL) } /** @@ -313,7 +313,7 @@ public object AudioServer : Object() { enabled: Boolean, ): Unit { TransferContext.writeArguments(LONG to busIdx.toLong(), LONG to effectIdx.toLong(), BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setBusEffectEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBusEffectEnabledPtr, NIL) } /** @@ -322,7 +322,7 @@ public object AudioServer : Object() { @JvmStatic public final fun isBusEffectEnabled(busIdx: Int, effectIdx: Int): Boolean { TransferContext.writeArguments(LONG to busIdx.toLong(), LONG to effectIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isBusEffectEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isBusEffectEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -332,7 +332,7 @@ public object AudioServer : Object() { @JvmStatic public final fun getBusPeakVolumeLeftDb(busIdx: Int, channel: Int): Float { TransferContext.writeArguments(LONG to busIdx.toLong(), LONG to channel.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBusPeakVolumeLeftDbPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getBusPeakVolumeLeftDbPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -342,20 +342,20 @@ public object AudioServer : Object() { @JvmStatic public final fun getBusPeakVolumeRightDb(busIdx: Int, channel: Int): Float { TransferContext.writeArguments(LONG to busIdx.toLong(), LONG to channel.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBusPeakVolumeRightDbPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getBusPeakVolumeRightDbPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @JvmStatic public final fun setPlaybackSpeedScale(scale: Float): Unit { TransferContext.writeArguments(DOUBLE to scale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPlaybackSpeedScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPlaybackSpeedScalePtr, NIL) } @JvmStatic public final fun getPlaybackSpeedScale(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPlaybackSpeedScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPlaybackSpeedScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -366,7 +366,7 @@ public object AudioServer : Object() { @JvmStatic public final fun lock(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.lockPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.lockPtr, NIL) } /** @@ -375,7 +375,7 @@ public object AudioServer : Object() { @JvmStatic public final fun unlock(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.unlockPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.unlockPtr, NIL) } /** @@ -384,7 +384,7 @@ public object AudioServer : Object() { @JvmStatic public final fun getSpeakerMode(): SpeakerMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSpeakerModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSpeakerModePtr, LONG) return AudioServer.SpeakerMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -394,7 +394,7 @@ public object AudioServer : Object() { @JvmStatic public final fun getMixRate(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMixRatePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMixRatePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -404,21 +404,21 @@ public object AudioServer : Object() { @JvmStatic public final fun getOutputDeviceList(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOutputDeviceListPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getOutputDeviceListPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @JvmStatic public final fun getOutputDevice(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOutputDevicePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getOutputDevicePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @JvmStatic public final fun setOutputDevice(name: String): Unit { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.setOutputDevicePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOutputDevicePtr, NIL) } /** @@ -427,7 +427,7 @@ public object AudioServer : Object() { @JvmStatic public final fun getTimeToNextMix(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTimeToNextMixPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTimeToNextMixPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -437,7 +437,7 @@ public object AudioServer : Object() { @JvmStatic public final fun getTimeSinceLastMix(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTimeSinceLastMixPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTimeSinceLastMixPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -450,7 +450,7 @@ public object AudioServer : Object() { @JvmStatic public final fun getOutputLatency(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOutputLatencyPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getOutputLatencyPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -463,21 +463,21 @@ public object AudioServer : Object() { @JvmStatic public final fun getInputDeviceList(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInputDeviceListPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getInputDeviceListPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @JvmStatic public final fun getInputDevice(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInputDevicePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getInputDevicePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @JvmStatic public final fun setInputDevice(name: String): Unit { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.setInputDevicePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInputDevicePtr, NIL) } /** @@ -486,7 +486,7 @@ public object AudioServer : Object() { @JvmStatic public final fun setBusLayout(busLayout: AudioBusLayout?): Unit { TransferContext.writeArguments(OBJECT to busLayout) - TransferContext.callMethod(rawPtr, MethodBindings.setBusLayoutPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBusLayoutPtr, NIL) } /** @@ -495,7 +495,7 @@ public object AudioServer : Object() { @JvmStatic public final fun generateBusLayout(): AudioBusLayout? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.generateBusLayoutPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.generateBusLayoutPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as AudioBusLayout?) } @@ -508,7 +508,7 @@ public object AudioServer : Object() { @JvmStatic public final fun setEnableTaggingUsedAudioStreams(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setEnableTaggingUsedAudioStreamsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnableTaggingUsedAudioStreamsPtr, NIL) } /** @@ -520,7 +520,7 @@ public object AudioServer : Object() { @JvmStatic public final fun isStreamRegisteredAsSample(stream: AudioStream?): Boolean { TransferContext.writeArguments(OBJECT to stream) - TransferContext.callMethod(rawPtr, MethodBindings.isStreamRegisteredAsSamplePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isStreamRegisteredAsSamplePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -533,7 +533,7 @@ public object AudioServer : Object() { @JvmStatic public final fun registerStreamAsSample(stream: AudioStream?): Unit { TransferContext.writeArguments(OBJECT to stream) - TransferContext.callMethod(rawPtr, MethodBindings.registerStreamAsSamplePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.registerStreamAsSamplePtr, NIL) } public enum class SpeakerMode( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStream.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStream.kt index af7d6754bc..b65ecbb8f9 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStream.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStream.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.Signal0 import godot.core.TypeManager @@ -15,7 +16,6 @@ import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -106,7 +106,7 @@ public open class AudioStream : Resource() { */ public final fun getLength(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -116,7 +116,7 @@ public open class AudioStream : Resource() { */ public final fun isMonophonic(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isMonophonicPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isMonophonicPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -128,7 +128,7 @@ public open class AudioStream : Resource() { */ public final fun instantiatePlayback(): AudioStreamPlayback? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.instantiatePlaybackPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.instantiatePlaybackPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as AudioStreamPlayback?) } @@ -138,7 +138,7 @@ public open class AudioStream : Resource() { */ public final fun canBeSampled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.canBeSampledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.canBeSampledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -147,7 +147,7 @@ public open class AudioStream : Resource() { */ public final fun generateSample(): AudioSample? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.generateSamplePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.generateSamplePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as AudioSample?) } @@ -156,7 +156,7 @@ public open class AudioStream : Resource() { */ public final fun isMetaStream(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isMetaStreamPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isMetaStreamPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamGenerator.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamGenerator.kt index 6e9c5bd997..5ed7e47fd4 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamGenerator.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamGenerator.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -126,23 +126,23 @@ public open class AudioStreamGenerator : AudioStream() { public final fun setMixRate(hz: Float): Unit { TransferContext.writeArguments(DOUBLE to hz.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMixRatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMixRatePtr, NIL) } public final fun getMixRate(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMixRatePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMixRatePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setBufferLength(seconds: Float): Unit { TransferContext.writeArguments(DOUBLE to seconds.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setBufferLengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBufferLengthPtr, NIL) } public final fun getBufferLength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBufferLengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getBufferLengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamGeneratorPlayback.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamGeneratorPlayback.kt index c399b342e8..1c33288069 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamGeneratorPlayback.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamGeneratorPlayback.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedVector2Array import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -16,7 +17,6 @@ import godot.core.VariantParser.PACKED_VECTOR2_ARRAY import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -41,7 +41,7 @@ public open class AudioStreamGeneratorPlayback internal constructor() : */ public final fun pushFrame(frame: Vector2): Boolean { TransferContext.writeArguments(VECTOR2 to frame) - TransferContext.callMethod(rawPtr, MethodBindings.pushFramePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.pushFramePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -51,7 +51,7 @@ public open class AudioStreamGeneratorPlayback internal constructor() : */ public final fun canPushBuffer(amount: Int): Boolean { TransferContext.writeArguments(LONG to amount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.canPushBufferPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.canPushBufferPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -62,7 +62,7 @@ public open class AudioStreamGeneratorPlayback internal constructor() : */ public final fun pushBuffer(frames: PackedVector2Array): Boolean { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to frames) - TransferContext.callMethod(rawPtr, MethodBindings.pushBufferPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.pushBufferPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -72,7 +72,7 @@ public open class AudioStreamGeneratorPlayback internal constructor() : */ public final fun getFramesAvailable(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFramesAvailablePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFramesAvailablePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -82,7 +82,7 @@ public open class AudioStreamGeneratorPlayback internal constructor() : */ public final fun getSkips(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSkipsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSkipsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -91,7 +91,7 @@ public open class AudioStreamGeneratorPlayback internal constructor() : */ public final fun clearBuffer(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearBufferPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearBufferPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamInteractive.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamInteractive.kt index 36fe4d95cc..1ac13a0d07 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamInteractive.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamInteractive.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedInt32Array import godot.core.StringName import godot.core.TypeManager @@ -18,7 +19,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_INT_32_ARRAY import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -68,23 +68,23 @@ public open class AudioStreamInteractive : AudioStream() { public final fun setClipCount(clipCount: Int): Unit { TransferContext.writeArguments(LONG to clipCount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setClipCountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setClipCountPtr, NIL) } public final fun getClipCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getClipCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getClipCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setInitialClip(clipIndex: Int): Unit { TransferContext.writeArguments(LONG to clipIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setInitialClipPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInitialClipPtr, NIL) } public final fun getInitialClip(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInitialClipPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getInitialClipPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -93,7 +93,7 @@ public open class AudioStreamInteractive : AudioStream() { */ public final fun setClipName(clipIndex: Int, name: StringName): Unit { TransferContext.writeArguments(LONG to clipIndex.toLong(), STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.setClipNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setClipNamePtr, NIL) } /** @@ -101,7 +101,7 @@ public open class AudioStreamInteractive : AudioStream() { */ public final fun getClipName(clipIndex: Int): StringName { TransferContext.writeArguments(LONG to clipIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getClipNamePtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getClipNamePtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } @@ -110,7 +110,7 @@ public open class AudioStreamInteractive : AudioStream() { */ public final fun setClipStream(clipIndex: Int, stream: AudioStream?): Unit { TransferContext.writeArguments(LONG to clipIndex.toLong(), OBJECT to stream) - TransferContext.callMethod(rawPtr, MethodBindings.setClipStreamPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setClipStreamPtr, NIL) } /** @@ -118,7 +118,7 @@ public open class AudioStreamInteractive : AudioStream() { */ public final fun getClipStream(clipIndex: Int): AudioStream? { TransferContext.writeArguments(LONG to clipIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getClipStreamPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getClipStreamPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as AudioStream?) } @@ -127,7 +127,7 @@ public open class AudioStreamInteractive : AudioStream() { */ public final fun setClipAutoAdvance(clipIndex: Int, mode: AutoAdvanceMode): Unit { TransferContext.writeArguments(LONG to clipIndex.toLong(), LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setClipAutoAdvancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setClipAutoAdvancePtr, NIL) } /** @@ -135,7 +135,7 @@ public open class AudioStreamInteractive : AudioStream() { */ public final fun getClipAutoAdvance(clipIndex: Int): AutoAdvanceMode { TransferContext.writeArguments(LONG to clipIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getClipAutoAdvancePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getClipAutoAdvancePtr, LONG) return AudioStreamInteractive.AutoAdvanceMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -145,7 +145,7 @@ public open class AudioStreamInteractive : AudioStream() { */ public final fun setClipAutoAdvanceNextClip(clipIndex: Int, autoAdvanceNextClip: Int): Unit { TransferContext.writeArguments(LONG to clipIndex.toLong(), LONG to autoAdvanceNextClip.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setClipAutoAdvanceNextClipPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setClipAutoAdvanceNextClipPtr, NIL) } /** @@ -153,7 +153,7 @@ public open class AudioStreamInteractive : AudioStream() { */ public final fun getClipAutoAdvanceNextClip(clipIndex: Int): Int { TransferContext.writeArguments(LONG to clipIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getClipAutoAdvanceNextClipPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getClipAutoAdvanceNextClipPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -185,7 +185,7 @@ public open class AudioStreamInteractive : AudioStream() { holdPrevious: Boolean = false, ): Unit { TransferContext.writeArguments(LONG to fromClip.toLong(), LONG to toClip.toLong(), LONG to fromTime.id, LONG to toTime.id, LONG to fadeMode.id, DOUBLE to fadeBeats.toDouble(), BOOL to useFillerClip, LONG to fillerClip.toLong(), BOOL to holdPrevious) - TransferContext.callMethod(rawPtr, MethodBindings.addTransitionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addTransitionPtr, NIL) } /** @@ -193,7 +193,7 @@ public open class AudioStreamInteractive : AudioStream() { */ public final fun hasTransition(fromClip: Int, toClip: Int): Boolean { TransferContext.writeArguments(LONG to fromClip.toLong(), LONG to toClip.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.hasTransitionPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasTransitionPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -203,7 +203,7 @@ public open class AudioStreamInteractive : AudioStream() { */ public final fun eraseTransition(fromClip: Int, toClip: Int): Unit { TransferContext.writeArguments(LONG to fromClip.toLong(), LONG to toClip.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.eraseTransitionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.eraseTransitionPtr, NIL) } /** @@ -211,7 +211,7 @@ public open class AudioStreamInteractive : AudioStream() { */ public final fun getTransitionList(): PackedInt32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTransitionListPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getTransitionListPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } @@ -220,7 +220,7 @@ public open class AudioStreamInteractive : AudioStream() { */ public final fun getTransitionFromTime(fromClip: Int, toClip: Int): TransitionFromTime { TransferContext.writeArguments(LONG to fromClip.toLong(), LONG to toClip.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTransitionFromTimePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTransitionFromTimePtr, LONG) return AudioStreamInteractive.TransitionFromTime.from(TransferContext.readReturnValue(LONG) as Long) } @@ -229,7 +229,7 @@ public open class AudioStreamInteractive : AudioStream() { */ public final fun getTransitionToTime(fromClip: Int, toClip: Int): TransitionToTime { TransferContext.writeArguments(LONG to fromClip.toLong(), LONG to toClip.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTransitionToTimePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTransitionToTimePtr, LONG) return AudioStreamInteractive.TransitionToTime.from(TransferContext.readReturnValue(LONG) as Long) } @@ -238,7 +238,7 @@ public open class AudioStreamInteractive : AudioStream() { */ public final fun getTransitionFadeMode(fromClip: Int, toClip: Int): FadeMode { TransferContext.writeArguments(LONG to fromClip.toLong(), LONG to toClip.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTransitionFadeModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTransitionFadeModePtr, LONG) return AudioStreamInteractive.FadeMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -247,7 +247,7 @@ public open class AudioStreamInteractive : AudioStream() { */ public final fun getTransitionFadeBeats(fromClip: Int, toClip: Int): Float { TransferContext.writeArguments(LONG to fromClip.toLong(), LONG to toClip.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTransitionFadeBeatsPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTransitionFadeBeatsPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -256,7 +256,7 @@ public open class AudioStreamInteractive : AudioStream() { */ public final fun isTransitionUsingFillerClip(fromClip: Int, toClip: Int): Boolean { TransferContext.writeArguments(LONG to fromClip.toLong(), LONG to toClip.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isTransitionUsingFillerClipPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isTransitionUsingFillerClipPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -265,7 +265,7 @@ public open class AudioStreamInteractive : AudioStream() { */ public final fun getTransitionFillerClip(fromClip: Int, toClip: Int): Int { TransferContext.writeArguments(LONG to fromClip.toLong(), LONG to toClip.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTransitionFillerClipPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTransitionFillerClipPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -274,7 +274,7 @@ public open class AudioStreamInteractive : AudioStream() { */ public final fun isTransitionHoldingPrevious(fromClip: Int, toClip: Int): Boolean { TransferContext.writeArguments(LONG to fromClip.toLong(), LONG to toClip.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isTransitionHoldingPreviousPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isTransitionHoldingPreviousPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamMP3.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamMP3.kt index dc99365063..6d6938fbdb 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamMP3.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamMP3.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedByteArray import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -15,7 +16,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Int @@ -114,67 +114,67 @@ public open class AudioStreamMP3 : AudioStream() { public final fun setData(`data`: PackedByteArray): Unit { TransferContext.writeArguments(PACKED_BYTE_ARRAY to data) - TransferContext.callMethod(rawPtr, MethodBindings.setDataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDataPtr, NIL) } public final fun getData(): PackedByteArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDataPtr, PACKED_BYTE_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getDataPtr, PACKED_BYTE_ARRAY) return (TransferContext.readReturnValue(PACKED_BYTE_ARRAY) as PackedByteArray) } public final fun setLoop(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setLoopPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLoopPtr, NIL) } public final fun hasLoop(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasLoopPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasLoopPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setLoopOffset(seconds: Double): Unit { TransferContext.writeArguments(DOUBLE to seconds) - TransferContext.callMethod(rawPtr, MethodBindings.setLoopOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLoopOffsetPtr, NIL) } public final fun getLoopOffset(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLoopOffsetPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLoopOffsetPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun setBpm(bpm: Double): Unit { TransferContext.writeArguments(DOUBLE to bpm) - TransferContext.callMethod(rawPtr, MethodBindings.setBpmPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBpmPtr, NIL) } public final fun getBpm(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBpmPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getBpmPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun setBeatCount(count: Int): Unit { TransferContext.writeArguments(LONG to count.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setBeatCountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBeatCountPtr, NIL) } public final fun getBeatCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBeatCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBeatCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setBarBeats(count: Int): Unit { TransferContext.writeArguments(LONG to count.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setBarBeatsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBarBeatsPtr, NIL) } public final fun getBarBeats(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBarBeatsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBarBeatsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamOggVorbis.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamOggVorbis.kt index a44a6fad87..c72656b48f 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamOggVorbis.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamOggVorbis.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedByteArray import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -17,7 +18,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Int @@ -99,67 +99,67 @@ public open class AudioStreamOggVorbis : AudioStream() { public final fun setPacketSequence(packetSequence: OggPacketSequence?): Unit { TransferContext.writeArguments(OBJECT to packetSequence) - TransferContext.callMethod(rawPtr, MethodBindings.setPacketSequencePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPacketSequencePtr, NIL) } public final fun getPacketSequence(): OggPacketSequence? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPacketSequencePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getPacketSequencePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as OggPacketSequence?) } public final fun setLoop(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setLoopPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLoopPtr, NIL) } public final fun hasLoop(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasLoopPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasLoopPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setLoopOffset(seconds: Double): Unit { TransferContext.writeArguments(DOUBLE to seconds) - TransferContext.callMethod(rawPtr, MethodBindings.setLoopOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLoopOffsetPtr, NIL) } public final fun getLoopOffset(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLoopOffsetPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLoopOffsetPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun setBpm(bpm: Double): Unit { TransferContext.writeArguments(DOUBLE to bpm) - TransferContext.callMethod(rawPtr, MethodBindings.setBpmPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBpmPtr, NIL) } public final fun getBpm(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBpmPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getBpmPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun setBeatCount(count: Int): Unit { TransferContext.writeArguments(LONG to count.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setBeatCountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBeatCountPtr, NIL) } public final fun getBeatCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBeatCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBeatCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setBarBeats(count: Int): Unit { TransferContext.writeArguments(LONG to count.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setBarBeatsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBarBeatsPtr, NIL) } public final fun getBarBeats(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBarBeatsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBarBeatsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayback.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayback.kt index 8753457f7b..ada5f67360 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayback.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayback.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.StringName import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -102,7 +102,7 @@ public open class AudioStreamPlayback : RefCounted() { */ public final fun setSamplePlayback(playbackSample: AudioSamplePlayback?): Unit { TransferContext.writeArguments(OBJECT to playbackSample) - TransferContext.callMethod(rawPtr, MethodBindings.setSamplePlaybackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSamplePlaybackPtr, NIL) } /** @@ -111,7 +111,7 @@ public open class AudioStreamPlayback : RefCounted() { */ public final fun getSamplePlayback(): AudioSamplePlayback? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSamplePlaybackPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getSamplePlaybackPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as AudioSamplePlayback?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackInteractive.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackInteractive.kt index a180b7ab8b..820b33c0ea 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackInteractive.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackInteractive.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.StringName import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -33,7 +33,7 @@ public open class AudioStreamPlaybackInteractive internal constructor() : AudioS */ public final fun switchToClipByName(clipName: StringName): Unit { TransferContext.writeArguments(STRING_NAME to clipName) - TransferContext.callMethod(rawPtr, MethodBindings.switchToClipByNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.switchToClipByNamePtr, NIL) } /** @@ -41,7 +41,7 @@ public open class AudioStreamPlaybackInteractive internal constructor() : AudioS */ public final fun switchToClip(clipIndex: Int): Unit { TransferContext.writeArguments(LONG to clipIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.switchToClipPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.switchToClipPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackPolyphonic.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackPolyphonic.kt index d81f322555..140d49d291 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackPolyphonic.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackPolyphonic.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.StringName import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -16,7 +17,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Float import kotlin.Int @@ -58,7 +58,7 @@ public open class AudioStreamPlaybackPolyphonic internal constructor() : AudioSt bus: StringName = StringName("Master"), ): Long { TransferContext.writeArguments(OBJECT to stream, DOUBLE to fromOffset.toDouble(), DOUBLE to volumeDb.toDouble(), DOUBLE to pitchScale.toDouble(), LONG to playbackType.id, STRING_NAME to bus) - TransferContext.callMethod(rawPtr, MethodBindings.playStreamPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.playStreamPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -68,7 +68,7 @@ public open class AudioStreamPlaybackPolyphonic internal constructor() : AudioSt */ public final fun setStreamVolume(stream: Long, volumeDb: Float): Unit { TransferContext.writeArguments(LONG to stream, DOUBLE to volumeDb.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setStreamVolumePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStreamVolumePtr, NIL) } /** @@ -76,7 +76,7 @@ public open class AudioStreamPlaybackPolyphonic internal constructor() : AudioSt */ public final fun setStreamPitchScale(stream: Long, pitchScale: Float): Unit { TransferContext.writeArguments(LONG to stream, DOUBLE to pitchScale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setStreamPitchScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStreamPitchScalePtr, NIL) } /** @@ -85,7 +85,7 @@ public open class AudioStreamPlaybackPolyphonic internal constructor() : AudioSt */ public final fun isStreamPlaying(stream: Long): Boolean { TransferContext.writeArguments(LONG to stream) - TransferContext.callMethod(rawPtr, MethodBindings.isStreamPlayingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isStreamPlayingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -95,7 +95,7 @@ public open class AudioStreamPlaybackPolyphonic internal constructor() : AudioSt */ public final fun stopStream(stream: Long): Unit { TransferContext.writeArguments(LONG to stream) - TransferContext.callMethod(rawPtr, MethodBindings.stopStreamPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.stopStreamPtr, NIL) } public companion object { diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackResampled.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackResampled.kt index 5329c1d876..2e9f0468f3 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackResampled.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackResampled.kt @@ -7,10 +7,10 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Float import kotlin.Int import kotlin.NotImplementedError @@ -29,7 +29,7 @@ public open class AudioStreamPlaybackResampled : AudioStreamPlayback() { public final fun beginResample(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.beginResamplePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.beginResamplePtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayer.kt index 313be603f2..321a7ac01e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayer.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.StringName import godot.core.TypeManager @@ -17,7 +18,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -168,34 +168,34 @@ public open class AudioStreamPlayer : Node() { public final fun setStream(stream: AudioStream?): Unit { TransferContext.writeArguments(OBJECT to stream) - TransferContext.callMethod(rawPtr, MethodBindings.setStreamPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStreamPtr, NIL) } public final fun getStream(): AudioStream? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStreamPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getStreamPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as AudioStream?) } public final fun setVolumeDb(volumeDb: Float): Unit { TransferContext.writeArguments(DOUBLE to volumeDb.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVolumeDbPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVolumeDbPtr, NIL) } public final fun getVolumeDb(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVolumeDbPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVolumeDbPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setPitchScale(pitchScale: Float): Unit { TransferContext.writeArguments(DOUBLE to pitchScale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPitchScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPitchScalePtr, NIL) } public final fun getPitchScale(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPitchScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPitchScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -205,7 +205,7 @@ public open class AudioStreamPlayer : Node() { @JvmOverloads public final fun play(fromPosition: Float = 0.0f): Unit { TransferContext.writeArguments(DOUBLE to fromPosition.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.playPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.playPtr, NIL) } /** @@ -214,7 +214,7 @@ public open class AudioStreamPlayer : Node() { */ public final fun seek(toPosition: Float): Unit { TransferContext.writeArguments(DOUBLE to toPosition.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.seekPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.seekPtr, NIL) } /** @@ -222,12 +222,12 @@ public open class AudioStreamPlayer : Node() { */ public final fun stop(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.stopPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.stopPtr, NIL) } public final fun isPlaying(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isPlayingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPlayingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -240,62 +240,62 @@ public open class AudioStreamPlayer : Node() { */ public final fun getPlaybackPosition(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPlaybackPositionPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPlaybackPositionPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setBus(bus: StringName): Unit { TransferContext.writeArguments(STRING_NAME to bus) - TransferContext.callMethod(rawPtr, MethodBindings.setBusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBusPtr, NIL) } public final fun getBus(): StringName { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBusPtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getBusPtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } public final fun setAutoplay(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setAutoplayPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutoplayPtr, NIL) } public final fun isAutoplayEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isAutoplayEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isAutoplayEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setMixTarget(mixTarget: MixTarget): Unit { TransferContext.writeArguments(LONG to mixTarget.id) - TransferContext.callMethod(rawPtr, MethodBindings.setMixTargetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMixTargetPtr, NIL) } public final fun getMixTarget(): MixTarget { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMixTargetPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMixTargetPtr, LONG) return AudioStreamPlayer.MixTarget.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setStreamPaused(pause: Boolean): Unit { TransferContext.writeArguments(BOOL to pause) - TransferContext.callMethod(rawPtr, MethodBindings.setStreamPausedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStreamPausedPtr, NIL) } public final fun getStreamPaused(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStreamPausedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getStreamPausedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setMaxPolyphony(maxPolyphony: Int): Unit { TransferContext.writeArguments(LONG to maxPolyphony.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxPolyphonyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxPolyphonyPtr, NIL) } public final fun getMaxPolyphony(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxPolyphonyPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMaxPolyphonyPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -305,7 +305,7 @@ public open class AudioStreamPlayer : Node() { */ public final fun hasStreamPlayback(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasStreamPlaybackPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasStreamPlaybackPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -315,18 +315,18 @@ public open class AudioStreamPlayer : Node() { */ public final fun getStreamPlayback(): AudioStreamPlayback? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStreamPlaybackPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getStreamPlaybackPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as AudioStreamPlayback?) } public final fun setPlaybackType(playbackType: AudioServer.PlaybackType): Unit { TransferContext.writeArguments(LONG to playbackType.id) - TransferContext.callMethod(rawPtr, MethodBindings.setPlaybackTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPlaybackTypePtr, NIL) } public final fun getPlaybackType(): AudioServer.PlaybackType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPlaybackTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPlaybackTypePtr, LONG) return AudioServer.PlaybackType.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayer2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayer2D.kt index 0b3d79a123..a44a59360d 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayer2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayer2D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.StringName import godot.core.TypeManager @@ -17,7 +18,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -200,34 +200,34 @@ public open class AudioStreamPlayer2D : Node2D() { public final fun setStream(stream: AudioStream?): Unit { TransferContext.writeArguments(OBJECT to stream) - TransferContext.callMethod(rawPtr, MethodBindings.setStreamPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStreamPtr, NIL) } public final fun getStream(): AudioStream? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStreamPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getStreamPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as AudioStream?) } public final fun setVolumeDb(volumeDb: Float): Unit { TransferContext.writeArguments(DOUBLE to volumeDb.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVolumeDbPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVolumeDbPtr, NIL) } public final fun getVolumeDb(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVolumeDbPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVolumeDbPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setPitchScale(pitchScale: Float): Unit { TransferContext.writeArguments(DOUBLE to pitchScale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPitchScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPitchScalePtr, NIL) } public final fun getPitchScale(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPitchScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPitchScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -238,7 +238,7 @@ public open class AudioStreamPlayer2D : Node2D() { @JvmOverloads public final fun play(fromPosition: Float = 0.0f): Unit { TransferContext.writeArguments(DOUBLE to fromPosition.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.playPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.playPtr, NIL) } /** @@ -246,7 +246,7 @@ public open class AudioStreamPlayer2D : Node2D() { */ public final fun seek(toPosition: Float): Unit { TransferContext.writeArguments(DOUBLE to toPosition.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.seekPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.seekPtr, NIL) } /** @@ -254,12 +254,12 @@ public open class AudioStreamPlayer2D : Node2D() { */ public final fun stop(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.stopPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.stopPtr, NIL) } public final fun isPlaying(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isPlayingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPlayingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -268,95 +268,95 @@ public open class AudioStreamPlayer2D : Node2D() { */ public final fun getPlaybackPosition(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPlaybackPositionPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPlaybackPositionPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setBus(bus: StringName): Unit { TransferContext.writeArguments(STRING_NAME to bus) - TransferContext.callMethod(rawPtr, MethodBindings.setBusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBusPtr, NIL) } public final fun getBus(): StringName { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBusPtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getBusPtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } public final fun setAutoplay(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setAutoplayPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutoplayPtr, NIL) } public final fun isAutoplayEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isAutoplayEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isAutoplayEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setMaxDistance(pixels: Float): Unit { TransferContext.writeArguments(DOUBLE to pixels.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxDistancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxDistancePtr, NIL) } public final fun getMaxDistance(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxDistancePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMaxDistancePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAttenuation(curve: Float): Unit { TransferContext.writeArguments(DOUBLE to curve.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAttenuationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAttenuationPtr, NIL) } public final fun getAttenuation(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAttenuationPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAttenuationPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAreaMask(mask: Long): Unit { TransferContext.writeArguments(LONG to mask) - TransferContext.callMethod(rawPtr, MethodBindings.setAreaMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAreaMaskPtr, NIL) } public final fun getAreaMask(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAreaMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAreaMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setStreamPaused(pause: Boolean): Unit { TransferContext.writeArguments(BOOL to pause) - TransferContext.callMethod(rawPtr, MethodBindings.setStreamPausedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStreamPausedPtr, NIL) } public final fun getStreamPaused(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStreamPausedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getStreamPausedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setMaxPolyphony(maxPolyphony: Int): Unit { TransferContext.writeArguments(LONG to maxPolyphony.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxPolyphonyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxPolyphonyPtr, NIL) } public final fun getMaxPolyphony(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxPolyphonyPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMaxPolyphonyPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setPanningStrength(panningStrength: Float): Unit { TransferContext.writeArguments(DOUBLE to panningStrength.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPanningStrengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPanningStrengthPtr, NIL) } public final fun getPanningStrength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPanningStrengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPanningStrengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -365,7 +365,7 @@ public open class AudioStreamPlayer2D : Node2D() { */ public final fun hasStreamPlayback(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasStreamPlaybackPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasStreamPlaybackPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -374,18 +374,18 @@ public open class AudioStreamPlayer2D : Node2D() { */ public final fun getStreamPlayback(): AudioStreamPlayback? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStreamPlaybackPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getStreamPlaybackPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as AudioStreamPlayback?) } public final fun setPlaybackType(playbackType: AudioServer.PlaybackType): Unit { TransferContext.writeArguments(LONG to playbackType.id) - TransferContext.callMethod(rawPtr, MethodBindings.setPlaybackTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPlaybackTypePtr, NIL) } public final fun getPlaybackType(): AudioServer.PlaybackType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPlaybackTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPlaybackTypePtr, LONG) return AudioServer.PlaybackType.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayer3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayer3D.kt index 9b492f80bf..3a30d87ea8 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayer3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayer3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.StringName import godot.core.TypeManager @@ -17,7 +18,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -300,56 +300,56 @@ public open class AudioStreamPlayer3D : Node3D() { public final fun setStream(stream: AudioStream?): Unit { TransferContext.writeArguments(OBJECT to stream) - TransferContext.callMethod(rawPtr, MethodBindings.setStreamPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStreamPtr, NIL) } public final fun getStream(): AudioStream? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStreamPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getStreamPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as AudioStream?) } public final fun setVolumeDb(volumeDb: Float): Unit { TransferContext.writeArguments(DOUBLE to volumeDb.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVolumeDbPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVolumeDbPtr, NIL) } public final fun getVolumeDb(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVolumeDbPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVolumeDbPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setUnitSize(unitSize: Float): Unit { TransferContext.writeArguments(DOUBLE to unitSize.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setUnitSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUnitSizePtr, NIL) } public final fun getUnitSize(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUnitSizePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getUnitSizePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setMaxDb(maxDb: Float): Unit { TransferContext.writeArguments(DOUBLE to maxDb.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxDbPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxDbPtr, NIL) } public final fun getMaxDb(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxDbPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMaxDbPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setPitchScale(pitchScale: Float): Unit { TransferContext.writeArguments(DOUBLE to pitchScale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPitchScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPitchScalePtr, NIL) } public final fun getPitchScale(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPitchScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPitchScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -360,7 +360,7 @@ public open class AudioStreamPlayer3D : Node3D() { @JvmOverloads public final fun play(fromPosition: Float = 0.0f): Unit { TransferContext.writeArguments(DOUBLE to fromPosition.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.playPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.playPtr, NIL) } /** @@ -368,7 +368,7 @@ public open class AudioStreamPlayer3D : Node3D() { */ public final fun seek(toPosition: Float): Unit { TransferContext.writeArguments(DOUBLE to toPosition.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.seekPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.seekPtr, NIL) } /** @@ -376,12 +376,12 @@ public open class AudioStreamPlayer3D : Node3D() { */ public final fun stop(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.stopPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.stopPtr, NIL) } public final fun isPlaying(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isPlayingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPlayingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -390,162 +390,161 @@ public open class AudioStreamPlayer3D : Node3D() { */ public final fun getPlaybackPosition(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPlaybackPositionPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPlaybackPositionPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setBus(bus: StringName): Unit { TransferContext.writeArguments(STRING_NAME to bus) - TransferContext.callMethod(rawPtr, MethodBindings.setBusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBusPtr, NIL) } public final fun getBus(): StringName { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBusPtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getBusPtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } public final fun setAutoplay(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setAutoplayPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutoplayPtr, NIL) } public final fun isAutoplayEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isAutoplayEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isAutoplayEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setMaxDistance(meters: Float): Unit { TransferContext.writeArguments(DOUBLE to meters.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxDistancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxDistancePtr, NIL) } public final fun getMaxDistance(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxDistancePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMaxDistancePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAreaMask(mask: Long): Unit { TransferContext.writeArguments(LONG to mask) - TransferContext.callMethod(rawPtr, MethodBindings.setAreaMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAreaMaskPtr, NIL) } public final fun getAreaMask(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAreaMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAreaMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setEmissionAngle(degrees: Float): Unit { TransferContext.writeArguments(DOUBLE to degrees.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionAnglePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionAnglePtr, NIL) } public final fun getEmissionAngle(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmissionAnglePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getEmissionAnglePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setEmissionAngleEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionAngleEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionAngleEnabledPtr, NIL) } public final fun isEmissionAngleEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isEmissionAngleEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isEmissionAngleEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setEmissionAngleFilterAttenuationDb(db: Float): Unit { TransferContext.writeArguments(DOUBLE to db.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionAngleFilterAttenuationDbPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionAngleFilterAttenuationDbPtr, NIL) } public final fun getEmissionAngleFilterAttenuationDb(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmissionAngleFilterAttenuationDbPtr, - DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getEmissionAngleFilterAttenuationDbPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAttenuationFilterCutoffHz(degrees: Float): Unit { TransferContext.writeArguments(DOUBLE to degrees.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAttenuationFilterCutoffHzPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAttenuationFilterCutoffHzPtr, NIL) } public final fun getAttenuationFilterCutoffHz(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAttenuationFilterCutoffHzPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAttenuationFilterCutoffHzPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAttenuationFilterDb(db: Float): Unit { TransferContext.writeArguments(DOUBLE to db.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAttenuationFilterDbPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAttenuationFilterDbPtr, NIL) } public final fun getAttenuationFilterDb(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAttenuationFilterDbPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAttenuationFilterDbPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAttenuationModel(model: AttenuationModel): Unit { TransferContext.writeArguments(LONG to model.id) - TransferContext.callMethod(rawPtr, MethodBindings.setAttenuationModelPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAttenuationModelPtr, NIL) } public final fun getAttenuationModel(): AttenuationModel { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAttenuationModelPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAttenuationModelPtr, LONG) return AudioStreamPlayer3D.AttenuationModel.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setDopplerTracking(mode: DopplerTracking): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setDopplerTrackingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDopplerTrackingPtr, NIL) } public final fun getDopplerTracking(): DopplerTracking { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDopplerTrackingPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDopplerTrackingPtr, LONG) return AudioStreamPlayer3D.DopplerTracking.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setStreamPaused(pause: Boolean): Unit { TransferContext.writeArguments(BOOL to pause) - TransferContext.callMethod(rawPtr, MethodBindings.setStreamPausedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStreamPausedPtr, NIL) } public final fun getStreamPaused(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStreamPausedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getStreamPausedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setMaxPolyphony(maxPolyphony: Int): Unit { TransferContext.writeArguments(LONG to maxPolyphony.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxPolyphonyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxPolyphonyPtr, NIL) } public final fun getMaxPolyphony(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxPolyphonyPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMaxPolyphonyPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setPanningStrength(panningStrength: Float): Unit { TransferContext.writeArguments(DOUBLE to panningStrength.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPanningStrengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPanningStrengthPtr, NIL) } public final fun getPanningStrength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPanningStrengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPanningStrengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -554,7 +553,7 @@ public open class AudioStreamPlayer3D : Node3D() { */ public final fun hasStreamPlayback(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasStreamPlaybackPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasStreamPlaybackPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -563,18 +562,18 @@ public open class AudioStreamPlayer3D : Node3D() { */ public final fun getStreamPlayback(): AudioStreamPlayback? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStreamPlaybackPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getStreamPlaybackPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as AudioStreamPlayback?) } public final fun setPlaybackType(playbackType: AudioServer.PlaybackType): Unit { TransferContext.writeArguments(LONG to playbackType.id) - TransferContext.callMethod(rawPtr, MethodBindings.setPlaybackTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPlaybackTypePtr, NIL) } public final fun getPlaybackType(): AudioServer.PlaybackType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPlaybackTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPlaybackTypePtr, LONG) return AudioServer.PlaybackType.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaylist.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaylist.kt index e93e400d6f..4ff566d06c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaylist.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaylist.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE @@ -14,7 +15,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -590,12 +590,12 @@ public open class AudioStreamPlaylist : AudioStream() { public final fun setStreamCount(streamCount: Int): Unit { TransferContext.writeArguments(LONG to streamCount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setStreamCountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStreamCountPtr, NIL) } public final fun getStreamCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStreamCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getStreamCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -604,7 +604,7 @@ public open class AudioStreamPlaylist : AudioStream() { */ public final fun getBpm(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBpmPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getBpmPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -613,7 +613,7 @@ public open class AudioStreamPlaylist : AudioStream() { */ public final fun setListStream(streamIndex: Int, audioStream: AudioStream?): Unit { TransferContext.writeArguments(LONG to streamIndex.toLong(), OBJECT to audioStream) - TransferContext.callMethod(rawPtr, MethodBindings.setListStreamPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setListStreamPtr, NIL) } /** @@ -621,40 +621,40 @@ public open class AudioStreamPlaylist : AudioStream() { */ public final fun getListStream(streamIndex: Int): AudioStream? { TransferContext.writeArguments(LONG to streamIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getListStreamPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getListStreamPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as AudioStream?) } public final fun setShuffle(shuffle: Boolean): Unit { TransferContext.writeArguments(BOOL to shuffle) - TransferContext.callMethod(rawPtr, MethodBindings.setShufflePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShufflePtr, NIL) } public final fun getShuffle(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getShufflePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getShufflePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setFadeTime(dec: Float): Unit { TransferContext.writeArguments(DOUBLE to dec.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFadeTimePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFadeTimePtr, NIL) } public final fun getFadeTime(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFadeTimePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFadeTimePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setLoop(loop: Boolean): Unit { TransferContext.writeArguments(BOOL to loop) - TransferContext.callMethod(rawPtr, MethodBindings.setLoopPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLoopPtr, NIL) } public final fun hasLoop(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasLoopPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasLoopPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPolyphonic.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPolyphonic.kt index 975d0d48cd..837466086c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPolyphonic.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamPolyphonic.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -46,12 +46,12 @@ public open class AudioStreamPolyphonic : AudioStream() { public final fun setPolyphony(voices: Int): Unit { TransferContext.writeArguments(LONG to voices.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setPolyphonyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPolyphonyPtr, NIL) } public final fun getPolyphony(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPolyphonyPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPolyphonyPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamRandomizer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamRandomizer.kt index 3c2f8cf7fa..04be7b801b 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamRandomizer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamRandomizer.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -88,7 +88,7 @@ public open class AudioStreamRandomizer : AudioStream() { weight: Float = 1.0f, ): Unit { TransferContext.writeArguments(LONG to index.toLong(), OBJECT to stream, DOUBLE to weight.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.addStreamPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addStreamPtr, NIL) } /** @@ -96,7 +96,7 @@ public open class AudioStreamRandomizer : AudioStream() { */ public final fun moveStream(indexFrom: Int, indexTo: Int): Unit { TransferContext.writeArguments(LONG to indexFrom.toLong(), LONG to indexTo.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.moveStreamPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.moveStreamPtr, NIL) } /** @@ -104,7 +104,7 @@ public open class AudioStreamRandomizer : AudioStream() { */ public final fun removeStream(index: Int): Unit { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeStreamPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeStreamPtr, NIL) } /** @@ -112,7 +112,7 @@ public open class AudioStreamRandomizer : AudioStream() { */ public final fun setStream(index: Int, stream: AudioStream?): Unit { TransferContext.writeArguments(LONG to index.toLong(), OBJECT to stream) - TransferContext.callMethod(rawPtr, MethodBindings.setStreamPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStreamPtr, NIL) } /** @@ -120,7 +120,7 @@ public open class AudioStreamRandomizer : AudioStream() { */ public final fun getStream(index: Int): AudioStream? { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getStreamPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getStreamPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as AudioStream?) } @@ -130,7 +130,7 @@ public open class AudioStreamRandomizer : AudioStream() { */ public final fun setStreamProbabilityWeight(index: Int, weight: Float): Unit { TransferContext.writeArguments(LONG to index.toLong(), DOUBLE to weight.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setStreamProbabilityWeightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStreamProbabilityWeightPtr, NIL) } /** @@ -138,51 +138,51 @@ public open class AudioStreamRandomizer : AudioStream() { */ public final fun getStreamProbabilityWeight(index: Int): Float { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getStreamProbabilityWeightPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getStreamProbabilityWeightPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setStreamsCount(count: Int): Unit { TransferContext.writeArguments(LONG to count.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setStreamsCountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStreamsCountPtr, NIL) } public final fun getStreamsCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStreamsCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getStreamsCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setRandomPitch(scale: Float): Unit { TransferContext.writeArguments(DOUBLE to scale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRandomPitchPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRandomPitchPtr, NIL) } public final fun getRandomPitch(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRandomPitchPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRandomPitchPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setRandomVolumeOffsetDb(dbOffset: Float): Unit { TransferContext.writeArguments(DOUBLE to dbOffset.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRandomVolumeOffsetDbPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRandomVolumeOffsetDbPtr, NIL) } public final fun getRandomVolumeOffsetDb(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRandomVolumeOffsetDbPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRandomVolumeOffsetDbPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setPlaybackMode(mode: PlaybackMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setPlaybackModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPlaybackModePtr, NIL) } public final fun getPlaybackMode(): PlaybackMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPlaybackModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPlaybackModePtr, LONG) return AudioStreamRandomizer.PlaybackMode.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamSynchronized.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamSynchronized.kt index 2690bc79f4..a541970b6a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamSynchronized.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamSynchronized.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -46,12 +46,12 @@ public open class AudioStreamSynchronized : AudioStream() { public final fun setStreamCount(streamCount: Int): Unit { TransferContext.writeArguments(LONG to streamCount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setStreamCountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStreamCountPtr, NIL) } public final fun getStreamCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStreamCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getStreamCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -60,7 +60,7 @@ public open class AudioStreamSynchronized : AudioStream() { */ public final fun setSyncStream(streamIndex: Int, audioStream: AudioStream?): Unit { TransferContext.writeArguments(LONG to streamIndex.toLong(), OBJECT to audioStream) - TransferContext.callMethod(rawPtr, MethodBindings.setSyncStreamPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSyncStreamPtr, NIL) } /** @@ -68,7 +68,7 @@ public open class AudioStreamSynchronized : AudioStream() { */ public final fun getSyncStream(streamIndex: Int): AudioStream? { TransferContext.writeArguments(LONG to streamIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSyncStreamPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getSyncStreamPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as AudioStream?) } @@ -77,7 +77,7 @@ public open class AudioStreamSynchronized : AudioStream() { */ public final fun setSyncStreamVolume(streamIndex: Int, volumeDb: Float): Unit { TransferContext.writeArguments(LONG to streamIndex.toLong(), DOUBLE to volumeDb.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSyncStreamVolumePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSyncStreamVolumePtr, NIL) } /** @@ -85,7 +85,7 @@ public open class AudioStreamSynchronized : AudioStream() { */ public final fun getSyncStreamVolume(streamIndex: Int): Float { TransferContext.writeArguments(LONG to streamIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSyncStreamVolumePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSyncStreamVolumePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamWAV.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamWAV.kt index d636420f30..bb4b2f9645 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamWAV.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/AudioStreamWAV.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedByteArray import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -15,7 +16,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -130,78 +130,78 @@ public open class AudioStreamWAV : AudioStream() { public final fun setData(`data`: PackedByteArray): Unit { TransferContext.writeArguments(PACKED_BYTE_ARRAY to data) - TransferContext.callMethod(rawPtr, MethodBindings.setDataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDataPtr, NIL) } public final fun getData(): PackedByteArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDataPtr, PACKED_BYTE_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getDataPtr, PACKED_BYTE_ARRAY) return (TransferContext.readReturnValue(PACKED_BYTE_ARRAY) as PackedByteArray) } public final fun setFormat(format: Format): Unit { TransferContext.writeArguments(LONG to format.id) - TransferContext.callMethod(rawPtr, MethodBindings.setFormatPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFormatPtr, NIL) } public final fun getFormat(): Format { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFormatPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFormatPtr, LONG) return AudioStreamWAV.Format.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setLoopMode(loopMode: LoopMode): Unit { TransferContext.writeArguments(LONG to loopMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setLoopModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLoopModePtr, NIL) } public final fun getLoopMode(): LoopMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLoopModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLoopModePtr, LONG) return AudioStreamWAV.LoopMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setLoopBegin(loopBegin: Int): Unit { TransferContext.writeArguments(LONG to loopBegin.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setLoopBeginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLoopBeginPtr, NIL) } public final fun getLoopBegin(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLoopBeginPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLoopBeginPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setLoopEnd(loopEnd: Int): Unit { TransferContext.writeArguments(LONG to loopEnd.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setLoopEndPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLoopEndPtr, NIL) } public final fun getLoopEnd(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLoopEndPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLoopEndPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setMixRate(mixRate: Int): Unit { TransferContext.writeArguments(LONG to mixRate.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMixRatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMixRatePtr, NIL) } public final fun getMixRate(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMixRatePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMixRatePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setStereo(stereo: Boolean): Unit { TransferContext.writeArguments(BOOL to stereo) - TransferContext.callMethod(rawPtr, MethodBindings.setStereoPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStereoPtr, NIL) } public final fun isStereo(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isStereoPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isStereoPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -212,7 +212,7 @@ public open class AudioStreamWAV : AudioStream() { */ public final fun saveToWav(path: String): Error { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.saveToWavPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.saveToWavPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/BackBufferCopy.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/BackBufferCopy.kt index 5dba77858f..ef57df7bc5 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/BackBufferCopy.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/BackBufferCopy.kt @@ -9,13 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Rect2 import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.RECT2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -87,23 +87,23 @@ public open class BackBufferCopy : Node2D() { public final fun setRect(rect: Rect2): Unit { TransferContext.writeArguments(RECT2 to rect) - TransferContext.callMethod(rawPtr, MethodBindings.setRectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRectPtr, NIL) } public final fun getRect(): Rect2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRectPtr, RECT2) + TransferContext.callMethod(ptr, MethodBindings.getRectPtr, RECT2) return (TransferContext.readReturnValue(RECT2) as Rect2) } public final fun setCopyMode(copyMode: CopyMode): Unit { TransferContext.writeArguments(LONG to copyMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setCopyModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCopyModePtr, NIL) } public final fun getCopyMode(): CopyMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCopyModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCopyModePtr, LONG) return BackBufferCopy.CopyMode.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/BaseButton.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/BaseButton.kt index 2cde5938c8..e876aa73a2 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/BaseButton.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/BaseButton.kt @@ -8,6 +8,7 @@ package godot import godot.MouseButtonMaskValue import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.Signal1 import godot.core.TypeManager @@ -16,7 +17,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -193,12 +193,12 @@ public open class BaseButton : Control() { public final fun setPressed(pressed: Boolean): Unit { TransferContext.writeArguments(BOOL to pressed) - TransferContext.callMethod(rawPtr, MethodBindings.setPressedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPressedPtr, NIL) } public final fun isPressed(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isPressedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPressedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -210,7 +210,7 @@ public open class BaseButton : Control() { */ public final fun setPressedNoSignal(pressed: Boolean): Unit { TransferContext.writeArguments(BOOL to pressed) - TransferContext.callMethod(rawPtr, MethodBindings.setPressedNoSignalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPressedNoSignalPtr, NIL) } /** @@ -218,62 +218,62 @@ public open class BaseButton : Control() { */ public final fun isHovered(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isHoveredPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isHoveredPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setToggleMode(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setToggleModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setToggleModePtr, NIL) } public final fun isToggleMode(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isToggleModePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isToggleModePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setShortcutInTooltip(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setShortcutInTooltipPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShortcutInTooltipPtr, NIL) } public final fun isShortcutInTooltipEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isShortcutInTooltipEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isShortcutInTooltipEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDisabled(disabled: Boolean): Unit { TransferContext.writeArguments(BOOL to disabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDisabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDisabledPtr, NIL) } public final fun isDisabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDisabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDisabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setActionMode(mode: ActionMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setActionModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setActionModePtr, NIL) } public final fun getActionMode(): ActionMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getActionModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getActionModePtr, LONG) return BaseButton.ActionMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setButtonMask(mask: MouseButtonMask): Unit { TransferContext.writeArguments(LONG to mask.flag) - TransferContext.callMethod(rawPtr, MethodBindings.setButtonMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setButtonMaskPtr, NIL) } public final fun getButtonMask(): MouseButtonMask { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getButtonMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getButtonMaskPtr, LONG) return MouseButtonMaskValue(TransferContext.readReturnValue(LONG) as Long) } @@ -284,51 +284,51 @@ public open class BaseButton : Control() { */ public final fun getDrawMode(): DrawMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDrawModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDrawModePtr, LONG) return BaseButton.DrawMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setKeepPressedOutside(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setKeepPressedOutsidePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setKeepPressedOutsidePtr, NIL) } public final fun isKeepPressedOutside(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isKeepPressedOutsidePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isKeepPressedOutsidePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setShortcutFeedback(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setShortcutFeedbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShortcutFeedbackPtr, NIL) } public final fun isShortcutFeedback(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isShortcutFeedbackPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isShortcutFeedbackPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setShortcut(shortcut: Shortcut?): Unit { TransferContext.writeArguments(OBJECT to shortcut) - TransferContext.callMethod(rawPtr, MethodBindings.setShortcutPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShortcutPtr, NIL) } public final fun getShortcut(): Shortcut? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getShortcutPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getShortcutPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Shortcut?) } public final fun setButtonGroup(buttonGroup: ButtonGroup?): Unit { TransferContext.writeArguments(OBJECT to buttonGroup) - TransferContext.callMethod(rawPtr, MethodBindings.setButtonGroupPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setButtonGroupPtr, NIL) } public final fun getButtonGroup(): ButtonGroup? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getButtonGroupPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getButtonGroupPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as ButtonGroup?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/BaseMaterial3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/BaseMaterial3D.kt index 1009c0b38f..3a8b325144 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/BaseMaterial3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/BaseMaterial3D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -20,7 +21,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -1774,342 +1774,342 @@ public open class BaseMaterial3D internal constructor() : Material() { public final fun setAlbedo(albedo: Color): Unit { TransferContext.writeArguments(COLOR to albedo) - TransferContext.callMethod(rawPtr, MethodBindings.setAlbedoPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAlbedoPtr, NIL) } public final fun getAlbedo(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAlbedoPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getAlbedoPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setTransparency(transparency: Transparency): Unit { TransferContext.writeArguments(LONG to transparency.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTransparencyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTransparencyPtr, NIL) } public final fun getTransparency(): Transparency { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTransparencyPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTransparencyPtr, LONG) return BaseMaterial3D.Transparency.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setAlphaAntialiasing(alphaAa: AlphaAntiAliasing): Unit { TransferContext.writeArguments(LONG to alphaAa.id) - TransferContext.callMethod(rawPtr, MethodBindings.setAlphaAntialiasingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAlphaAntialiasingPtr, NIL) } public final fun getAlphaAntialiasing(): AlphaAntiAliasing { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAlphaAntialiasingPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAlphaAntialiasingPtr, LONG) return BaseMaterial3D.AlphaAntiAliasing.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setAlphaAntialiasingEdge(edge: Float): Unit { TransferContext.writeArguments(DOUBLE to edge.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAlphaAntialiasingEdgePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAlphaAntialiasingEdgePtr, NIL) } public final fun getAlphaAntialiasingEdge(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAlphaAntialiasingEdgePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAlphaAntialiasingEdgePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setShadingMode(shadingMode: ShadingMode): Unit { TransferContext.writeArguments(LONG to shadingMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setShadingModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShadingModePtr, NIL) } public final fun getShadingMode(): ShadingMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getShadingModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getShadingModePtr, LONG) return BaseMaterial3D.ShadingMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setSpecular(specular: Float): Unit { TransferContext.writeArguments(DOUBLE to specular.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSpecularPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSpecularPtr, NIL) } public final fun getSpecular(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSpecularPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSpecularPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setMetallic(metallic: Float): Unit { TransferContext.writeArguments(DOUBLE to metallic.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMetallicPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMetallicPtr, NIL) } public final fun getMetallic(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMetallicPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMetallicPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setRoughness(roughness: Float): Unit { TransferContext.writeArguments(DOUBLE to roughness.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRoughnessPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRoughnessPtr, NIL) } public final fun getRoughness(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRoughnessPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRoughnessPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setEmission(emission: Color): Unit { TransferContext.writeArguments(COLOR to emission) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionPtr, NIL) } public final fun getEmission(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmissionPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getEmissionPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setEmissionEnergyMultiplier(emissionEnergyMultiplier: Float): Unit { TransferContext.writeArguments(DOUBLE to emissionEnergyMultiplier.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionEnergyMultiplierPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionEnergyMultiplierPtr, NIL) } public final fun getEmissionEnergyMultiplier(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmissionEnergyMultiplierPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getEmissionEnergyMultiplierPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setEmissionIntensity(emissionEnergyMultiplier: Float): Unit { TransferContext.writeArguments(DOUBLE to emissionEnergyMultiplier.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionIntensityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionIntensityPtr, NIL) } public final fun getEmissionIntensity(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmissionIntensityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getEmissionIntensityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setNormalScale(normalScale: Float): Unit { TransferContext.writeArguments(DOUBLE to normalScale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setNormalScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNormalScalePtr, NIL) } public final fun getNormalScale(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNormalScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getNormalScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setRim(rim: Float): Unit { TransferContext.writeArguments(DOUBLE to rim.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRimPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRimPtr, NIL) } public final fun getRim(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRimPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRimPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setRimTint(rimTint: Float): Unit { TransferContext.writeArguments(DOUBLE to rimTint.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRimTintPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRimTintPtr, NIL) } public final fun getRimTint(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRimTintPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRimTintPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setClearcoat(clearcoat: Float): Unit { TransferContext.writeArguments(DOUBLE to clearcoat.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setClearcoatPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setClearcoatPtr, NIL) } public final fun getClearcoat(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getClearcoatPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getClearcoatPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setClearcoatRoughness(clearcoatRoughness: Float): Unit { TransferContext.writeArguments(DOUBLE to clearcoatRoughness.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setClearcoatRoughnessPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setClearcoatRoughnessPtr, NIL) } public final fun getClearcoatRoughness(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getClearcoatRoughnessPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getClearcoatRoughnessPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAnisotropy(anisotropy: Float): Unit { TransferContext.writeArguments(DOUBLE to anisotropy.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAnisotropyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAnisotropyPtr, NIL) } public final fun getAnisotropy(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAnisotropyPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAnisotropyPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setHeightmapScale(heightmapScale: Float): Unit { TransferContext.writeArguments(DOUBLE to heightmapScale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setHeightmapScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHeightmapScalePtr, NIL) } public final fun getHeightmapScale(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHeightmapScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getHeightmapScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSubsurfaceScatteringStrength(strength: Float): Unit { TransferContext.writeArguments(DOUBLE to strength.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSubsurfaceScatteringStrengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSubsurfaceScatteringStrengthPtr, NIL) } public final fun getSubsurfaceScatteringStrength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSubsurfaceScatteringStrengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSubsurfaceScatteringStrengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setTransmittanceColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setTransmittanceColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTransmittanceColorPtr, NIL) } public final fun getTransmittanceColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTransmittanceColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getTransmittanceColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setTransmittanceDepth(depth: Float): Unit { TransferContext.writeArguments(DOUBLE to depth.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTransmittanceDepthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTransmittanceDepthPtr, NIL) } public final fun getTransmittanceDepth(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTransmittanceDepthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTransmittanceDepthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setTransmittanceBoost(boost: Float): Unit { TransferContext.writeArguments(DOUBLE to boost.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTransmittanceBoostPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTransmittanceBoostPtr, NIL) } public final fun getTransmittanceBoost(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTransmittanceBoostPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTransmittanceBoostPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setBacklight(backlight: Color): Unit { TransferContext.writeArguments(COLOR to backlight) - TransferContext.callMethod(rawPtr, MethodBindings.setBacklightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBacklightPtr, NIL) } public final fun getBacklight(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBacklightPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getBacklightPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setRefraction(refraction: Float): Unit { TransferContext.writeArguments(DOUBLE to refraction.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRefractionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRefractionPtr, NIL) } public final fun getRefraction(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRefractionPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRefractionPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setPointSize(pointSize: Float): Unit { TransferContext.writeArguments(DOUBLE to pointSize.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPointSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPointSizePtr, NIL) } public final fun getPointSize(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPointSizePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPointSizePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDetailUv(detailUv: DetailUV): Unit { TransferContext.writeArguments(LONG to detailUv.id) - TransferContext.callMethod(rawPtr, MethodBindings.setDetailUvPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDetailUvPtr, NIL) } public final fun getDetailUv(): DetailUV { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDetailUvPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDetailUvPtr, LONG) return BaseMaterial3D.DetailUV.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setBlendMode(blendMode: BlendMode): Unit { TransferContext.writeArguments(LONG to blendMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setBlendModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBlendModePtr, NIL) } public final fun getBlendMode(): BlendMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBlendModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBlendModePtr, LONG) return BaseMaterial3D.BlendMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setDepthDrawMode(depthDrawMode: DepthDrawMode): Unit { TransferContext.writeArguments(LONG to depthDrawMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setDepthDrawModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDepthDrawModePtr, NIL) } public final fun getDepthDrawMode(): DepthDrawMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDepthDrawModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDepthDrawModePtr, LONG) return BaseMaterial3D.DepthDrawMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setCullMode(cullMode: CullMode): Unit { TransferContext.writeArguments(LONG to cullMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setCullModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCullModePtr, NIL) } public final fun getCullMode(): CullMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCullModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCullModePtr, LONG) return BaseMaterial3D.CullMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setDiffuseMode(diffuseMode: DiffuseMode): Unit { TransferContext.writeArguments(LONG to diffuseMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setDiffuseModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDiffuseModePtr, NIL) } public final fun getDiffuseMode(): DiffuseMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDiffuseModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDiffuseModePtr, LONG) return BaseMaterial3D.DiffuseMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setSpecularMode(specularMode: SpecularMode): Unit { TransferContext.writeArguments(LONG to specularMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setSpecularModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSpecularModePtr, NIL) } public final fun getSpecularMode(): SpecularMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSpecularModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSpecularModePtr, LONG) return BaseMaterial3D.SpecularMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -2121,7 +2121,7 @@ public open class BaseMaterial3D internal constructor() : Material() { */ public final fun setFlag(flag: Flags, enable: Boolean): Unit { TransferContext.writeArguments(LONG to flag.id, BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setFlagPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFlagPtr, NIL) } /** @@ -2129,18 +2129,18 @@ public open class BaseMaterial3D internal constructor() : Material() { */ public final fun getFlag(flag: Flags): Boolean { TransferContext.writeArguments(LONG to flag.id) - TransferContext.callMethod(rawPtr, MethodBindings.getFlagPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getFlagPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setTextureFilter(mode: TextureFilter): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureFilterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureFilterPtr, NIL) } public final fun getTextureFilter(): TextureFilter { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextureFilterPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTextureFilterPtr, LONG) return BaseMaterial3D.TextureFilter.from(TransferContext.readReturnValue(LONG) as Long) } @@ -2152,7 +2152,7 @@ public open class BaseMaterial3D internal constructor() : Material() { */ public final fun setFeature(feature: Feature, enable: Boolean): Unit { TransferContext.writeArguments(LONG to feature.id, BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setFeaturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFeaturePtr, NIL) } /** @@ -2160,7 +2160,7 @@ public open class BaseMaterial3D internal constructor() : Material() { */ public final fun getFeature(feature: Feature): Boolean { TransferContext.writeArguments(LONG to feature.id) - TransferContext.callMethod(rawPtr, MethodBindings.getFeaturePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getFeaturePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -2169,7 +2169,7 @@ public open class BaseMaterial3D internal constructor() : Material() { */ public final fun setTexture(`param`: TextureParam, texture: Texture2D?): Unit { TransferContext.writeArguments(LONG to param.id, OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTexturePtr, NIL) } /** @@ -2177,370 +2177,370 @@ public open class BaseMaterial3D internal constructor() : Material() { */ public final fun getTexture(`param`: TextureParam): Texture2D? { TransferContext.writeArguments(LONG to param.id) - TransferContext.callMethod(rawPtr, MethodBindings.getTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } public final fun setDetailBlendMode(detailBlendMode: BlendMode): Unit { TransferContext.writeArguments(LONG to detailBlendMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setDetailBlendModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDetailBlendModePtr, NIL) } public final fun getDetailBlendMode(): BlendMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDetailBlendModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDetailBlendModePtr, LONG) return BaseMaterial3D.BlendMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setUv1Scale(scale: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to scale) - TransferContext.callMethod(rawPtr, MethodBindings.setUv1ScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUv1ScalePtr, NIL) } public final fun getUv1Scale(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUv1ScalePtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getUv1ScalePtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setUv1Offset(offset: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.setUv1OffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUv1OffsetPtr, NIL) } public final fun getUv1Offset(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUv1OffsetPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getUv1OffsetPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setUv1TriplanarBlendSharpness(sharpness: Float): Unit { TransferContext.writeArguments(DOUBLE to sharpness.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setUv1TriplanarBlendSharpnessPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUv1TriplanarBlendSharpnessPtr, NIL) } public final fun getUv1TriplanarBlendSharpness(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUv1TriplanarBlendSharpnessPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getUv1TriplanarBlendSharpnessPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setUv2Scale(scale: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to scale) - TransferContext.callMethod(rawPtr, MethodBindings.setUv2ScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUv2ScalePtr, NIL) } public final fun getUv2Scale(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUv2ScalePtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getUv2ScalePtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setUv2Offset(offset: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.setUv2OffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUv2OffsetPtr, NIL) } public final fun getUv2Offset(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUv2OffsetPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getUv2OffsetPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setUv2TriplanarBlendSharpness(sharpness: Float): Unit { TransferContext.writeArguments(DOUBLE to sharpness.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setUv2TriplanarBlendSharpnessPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUv2TriplanarBlendSharpnessPtr, NIL) } public final fun getUv2TriplanarBlendSharpness(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUv2TriplanarBlendSharpnessPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getUv2TriplanarBlendSharpnessPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setBillboardMode(mode: BillboardMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setBillboardModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBillboardModePtr, NIL) } public final fun getBillboardMode(): BillboardMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBillboardModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBillboardModePtr, LONG) return BaseMaterial3D.BillboardMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setParticlesAnimHFrames(frames: Int): Unit { TransferContext.writeArguments(LONG to frames.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setParticlesAnimHFramesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setParticlesAnimHFramesPtr, NIL) } public final fun getParticlesAnimHFrames(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getParticlesAnimHFramesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getParticlesAnimHFramesPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setParticlesAnimVFrames(frames: Int): Unit { TransferContext.writeArguments(LONG to frames.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setParticlesAnimVFramesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setParticlesAnimVFramesPtr, NIL) } public final fun getParticlesAnimVFrames(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getParticlesAnimVFramesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getParticlesAnimVFramesPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setParticlesAnimLoop(loop: Boolean): Unit { TransferContext.writeArguments(BOOL to loop) - TransferContext.callMethod(rawPtr, MethodBindings.setParticlesAnimLoopPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setParticlesAnimLoopPtr, NIL) } public final fun getParticlesAnimLoop(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getParticlesAnimLoopPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getParticlesAnimLoopPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setHeightmapDeepParallax(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setHeightmapDeepParallaxPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHeightmapDeepParallaxPtr, NIL) } public final fun isHeightmapDeepParallaxEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isHeightmapDeepParallaxEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isHeightmapDeepParallaxEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setHeightmapDeepParallaxMinLayers(layer: Int): Unit { TransferContext.writeArguments(LONG to layer.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setHeightmapDeepParallaxMinLayersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHeightmapDeepParallaxMinLayersPtr, NIL) } public final fun getHeightmapDeepParallaxMinLayers(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHeightmapDeepParallaxMinLayersPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getHeightmapDeepParallaxMinLayersPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setHeightmapDeepParallaxMaxLayers(layer: Int): Unit { TransferContext.writeArguments(LONG to layer.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setHeightmapDeepParallaxMaxLayersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHeightmapDeepParallaxMaxLayersPtr, NIL) } public final fun getHeightmapDeepParallaxMaxLayers(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHeightmapDeepParallaxMaxLayersPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getHeightmapDeepParallaxMaxLayersPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setHeightmapDeepParallaxFlipTangent(flip: Boolean): Unit { TransferContext.writeArguments(BOOL to flip) - TransferContext.callMethod(rawPtr, MethodBindings.setHeightmapDeepParallaxFlipTangentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHeightmapDeepParallaxFlipTangentPtr, NIL) } public final fun getHeightmapDeepParallaxFlipTangent(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHeightmapDeepParallaxFlipTangentPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getHeightmapDeepParallaxFlipTangentPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setHeightmapDeepParallaxFlipBinormal(flip: Boolean): Unit { TransferContext.writeArguments(BOOL to flip) - TransferContext.callMethod(rawPtr, MethodBindings.setHeightmapDeepParallaxFlipBinormalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHeightmapDeepParallaxFlipBinormalPtr, NIL) } public final fun getHeightmapDeepParallaxFlipBinormal(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHeightmapDeepParallaxFlipBinormalPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getHeightmapDeepParallaxFlipBinormalPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setGrow(amount: Float): Unit { TransferContext.writeArguments(DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setGrowPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGrowPtr, NIL) } public final fun getGrow(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGrowPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getGrowPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setEmissionOperator(`operator`: EmissionOperator): Unit { TransferContext.writeArguments(LONG to `operator`.id) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionOperatorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionOperatorPtr, NIL) } public final fun getEmissionOperator(): EmissionOperator { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmissionOperatorPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getEmissionOperatorPtr, LONG) return BaseMaterial3D.EmissionOperator.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setAoLightAffect(amount: Float): Unit { TransferContext.writeArguments(DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAoLightAffectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAoLightAffectPtr, NIL) } public final fun getAoLightAffect(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAoLightAffectPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAoLightAffectPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAlphaScissorThreshold(threshold: Float): Unit { TransferContext.writeArguments(DOUBLE to threshold.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAlphaScissorThresholdPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAlphaScissorThresholdPtr, NIL) } public final fun getAlphaScissorThreshold(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAlphaScissorThresholdPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAlphaScissorThresholdPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAlphaHashScale(threshold: Float): Unit { TransferContext.writeArguments(DOUBLE to threshold.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAlphaHashScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAlphaHashScalePtr, NIL) } public final fun getAlphaHashScale(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAlphaHashScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAlphaHashScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setGrowEnabled(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setGrowEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGrowEnabledPtr, NIL) } public final fun isGrowEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isGrowEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isGrowEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setMetallicTextureChannel(channel: TextureChannel): Unit { TransferContext.writeArguments(LONG to channel.id) - TransferContext.callMethod(rawPtr, MethodBindings.setMetallicTextureChannelPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMetallicTextureChannelPtr, NIL) } public final fun getMetallicTextureChannel(): TextureChannel { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMetallicTextureChannelPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMetallicTextureChannelPtr, LONG) return BaseMaterial3D.TextureChannel.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setRoughnessTextureChannel(channel: TextureChannel): Unit { TransferContext.writeArguments(LONG to channel.id) - TransferContext.callMethod(rawPtr, MethodBindings.setRoughnessTextureChannelPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRoughnessTextureChannelPtr, NIL) } public final fun getRoughnessTextureChannel(): TextureChannel { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRoughnessTextureChannelPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getRoughnessTextureChannelPtr, LONG) return BaseMaterial3D.TextureChannel.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setAoTextureChannel(channel: TextureChannel): Unit { TransferContext.writeArguments(LONG to channel.id) - TransferContext.callMethod(rawPtr, MethodBindings.setAoTextureChannelPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAoTextureChannelPtr, NIL) } public final fun getAoTextureChannel(): TextureChannel { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAoTextureChannelPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAoTextureChannelPtr, LONG) return BaseMaterial3D.TextureChannel.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setRefractionTextureChannel(channel: TextureChannel): Unit { TransferContext.writeArguments(LONG to channel.id) - TransferContext.callMethod(rawPtr, MethodBindings.setRefractionTextureChannelPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRefractionTextureChannelPtr, NIL) } public final fun getRefractionTextureChannel(): TextureChannel { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRefractionTextureChannelPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getRefractionTextureChannelPtr, LONG) return BaseMaterial3D.TextureChannel.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setProximityFadeEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setProximityFadeEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setProximityFadeEnabledPtr, NIL) } public final fun isProximityFadeEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isProximityFadeEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isProximityFadeEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setProximityFadeDistance(distance: Float): Unit { TransferContext.writeArguments(DOUBLE to distance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setProximityFadeDistancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setProximityFadeDistancePtr, NIL) } public final fun getProximityFadeDistance(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getProximityFadeDistancePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getProximityFadeDistancePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setMsdfPixelRange(range: Float): Unit { TransferContext.writeArguments(DOUBLE to range.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMsdfPixelRangePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMsdfPixelRangePtr, NIL) } public final fun getMsdfPixelRange(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMsdfPixelRangePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMsdfPixelRangePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setMsdfOutlineSize(size: Float): Unit { TransferContext.writeArguments(DOUBLE to size.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMsdfOutlineSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMsdfOutlineSizePtr, NIL) } public final fun getMsdfOutlineSize(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMsdfOutlineSizePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMsdfOutlineSizePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDistanceFade(mode: DistanceFadeMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setDistanceFadePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDistanceFadePtr, NIL) } public final fun getDistanceFade(): DistanceFadeMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDistanceFadePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDistanceFadePtr, LONG) return BaseMaterial3D.DistanceFadeMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setDistanceFadeMaxDistance(distance: Float): Unit { TransferContext.writeArguments(DOUBLE to distance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDistanceFadeMaxDistancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDistanceFadeMaxDistancePtr, NIL) } public final fun getDistanceFadeMaxDistance(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDistanceFadeMaxDistancePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDistanceFadeMaxDistancePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDistanceFadeMinDistance(distance: Float): Unit { TransferContext.writeArguments(DOUBLE to distance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDistanceFadeMinDistancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDistanceFadeMinDistancePtr, NIL) } public final fun getDistanceFadeMinDistance(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDistanceFadeMinDistancePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDistanceFadeMinDistancePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/BitMap.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/BitMap.kt index 6be9ee874e..05f0b94c7e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/BitMap.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/BitMap.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedVector2Array import godot.core.Rect2i import godot.core.TypeManager @@ -21,7 +22,6 @@ import godot.core.VariantParser.RECT2I import godot.core.VariantParser.VECTOR2I import godot.core.Vector2i import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Float import kotlin.Int @@ -45,7 +45,7 @@ public open class BitMap : Resource() { */ public final fun create(size: Vector2i): Unit { TransferContext.writeArguments(VECTOR2I to size) - TransferContext.callMethod(rawPtr, MethodBindings.createPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.createPtr, NIL) } /** @@ -56,7 +56,7 @@ public open class BitMap : Resource() { @JvmOverloads public final fun createFromImageAlpha(image: Image?, threshold: Float = 0.1f): Unit { TransferContext.writeArguments(OBJECT to image, DOUBLE to threshold.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.createFromImageAlphaPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.createFromImageAlphaPtr, NIL) } /** @@ -64,7 +64,7 @@ public open class BitMap : Resource() { */ public final fun setBitv(position: Vector2i, bit: Boolean): Unit { TransferContext.writeArguments(VECTOR2I to position, BOOL to bit) - TransferContext.callMethod(rawPtr, MethodBindings.setBitvPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBitvPtr, NIL) } /** @@ -76,7 +76,7 @@ public open class BitMap : Resource() { bit: Boolean, ): Unit { TransferContext.writeArguments(LONG to x.toLong(), LONG to y.toLong(), BOOL to bit) - TransferContext.callMethod(rawPtr, MethodBindings.setBitPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBitPtr, NIL) } /** @@ -84,7 +84,7 @@ public open class BitMap : Resource() { */ public final fun getBitv(position: Vector2i): Boolean { TransferContext.writeArguments(VECTOR2I to position) - TransferContext.callMethod(rawPtr, MethodBindings.getBitvPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getBitvPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -93,7 +93,7 @@ public open class BitMap : Resource() { */ public final fun getBit(x: Int, y: Int): Boolean { TransferContext.writeArguments(LONG to x.toLong(), LONG to y.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBitPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getBitPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -102,7 +102,7 @@ public open class BitMap : Resource() { */ public final fun setBitRect(rect: Rect2i, bit: Boolean): Unit { TransferContext.writeArguments(RECT2I to rect, BOOL to bit) - TransferContext.callMethod(rawPtr, MethodBindings.setBitRectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBitRectPtr, NIL) } /** @@ -110,7 +110,7 @@ public open class BitMap : Resource() { */ public final fun getTrueBitCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTrueBitCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTrueBitCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -119,7 +119,7 @@ public open class BitMap : Resource() { */ public final fun getSize(): Vector2i { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSizePtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getSizePtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -128,7 +128,7 @@ public open class BitMap : Resource() { */ public final fun resize(newSize: Vector2i): Unit { TransferContext.writeArguments(VECTOR2I to newSize) - TransferContext.callMethod(rawPtr, MethodBindings.resizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.resizePtr, NIL) } /** @@ -139,7 +139,7 @@ public open class BitMap : Resource() { */ public final fun growMask(pixels: Int, rect: Rect2i): Unit { TransferContext.writeArguments(LONG to pixels.toLong(), RECT2I to rect) - TransferContext.callMethod(rawPtr, MethodBindings.growMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.growMaskPtr, NIL) } /** @@ -149,7 +149,7 @@ public open class BitMap : Resource() { */ public final fun convertToImage(): Image? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.convertToImagePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.convertToImagePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Image?) } @@ -168,7 +168,7 @@ public open class BitMap : Resource() { public final fun opaqueToPolygons(rect: Rect2i, epsilon: Float = 2.0f): VariantArray { TransferContext.writeArguments(RECT2I to rect, DOUBLE to epsilon.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.opaqueToPolygonsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.opaqueToPolygonsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Bone2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Bone2D.kt index 8c7e333031..15da00c10c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Bone2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Bone2D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Transform2D import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -17,7 +18,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.TRANSFORM2D import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -83,12 +83,12 @@ public open class Bone2D : Node2D() { public final fun setRest(rest: Transform2D): Unit { TransferContext.writeArguments(TRANSFORM2D to rest) - TransferContext.callMethod(rawPtr, MethodBindings.setRestPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRestPtr, NIL) } public final fun getRest(): Transform2D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRestPtr, TRANSFORM2D) + TransferContext.callMethod(ptr, MethodBindings.getRestPtr, TRANSFORM2D) return (TransferContext.readReturnValue(TRANSFORM2D) as Transform2D) } @@ -97,7 +97,7 @@ public open class Bone2D : Node2D() { */ public final fun applyRest(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.applyRestPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.applyRestPtr, NIL) } /** @@ -106,7 +106,7 @@ public open class Bone2D : Node2D() { */ public final fun getSkeletonRest(): Transform2D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSkeletonRestPtr, TRANSFORM2D) + TransferContext.callMethod(ptr, MethodBindings.getSkeletonRestPtr, TRANSFORM2D) return (TransferContext.readReturnValue(TRANSFORM2D) as Transform2D) } @@ -115,7 +115,7 @@ public open class Bone2D : Node2D() { */ public final fun getIndexInSkeleton(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getIndexInSkeletonPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getIndexInSkeletonPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -126,7 +126,7 @@ public open class Bone2D : Node2D() { */ public final fun setAutocalculateLengthAndAngle(autoCalculate: Boolean): Unit { TransferContext.writeArguments(BOOL to autoCalculate) - TransferContext.callMethod(rawPtr, MethodBindings.setAutocalculateLengthAndAnglePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutocalculateLengthAndAnglePtr, NIL) } /** @@ -136,7 +136,7 @@ public open class Bone2D : Node2D() { */ public final fun getAutocalculateLengthAndAngle(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAutocalculateLengthAndAnglePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getAutocalculateLengthAndAnglePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -145,7 +145,7 @@ public open class Bone2D : Node2D() { */ public final fun setLength(length: Float): Unit { TransferContext.writeArguments(DOUBLE to length.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setLengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLengthPtr, NIL) } /** @@ -153,7 +153,7 @@ public open class Bone2D : Node2D() { */ public final fun getLength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -165,7 +165,7 @@ public open class Bone2D : Node2D() { */ public final fun setBoneAngle(angle: Float): Unit { TransferContext.writeArguments(DOUBLE to angle.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setBoneAnglePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBoneAnglePtr, NIL) } /** @@ -175,7 +175,7 @@ public open class Bone2D : Node2D() { */ public final fun getBoneAngle(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBoneAnglePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getBoneAnglePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/BoneAttachment3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/BoneAttachment3D.kt index 12bd76d0a5..e2cf368c9c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/BoneAttachment3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/BoneAttachment3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -15,7 +16,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -75,23 +75,23 @@ public open class BoneAttachment3D : Node3D() { public final fun setBoneName(boneName: String): Unit { TransferContext.writeArguments(STRING to boneName) - TransferContext.callMethod(rawPtr, MethodBindings.setBoneNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBoneNamePtr, NIL) } public final fun getBoneName(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBoneNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getBoneNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setBoneIdx(boneIdx: Int): Unit { TransferContext.writeArguments(LONG to boneIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setBoneIdxPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBoneIdxPtr, NIL) } public final fun getBoneIdx(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBoneIdxPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBoneIdxPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -102,17 +102,17 @@ public open class BoneAttachment3D : Node3D() { */ public final fun onSkeletonUpdate(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.onSkeletonUpdatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.onSkeletonUpdatePtr, NIL) } public final fun setOverridePose(overridePose: Boolean): Unit { TransferContext.writeArguments(BOOL to overridePose) - TransferContext.callMethod(rawPtr, MethodBindings.setOverridePosePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOverridePosePtr, NIL) } public final fun getOverridePose(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOverridePosePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getOverridePosePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -123,7 +123,7 @@ public open class BoneAttachment3D : Node3D() { */ public final fun setUseExternalSkeleton(useExternalSkeleton: Boolean): Unit { TransferContext.writeArguments(BOOL to useExternalSkeleton) - TransferContext.callMethod(rawPtr, MethodBindings.setUseExternalSkeletonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseExternalSkeletonPtr, NIL) } /** @@ -132,7 +132,7 @@ public open class BoneAttachment3D : Node3D() { */ public final fun getUseExternalSkeleton(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUseExternalSkeletonPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getUseExternalSkeletonPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -142,7 +142,7 @@ public open class BoneAttachment3D : Node3D() { */ public final fun setExternalSkeleton(externalSkeleton: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to externalSkeleton) - TransferContext.callMethod(rawPtr, MethodBindings.setExternalSkeletonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExternalSkeletonPtr, NIL) } /** @@ -150,7 +150,7 @@ public open class BoneAttachment3D : Node3D() { */ public final fun getExternalSkeleton(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getExternalSkeletonPtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getExternalSkeletonPtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/BoneMap.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/BoneMap.kt index d42834c53c..de7d18ef6c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/BoneMap.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/BoneMap.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.StringName import godot.core.TypeManager @@ -14,7 +15,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -57,13 +57,13 @@ public open class BoneMap : Resource() { public final fun getProfile(): SkeletonProfile? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getProfilePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getProfilePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as SkeletonProfile?) } public final fun setProfile(profile: SkeletonProfile?): Unit { TransferContext.writeArguments(OBJECT to profile) - TransferContext.callMethod(rawPtr, MethodBindings.setProfilePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setProfilePtr, NIL) } /** @@ -72,7 +72,7 @@ public open class BoneMap : Resource() { */ public final fun getSkeletonBoneName(profileBoneName: StringName): StringName { TransferContext.writeArguments(STRING_NAME to profileBoneName) - TransferContext.callMethod(rawPtr, MethodBindings.getSkeletonBoneNamePtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getSkeletonBoneNamePtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } @@ -83,7 +83,7 @@ public open class BoneMap : Resource() { public final fun setSkeletonBoneName(profileBoneName: StringName, skeletonBoneName: StringName): Unit { TransferContext.writeArguments(STRING_NAME to profileBoneName, STRING_NAME to skeletonBoneName) - TransferContext.callMethod(rawPtr, MethodBindings.setSkeletonBoneNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSkeletonBoneNamePtr, NIL) } /** @@ -93,7 +93,7 @@ public open class BoneMap : Resource() { */ public final fun findProfileBoneName(skeletonBoneName: StringName): StringName { TransferContext.writeArguments(STRING_NAME to skeletonBoneName) - TransferContext.callMethod(rawPtr, MethodBindings.findProfileBoneNamePtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.findProfileBoneNamePtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/BoxContainer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/BoxContainer.kt index 3455decff4..a3b19f98f9 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/BoxContainer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/BoxContainer.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -61,29 +61,29 @@ public open class BoxContainer : Container() { */ public final fun addSpacer(begin: Boolean): Control? { TransferContext.writeArguments(BOOL to begin) - TransferContext.callMethod(rawPtr, MethodBindings.addSpacerPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.addSpacerPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Control?) } public final fun setAlignment(alignment: AlignmentMode): Unit { TransferContext.writeArguments(LONG to alignment.id) - TransferContext.callMethod(rawPtr, MethodBindings.setAlignmentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAlignmentPtr, NIL) } public final fun getAlignment(): AlignmentMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAlignmentPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAlignmentPtr, LONG) return BoxContainer.AlignmentMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setVertical(vertical: Boolean): Unit { TransferContext.writeArguments(BOOL to vertical) - TransferContext.callMethod(rawPtr, MethodBindings.setVerticalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVerticalPtr, NIL) } public final fun isVertical(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isVerticalPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isVerticalPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/BoxMesh.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/BoxMesh.kt index 9b7d921703..dbc83dd3fc 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/BoxMesh.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/BoxMesh.kt @@ -9,13 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -108,45 +108,45 @@ public open class BoxMesh : PrimitiveMesh() { public final fun setSize(size: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to size) - TransferContext.callMethod(rawPtr, MethodBindings.setSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSizePtr, NIL) } public final fun getSize(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSizePtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getSizePtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setSubdivideWidth(subdivide: Int): Unit { TransferContext.writeArguments(LONG to subdivide.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSubdivideWidthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSubdivideWidthPtr, NIL) } public final fun getSubdivideWidth(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSubdivideWidthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSubdivideWidthPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setSubdivideHeight(divisions: Int): Unit { TransferContext.writeArguments(LONG to divisions.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSubdivideHeightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSubdivideHeightPtr, NIL) } public final fun getSubdivideHeight(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSubdivideHeightPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSubdivideHeightPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setSubdivideDepth(divisions: Int): Unit { TransferContext.writeArguments(LONG to divisions.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSubdivideDepthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSubdivideDepthPtr, NIL) } public final fun getSubdivideDepth(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSubdivideDepthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSubdivideDepthPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/BoxOccluder3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/BoxOccluder3D.kt index 7764110505..492e788712 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/BoxOccluder3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/BoxOccluder3D.kt @@ -9,12 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -68,12 +68,12 @@ public open class BoxOccluder3D : Occluder3D() { public final fun setSize(size: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to size) - TransferContext.callMethod(rawPtr, MethodBindings.setSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSizePtr, NIL) } public final fun getSize(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSizePtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getSizePtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/BoxShape3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/BoxShape3D.kt index f2ba019f2f..70083974ec 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/BoxShape3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/BoxShape3D.kt @@ -9,12 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -70,12 +70,12 @@ public open class BoxShape3D : Shape3D() { public final fun setSize(size: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to size) - TransferContext.callMethod(rawPtr, MethodBindings.setSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSizePtr, NIL) } public final fun getSize(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSizePtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getSizePtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Button.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Button.kt index 79a1329747..8dce8c66f4 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Button.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Button.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG @@ -14,7 +15,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -211,133 +211,133 @@ public open class Button : BaseButton() { public final fun setText(text: String): Unit { TransferContext.writeArguments(STRING to text) - TransferContext.callMethod(rawPtr, MethodBindings.setTextPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextPtr, NIL) } public final fun getText(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getTextPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setTextOverrunBehavior(overrunBehavior: TextServer.OverrunBehavior): Unit { TransferContext.writeArguments(LONG to overrunBehavior.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTextOverrunBehaviorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextOverrunBehaviorPtr, NIL) } public final fun getTextOverrunBehavior(): TextServer.OverrunBehavior { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextOverrunBehaviorPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTextOverrunBehaviorPtr, LONG) return TextServer.OverrunBehavior.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setAutowrapMode(autowrapMode: TextServer.AutowrapMode): Unit { TransferContext.writeArguments(LONG to autowrapMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setAutowrapModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutowrapModePtr, NIL) } public final fun getAutowrapMode(): TextServer.AutowrapMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAutowrapModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAutowrapModePtr, LONG) return TextServer.AutowrapMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setTextDirection(direction: Control.TextDirection): Unit { TransferContext.writeArguments(LONG to direction.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTextDirectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextDirectionPtr, NIL) } public final fun getTextDirection(): Control.TextDirection { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextDirectionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTextDirectionPtr, LONG) return Control.TextDirection.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setLanguage(language: String): Unit { TransferContext.writeArguments(STRING to language) - TransferContext.callMethod(rawPtr, MethodBindings.setLanguagePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLanguagePtr, NIL) } public final fun getLanguage(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLanguagePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getLanguagePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setButtonIcon(texture: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setButtonIconPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setButtonIconPtr, NIL) } public final fun getButtonIcon(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getButtonIconPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getButtonIconPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } public final fun setFlat(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setFlatPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFlatPtr, NIL) } public final fun isFlat(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isFlatPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isFlatPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setClipText(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setClipTextPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setClipTextPtr, NIL) } public final fun getClipText(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getClipTextPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getClipTextPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setTextAlignment(alignment: HorizontalAlignment): Unit { TransferContext.writeArguments(LONG to alignment.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTextAlignmentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextAlignmentPtr, NIL) } public final fun getTextAlignment(): HorizontalAlignment { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextAlignmentPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTextAlignmentPtr, LONG) return HorizontalAlignment.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setIconAlignment(iconAlignment: HorizontalAlignment): Unit { TransferContext.writeArguments(LONG to iconAlignment.id) - TransferContext.callMethod(rawPtr, MethodBindings.setIconAlignmentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIconAlignmentPtr, NIL) } public final fun getIconAlignment(): HorizontalAlignment { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getIconAlignmentPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getIconAlignmentPtr, LONG) return HorizontalAlignment.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setVerticalIconAlignment(verticalIconAlignment: VerticalAlignment): Unit { TransferContext.writeArguments(LONG to verticalIconAlignment.id) - TransferContext.callMethod(rawPtr, MethodBindings.setVerticalIconAlignmentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVerticalIconAlignmentPtr, NIL) } public final fun getVerticalIconAlignment(): VerticalAlignment { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVerticalIconAlignmentPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVerticalIconAlignmentPtr, LONG) return VerticalAlignment.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setExpandIcon(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setExpandIconPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExpandIconPtr, NIL) } public final fun isExpandIcon(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isExpandIconPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isExpandIconPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ButtonGroup.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ButtonGroup.kt index 8ad6992b1b..9eabd66fad 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ButtonGroup.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ButtonGroup.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal1 import godot.core.TypeManager import godot.core.VariantArray @@ -15,7 +16,6 @@ import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -55,7 +55,7 @@ public open class ButtonGroup : Resource() { */ public final fun getPressedButton(): BaseButton? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPressedButtonPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getPressedButtonPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as BaseButton?) } @@ -65,18 +65,18 @@ public open class ButtonGroup : Resource() { */ public final fun getButtons(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getButtonsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getButtonsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } public final fun setAllowUnpress(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setAllowUnpressPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAllowUnpressPtr, NIL) } public final fun isAllowUnpress(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isAllowUnpressPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isAllowUnpressPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CPUParticles2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CPUParticles2D.kt index 907733c2f9..a9923cf933 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CPUParticles2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CPUParticles2D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.PackedColorArray import godot.core.PackedVector2Array @@ -25,7 +26,6 @@ import godot.core.VariantParser.PACKED_VECTOR2_ARRAY import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -899,155 +899,155 @@ public open class CPUParticles2D : Node2D() { public final fun setEmitting(emitting: Boolean): Unit { TransferContext.writeArguments(BOOL to emitting) - TransferContext.callMethod(rawPtr, MethodBindings.setEmittingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmittingPtr, NIL) } public final fun setAmount(amount: Int): Unit { TransferContext.writeArguments(LONG to amount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setAmountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAmountPtr, NIL) } public final fun setLifetime(secs: Double): Unit { TransferContext.writeArguments(DOUBLE to secs) - TransferContext.callMethod(rawPtr, MethodBindings.setLifetimePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLifetimePtr, NIL) } public final fun setOneShot(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setOneShotPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOneShotPtr, NIL) } public final fun setPreProcessTime(secs: Double): Unit { TransferContext.writeArguments(DOUBLE to secs) - TransferContext.callMethod(rawPtr, MethodBindings.setPreProcessTimePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPreProcessTimePtr, NIL) } public final fun setExplosivenessRatio(ratio: Float): Unit { TransferContext.writeArguments(DOUBLE to ratio.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setExplosivenessRatioPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExplosivenessRatioPtr, NIL) } public final fun setRandomnessRatio(ratio: Float): Unit { TransferContext.writeArguments(DOUBLE to ratio.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRandomnessRatioPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRandomnessRatioPtr, NIL) } public final fun setLifetimeRandomness(random: Double): Unit { TransferContext.writeArguments(DOUBLE to random) - TransferContext.callMethod(rawPtr, MethodBindings.setLifetimeRandomnessPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLifetimeRandomnessPtr, NIL) } public final fun setUseLocalCoordinates(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setUseLocalCoordinatesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseLocalCoordinatesPtr, NIL) } public final fun setFixedFps(fps: Int): Unit { TransferContext.writeArguments(LONG to fps.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setFixedFpsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFixedFpsPtr, NIL) } public final fun setFractionalDelta(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setFractionalDeltaPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFractionalDeltaPtr, NIL) } public final fun setSpeedScale(scale: Double): Unit { TransferContext.writeArguments(DOUBLE to scale) - TransferContext.callMethod(rawPtr, MethodBindings.setSpeedScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSpeedScalePtr, NIL) } public final fun isEmitting(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isEmittingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isEmittingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun getAmount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAmountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAmountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun getLifetime(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLifetimePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLifetimePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun getOneShot(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOneShotPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getOneShotPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun getPreProcessTime(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPreProcessTimePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPreProcessTimePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun getExplosivenessRatio(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getExplosivenessRatioPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getExplosivenessRatioPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun getRandomnessRatio(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRandomnessRatioPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRandomnessRatioPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun getLifetimeRandomness(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLifetimeRandomnessPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLifetimeRandomnessPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun getUseLocalCoordinates(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUseLocalCoordinatesPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getUseLocalCoordinatesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun getFixedFps(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFixedFpsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFixedFpsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun getFractionalDelta(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFractionalDeltaPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getFractionalDeltaPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun getSpeedScale(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSpeedScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSpeedScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun setDrawOrder(order: DrawOrder): Unit { TransferContext.writeArguments(LONG to order.id) - TransferContext.callMethod(rawPtr, MethodBindings.setDrawOrderPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDrawOrderPtr, NIL) } public final fun getDrawOrder(): DrawOrder { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDrawOrderPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDrawOrderPtr, LONG) return CPUParticles2D.DrawOrder.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setTexture(texture: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTexturePtr, NIL) } public final fun getTexture(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } @@ -1056,28 +1056,28 @@ public open class CPUParticles2D : Node2D() { */ public final fun restart(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.restartPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.restartPtr, NIL) } public final fun setDirection(direction: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to direction) - TransferContext.callMethod(rawPtr, MethodBindings.setDirectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDirectionPtr, NIL) } public final fun getDirection(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDirectionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getDirectionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setSpread(spread: Float): Unit { TransferContext.writeArguments(DOUBLE to spread.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSpreadPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSpreadPtr, NIL) } public final fun getSpread(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSpreadPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSpreadPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1086,7 +1086,7 @@ public open class CPUParticles2D : Node2D() { */ public final fun setParamMin(`param`: Parameter, `value`: Float): Unit { TransferContext.writeArguments(LONG to param.id, DOUBLE to value.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setParamMinPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setParamMinPtr, NIL) } /** @@ -1094,7 +1094,7 @@ public open class CPUParticles2D : Node2D() { */ public final fun getParamMin(`param`: Parameter): Float { TransferContext.writeArguments(LONG to param.id) - TransferContext.callMethod(rawPtr, MethodBindings.getParamMinPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getParamMinPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1103,7 +1103,7 @@ public open class CPUParticles2D : Node2D() { */ public final fun setParamMax(`param`: Parameter, `value`: Float): Unit { TransferContext.writeArguments(LONG to param.id, DOUBLE to value.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setParamMaxPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setParamMaxPtr, NIL) } /** @@ -1111,7 +1111,7 @@ public open class CPUParticles2D : Node2D() { */ public final fun getParamMax(`param`: Parameter): Float { TransferContext.writeArguments(LONG to param.id) - TransferContext.callMethod(rawPtr, MethodBindings.getParamMaxPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getParamMaxPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1120,7 +1120,7 @@ public open class CPUParticles2D : Node2D() { */ public final fun setParamCurve(`param`: Parameter, curve: Curve?): Unit { TransferContext.writeArguments(LONG to param.id, OBJECT to curve) - TransferContext.callMethod(rawPtr, MethodBindings.setParamCurvePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setParamCurvePtr, NIL) } /** @@ -1128,40 +1128,40 @@ public open class CPUParticles2D : Node2D() { */ public final fun getParamCurve(`param`: Parameter): Curve? { TransferContext.writeArguments(LONG to param.id) - TransferContext.callMethod(rawPtr, MethodBindings.getParamCurvePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getParamCurvePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Curve?) } public final fun setColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColorPtr, NIL) } public final fun getColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setColorRamp(ramp: Gradient?): Unit { TransferContext.writeArguments(OBJECT to ramp) - TransferContext.callMethod(rawPtr, MethodBindings.setColorRampPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColorRampPtr, NIL) } public final fun getColorRamp(): Gradient? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColorRampPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getColorRampPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Gradient?) } public final fun setColorInitialRamp(ramp: Gradient?): Unit { TransferContext.writeArguments(OBJECT to ramp) - TransferContext.callMethod(rawPtr, MethodBindings.setColorInitialRampPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColorInitialRampPtr, NIL) } public final fun getColorInitialRamp(): Gradient? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColorInitialRampPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getColorInitialRampPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Gradient?) } @@ -1170,7 +1170,7 @@ public open class CPUParticles2D : Node2D() { */ public final fun setParticleFlag(particleFlag: ParticleFlags, enable: Boolean): Unit { TransferContext.writeArguments(LONG to particleFlag.id, BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setParticleFlagPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setParticleFlagPtr, NIL) } /** @@ -1178,118 +1178,118 @@ public open class CPUParticles2D : Node2D() { */ public final fun getParticleFlag(particleFlag: ParticleFlags): Boolean { TransferContext.writeArguments(LONG to particleFlag.id) - TransferContext.callMethod(rawPtr, MethodBindings.getParticleFlagPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getParticleFlagPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setEmissionShape(shape: EmissionShape): Unit { TransferContext.writeArguments(LONG to shape.id) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionShapePtr, NIL) } public final fun getEmissionShape(): EmissionShape { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmissionShapePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getEmissionShapePtr, LONG) return CPUParticles2D.EmissionShape.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setEmissionSphereRadius(radius: Float): Unit { TransferContext.writeArguments(DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionSphereRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionSphereRadiusPtr, NIL) } public final fun getEmissionSphereRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmissionSphereRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getEmissionSphereRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setEmissionRectExtents(extents: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to extents) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionRectExtentsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionRectExtentsPtr, NIL) } public final fun getEmissionRectExtents(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmissionRectExtentsPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getEmissionRectExtentsPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setEmissionPoints(array: PackedVector2Array): Unit { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to array) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionPointsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionPointsPtr, NIL) } public final fun getEmissionPoints(): PackedVector2Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmissionPointsPtr, PACKED_VECTOR2_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getEmissionPointsPtr, PACKED_VECTOR2_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR2_ARRAY) as PackedVector2Array) } public final fun setEmissionNormals(array: PackedVector2Array): Unit { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to array) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionNormalsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionNormalsPtr, NIL) } public final fun getEmissionNormals(): PackedVector2Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmissionNormalsPtr, PACKED_VECTOR2_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getEmissionNormalsPtr, PACKED_VECTOR2_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR2_ARRAY) as PackedVector2Array) } public final fun setEmissionColors(array: PackedColorArray): Unit { TransferContext.writeArguments(PACKED_COLOR_ARRAY to array) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionColorsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionColorsPtr, NIL) } public final fun getEmissionColors(): PackedColorArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmissionColorsPtr, PACKED_COLOR_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getEmissionColorsPtr, PACKED_COLOR_ARRAY) return (TransferContext.readReturnValue(PACKED_COLOR_ARRAY) as PackedColorArray) } public final fun getGravity(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGravityPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getGravityPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setGravity(accelVec: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to accelVec) - TransferContext.callMethod(rawPtr, MethodBindings.setGravityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGravityPtr, NIL) } public final fun getSplitScale(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSplitScalePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getSplitScalePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSplitScale(splitScale: Boolean): Unit { TransferContext.writeArguments(BOOL to splitScale) - TransferContext.callMethod(rawPtr, MethodBindings.setSplitScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSplitScalePtr, NIL) } public final fun getScaleCurveX(): Curve? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScaleCurveXPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getScaleCurveXPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Curve?) } public final fun setScaleCurveX(scaleCurve: Curve?): Unit { TransferContext.writeArguments(OBJECT to scaleCurve) - TransferContext.callMethod(rawPtr, MethodBindings.setScaleCurveXPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setScaleCurveXPtr, NIL) } public final fun getScaleCurveY(): Curve? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScaleCurveYPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getScaleCurveYPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Curve?) } public final fun setScaleCurveY(scaleCurve: Curve?): Unit { TransferContext.writeArguments(OBJECT to scaleCurve) - TransferContext.callMethod(rawPtr, MethodBindings.setScaleCurveYPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setScaleCurveYPtr, NIL) } /** @@ -1298,7 +1298,7 @@ public open class CPUParticles2D : Node2D() { */ public final fun convertFromParticles(particles: Node?): Unit { TransferContext.writeArguments(OBJECT to particles) - TransferContext.callMethod(rawPtr, MethodBindings.convertFromParticlesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.convertFromParticlesPtr, NIL) } public enum class DrawOrder( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CPUParticles3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CPUParticles3D.kt index 972d97ebaf..ccdf211e68 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CPUParticles3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CPUParticles3D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.AABB import godot.core.Color import godot.core.PackedColorArray @@ -26,7 +27,6 @@ import godot.core.VariantParser.PACKED_VECTOR3_ARRAY import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -1068,167 +1068,167 @@ public open class CPUParticles3D : GeometryInstance3D() { public final fun setEmitting(emitting: Boolean): Unit { TransferContext.writeArguments(BOOL to emitting) - TransferContext.callMethod(rawPtr, MethodBindings.setEmittingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmittingPtr, NIL) } public final fun setAmount(amount: Int): Unit { TransferContext.writeArguments(LONG to amount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setAmountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAmountPtr, NIL) } public final fun setLifetime(secs: Double): Unit { TransferContext.writeArguments(DOUBLE to secs) - TransferContext.callMethod(rawPtr, MethodBindings.setLifetimePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLifetimePtr, NIL) } public final fun setOneShot(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setOneShotPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOneShotPtr, NIL) } public final fun setPreProcessTime(secs: Double): Unit { TransferContext.writeArguments(DOUBLE to secs) - TransferContext.callMethod(rawPtr, MethodBindings.setPreProcessTimePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPreProcessTimePtr, NIL) } public final fun setExplosivenessRatio(ratio: Float): Unit { TransferContext.writeArguments(DOUBLE to ratio.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setExplosivenessRatioPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExplosivenessRatioPtr, NIL) } public final fun setRandomnessRatio(ratio: Float): Unit { TransferContext.writeArguments(DOUBLE to ratio.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRandomnessRatioPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRandomnessRatioPtr, NIL) } public final fun setVisibilityAabb(aabb: AABB): Unit { TransferContext.writeArguments(godot.core.VariantParser.AABB to aabb) - TransferContext.callMethod(rawPtr, MethodBindings.setVisibilityAabbPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVisibilityAabbPtr, NIL) } public final fun setLifetimeRandomness(random: Double): Unit { TransferContext.writeArguments(DOUBLE to random) - TransferContext.callMethod(rawPtr, MethodBindings.setLifetimeRandomnessPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLifetimeRandomnessPtr, NIL) } public final fun setUseLocalCoordinates(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setUseLocalCoordinatesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseLocalCoordinatesPtr, NIL) } public final fun setFixedFps(fps: Int): Unit { TransferContext.writeArguments(LONG to fps.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setFixedFpsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFixedFpsPtr, NIL) } public final fun setFractionalDelta(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setFractionalDeltaPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFractionalDeltaPtr, NIL) } public final fun setSpeedScale(scale: Double): Unit { TransferContext.writeArguments(DOUBLE to scale) - TransferContext.callMethod(rawPtr, MethodBindings.setSpeedScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSpeedScalePtr, NIL) } public final fun isEmitting(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isEmittingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isEmittingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun getAmount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAmountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAmountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun getLifetime(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLifetimePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLifetimePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun getOneShot(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOneShotPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getOneShotPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun getPreProcessTime(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPreProcessTimePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPreProcessTimePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun getExplosivenessRatio(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getExplosivenessRatioPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getExplosivenessRatioPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun getRandomnessRatio(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRandomnessRatioPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRandomnessRatioPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun getVisibilityAabb(): AABB { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVisibilityAabbPtr, + TransferContext.callMethod(ptr, MethodBindings.getVisibilityAabbPtr, godot.core.VariantParser.AABB) return (TransferContext.readReturnValue(godot.core.VariantParser.AABB) as AABB) } public final fun getLifetimeRandomness(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLifetimeRandomnessPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLifetimeRandomnessPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun getUseLocalCoordinates(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUseLocalCoordinatesPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getUseLocalCoordinatesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun getFixedFps(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFixedFpsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFixedFpsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun getFractionalDelta(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFractionalDeltaPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getFractionalDeltaPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun getSpeedScale(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSpeedScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSpeedScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun setDrawOrder(order: DrawOrder): Unit { TransferContext.writeArguments(LONG to order.id) - TransferContext.callMethod(rawPtr, MethodBindings.setDrawOrderPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDrawOrderPtr, NIL) } public final fun getDrawOrder(): DrawOrder { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDrawOrderPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDrawOrderPtr, LONG) return CPUParticles3D.DrawOrder.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setMesh(mesh: Mesh?): Unit { TransferContext.writeArguments(OBJECT to mesh) - TransferContext.callMethod(rawPtr, MethodBindings.setMeshPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMeshPtr, NIL) } public final fun getMesh(): Mesh? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMeshPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getMeshPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Mesh?) } @@ -1237,39 +1237,39 @@ public open class CPUParticles3D : GeometryInstance3D() { */ public final fun restart(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.restartPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.restartPtr, NIL) } public final fun setDirection(direction: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to direction) - TransferContext.callMethod(rawPtr, MethodBindings.setDirectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDirectionPtr, NIL) } public final fun getDirection(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDirectionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getDirectionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setSpread(degrees: Float): Unit { TransferContext.writeArguments(DOUBLE to degrees.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSpreadPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSpreadPtr, NIL) } public final fun getSpread(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSpreadPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSpreadPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setFlatness(amount: Float): Unit { TransferContext.writeArguments(DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFlatnessPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFlatnessPtr, NIL) } public final fun getFlatness(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFlatnessPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFlatnessPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1278,7 +1278,7 @@ public open class CPUParticles3D : GeometryInstance3D() { */ public final fun setParamMin(`param`: Parameter, `value`: Float): Unit { TransferContext.writeArguments(LONG to param.id, DOUBLE to value.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setParamMinPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setParamMinPtr, NIL) } /** @@ -1286,7 +1286,7 @@ public open class CPUParticles3D : GeometryInstance3D() { */ public final fun getParamMin(`param`: Parameter): Float { TransferContext.writeArguments(LONG to param.id) - TransferContext.callMethod(rawPtr, MethodBindings.getParamMinPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getParamMinPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1295,7 +1295,7 @@ public open class CPUParticles3D : GeometryInstance3D() { */ public final fun setParamMax(`param`: Parameter, `value`: Float): Unit { TransferContext.writeArguments(LONG to param.id, DOUBLE to value.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setParamMaxPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setParamMaxPtr, NIL) } /** @@ -1303,7 +1303,7 @@ public open class CPUParticles3D : GeometryInstance3D() { */ public final fun getParamMax(`param`: Parameter): Float { TransferContext.writeArguments(LONG to param.id) - TransferContext.callMethod(rawPtr, MethodBindings.getParamMaxPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getParamMaxPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1312,7 +1312,7 @@ public open class CPUParticles3D : GeometryInstance3D() { */ public final fun setParamCurve(`param`: Parameter, curve: Curve?): Unit { TransferContext.writeArguments(LONG to param.id, OBJECT to curve) - TransferContext.callMethod(rawPtr, MethodBindings.setParamCurvePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setParamCurvePtr, NIL) } /** @@ -1320,40 +1320,40 @@ public open class CPUParticles3D : GeometryInstance3D() { */ public final fun getParamCurve(`param`: Parameter): Curve? { TransferContext.writeArguments(LONG to param.id) - TransferContext.callMethod(rawPtr, MethodBindings.getParamCurvePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getParamCurvePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Curve?) } public final fun setColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColorPtr, NIL) } public final fun getColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setColorRamp(ramp: Gradient?): Unit { TransferContext.writeArguments(OBJECT to ramp) - TransferContext.callMethod(rawPtr, MethodBindings.setColorRampPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColorRampPtr, NIL) } public final fun getColorRamp(): Gradient? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColorRampPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getColorRampPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Gradient?) } public final fun setColorInitialRamp(ramp: Gradient?): Unit { TransferContext.writeArguments(OBJECT to ramp) - TransferContext.callMethod(rawPtr, MethodBindings.setColorInitialRampPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColorInitialRampPtr, NIL) } public final fun getColorInitialRamp(): Gradient? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColorInitialRampPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getColorInitialRampPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Gradient?) } @@ -1362,7 +1362,7 @@ public open class CPUParticles3D : GeometryInstance3D() { */ public final fun setParticleFlag(particleFlag: ParticleFlags, enable: Boolean): Unit { TransferContext.writeArguments(LONG to particleFlag.id, BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setParticleFlagPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setParticleFlagPtr, NIL) } /** @@ -1370,173 +1370,173 @@ public open class CPUParticles3D : GeometryInstance3D() { */ public final fun getParticleFlag(particleFlag: ParticleFlags): Boolean { TransferContext.writeArguments(LONG to particleFlag.id) - TransferContext.callMethod(rawPtr, MethodBindings.getParticleFlagPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getParticleFlagPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setEmissionShape(shape: EmissionShape): Unit { TransferContext.writeArguments(LONG to shape.id) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionShapePtr, NIL) } public final fun getEmissionShape(): EmissionShape { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmissionShapePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getEmissionShapePtr, LONG) return CPUParticles3D.EmissionShape.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setEmissionSphereRadius(radius: Float): Unit { TransferContext.writeArguments(DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionSphereRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionSphereRadiusPtr, NIL) } public final fun getEmissionSphereRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmissionSphereRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getEmissionSphereRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setEmissionBoxExtents(extents: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to extents) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionBoxExtentsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionBoxExtentsPtr, NIL) } public final fun getEmissionBoxExtents(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmissionBoxExtentsPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getEmissionBoxExtentsPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setEmissionPoints(array: PackedVector3Array): Unit { TransferContext.writeArguments(PACKED_VECTOR3_ARRAY to array) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionPointsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionPointsPtr, NIL) } public final fun getEmissionPoints(): PackedVector3Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmissionPointsPtr, PACKED_VECTOR3_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getEmissionPointsPtr, PACKED_VECTOR3_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR3_ARRAY) as PackedVector3Array) } public final fun setEmissionNormals(array: PackedVector3Array): Unit { TransferContext.writeArguments(PACKED_VECTOR3_ARRAY to array) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionNormalsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionNormalsPtr, NIL) } public final fun getEmissionNormals(): PackedVector3Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmissionNormalsPtr, PACKED_VECTOR3_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getEmissionNormalsPtr, PACKED_VECTOR3_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR3_ARRAY) as PackedVector3Array) } public final fun setEmissionColors(array: PackedColorArray): Unit { TransferContext.writeArguments(PACKED_COLOR_ARRAY to array) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionColorsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionColorsPtr, NIL) } public final fun getEmissionColors(): PackedColorArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmissionColorsPtr, PACKED_COLOR_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getEmissionColorsPtr, PACKED_COLOR_ARRAY) return (TransferContext.readReturnValue(PACKED_COLOR_ARRAY) as PackedColorArray) } public final fun setEmissionRingAxis(axis: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to axis) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionRingAxisPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionRingAxisPtr, NIL) } public final fun getEmissionRingAxis(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmissionRingAxisPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getEmissionRingAxisPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setEmissionRingHeight(height: Float): Unit { TransferContext.writeArguments(DOUBLE to height.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionRingHeightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionRingHeightPtr, NIL) } public final fun getEmissionRingHeight(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmissionRingHeightPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getEmissionRingHeightPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setEmissionRingRadius(radius: Float): Unit { TransferContext.writeArguments(DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionRingRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionRingRadiusPtr, NIL) } public final fun getEmissionRingRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmissionRingRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getEmissionRingRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setEmissionRingInnerRadius(innerRadius: Float): Unit { TransferContext.writeArguments(DOUBLE to innerRadius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionRingInnerRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionRingInnerRadiusPtr, NIL) } public final fun getEmissionRingInnerRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmissionRingInnerRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getEmissionRingInnerRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun getGravity(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGravityPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getGravityPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setGravity(accelVec: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to accelVec) - TransferContext.callMethod(rawPtr, MethodBindings.setGravityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGravityPtr, NIL) } public final fun getSplitScale(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSplitScalePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getSplitScalePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSplitScale(splitScale: Boolean): Unit { TransferContext.writeArguments(BOOL to splitScale) - TransferContext.callMethod(rawPtr, MethodBindings.setSplitScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSplitScalePtr, NIL) } public final fun getScaleCurveX(): Curve? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScaleCurveXPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getScaleCurveXPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Curve?) } public final fun setScaleCurveX(scaleCurve: Curve?): Unit { TransferContext.writeArguments(OBJECT to scaleCurve) - TransferContext.callMethod(rawPtr, MethodBindings.setScaleCurveXPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setScaleCurveXPtr, NIL) } public final fun getScaleCurveY(): Curve? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScaleCurveYPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getScaleCurveYPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Curve?) } public final fun setScaleCurveY(scaleCurve: Curve?): Unit { TransferContext.writeArguments(OBJECT to scaleCurve) - TransferContext.callMethod(rawPtr, MethodBindings.setScaleCurveYPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setScaleCurveYPtr, NIL) } public final fun getScaleCurveZ(): Curve? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScaleCurveZPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getScaleCurveZPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Curve?) } public final fun setScaleCurveZ(scaleCurve: Curve?): Unit { TransferContext.writeArguments(OBJECT to scaleCurve) - TransferContext.callMethod(rawPtr, MethodBindings.setScaleCurveZPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setScaleCurveZPtr, NIL) } /** @@ -1545,7 +1545,7 @@ public open class CPUParticles3D : GeometryInstance3D() { */ public final fun convertFromParticles(particles: Node?): Unit { TransferContext.writeArguments(OBJECT to particles) - TransferContext.callMethod(rawPtr, MethodBindings.convertFromParticlesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.convertFromParticlesPtr, NIL) } public enum class DrawOrder( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGBox3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGBox3D.kt index 1506b38380..f52513cb53 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGBox3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGBox3D.kt @@ -9,13 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -83,23 +83,23 @@ public open class CSGBox3D : CSGPrimitive3D() { public final fun setSize(size: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to size) - TransferContext.callMethod(rawPtr, MethodBindings.setSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSizePtr, NIL) } public final fun getSize(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSizePtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getSizePtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setMaterial(material: Material?): Unit { TransferContext.writeArguments(OBJECT to material) - TransferContext.callMethod(rawPtr, MethodBindings.setMaterialPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaterialPtr, NIL) } public final fun getMaterial(): Material? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaterialPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getMaterialPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Material?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGCylinder3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGCylinder3D.kt index b5879b8ec3..1ea96a3026 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGCylinder3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGCylinder3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE @@ -14,7 +15,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -107,67 +107,67 @@ public open class CSGCylinder3D : CSGPrimitive3D() { public final fun setRadius(radius: Float): Unit { TransferContext.writeArguments(DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRadiusPtr, NIL) } public final fun getRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setHeight(height: Float): Unit { TransferContext.writeArguments(DOUBLE to height.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setHeightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHeightPtr, NIL) } public final fun getHeight(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHeightPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getHeightPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSides(sides: Int): Unit { TransferContext.writeArguments(LONG to sides.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSidesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSidesPtr, NIL) } public final fun getSides(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSidesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSidesPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setCone(cone: Boolean): Unit { TransferContext.writeArguments(BOOL to cone) - TransferContext.callMethod(rawPtr, MethodBindings.setConePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setConePtr, NIL) } public final fun isCone(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isConePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isConePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setMaterial(material: Material?): Unit { TransferContext.writeArguments(OBJECT to material) - TransferContext.callMethod(rawPtr, MethodBindings.setMaterialPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaterialPtr, NIL) } public final fun getMaterial(): Material? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaterialPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getMaterialPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Material?) } public final fun setSmoothFaces(smoothFaces: Boolean): Unit { TransferContext.writeArguments(BOOL to smoothFaces) - TransferContext.callMethod(rawPtr, MethodBindings.setSmoothFacesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSmoothFacesPtr, NIL) } public final fun getSmoothFaces(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSmoothFacesPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getSmoothFacesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGMesh3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGMesh3D.kt index 042f43acdf..e2329af39e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGMesh3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGMesh3D.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -63,23 +63,23 @@ public open class CSGMesh3D : CSGPrimitive3D() { public final fun setMesh(mesh: Mesh?): Unit { TransferContext.writeArguments(OBJECT to mesh) - TransferContext.callMethod(rawPtr, MethodBindings.setMeshPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMeshPtr, NIL) } public final fun getMesh(): Mesh? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMeshPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getMeshPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Mesh?) } public final fun setMaterial(material: Material?): Unit { TransferContext.writeArguments(OBJECT to material) - TransferContext.callMethod(rawPtr, MethodBindings.setMaterialPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaterialPtr, NIL) } public final fun getMaterial(): Material? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaterialPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getMaterialPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Material?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGPolygon3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGPolygon3D.kt index d440b12fc5..9e383a1188 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGPolygon3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGPolygon3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.PackedVector2Array import godot.core.TypeManager @@ -18,7 +19,6 @@ import godot.core.VariantParser.NODE_PATH import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_VECTOR2_ARRAY import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -235,177 +235,177 @@ public open class CSGPolygon3D : CSGPrimitive3D() { public final fun setPolygon(polygon: PackedVector2Array): Unit { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to polygon) - TransferContext.callMethod(rawPtr, MethodBindings.setPolygonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPolygonPtr, NIL) } public final fun getPolygon(): PackedVector2Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPolygonPtr, PACKED_VECTOR2_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getPolygonPtr, PACKED_VECTOR2_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR2_ARRAY) as PackedVector2Array) } public final fun setMode(mode: Mode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setModePtr, NIL) } public final fun getMode(): Mode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getModePtr, LONG) return CSGPolygon3D.Mode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setDepth(depth: Float): Unit { TransferContext.writeArguments(DOUBLE to depth.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDepthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDepthPtr, NIL) } public final fun getDepth(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDepthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDepthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSpinDegrees(degrees: Float): Unit { TransferContext.writeArguments(DOUBLE to degrees.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSpinDegreesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSpinDegreesPtr, NIL) } public final fun getSpinDegrees(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSpinDegreesPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSpinDegreesPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSpinSides(spinSides: Int): Unit { TransferContext.writeArguments(LONG to spinSides.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSpinSidesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSpinSidesPtr, NIL) } public final fun getSpinSides(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSpinSidesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSpinSidesPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setPathNode(path: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to path) - TransferContext.callMethod(rawPtr, MethodBindings.setPathNodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPathNodePtr, NIL) } public final fun getPathNode(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPathNodePtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getPathNodePtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } public final fun setPathIntervalType(intervalType: PathIntervalType): Unit { TransferContext.writeArguments(LONG to intervalType.id) - TransferContext.callMethod(rawPtr, MethodBindings.setPathIntervalTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPathIntervalTypePtr, NIL) } public final fun getPathIntervalType(): PathIntervalType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPathIntervalTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPathIntervalTypePtr, LONG) return CSGPolygon3D.PathIntervalType.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setPathInterval(interval: Float): Unit { TransferContext.writeArguments(DOUBLE to interval.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPathIntervalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPathIntervalPtr, NIL) } public final fun getPathInterval(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPathIntervalPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPathIntervalPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setPathSimplifyAngle(degrees: Float): Unit { TransferContext.writeArguments(DOUBLE to degrees.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPathSimplifyAnglePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPathSimplifyAnglePtr, NIL) } public final fun getPathSimplifyAngle(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPathSimplifyAnglePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPathSimplifyAnglePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setPathRotation(pathRotation: PathRotation): Unit { TransferContext.writeArguments(LONG to pathRotation.id) - TransferContext.callMethod(rawPtr, MethodBindings.setPathRotationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPathRotationPtr, NIL) } public final fun getPathRotation(): PathRotation { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPathRotationPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPathRotationPtr, LONG) return CSGPolygon3D.PathRotation.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setPathLocal(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setPathLocalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPathLocalPtr, NIL) } public final fun isPathLocal(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isPathLocalPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPathLocalPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setPathContinuousU(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setPathContinuousUPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPathContinuousUPtr, NIL) } public final fun isPathContinuousU(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isPathContinuousUPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPathContinuousUPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setPathUDistance(distance: Float): Unit { TransferContext.writeArguments(DOUBLE to distance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPathUDistancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPathUDistancePtr, NIL) } public final fun getPathUDistance(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPathUDistancePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPathUDistancePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setPathJoined(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setPathJoinedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPathJoinedPtr, NIL) } public final fun isPathJoined(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isPathJoinedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPathJoinedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setMaterial(material: Material?): Unit { TransferContext.writeArguments(OBJECT to material) - TransferContext.callMethod(rawPtr, MethodBindings.setMaterialPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaterialPtr, NIL) } public final fun getMaterial(): Material? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaterialPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getMaterialPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Material?) } public final fun setSmoothFaces(smoothFaces: Boolean): Unit { TransferContext.writeArguments(BOOL to smoothFaces) - TransferContext.callMethod(rawPtr, MethodBindings.setSmoothFacesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSmoothFacesPtr, NIL) } public final fun getSmoothFaces(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSmoothFacesPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getSmoothFacesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGPrimitive3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGPrimitive3D.kt index 2ee3d16cbd..5de167a230 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGPrimitive3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGPrimitive3D.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -47,12 +47,12 @@ public open class CSGPrimitive3D internal constructor() : CSGShape3D() { public final fun setFlipFaces(flipFaces: Boolean): Unit { TransferContext.writeArguments(BOOL to flipFaces) - TransferContext.callMethod(rawPtr, MethodBindings.setFlipFacesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFlipFacesPtr, NIL) } public final fun getFlipFaces(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFlipFacesPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getFlipFacesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGShape3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGShape3D.kt index b80ac3d303..d25ba71133 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGShape3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGShape3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY @@ -15,7 +16,6 @@ import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -140,62 +140,62 @@ public open class CSGShape3D internal constructor() : GeometryInstance3D() { */ public final fun isRootShape(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isRootShapePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isRootShapePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setOperation(operation: Operation): Unit { TransferContext.writeArguments(LONG to operation.id) - TransferContext.callMethod(rawPtr, MethodBindings.setOperationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOperationPtr, NIL) } public final fun getOperation(): Operation { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOperationPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOperationPtr, LONG) return CSGShape3D.Operation.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setSnap(snap: Float): Unit { TransferContext.writeArguments(DOUBLE to snap.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSnapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSnapPtr, NIL) } public final fun getSnap(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSnapPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSnapPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setUseCollision(operation: Boolean): Unit { TransferContext.writeArguments(BOOL to operation) - TransferContext.callMethod(rawPtr, MethodBindings.setUseCollisionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseCollisionPtr, NIL) } public final fun isUsingCollision(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUsingCollisionPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUsingCollisionPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCollisionLayer(layer: Long): Unit { TransferContext.writeArguments(LONG to layer) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionLayerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionLayerPtr, NIL) } public final fun getCollisionLayer(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionLayerPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCollisionLayerPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setCollisionMask(mask: Long): Unit { TransferContext.writeArguments(LONG to mask) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionMaskPtr, NIL) } public final fun getCollisionMask(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCollisionMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -205,7 +205,7 @@ public open class CSGShape3D internal constructor() : GeometryInstance3D() { */ public final fun setCollisionMaskValue(layerNumber: Int, `value`: Boolean): Unit { TransferContext.writeArguments(LONG to layerNumber.toLong(), BOOL to value) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionMaskValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionMaskValuePtr, NIL) } /** @@ -214,7 +214,7 @@ public open class CSGShape3D internal constructor() : GeometryInstance3D() { */ public final fun getCollisionMaskValue(layerNumber: Int): Boolean { TransferContext.writeArguments(LONG to layerNumber.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionMaskValuePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getCollisionMaskValuePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -224,7 +224,7 @@ public open class CSGShape3D internal constructor() : GeometryInstance3D() { */ public final fun setCollisionLayerValue(layerNumber: Int, `value`: Boolean): Unit { TransferContext.writeArguments(LONG to layerNumber.toLong(), BOOL to value) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionLayerValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionLayerValuePtr, NIL) } /** @@ -233,29 +233,29 @@ public open class CSGShape3D internal constructor() : GeometryInstance3D() { */ public final fun getCollisionLayerValue(layerNumber: Int): Boolean { TransferContext.writeArguments(LONG to layerNumber.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionLayerValuePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getCollisionLayerValuePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCollisionPriority(priority: Float): Unit { TransferContext.writeArguments(DOUBLE to priority.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionPriorityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionPriorityPtr, NIL) } public final fun getCollisionPriority(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionPriorityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCollisionPriorityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setCalculateTangents(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setCalculateTangentsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCalculateTangentsPtr, NIL) } public final fun isCalculatingTangents(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCalculatingTangentsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCalculatingTangentsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -265,7 +265,7 @@ public open class CSGShape3D internal constructor() : GeometryInstance3D() { */ public final fun getMeshes(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMeshesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getMeshesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGSphere3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGSphere3D.kt index db6b72a90b..1af9672bad 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGSphere3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGSphere3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE @@ -14,7 +15,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -95,56 +95,56 @@ public open class CSGSphere3D : CSGPrimitive3D() { public final fun setRadius(radius: Float): Unit { TransferContext.writeArguments(DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRadiusPtr, NIL) } public final fun getRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setRadialSegments(radialSegments: Int): Unit { TransferContext.writeArguments(LONG to radialSegments.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setRadialSegmentsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRadialSegmentsPtr, NIL) } public final fun getRadialSegments(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRadialSegmentsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getRadialSegmentsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setRings(rings: Int): Unit { TransferContext.writeArguments(LONG to rings.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setRingsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRingsPtr, NIL) } public final fun getRings(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRingsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getRingsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setSmoothFaces(smoothFaces: Boolean): Unit { TransferContext.writeArguments(BOOL to smoothFaces) - TransferContext.callMethod(rawPtr, MethodBindings.setSmoothFacesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSmoothFacesPtr, NIL) } public final fun getSmoothFaces(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSmoothFacesPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getSmoothFacesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setMaterial(material: Material?): Unit { TransferContext.writeArguments(OBJECT to material) - TransferContext.callMethod(rawPtr, MethodBindings.setMaterialPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaterialPtr, NIL) } public final fun getMaterial(): Material? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaterialPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getMaterialPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Material?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGTorus3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGTorus3D.kt index ab6f291aa4..5eedfd4686 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGTorus3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CSGTorus3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE @@ -14,7 +15,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -106,67 +106,67 @@ public open class CSGTorus3D : CSGPrimitive3D() { public final fun setInnerRadius(radius: Float): Unit { TransferContext.writeArguments(DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setInnerRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInnerRadiusPtr, NIL) } public final fun getInnerRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInnerRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getInnerRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setOuterRadius(radius: Float): Unit { TransferContext.writeArguments(DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setOuterRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOuterRadiusPtr, NIL) } public final fun getOuterRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOuterRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getOuterRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSides(sides: Int): Unit { TransferContext.writeArguments(LONG to sides.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSidesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSidesPtr, NIL) } public final fun getSides(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSidesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSidesPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setRingSides(sides: Int): Unit { TransferContext.writeArguments(LONG to sides.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setRingSidesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRingSidesPtr, NIL) } public final fun getRingSides(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRingSidesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getRingSidesPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setMaterial(material: Material?): Unit { TransferContext.writeArguments(OBJECT to material) - TransferContext.callMethod(rawPtr, MethodBindings.setMaterialPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaterialPtr, NIL) } public final fun getMaterial(): Material? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaterialPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getMaterialPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Material?) } public final fun setSmoothFaces(smoothFaces: Boolean): Unit { TransferContext.writeArguments(BOOL to smoothFaces) - TransferContext.callMethod(rawPtr, MethodBindings.setSmoothFacesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSmoothFacesPtr, NIL) } public final fun getSmoothFaces(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSmoothFacesPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getSmoothFacesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CallbackTweener.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CallbackTweener.kt index 2c48b3e133..ef0a536c73 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CallbackTweener.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CallbackTweener.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Int import kotlin.Suppress @@ -40,7 +40,7 @@ public open class CallbackTweener : Tweener() { */ public final fun setDelay(delay: Double): CallbackTweener? { TransferContext.writeArguments(DOUBLE to delay) - TransferContext.callMethod(rawPtr, MethodBindings.setDelayPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.setDelayPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as CallbackTweener?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Camera2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Camera2D.kt index 450f908cf2..51ceeb308e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Camera2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Camera2D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE @@ -18,7 +19,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -452,56 +452,56 @@ public open class Camera2D : Node2D() { public final fun setOffset(offset: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.setOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOffsetPtr, NIL) } public final fun getOffset(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOffsetPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getOffsetPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setAnchorMode(anchorMode: AnchorMode): Unit { TransferContext.writeArguments(LONG to anchorMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setAnchorModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAnchorModePtr, NIL) } public final fun getAnchorMode(): AnchorMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAnchorModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAnchorModePtr, LONG) return Camera2D.AnchorMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setIgnoreRotation(ignore: Boolean): Unit { TransferContext.writeArguments(BOOL to ignore) - TransferContext.callMethod(rawPtr, MethodBindings.setIgnoreRotationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIgnoreRotationPtr, NIL) } public final fun isIgnoringRotation(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isIgnoringRotationPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isIgnoringRotationPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setProcessCallback(mode: Camera2DProcessCallback): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setProcessCallbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setProcessCallbackPtr, NIL) } public final fun getProcessCallback(): Camera2DProcessCallback { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getProcessCallbackPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getProcessCallbackPtr, LONG) return Camera2D.Camera2DProcessCallback.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnabledPtr, NIL) } public final fun isEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -510,7 +510,7 @@ public open class Camera2D : Node2D() { */ public final fun makeCurrent(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.makeCurrentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.makeCurrentPtr, NIL) } /** @@ -518,7 +518,7 @@ public open class Camera2D : Node2D() { */ public final fun isCurrent(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCurrentPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCurrentPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -528,7 +528,7 @@ public open class Camera2D : Node2D() { */ public final fun setLimit(margin: Side, limit: Int): Unit { TransferContext.writeArguments(LONG to margin.id, LONG to limit.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setLimitPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLimitPtr, NIL) } /** @@ -537,62 +537,62 @@ public open class Camera2D : Node2D() { */ public final fun getLimit(margin: Side): Int { TransferContext.writeArguments(LONG to margin.id) - TransferContext.callMethod(rawPtr, MethodBindings.getLimitPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLimitPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setLimitSmoothingEnabled(limitSmoothingEnabled: Boolean): Unit { TransferContext.writeArguments(BOOL to limitSmoothingEnabled) - TransferContext.callMethod(rawPtr, MethodBindings.setLimitSmoothingEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLimitSmoothingEnabledPtr, NIL) } public final fun isLimitSmoothingEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isLimitSmoothingEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isLimitSmoothingEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDragVerticalEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDragVerticalEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDragVerticalEnabledPtr, NIL) } public final fun isDragVerticalEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDragVerticalEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDragVerticalEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDragHorizontalEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDragHorizontalEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDragHorizontalEnabledPtr, NIL) } public final fun isDragHorizontalEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDragHorizontalEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDragHorizontalEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDragVerticalOffset(offset: Float): Unit { TransferContext.writeArguments(DOUBLE to offset.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDragVerticalOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDragVerticalOffsetPtr, NIL) } public final fun getDragVerticalOffset(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDragVerticalOffsetPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDragVerticalOffsetPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDragHorizontalOffset(offset: Float): Unit { TransferContext.writeArguments(DOUBLE to offset.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDragHorizontalOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDragHorizontalOffsetPtr, NIL) } public final fun getDragHorizontalOffset(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDragHorizontalOffsetPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDragHorizontalOffsetPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -602,7 +602,7 @@ public open class Camera2D : Node2D() { */ public final fun setDragMargin(margin: Side, dragMargin: Float): Unit { TransferContext.writeArguments(LONG to margin.id, DOUBLE to dragMargin.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDragMarginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDragMarginPtr, NIL) } /** @@ -611,7 +611,7 @@ public open class Camera2D : Node2D() { */ public final fun getDragMargin(margin: Side): Float { TransferContext.writeArguments(LONG to margin.id) - TransferContext.callMethod(rawPtr, MethodBindings.getDragMarginPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDragMarginPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -623,7 +623,7 @@ public open class Camera2D : Node2D() { */ public final fun getTargetPosition(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTargetPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getTargetPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -633,73 +633,73 @@ public open class Camera2D : Node2D() { */ public final fun getScreenCenterPosition(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScreenCenterPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getScreenCenterPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setZoom(zoom: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to zoom) - TransferContext.callMethod(rawPtr, MethodBindings.setZoomPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setZoomPtr, NIL) } public final fun getZoom(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getZoomPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getZoomPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setCustomViewport(viewport: Node?): Unit { TransferContext.writeArguments(OBJECT to viewport) - TransferContext.callMethod(rawPtr, MethodBindings.setCustomViewportPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCustomViewportPtr, NIL) } public final fun getCustomViewport(): Node? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCustomViewportPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getCustomViewportPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Node?) } public final fun setPositionSmoothingSpeed(positionSmoothingSpeed: Float): Unit { TransferContext.writeArguments(DOUBLE to positionSmoothingSpeed.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPositionSmoothingSpeedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPositionSmoothingSpeedPtr, NIL) } public final fun getPositionSmoothingSpeed(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPositionSmoothingSpeedPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPositionSmoothingSpeedPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setPositionSmoothingEnabled(positionSmoothingSpeed: Boolean): Unit { TransferContext.writeArguments(BOOL to positionSmoothingSpeed) - TransferContext.callMethod(rawPtr, MethodBindings.setPositionSmoothingEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPositionSmoothingEnabledPtr, NIL) } public final fun isPositionSmoothingEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isPositionSmoothingEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPositionSmoothingEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setRotationSmoothingEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setRotationSmoothingEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRotationSmoothingEnabledPtr, NIL) } public final fun isRotationSmoothingEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isRotationSmoothingEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isRotationSmoothingEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setRotationSmoothingSpeed(speed: Float): Unit { TransferContext.writeArguments(DOUBLE to speed.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRotationSmoothingSpeedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRotationSmoothingSpeedPtr, NIL) } public final fun getRotationSmoothingSpeed(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRotationSmoothingSpeedPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRotationSmoothingSpeedPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -708,7 +708,7 @@ public open class Camera2D : Node2D() { */ public final fun forceUpdateScroll(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.forceUpdateScrollPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.forceUpdateScrollPtr, NIL) } /** @@ -717,7 +717,7 @@ public open class Camera2D : Node2D() { */ public final fun resetSmoothing(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.resetSmoothingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.resetSmoothingPtr, NIL) } /** @@ -725,39 +725,39 @@ public open class Camera2D : Node2D() { */ public final fun align(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.alignPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.alignPtr, NIL) } public final fun setScreenDrawingEnabled(screenDrawingEnabled: Boolean): Unit { TransferContext.writeArguments(BOOL to screenDrawingEnabled) - TransferContext.callMethod(rawPtr, MethodBindings.setScreenDrawingEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setScreenDrawingEnabledPtr, NIL) } public final fun isScreenDrawingEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isScreenDrawingEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isScreenDrawingEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setLimitDrawingEnabled(limitDrawingEnabled: Boolean): Unit { TransferContext.writeArguments(BOOL to limitDrawingEnabled) - TransferContext.callMethod(rawPtr, MethodBindings.setLimitDrawingEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLimitDrawingEnabledPtr, NIL) } public final fun isLimitDrawingEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isLimitDrawingEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isLimitDrawingEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setMarginDrawingEnabled(marginDrawingEnabled: Boolean): Unit { TransferContext.writeArguments(BOOL to marginDrawingEnabled) - TransferContext.callMethod(rawPtr, MethodBindings.setMarginDrawingEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMarginDrawingEnabledPtr, NIL) } public final fun isMarginDrawingEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isMarginDrawingEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isMarginDrawingEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Camera3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Camera3D.kt index 493de048c4..7bcdc816de 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Camera3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Camera3D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Plane import godot.core.Projection import godot.core.RID @@ -29,7 +30,6 @@ import godot.core.VariantParser._RID import godot.core.Vector2 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -283,7 +283,7 @@ public open class Camera3D : Node3D() { */ public final fun projectRayNormal(screenPoint: Vector2): Vector3 { TransferContext.writeArguments(VECTOR2 to screenPoint) - TransferContext.callMethod(rawPtr, MethodBindings.projectRayNormalPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.projectRayNormalPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -293,7 +293,7 @@ public open class Camera3D : Node3D() { */ public final fun projectLocalRayNormal(screenPoint: Vector2): Vector3 { TransferContext.writeArguments(VECTOR2 to screenPoint) - TransferContext.callMethod(rawPtr, MethodBindings.projectLocalRayNormalPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.projectLocalRayNormalPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -304,7 +304,7 @@ public open class Camera3D : Node3D() { */ public final fun projectRayOrigin(screenPoint: Vector2): Vector3 { TransferContext.writeArguments(VECTOR2 to screenPoint) - TransferContext.callMethod(rawPtr, MethodBindings.projectRayOriginPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.projectRayOriginPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -323,7 +323,7 @@ public open class Camera3D : Node3D() { */ public final fun unprojectPosition(worldPoint: Vector3): Vector2 { TransferContext.writeArguments(VECTOR3 to worldPoint) - TransferContext.callMethod(rawPtr, MethodBindings.unprojectPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.unprojectPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -336,7 +336,7 @@ public open class Camera3D : Node3D() { */ public final fun isPositionBehind(worldPoint: Vector3): Boolean { TransferContext.writeArguments(VECTOR3 to worldPoint) - TransferContext.callMethod(rawPtr, MethodBindings.isPositionBehindPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPositionBehindPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -346,7 +346,7 @@ public open class Camera3D : Node3D() { */ public final fun projectPosition(screenPoint: Vector2, zDepth: Float): Vector3 { TransferContext.writeArguments(VECTOR2 to screenPoint, DOUBLE to zDepth.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.projectPositionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.projectPositionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -361,7 +361,7 @@ public open class Camera3D : Node3D() { zFar: Float, ): Unit { TransferContext.writeArguments(DOUBLE to fov.toDouble(), DOUBLE to zNear.toDouble(), DOUBLE to zFar.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPerspectivePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPerspectivePtr, NIL) } /** @@ -375,7 +375,7 @@ public open class Camera3D : Node3D() { zFar: Float, ): Unit { TransferContext.writeArguments(DOUBLE to size.toDouble(), DOUBLE to zNear.toDouble(), DOUBLE to zFar.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setOrthogonalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOrthogonalPtr, NIL) } /** @@ -390,7 +390,7 @@ public open class Camera3D : Node3D() { zFar: Float, ): Unit { TransferContext.writeArguments(DOUBLE to size.toDouble(), VECTOR2 to offset, DOUBLE to zNear.toDouble(), DOUBLE to zFar.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFrustumPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFrustumPtr, NIL) } /** @@ -399,7 +399,7 @@ public open class Camera3D : Node3D() { */ public final fun makeCurrent(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.makeCurrentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.makeCurrentPtr, NIL) } /** @@ -409,17 +409,17 @@ public open class Camera3D : Node3D() { @JvmOverloads public final fun clearCurrent(enableNext: Boolean = true): Unit { TransferContext.writeArguments(BOOL to enableNext) - TransferContext.callMethod(rawPtr, MethodBindings.clearCurrentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearCurrentPtr, NIL) } public final fun setCurrent(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setCurrentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCurrentPtr, NIL) } public final fun isCurrent(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCurrentPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCurrentPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -430,7 +430,7 @@ public open class Camera3D : Node3D() { */ public final fun getCameraTransform(): Transform3D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCameraTransformPtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.getCameraTransformPtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } @@ -440,161 +440,161 @@ public open class Camera3D : Node3D() { */ public final fun getCameraProjection(): Projection { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCameraProjectionPtr, PROJECTION) + TransferContext.callMethod(ptr, MethodBindings.getCameraProjectionPtr, PROJECTION) return (TransferContext.readReturnValue(PROJECTION) as Projection) } public final fun getFov(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFovPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFovPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun getFrustumOffset(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFrustumOffsetPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getFrustumOffsetPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun getSize(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSizePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSizePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun getFar(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFarPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFarPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun getNear(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNearPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getNearPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setFov(fov: Float): Unit { TransferContext.writeArguments(DOUBLE to fov.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFovPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFovPtr, NIL) } public final fun setFrustumOffset(offset: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.setFrustumOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFrustumOffsetPtr, NIL) } public final fun setSize(size: Float): Unit { TransferContext.writeArguments(DOUBLE to size.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSizePtr, NIL) } public final fun setFar(far: Float): Unit { TransferContext.writeArguments(DOUBLE to far.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFarPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFarPtr, NIL) } public final fun setNear(near: Float): Unit { TransferContext.writeArguments(DOUBLE to near.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setNearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNearPtr, NIL) } public final fun getProjection(): ProjectionType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getProjectionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getProjectionPtr, LONG) return Camera3D.ProjectionType.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setProjection(mode: ProjectionType): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setProjectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setProjectionPtr, NIL) } public final fun setHOffset(offset: Float): Unit { TransferContext.writeArguments(DOUBLE to offset.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setHOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHOffsetPtr, NIL) } public final fun getHOffset(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHOffsetPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getHOffsetPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVOffset(offset: Float): Unit { TransferContext.writeArguments(DOUBLE to offset.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVOffsetPtr, NIL) } public final fun getVOffset(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVOffsetPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVOffsetPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setCullMask(mask: Long): Unit { TransferContext.writeArguments(LONG to mask) - TransferContext.callMethod(rawPtr, MethodBindings.setCullMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCullMaskPtr, NIL) } public final fun getCullMask(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCullMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCullMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setEnvironment(env: Environment?): Unit { TransferContext.writeArguments(OBJECT to env) - TransferContext.callMethod(rawPtr, MethodBindings.setEnvironmentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnvironmentPtr, NIL) } public final fun getEnvironment(): Environment? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnvironmentPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getEnvironmentPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Environment?) } public final fun setAttributes(env: CameraAttributes?): Unit { TransferContext.writeArguments(OBJECT to env) - TransferContext.callMethod(rawPtr, MethodBindings.setAttributesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAttributesPtr, NIL) } public final fun getAttributes(): CameraAttributes? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAttributesPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getAttributesPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as CameraAttributes?) } public final fun setCompositor(compositor: Compositor?): Unit { TransferContext.writeArguments(OBJECT to compositor) - TransferContext.callMethod(rawPtr, MethodBindings.setCompositorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCompositorPtr, NIL) } public final fun getCompositor(): Compositor? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCompositorPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getCompositorPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Compositor?) } public final fun setKeepAspectMode(mode: KeepAspect): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setKeepAspectModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setKeepAspectModePtr, NIL) } public final fun getKeepAspectMode(): KeepAspect { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getKeepAspectModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getKeepAspectModePtr, LONG) return Camera3D.KeepAspect.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setDopplerTracking(mode: DopplerTracking): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setDopplerTrackingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDopplerTrackingPtr, NIL) } public final fun getDopplerTracking(): DopplerTracking { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDopplerTrackingPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDopplerTrackingPtr, LONG) return Camera3D.DopplerTracking.from(TransferContext.readReturnValue(LONG) as Long) } @@ -604,7 +604,7 @@ public open class Camera3D : Node3D() { */ public final fun getFrustum(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFrustumPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getFrustumPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -616,7 +616,7 @@ public open class Camera3D : Node3D() { */ public final fun isPositionInFrustum(worldPoint: Vector3): Boolean { TransferContext.writeArguments(VECTOR3 to worldPoint) - TransferContext.callMethod(rawPtr, MethodBindings.isPositionInFrustumPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPositionInFrustumPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -625,7 +625,7 @@ public open class Camera3D : Node3D() { */ public final fun getCameraRid(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCameraRidPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getCameraRidPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -635,7 +635,7 @@ public open class Camera3D : Node3D() { */ public final fun getPyramidShapeRid(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPyramidShapeRidPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getPyramidShapeRidPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -645,7 +645,7 @@ public open class Camera3D : Node3D() { */ public final fun setCullMaskValue(layerNumber: Int, `value`: Boolean): Unit { TransferContext.writeArguments(LONG to layerNumber.toLong(), BOOL to value) - TransferContext.callMethod(rawPtr, MethodBindings.setCullMaskValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCullMaskValuePtr, NIL) } /** @@ -654,7 +654,7 @@ public open class Camera3D : Node3D() { */ public final fun getCullMaskValue(layerNumber: Int): Boolean { TransferContext.writeArguments(LONG to layerNumber.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCullMaskValuePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getCullMaskValuePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CameraAttributes.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CameraAttributes.kt index 2d6d1d8ae1..cb18002358 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CameraAttributes.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CameraAttributes.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -100,56 +100,56 @@ public open class CameraAttributes : Resource() { public final fun setExposureMultiplier(multiplier: Float): Unit { TransferContext.writeArguments(DOUBLE to multiplier.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setExposureMultiplierPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExposureMultiplierPtr, NIL) } public final fun getExposureMultiplier(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getExposureMultiplierPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getExposureMultiplierPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setExposureSensitivity(sensitivity: Float): Unit { TransferContext.writeArguments(DOUBLE to sensitivity.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setExposureSensitivityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExposureSensitivityPtr, NIL) } public final fun getExposureSensitivity(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getExposureSensitivityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getExposureSensitivityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAutoExposureEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setAutoExposureEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutoExposureEnabledPtr, NIL) } public final fun isAutoExposureEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isAutoExposureEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isAutoExposureEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAutoExposureSpeed(exposureSpeed: Float): Unit { TransferContext.writeArguments(DOUBLE to exposureSpeed.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAutoExposureSpeedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutoExposureSpeedPtr, NIL) } public final fun getAutoExposureSpeed(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAutoExposureSpeedPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAutoExposureSpeedPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAutoExposureScale(exposureGrey: Float): Unit { TransferContext.writeArguments(DOUBLE to exposureGrey.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAutoExposureScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutoExposureScalePtr, NIL) } public final fun getAutoExposureScale(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAutoExposureScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAutoExposureScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CameraAttributesPhysical.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CameraAttributesPhysical.kt index e223443283..c9158e9ee0 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CameraAttributesPhysical.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CameraAttributesPhysical.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -156,67 +156,67 @@ public open class CameraAttributesPhysical : CameraAttributes() { public final fun setAperture(aperture: Float): Unit { TransferContext.writeArguments(DOUBLE to aperture.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAperturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAperturePtr, NIL) } public final fun getAperture(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAperturePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAperturePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setShutterSpeed(shutterSpeed: Float): Unit { TransferContext.writeArguments(DOUBLE to shutterSpeed.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setShutterSpeedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShutterSpeedPtr, NIL) } public final fun getShutterSpeed(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getShutterSpeedPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getShutterSpeedPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setFocalLength(focalLength: Float): Unit { TransferContext.writeArguments(DOUBLE to focalLength.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFocalLengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFocalLengthPtr, NIL) } public final fun getFocalLength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFocalLengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFocalLengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setFocusDistance(focusDistance: Float): Unit { TransferContext.writeArguments(DOUBLE to focusDistance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFocusDistancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFocusDistancePtr, NIL) } public final fun getFocusDistance(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFocusDistancePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFocusDistancePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setNear(near: Float): Unit { TransferContext.writeArguments(DOUBLE to near.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setNearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNearPtr, NIL) } public final fun getNear(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNearPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getNearPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setFar(far: Float): Unit { TransferContext.writeArguments(DOUBLE to far.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFarPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFarPtr, NIL) } public final fun getFar(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFarPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFarPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -226,29 +226,29 @@ public open class CameraAttributesPhysical : CameraAttributes() { */ public final fun getFov(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFovPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFovPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAutoExposureMaxExposureValue(exposureValueMax: Float): Unit { TransferContext.writeArguments(DOUBLE to exposureValueMax.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAutoExposureMaxExposureValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutoExposureMaxExposureValuePtr, NIL) } public final fun getAutoExposureMaxExposureValue(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAutoExposureMaxExposureValuePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAutoExposureMaxExposureValuePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAutoExposureMinExposureValue(exposureValueMin: Float): Unit { TransferContext.writeArguments(DOUBLE to exposureValueMin.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAutoExposureMinExposureValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutoExposureMinExposureValuePtr, NIL) } public final fun getAutoExposureMinExposureValue(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAutoExposureMinExposureValuePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAutoExposureMinExposureValuePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CameraAttributesPractical.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CameraAttributesPractical.kt index 775a5a635c..fc184c3f6e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CameraAttributesPractical.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CameraAttributesPractical.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -157,100 +157,100 @@ public open class CameraAttributesPractical : CameraAttributes() { public final fun setDofBlurFarEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDofBlurFarEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDofBlurFarEnabledPtr, NIL) } public final fun isDofBlurFarEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDofBlurFarEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDofBlurFarEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDofBlurFarDistance(distance: Float): Unit { TransferContext.writeArguments(DOUBLE to distance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDofBlurFarDistancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDofBlurFarDistancePtr, NIL) } public final fun getDofBlurFarDistance(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDofBlurFarDistancePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDofBlurFarDistancePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDofBlurFarTransition(distance: Float): Unit { TransferContext.writeArguments(DOUBLE to distance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDofBlurFarTransitionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDofBlurFarTransitionPtr, NIL) } public final fun getDofBlurFarTransition(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDofBlurFarTransitionPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDofBlurFarTransitionPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDofBlurNearEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDofBlurNearEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDofBlurNearEnabledPtr, NIL) } public final fun isDofBlurNearEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDofBlurNearEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDofBlurNearEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDofBlurNearDistance(distance: Float): Unit { TransferContext.writeArguments(DOUBLE to distance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDofBlurNearDistancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDofBlurNearDistancePtr, NIL) } public final fun getDofBlurNearDistance(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDofBlurNearDistancePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDofBlurNearDistancePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDofBlurNearTransition(distance: Float): Unit { TransferContext.writeArguments(DOUBLE to distance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDofBlurNearTransitionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDofBlurNearTransitionPtr, NIL) } public final fun getDofBlurNearTransition(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDofBlurNearTransitionPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDofBlurNearTransitionPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDofBlurAmount(amount: Float): Unit { TransferContext.writeArguments(DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDofBlurAmountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDofBlurAmountPtr, NIL) } public final fun getDofBlurAmount(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDofBlurAmountPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDofBlurAmountPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAutoExposureMaxSensitivity(maxSensitivity: Float): Unit { TransferContext.writeArguments(DOUBLE to maxSensitivity.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAutoExposureMaxSensitivityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutoExposureMaxSensitivityPtr, NIL) } public final fun getAutoExposureMaxSensitivity(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAutoExposureMaxSensitivityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAutoExposureMaxSensitivityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAutoExposureMinSensitivity(minSensitivity: Float): Unit { TransferContext.writeArguments(DOUBLE to minSensitivity.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAutoExposureMinSensitivityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutoExposureMinSensitivityPtr, NIL) } public final fun getAutoExposureMinSensitivity(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAutoExposureMinSensitivityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAutoExposureMinSensitivityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CameraFeed.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CameraFeed.kt index 0899bf4564..3fb95ec4b4 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CameraFeed.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CameraFeed.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Transform2D import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -17,7 +18,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING import godot.core.VariantParser.TRANSFORM2D import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -92,19 +92,19 @@ public open class CameraFeed : RefCounted() { */ public final fun getId(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun isActive(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isActivePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isActivePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setActive(active: Boolean): Unit { TransferContext.writeArguments(BOOL to active) - TransferContext.callMethod(rawPtr, MethodBindings.setActivePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setActivePtr, NIL) } /** @@ -112,7 +112,7 @@ public open class CameraFeed : RefCounted() { */ public final fun getName(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -121,19 +121,19 @@ public open class CameraFeed : RefCounted() { */ public final fun getPosition(): FeedPosition { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPositionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPositionPtr, LONG) return CameraFeed.FeedPosition.from(TransferContext.readReturnValue(LONG) as Long) } public final fun getTransform(): Transform2D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTransformPtr, TRANSFORM2D) + TransferContext.callMethod(ptr, MethodBindings.getTransformPtr, TRANSFORM2D) return (TransferContext.readReturnValue(TRANSFORM2D) as Transform2D) } public final fun setTransform(transform: Transform2D): Unit { TransferContext.writeArguments(TRANSFORM2D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.setTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTransformPtr, NIL) } /** @@ -141,7 +141,7 @@ public open class CameraFeed : RefCounted() { */ public final fun getDatatype(): FeedDataType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDatatypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDatatypePtr, LONG) return CameraFeed.FeedDataType.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CameraServer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CameraServer.kt index a3f19990d8..3c61e708cf 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CameraServer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CameraServer.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal1 import godot.core.TypeManager import godot.core.VariantArray @@ -15,7 +16,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -55,7 +55,7 @@ public object CameraServer : Object() { @JvmStatic public final fun getFeed(index: Int): CameraFeed? { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getFeedPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getFeedPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as CameraFeed?) } @@ -65,7 +65,7 @@ public object CameraServer : Object() { @JvmStatic public final fun getFeedCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFeedCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFeedCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -75,7 +75,7 @@ public object CameraServer : Object() { @JvmStatic public final fun feeds(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.feedsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.feedsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -85,7 +85,7 @@ public object CameraServer : Object() { @JvmStatic public final fun addFeed(feed: CameraFeed?): Unit { TransferContext.writeArguments(OBJECT to feed) - TransferContext.callMethod(rawPtr, MethodBindings.addFeedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addFeedPtr, NIL) } /** @@ -94,7 +94,7 @@ public object CameraServer : Object() { @JvmStatic public final fun removeFeed(feed: CameraFeed?): Unit { TransferContext.writeArguments(OBJECT to feed) - TransferContext.callMethod(rawPtr, MethodBindings.removeFeedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeFeedPtr, NIL) } public enum class FeedImage( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CameraTexture.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CameraTexture.kt index 8689dd188f..ab1d733481 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CameraTexture.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CameraTexture.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -66,34 +66,34 @@ public open class CameraTexture : Texture2D() { public final fun setCameraFeedId(feedId: Int): Unit { TransferContext.writeArguments(LONG to feedId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setCameraFeedIdPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCameraFeedIdPtr, NIL) } public final fun getCameraFeedId(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCameraFeedIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCameraFeedIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setWhichFeed(whichFeed: CameraServer.FeedImage): Unit { TransferContext.writeArguments(LONG to whichFeed.id) - TransferContext.callMethod(rawPtr, MethodBindings.setWhichFeedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setWhichFeedPtr, NIL) } public final fun getWhichFeed(): CameraServer.FeedImage { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWhichFeedPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getWhichFeedPtr, LONG) return CameraServer.FeedImage.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setCameraActive(active: Boolean): Unit { TransferContext.writeArguments(BOOL to active) - TransferContext.callMethod(rawPtr, MethodBindings.setCameraActivePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCameraActivePtr, NIL) } public final fun getCameraActive(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCameraActivePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getCameraActivePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CanvasGroup.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CanvasGroup.kt index 203d19bf09..0117ae2b71 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CanvasGroup.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CanvasGroup.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -100,34 +100,34 @@ public open class CanvasGroup : Node2D() { public final fun setFitMargin(fitMargin: Float): Unit { TransferContext.writeArguments(DOUBLE to fitMargin.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFitMarginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFitMarginPtr, NIL) } public final fun getFitMargin(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFitMarginPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFitMarginPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setClearMargin(clearMargin: Float): Unit { TransferContext.writeArguments(DOUBLE to clearMargin.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setClearMarginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setClearMarginPtr, NIL) } public final fun getClearMargin(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getClearMarginPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getClearMarginPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setUseMipmaps(useMipmaps: Boolean): Unit { TransferContext.writeArguments(BOOL to useMipmaps) - TransferContext.callMethod(rawPtr, MethodBindings.setUseMipmapsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseMipmapsPtr, NIL) } public final fun isUsingMipmaps(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUsingMipmapsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUsingMipmapsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CanvasItem.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CanvasItem.kt index b6df6a57c2..dd6e471b94 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CanvasItem.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CanvasItem.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.PackedColorArray import godot.core.PackedVector2Array @@ -32,7 +33,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -353,18 +353,18 @@ public open class CanvasItem internal constructor() : Node() { */ public final fun getCanvasItem(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCanvasItemPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getCanvasItemPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } public final fun setVisible(visible: Boolean): Unit { TransferContext.writeArguments(BOOL to visible) - TransferContext.callMethod(rawPtr, MethodBindings.setVisiblePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVisiblePtr, NIL) } public final fun isVisible(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isVisiblePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isVisiblePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -378,7 +378,7 @@ public open class CanvasItem internal constructor() : Node() { */ public final fun isVisibleInTree(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isVisibleInTreePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isVisibleInTreePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -389,7 +389,7 @@ public open class CanvasItem internal constructor() : Node() { */ public final fun show(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.showPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.showPtr, NIL) } /** @@ -398,7 +398,7 @@ public open class CanvasItem internal constructor() : Node() { */ public final fun hide(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hidePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.hidePtr, NIL) } /** @@ -408,7 +408,7 @@ public open class CanvasItem internal constructor() : Node() { */ public final fun queueRedraw(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.queueRedrawPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.queueRedrawPtr, NIL) } /** @@ -418,94 +418,94 @@ public open class CanvasItem internal constructor() : Node() { */ public final fun moveToFront(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.moveToFrontPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.moveToFrontPtr, NIL) } public final fun setAsTopLevel(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setAsTopLevelPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAsTopLevelPtr, NIL) } public final fun isSetAsTopLevel(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSetAsTopLevelPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSetAsTopLevelPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setLightMask(lightMask: Int): Unit { TransferContext.writeArguments(LONG to lightMask.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setLightMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLightMaskPtr, NIL) } public final fun getLightMask(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLightMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLightMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setModulate(modulate: Color): Unit { TransferContext.writeArguments(COLOR to modulate) - TransferContext.callMethod(rawPtr, MethodBindings.setModulatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setModulatePtr, NIL) } public final fun getModulate(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getModulatePtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getModulatePtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setSelfModulate(selfModulate: Color): Unit { TransferContext.writeArguments(COLOR to selfModulate) - TransferContext.callMethod(rawPtr, MethodBindings.setSelfModulatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSelfModulatePtr, NIL) } public final fun getSelfModulate(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSelfModulatePtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getSelfModulatePtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setZIndex(zIndex: Int): Unit { TransferContext.writeArguments(LONG to zIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setZIndexPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setZIndexPtr, NIL) } public final fun getZIndex(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getZIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getZIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setZAsRelative(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setZAsRelativePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setZAsRelativePtr, NIL) } public final fun isZRelative(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isZRelativePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isZRelativePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setYSortEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setYSortEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setYSortEnabledPtr, NIL) } public final fun isYSortEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isYSortEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isYSortEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDrawBehindParent(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setDrawBehindParentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDrawBehindParentPtr, NIL) } public final fun isDrawBehindParentEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDrawBehindParentEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDrawBehindParentEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -525,7 +525,7 @@ public open class CanvasItem internal constructor() : Node() { antialiased: Boolean = false, ): Unit { TransferContext.writeArguments(VECTOR2 to from, VECTOR2 to to, COLOR to color, DOUBLE to width.toDouble(), BOOL to antialiased) - TransferContext.callMethod(rawPtr, MethodBindings.drawLinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawLinePtr, NIL) } /** @@ -549,7 +549,7 @@ public open class CanvasItem internal constructor() : Node() { antialiased: Boolean = false, ): Unit { TransferContext.writeArguments(VECTOR2 to from, VECTOR2 to to, COLOR to color, DOUBLE to width.toDouble(), DOUBLE to dash.toDouble(), BOOL to aligned, BOOL to antialiased) - TransferContext.callMethod(rawPtr, MethodBindings.drawDashedLinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawDashedLinePtr, NIL) } /** @@ -570,7 +570,7 @@ public open class CanvasItem internal constructor() : Node() { antialiased: Boolean = false, ): Unit { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to points, COLOR to color, DOUBLE to width.toDouble(), BOOL to antialiased) - TransferContext.callMethod(rawPtr, MethodBindings.drawPolylinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawPolylinePtr, NIL) } /** @@ -593,7 +593,7 @@ public open class CanvasItem internal constructor() : Node() { antialiased: Boolean = false, ): Unit { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to points, PACKED_COLOR_ARRAY to colors, DOUBLE to width.toDouble(), BOOL to antialiased) - TransferContext.callMethod(rawPtr, MethodBindings.drawPolylineColorsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawPolylineColorsPtr, NIL) } /** @@ -620,7 +620,7 @@ public open class CanvasItem internal constructor() : Node() { antialiased: Boolean = false, ): Unit { TransferContext.writeArguments(VECTOR2 to center, DOUBLE to radius.toDouble(), DOUBLE to startAngle.toDouble(), DOUBLE to endAngle.toDouble(), LONG to pointCount.toLong(), COLOR to color, DOUBLE to width.toDouble(), BOOL to antialiased) - TransferContext.callMethod(rawPtr, MethodBindings.drawArcPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawArcPtr, NIL) } /** @@ -641,7 +641,7 @@ public open class CanvasItem internal constructor() : Node() { antialiased: Boolean = false, ): Unit { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to points, COLOR to color, DOUBLE to width.toDouble(), BOOL to antialiased) - TransferContext.callMethod(rawPtr, MethodBindings.drawMultilinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawMultilinePtr, NIL) } /** @@ -663,7 +663,7 @@ public open class CanvasItem internal constructor() : Node() { antialiased: Boolean = false, ): Unit { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to points, PACKED_COLOR_ARRAY to colors, DOUBLE to width.toDouble(), BOOL to antialiased) - TransferContext.callMethod(rawPtr, MethodBindings.drawMultilineColorsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawMultilineColorsPtr, NIL) } /** @@ -688,7 +688,7 @@ public open class CanvasItem internal constructor() : Node() { antialiased: Boolean = false, ): Unit { TransferContext.writeArguments(RECT2 to rect, COLOR to color, BOOL to filled, DOUBLE to width.toDouble(), BOOL to antialiased) - TransferContext.callMethod(rawPtr, MethodBindings.drawRectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawRectPtr, NIL) } /** @@ -712,7 +712,7 @@ public open class CanvasItem internal constructor() : Node() { antialiased: Boolean = false, ): Unit { TransferContext.writeArguments(VECTOR2 to position, DOUBLE to radius.toDouble(), COLOR to color, BOOL to filled, DOUBLE to width.toDouble(), BOOL to antialiased) - TransferContext.callMethod(rawPtr, MethodBindings.drawCirclePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawCirclePtr, NIL) } /** @@ -725,7 +725,7 @@ public open class CanvasItem internal constructor() : Node() { modulate: Color = Color(Color(1, 1, 1, 1)), ): Unit { TransferContext.writeArguments(OBJECT to texture, VECTOR2 to position, COLOR to modulate) - TransferContext.callMethod(rawPtr, MethodBindings.drawTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawTexturePtr, NIL) } /** @@ -742,7 +742,7 @@ public open class CanvasItem internal constructor() : Node() { transpose: Boolean = false, ): Unit { TransferContext.writeArguments(OBJECT to texture, RECT2 to rect, BOOL to tile, COLOR to modulate, BOOL to transpose) - TransferContext.callMethod(rawPtr, MethodBindings.drawTextureRectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawTextureRectPtr, NIL) } /** @@ -760,7 +760,7 @@ public open class CanvasItem internal constructor() : Node() { clipUv: Boolean = true, ): Unit { TransferContext.writeArguments(OBJECT to texture, RECT2 to rect, RECT2 to srcRect, COLOR to modulate, BOOL to transpose, BOOL to clipUv) - TransferContext.callMethod(rawPtr, MethodBindings.drawTextureRectRegionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawTextureRectRegionPtr, NIL) } /** @@ -783,7 +783,7 @@ public open class CanvasItem internal constructor() : Node() { scale: Double = 1.0, ): Unit { TransferContext.writeArguments(OBJECT to texture, RECT2 to rect, RECT2 to srcRect, COLOR to modulate, DOUBLE to outline, DOUBLE to pixelRange, DOUBLE to scale) - TransferContext.callMethod(rawPtr, MethodBindings.drawMsdfTextureRectRegionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawMsdfTextureRectRegionPtr, NIL) } /** @@ -806,7 +806,7 @@ public open class CanvasItem internal constructor() : Node() { modulate: Color = Color(Color(1, 1, 1, 1)), ): Unit { TransferContext.writeArguments(OBJECT to texture, RECT2 to rect, RECT2 to srcRect, COLOR to modulate) - TransferContext.callMethod(rawPtr, MethodBindings.drawLcdTextureRectRegionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawLcdTextureRectRegionPtr, NIL) } /** @@ -814,7 +814,7 @@ public open class CanvasItem internal constructor() : Node() { */ public final fun drawStyleBox(styleBox: StyleBox?, rect: Rect2): Unit { TransferContext.writeArguments(OBJECT to styleBox, RECT2 to rect) - TransferContext.callMethod(rawPtr, MethodBindings.drawStyleBoxPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawStyleBoxPtr, NIL) } /** @@ -831,7 +831,7 @@ public open class CanvasItem internal constructor() : Node() { texture: Texture2D? = null, ): Unit { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to points, PACKED_COLOR_ARRAY to colors, PACKED_VECTOR2_ARRAY to uvs, OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.drawPrimitivePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawPrimitivePtr, NIL) } /** @@ -848,7 +848,7 @@ public open class CanvasItem internal constructor() : Node() { texture: Texture2D? = null, ): Unit { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to points, PACKED_COLOR_ARRAY to colors, PACKED_VECTOR2_ARRAY to uvs, OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.drawPolygonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawPolygonPtr, NIL) } /** @@ -863,7 +863,7 @@ public open class CanvasItem internal constructor() : Node() { texture: Texture2D? = null, ): Unit { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to points, COLOR to color, PACKED_VECTOR2_ARRAY to uvs, OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.drawColoredPolygonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawColoredPolygonPtr, NIL) } /** @@ -909,7 +909,7 @@ public open class CanvasItem internal constructor() : Node() { orientation: TextServer.Orientation = TextServer.Orientation.ORIENTATION_HORIZONTAL, ): Unit { TransferContext.writeArguments(OBJECT to font, VECTOR2 to pos, STRING to text, LONG to alignment.id, DOUBLE to width.toDouble(), LONG to fontSize.toLong(), COLOR to modulate, LONG to justificationFlags.flag, LONG to direction.id, LONG to orientation.id) - TransferContext.callMethod(rawPtr, MethodBindings.drawStringPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawStringPtr, NIL) } /** @@ -933,7 +933,7 @@ public open class CanvasItem internal constructor() : Node() { orientation: TextServer.Orientation = TextServer.Orientation.ORIENTATION_HORIZONTAL, ): Unit { TransferContext.writeArguments(OBJECT to font, VECTOR2 to pos, STRING to text, LONG to alignment.id, DOUBLE to width.toDouble(), LONG to fontSize.toLong(), LONG to maxLines.toLong(), COLOR to modulate, LONG to brkFlags.flag, LONG to justificationFlags.flag, LONG to direction.id, LONG to orientation.id) - TransferContext.callMethod(rawPtr, MethodBindings.drawMultilineStringPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawMultilineStringPtr, NIL) } /** @@ -956,7 +956,7 @@ public open class CanvasItem internal constructor() : Node() { orientation: TextServer.Orientation = TextServer.Orientation.ORIENTATION_HORIZONTAL, ): Unit { TransferContext.writeArguments(OBJECT to font, VECTOR2 to pos, STRING to text, LONG to alignment.id, DOUBLE to width.toDouble(), LONG to fontSize.toLong(), LONG to size.toLong(), COLOR to modulate, LONG to justificationFlags.flag, LONG to direction.id, LONG to orientation.id) - TransferContext.callMethod(rawPtr, MethodBindings.drawStringOutlinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawStringOutlinePtr, NIL) } /** @@ -981,7 +981,7 @@ public open class CanvasItem internal constructor() : Node() { orientation: TextServer.Orientation = TextServer.Orientation.ORIENTATION_HORIZONTAL, ): Unit { TransferContext.writeArguments(OBJECT to font, VECTOR2 to pos, STRING to text, LONG to alignment.id, DOUBLE to width.toDouble(), LONG to fontSize.toLong(), LONG to maxLines.toLong(), LONG to size.toLong(), COLOR to modulate, LONG to brkFlags.flag, LONG to justificationFlags.flag, LONG to direction.id, LONG to orientation.id) - TransferContext.callMethod(rawPtr, MethodBindings.drawMultilineStringOutlinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawMultilineStringOutlinePtr, NIL) } /** @@ -996,7 +996,7 @@ public open class CanvasItem internal constructor() : Node() { modulate: Color = Color(Color(1, 1, 1, 1)), ): Unit { TransferContext.writeArguments(OBJECT to font, VECTOR2 to pos, STRING to char, LONG to fontSize.toLong(), COLOR to modulate) - TransferContext.callMethod(rawPtr, MethodBindings.drawCharPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawCharPtr, NIL) } /** @@ -1012,7 +1012,7 @@ public open class CanvasItem internal constructor() : Node() { modulate: Color = Color(Color(1, 1, 1, 1)), ): Unit { TransferContext.writeArguments(OBJECT to font, VECTOR2 to pos, STRING to char, LONG to fontSize.toLong(), LONG to size.toLong(), COLOR to modulate) - TransferContext.callMethod(rawPtr, MethodBindings.drawCharOutlinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawCharOutlinePtr, NIL) } /** @@ -1027,7 +1027,7 @@ public open class CanvasItem internal constructor() : Node() { modulate: Color = Color(Color(1, 1, 1, 1)), ): Unit { TransferContext.writeArguments(OBJECT to mesh, OBJECT to texture, TRANSFORM2D to transform, COLOR to modulate) - TransferContext.callMethod(rawPtr, MethodBindings.drawMeshPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawMeshPtr, NIL) } /** @@ -1036,7 +1036,7 @@ public open class CanvasItem internal constructor() : Node() { */ public final fun drawMultimesh(multimesh: MultiMesh?, texture: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to multimesh, OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.drawMultimeshPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawMultimeshPtr, NIL) } /** @@ -1057,7 +1057,7 @@ public open class CanvasItem internal constructor() : Node() { scale: Vector2 = Vector2(1, 1), ): Unit { TransferContext.writeArguments(VECTOR2 to position, DOUBLE to rotation.toDouble(), VECTOR2 to scale) - TransferContext.callMethod(rawPtr, MethodBindings.drawSetTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawSetTransformPtr, NIL) } /** @@ -1066,7 +1066,7 @@ public open class CanvasItem internal constructor() : Node() { */ public final fun drawSetTransformMatrix(xform: Transform2D): Unit { TransferContext.writeArguments(TRANSFORM2D to xform) - TransferContext.callMethod(rawPtr, MethodBindings.drawSetTransformMatrixPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawSetTransformMatrixPtr, NIL) } /** @@ -1082,7 +1082,7 @@ public open class CanvasItem internal constructor() : Node() { offset: Double = 0.0, ): Unit { TransferContext.writeArguments(DOUBLE to animationLength, DOUBLE to sliceBegin, DOUBLE to sliceEnd, DOUBLE to offset) - TransferContext.callMethod(rawPtr, MethodBindings.drawAnimationSlicePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawAnimationSlicePtr, NIL) } /** @@ -1093,7 +1093,7 @@ public open class CanvasItem internal constructor() : Node() { */ public final fun drawEndAnimation(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.drawEndAnimationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawEndAnimationPtr, NIL) } /** @@ -1101,7 +1101,7 @@ public open class CanvasItem internal constructor() : Node() { */ public final fun getTransform(): Transform2D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTransformPtr, TRANSFORM2D) + TransferContext.callMethod(ptr, MethodBindings.getTransformPtr, TRANSFORM2D) return (TransferContext.readReturnValue(TRANSFORM2D) as Transform2D) } @@ -1112,7 +1112,7 @@ public open class CanvasItem internal constructor() : Node() { */ public final fun getGlobalTransform(): Transform2D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGlobalTransformPtr, TRANSFORM2D) + TransferContext.callMethod(ptr, MethodBindings.getGlobalTransformPtr, TRANSFORM2D) return (TransferContext.readReturnValue(TRANSFORM2D) as Transform2D) } @@ -1122,7 +1122,7 @@ public open class CanvasItem internal constructor() : Node() { */ public final fun getGlobalTransformWithCanvas(): Transform2D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGlobalTransformWithCanvasPtr, TRANSFORM2D) + TransferContext.callMethod(ptr, MethodBindings.getGlobalTransformWithCanvasPtr, TRANSFORM2D) return (TransferContext.readReturnValue(TRANSFORM2D) as Transform2D) } @@ -1132,7 +1132,7 @@ public open class CanvasItem internal constructor() : Node() { */ public final fun getViewportTransform(): Transform2D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getViewportTransformPtr, TRANSFORM2D) + TransferContext.callMethod(ptr, MethodBindings.getViewportTransformPtr, TRANSFORM2D) return (TransferContext.readReturnValue(TRANSFORM2D) as Transform2D) } @@ -1141,7 +1141,7 @@ public open class CanvasItem internal constructor() : Node() { */ public final fun getViewportRect(): Rect2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getViewportRectPtr, RECT2) + TransferContext.callMethod(ptr, MethodBindings.getViewportRectPtr, RECT2) return (TransferContext.readReturnValue(RECT2) as Rect2) } @@ -1151,7 +1151,7 @@ public open class CanvasItem internal constructor() : Node() { */ public final fun getCanvasTransform(): Transform2D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCanvasTransformPtr, TRANSFORM2D) + TransferContext.callMethod(ptr, MethodBindings.getCanvasTransformPtr, TRANSFORM2D) return (TransferContext.readReturnValue(TRANSFORM2D) as Transform2D) } @@ -1162,7 +1162,7 @@ public open class CanvasItem internal constructor() : Node() { */ public final fun getScreenTransform(): Transform2D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScreenTransformPtr, TRANSFORM2D) + TransferContext.callMethod(ptr, MethodBindings.getScreenTransformPtr, TRANSFORM2D) return (TransferContext.readReturnValue(TRANSFORM2D) as Transform2D) } @@ -1172,7 +1172,7 @@ public open class CanvasItem internal constructor() : Node() { */ public final fun getLocalMousePosition(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLocalMousePositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getLocalMousePositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -1184,7 +1184,7 @@ public open class CanvasItem internal constructor() : Node() { */ public final fun getGlobalMousePosition(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGlobalMousePositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getGlobalMousePositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -1193,7 +1193,7 @@ public open class CanvasItem internal constructor() : Node() { */ public final fun getCanvas(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCanvasPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getCanvasPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -1203,7 +1203,7 @@ public open class CanvasItem internal constructor() : Node() { */ public final fun getCanvasLayerNode(): CanvasLayer? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCanvasLayerNodePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getCanvasLayerNodePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as CanvasLayer?) } @@ -1212,29 +1212,29 @@ public open class CanvasItem internal constructor() : Node() { */ public final fun getWorld2d(): World2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWorld2dPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getWorld2dPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as World2D?) } public final fun setMaterial(material: Material?): Unit { TransferContext.writeArguments(OBJECT to material) - TransferContext.callMethod(rawPtr, MethodBindings.setMaterialPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaterialPtr, NIL) } public final fun getMaterial(): Material? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaterialPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getMaterialPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Material?) } public final fun setUseParentMaterial(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setUseParentMaterialPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseParentMaterialPtr, NIL) } public final fun getUseParentMaterial(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUseParentMaterialPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getUseParentMaterialPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1244,7 +1244,7 @@ public open class CanvasItem internal constructor() : Node() { */ public final fun setNotifyLocalTransform(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setNotifyLocalTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNotifyLocalTransformPtr, NIL) } /** @@ -1252,7 +1252,7 @@ public open class CanvasItem internal constructor() : Node() { */ public final fun isLocalTransformNotificationEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isLocalTransformNotificationEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isLocalTransformNotificationEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1262,7 +1262,7 @@ public open class CanvasItem internal constructor() : Node() { */ public final fun setNotifyTransform(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setNotifyTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNotifyTransformPtr, NIL) } /** @@ -1270,7 +1270,7 @@ public open class CanvasItem internal constructor() : Node() { */ public final fun isTransformNotificationEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isTransformNotificationEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isTransformNotificationEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1281,7 +1281,7 @@ public open class CanvasItem internal constructor() : Node() { */ public final fun forceUpdateTransform(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.forceUpdateTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.forceUpdateTransformPtr, NIL) } /** @@ -1289,7 +1289,7 @@ public open class CanvasItem internal constructor() : Node() { */ public final fun makeCanvasPositionLocal(screenPoint: Vector2): Vector2 { TransferContext.writeArguments(VECTOR2 to screenPoint) - TransferContext.callMethod(rawPtr, MethodBindings.makeCanvasPositionLocalPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.makeCanvasPositionLocalPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -1298,18 +1298,18 @@ public open class CanvasItem internal constructor() : Node() { */ public final fun makeInputLocal(event: InputEvent?): InputEvent? { TransferContext.writeArguments(OBJECT to event) - TransferContext.callMethod(rawPtr, MethodBindings.makeInputLocalPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.makeInputLocalPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as InputEvent?) } public final fun setVisibilityLayer(layer: Long): Unit { TransferContext.writeArguments(LONG to layer) - TransferContext.callMethod(rawPtr, MethodBindings.setVisibilityLayerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVisibilityLayerPtr, NIL) } public final fun getVisibilityLayer(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVisibilityLayerPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVisibilityLayerPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -1319,7 +1319,7 @@ public open class CanvasItem internal constructor() : Node() { */ public final fun setVisibilityLayerBit(layer: Long, enabled: Boolean): Unit { TransferContext.writeArguments(LONG to layer, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setVisibilityLayerBitPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVisibilityLayerBitPtr, NIL) } /** @@ -1327,40 +1327,40 @@ public open class CanvasItem internal constructor() : Node() { */ public final fun getVisibilityLayerBit(layer: Long): Boolean { TransferContext.writeArguments(LONG to layer) - TransferContext.callMethod(rawPtr, MethodBindings.getVisibilityLayerBitPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getVisibilityLayerBitPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setTextureFilter(mode: TextureFilter): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureFilterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureFilterPtr, NIL) } public final fun getTextureFilter(): TextureFilter { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextureFilterPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTextureFilterPtr, LONG) return CanvasItem.TextureFilter.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setTextureRepeat(mode: TextureRepeat): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureRepeatPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureRepeatPtr, NIL) } public final fun getTextureRepeat(): TextureRepeat { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextureRepeatPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTextureRepeatPtr, LONG) return CanvasItem.TextureRepeat.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setClipChildrenMode(mode: ClipChildrenMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setClipChildrenModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setClipChildrenModePtr, NIL) } public final fun getClipChildrenMode(): ClipChildrenMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getClipChildrenModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getClipChildrenModePtr, LONG) return CanvasItem.ClipChildrenMode.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CanvasItemMaterial.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CanvasItemMaterial.kt index d19ae93018..fc1cacc823 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CanvasItemMaterial.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CanvasItemMaterial.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -111,67 +111,67 @@ public open class CanvasItemMaterial : Material() { public final fun setBlendMode(blendMode: BlendMode): Unit { TransferContext.writeArguments(LONG to blendMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setBlendModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBlendModePtr, NIL) } public final fun getBlendMode(): BlendMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBlendModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBlendModePtr, LONG) return CanvasItemMaterial.BlendMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setLightMode(lightMode: LightMode): Unit { TransferContext.writeArguments(LONG to lightMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setLightModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLightModePtr, NIL) } public final fun getLightMode(): LightMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLightModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLightModePtr, LONG) return CanvasItemMaterial.LightMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setParticlesAnimation(particlesAnim: Boolean): Unit { TransferContext.writeArguments(BOOL to particlesAnim) - TransferContext.callMethod(rawPtr, MethodBindings.setParticlesAnimationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setParticlesAnimationPtr, NIL) } public final fun getParticlesAnimation(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getParticlesAnimationPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getParticlesAnimationPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setParticlesAnimHFrames(frames: Int): Unit { TransferContext.writeArguments(LONG to frames.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setParticlesAnimHFramesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setParticlesAnimHFramesPtr, NIL) } public final fun getParticlesAnimHFrames(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getParticlesAnimHFramesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getParticlesAnimHFramesPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setParticlesAnimVFrames(frames: Int): Unit { TransferContext.writeArguments(LONG to frames.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setParticlesAnimVFramesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setParticlesAnimVFramesPtr, NIL) } public final fun getParticlesAnimVFrames(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getParticlesAnimVFramesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getParticlesAnimVFramesPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setParticlesAnimLoop(loop: Boolean): Unit { TransferContext.writeArguments(BOOL to loop) - TransferContext.callMethod(rawPtr, MethodBindings.setParticlesAnimLoopPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setParticlesAnimLoopPtr, NIL) } public final fun getParticlesAnimLoop(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getParticlesAnimLoopPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getParticlesAnimLoopPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CanvasLayer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CanvasLayer.kt index 63012b5752..3cabe84f93 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CanvasLayer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CanvasLayer.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.Signal0 import godot.core.Transform2D @@ -23,7 +24,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -245,23 +245,23 @@ public open class CanvasLayer : Node() { public final fun setLayer(layer: Int): Unit { TransferContext.writeArguments(LONG to layer.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setLayerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLayerPtr, NIL) } public final fun getLayer(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLayerPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLayerPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setVisible(visible: Boolean): Unit { TransferContext.writeArguments(BOOL to visible) - TransferContext.callMethod(rawPtr, MethodBindings.setVisiblePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVisiblePtr, NIL) } public final fun isVisible(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isVisiblePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isVisiblePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -271,7 +271,7 @@ public open class CanvasLayer : Node() { */ public final fun show(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.showPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.showPtr, NIL) } /** @@ -280,17 +280,17 @@ public open class CanvasLayer : Node() { */ public final fun hide(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hidePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.hidePtr, NIL) } public final fun setTransform(transform: Transform2D): Unit { TransferContext.writeArguments(TRANSFORM2D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.setTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTransformPtr, NIL) } public final fun getTransform(): Transform2D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTransformPtr, TRANSFORM2D) + TransferContext.callMethod(ptr, MethodBindings.getTransformPtr, TRANSFORM2D) return (TransferContext.readReturnValue(TRANSFORM2D) as Transform2D) } @@ -300,73 +300,73 @@ public open class CanvasLayer : Node() { */ public final fun getFinalTransform(): Transform2D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFinalTransformPtr, TRANSFORM2D) + TransferContext.callMethod(ptr, MethodBindings.getFinalTransformPtr, TRANSFORM2D) return (TransferContext.readReturnValue(TRANSFORM2D) as Transform2D) } public final fun setOffset(offset: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.setOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOffsetPtr, NIL) } public final fun getOffset(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOffsetPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getOffsetPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setRotation(radians: Float): Unit { TransferContext.writeArguments(DOUBLE to radians.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRotationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRotationPtr, NIL) } public final fun getRotation(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRotationPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRotationPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setScale(scale: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to scale) - TransferContext.callMethod(rawPtr, MethodBindings.setScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setScalePtr, NIL) } public final fun getScale(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScalePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getScalePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setFollowViewport(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setFollowViewportPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFollowViewportPtr, NIL) } public final fun isFollowingViewport(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isFollowingViewportPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isFollowingViewportPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setFollowViewportScale(scale: Float): Unit { TransferContext.writeArguments(DOUBLE to scale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFollowViewportScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFollowViewportScalePtr, NIL) } public final fun getFollowViewportScale(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFollowViewportScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFollowViewportScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setCustomViewport(viewport: Node?): Unit { TransferContext.writeArguments(OBJECT to viewport) - TransferContext.callMethod(rawPtr, MethodBindings.setCustomViewportPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCustomViewportPtr, NIL) } public final fun getCustomViewport(): Node? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCustomViewportPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getCustomViewportPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Node?) } @@ -375,7 +375,7 @@ public open class CanvasLayer : Node() { */ public final fun getCanvas(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCanvasPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getCanvasPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CanvasModulate.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CanvasModulate.kt index d357eeedb0..7f2a36eeea 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CanvasModulate.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CanvasModulate.kt @@ -9,12 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.TypeManager import godot.core.VariantParser.COLOR import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -68,12 +68,12 @@ public open class CanvasModulate : Node2D() { public final fun setColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColorPtr, NIL) } public final fun getColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CanvasTexture.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CanvasTexture.kt index 44027a1dcb..0909bf3395 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CanvasTexture.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CanvasTexture.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.TypeManager import godot.core.VariantParser.COLOR @@ -17,7 +18,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -159,78 +159,78 @@ public open class CanvasTexture : Texture2D() { public final fun setDiffuseTexture(texture: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setDiffuseTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDiffuseTexturePtr, NIL) } public final fun getDiffuseTexture(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDiffuseTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getDiffuseTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } public final fun setNormalTexture(texture: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setNormalTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNormalTexturePtr, NIL) } public final fun getNormalTexture(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNormalTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getNormalTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } public final fun setSpecularTexture(texture: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setSpecularTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSpecularTexturePtr, NIL) } public final fun getSpecularTexture(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSpecularTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getSpecularTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } public final fun setSpecularColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setSpecularColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSpecularColorPtr, NIL) } public final fun getSpecularColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSpecularColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getSpecularColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setSpecularShininess(shininess: Float): Unit { TransferContext.writeArguments(DOUBLE to shininess.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSpecularShininessPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSpecularShininessPtr, NIL) } public final fun getSpecularShininess(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSpecularShininessPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSpecularShininessPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setTextureFilter(filter: CanvasItem.TextureFilter): Unit { TransferContext.writeArguments(LONG to filter.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureFilterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureFilterPtr, NIL) } public final fun getTextureFilter(): CanvasItem.TextureFilter { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextureFilterPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTextureFilterPtr, LONG) return CanvasItem.TextureFilter.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setTextureRepeat(repeat: CanvasItem.TextureRepeat): Unit { TransferContext.writeArguments(LONG to repeat.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureRepeatPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureRepeatPtr, NIL) } public final fun getTextureRepeat(): CanvasItem.TextureRepeat { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextureRepeatPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTextureRepeatPtr, LONG) return CanvasItem.TextureRepeat.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CapsuleMesh.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CapsuleMesh.kt index a387e8da6c..0f8f5b7f8d 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CapsuleMesh.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CapsuleMesh.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -76,45 +76,45 @@ public open class CapsuleMesh : PrimitiveMesh() { public final fun setRadius(radius: Float): Unit { TransferContext.writeArguments(DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRadiusPtr, NIL) } public final fun getRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setHeight(height: Float): Unit { TransferContext.writeArguments(DOUBLE to height.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setHeightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHeightPtr, NIL) } public final fun getHeight(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHeightPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getHeightPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setRadialSegments(segments: Int): Unit { TransferContext.writeArguments(LONG to segments.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setRadialSegmentsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRadialSegmentsPtr, NIL) } public final fun getRadialSegments(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRadialSegmentsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getRadialSegmentsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setRings(rings: Int): Unit { TransferContext.writeArguments(LONG to rings.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setRingsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRingsPtr, NIL) } public final fun getRings(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRingsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getRingsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CapsuleShape2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CapsuleShape2D.kt index 335422d8c0..67f05b56d4 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CapsuleShape2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CapsuleShape2D.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -55,23 +55,23 @@ public open class CapsuleShape2D : Shape2D() { public final fun setRadius(radius: Float): Unit { TransferContext.writeArguments(DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRadiusPtr, NIL) } public final fun getRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setHeight(height: Float): Unit { TransferContext.writeArguments(DOUBLE to height.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setHeightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHeightPtr, NIL) } public final fun getHeight(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHeightPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getHeightPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CapsuleShape3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CapsuleShape3D.kt index 6b86a5beef..757bf00bdd 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CapsuleShape3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CapsuleShape3D.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -55,23 +55,23 @@ public open class CapsuleShape3D : Shape3D() { public final fun setRadius(radius: Float): Unit { TransferContext.writeArguments(DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRadiusPtr, NIL) } public final fun getRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setHeight(height: Float): Unit { TransferContext.writeArguments(DOUBLE to height.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setHeightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHeightPtr, NIL) } public final fun getHeight(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHeightPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getHeightPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CenterContainer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CenterContainer.kt index da28fbd8fc..7a64e9b98a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CenterContainer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CenterContainer.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -41,12 +41,12 @@ public open class CenterContainer : Container() { public final fun setUseTopLeft(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setUseTopLeftPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseTopLeftPtr, NIL) } public final fun isUsingTopLeft(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUsingTopLeftPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUsingTopLeftPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CharFXTransform.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CharFXTransform.kt index ce23b16a3b..b051a28328 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CharFXTransform.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CharFXTransform.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.Dictionary import godot.core.RID @@ -27,7 +28,6 @@ import godot.core.VariantParser._RID import godot.core.Vector2 import godot.core.Vector2i import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -316,145 +316,145 @@ public open class CharFXTransform : RefCounted() { public final fun getTransform(): Transform2D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTransformPtr, TRANSFORM2D) + TransferContext.callMethod(ptr, MethodBindings.getTransformPtr, TRANSFORM2D) return (TransferContext.readReturnValue(TRANSFORM2D) as Transform2D) } public final fun setTransform(transform: Transform2D): Unit { TransferContext.writeArguments(TRANSFORM2D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.setTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTransformPtr, NIL) } public final fun getRange(): Vector2i { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRangePtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getRangePtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } public final fun setRange(range: Vector2i): Unit { TransferContext.writeArguments(VECTOR2I to range) - TransferContext.callMethod(rawPtr, MethodBindings.setRangePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRangePtr, NIL) } public final fun getElapsedTime(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getElapsedTimePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getElapsedTimePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun setElapsedTime(time: Double): Unit { TransferContext.writeArguments(DOUBLE to time) - TransferContext.callMethod(rawPtr, MethodBindings.setElapsedTimePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setElapsedTimePtr, NIL) } public final fun isVisible(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isVisiblePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isVisiblePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setVisibility(visibility: Boolean): Unit { TransferContext.writeArguments(BOOL to visibility) - TransferContext.callMethod(rawPtr, MethodBindings.setVisibilityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVisibilityPtr, NIL) } public final fun isOutline(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isOutlinePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isOutlinePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setOutline(outline: Boolean): Unit { TransferContext.writeArguments(BOOL to outline) - TransferContext.callMethod(rawPtr, MethodBindings.setOutlinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOutlinePtr, NIL) } public final fun getOffset(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOffsetPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getOffsetPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setOffset(offset: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.setOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOffsetPtr, NIL) } public final fun getColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColorPtr, NIL) } public final fun getEnvironment(): Dictionary { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnvironmentPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getEnvironmentPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } public final fun setEnvironment(environment: Dictionary): Unit { TransferContext.writeArguments(DICTIONARY to environment) - TransferContext.callMethod(rawPtr, MethodBindings.setEnvironmentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnvironmentPtr, NIL) } public final fun getGlyphIndex(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGlyphIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getGlyphIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setGlyphIndex(glyphIndex: Long): Unit { TransferContext.writeArguments(LONG to glyphIndex) - TransferContext.callMethod(rawPtr, MethodBindings.setGlyphIndexPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlyphIndexPtr, NIL) } public final fun getRelativeIndex(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRelativeIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getRelativeIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setRelativeIndex(relativeIndex: Int): Unit { TransferContext.writeArguments(LONG to relativeIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setRelativeIndexPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRelativeIndexPtr, NIL) } public final fun getGlyphCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGlyphCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getGlyphCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setGlyphCount(glyphCount: Int): Unit { TransferContext.writeArguments(LONG to glyphCount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setGlyphCountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlyphCountPtr, NIL) } public final fun getGlyphFlags(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGlyphFlagsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getGlyphFlagsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setGlyphFlags(glyphFlags: Int): Unit { TransferContext.writeArguments(LONG to glyphFlags.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setGlyphFlagsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlyphFlagsPtr, NIL) } public final fun getFont(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFontPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getFontPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } public final fun setFont(font: RID): Unit { TransferContext.writeArguments(_RID to font) - TransferContext.callMethod(rawPtr, MethodBindings.setFontPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFontPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CharacterBody2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CharacterBody2D.kt index 6efc2583d5..8b15b2be9f 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CharacterBody2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CharacterBody2D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE @@ -18,7 +19,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -314,7 +314,7 @@ public open class CharacterBody2D : PhysicsBody2D() { */ public final fun moveAndSlide(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.moveAndSlidePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.moveAndSlidePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -324,171 +324,171 @@ public open class CharacterBody2D : PhysicsBody2D() { */ public final fun applyFloorSnap(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.applyFloorSnapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.applyFloorSnapPtr, NIL) } public final fun setVelocity(velocity: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to velocity) - TransferContext.callMethod(rawPtr, MethodBindings.setVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVelocityPtr, NIL) } public final fun getVelocity(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVelocityPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getVelocityPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setSafeMargin(margin: Float): Unit { TransferContext.writeArguments(DOUBLE to margin.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSafeMarginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSafeMarginPtr, NIL) } public final fun getSafeMargin(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSafeMarginPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSafeMarginPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun isFloorStopOnSlopeEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isFloorStopOnSlopeEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isFloorStopOnSlopeEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setFloorStopOnSlopeEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setFloorStopOnSlopeEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFloorStopOnSlopeEnabledPtr, NIL) } public final fun setFloorConstantSpeedEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setFloorConstantSpeedEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFloorConstantSpeedEnabledPtr, NIL) } public final fun isFloorConstantSpeedEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isFloorConstantSpeedEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isFloorConstantSpeedEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setFloorBlockOnWallEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setFloorBlockOnWallEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFloorBlockOnWallEnabledPtr, NIL) } public final fun isFloorBlockOnWallEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isFloorBlockOnWallEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isFloorBlockOnWallEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSlideOnCeilingEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setSlideOnCeilingEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSlideOnCeilingEnabledPtr, NIL) } public final fun isSlideOnCeilingEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSlideOnCeilingEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSlideOnCeilingEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setPlatformFloorLayers(excludeLayer: Long): Unit { TransferContext.writeArguments(LONG to excludeLayer) - TransferContext.callMethod(rawPtr, MethodBindings.setPlatformFloorLayersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPlatformFloorLayersPtr, NIL) } public final fun getPlatformFloorLayers(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPlatformFloorLayersPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPlatformFloorLayersPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setPlatformWallLayers(excludeLayer: Long): Unit { TransferContext.writeArguments(LONG to excludeLayer) - TransferContext.callMethod(rawPtr, MethodBindings.setPlatformWallLayersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPlatformWallLayersPtr, NIL) } public final fun getPlatformWallLayers(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPlatformWallLayersPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPlatformWallLayersPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun getMaxSlides(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxSlidesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMaxSlidesPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setMaxSlides(maxSlides: Int): Unit { TransferContext.writeArguments(LONG to maxSlides.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxSlidesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxSlidesPtr, NIL) } public final fun getFloorMaxAngle(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFloorMaxAnglePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFloorMaxAnglePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setFloorMaxAngle(radians: Float): Unit { TransferContext.writeArguments(DOUBLE to radians.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFloorMaxAnglePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFloorMaxAnglePtr, NIL) } public final fun getFloorSnapLength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFloorSnapLengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFloorSnapLengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setFloorSnapLength(floorSnapLength: Float): Unit { TransferContext.writeArguments(DOUBLE to floorSnapLength.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFloorSnapLengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFloorSnapLengthPtr, NIL) } public final fun getWallMinSlideAngle(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWallMinSlideAnglePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getWallMinSlideAnglePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setWallMinSlideAngle(radians: Float): Unit { TransferContext.writeArguments(DOUBLE to radians.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setWallMinSlideAnglePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setWallMinSlideAnglePtr, NIL) } public final fun getUpDirection(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUpDirectionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getUpDirectionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setUpDirection(upDirection: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to upDirection) - TransferContext.callMethod(rawPtr, MethodBindings.setUpDirectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUpDirectionPtr, NIL) } public final fun setMotionMode(mode: MotionMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setMotionModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMotionModePtr, NIL) } public final fun getMotionMode(): MotionMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMotionModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMotionModePtr, LONG) return CharacterBody2D.MotionMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setPlatformOnLeave(onLeaveApplyVelocity: PlatformOnLeave): Unit { TransferContext.writeArguments(LONG to onLeaveApplyVelocity.id) - TransferContext.callMethod(rawPtr, MethodBindings.setPlatformOnLeavePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPlatformOnLeavePtr, NIL) } public final fun getPlatformOnLeave(): PlatformOnLeave { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPlatformOnLeavePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPlatformOnLeavePtr, LONG) return CharacterBody2D.PlatformOnLeave.from(TransferContext.readReturnValue(LONG) as Long) } @@ -499,7 +499,7 @@ public open class CharacterBody2D : PhysicsBody2D() { */ public final fun isOnFloor(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isOnFloorPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isOnFloorPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -510,7 +510,7 @@ public open class CharacterBody2D : PhysicsBody2D() { */ public final fun isOnFloorOnly(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isOnFloorOnlyPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isOnFloorOnlyPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -521,7 +521,7 @@ public open class CharacterBody2D : PhysicsBody2D() { */ public final fun isOnCeiling(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isOnCeilingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isOnCeilingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -532,7 +532,7 @@ public open class CharacterBody2D : PhysicsBody2D() { */ public final fun isOnCeilingOnly(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isOnCeilingOnlyPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isOnCeilingOnlyPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -543,7 +543,7 @@ public open class CharacterBody2D : PhysicsBody2D() { */ public final fun isOnWall(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isOnWallPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isOnWallPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -554,7 +554,7 @@ public open class CharacterBody2D : PhysicsBody2D() { */ public final fun isOnWallOnly(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isOnWallOnlyPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isOnWallOnlyPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -565,7 +565,7 @@ public open class CharacterBody2D : PhysicsBody2D() { */ public final fun getFloorNormal(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFloorNormalPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getFloorNormalPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -576,7 +576,7 @@ public open class CharacterBody2D : PhysicsBody2D() { */ public final fun getWallNormal(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWallNormalPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getWallNormalPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -587,7 +587,7 @@ public open class CharacterBody2D : PhysicsBody2D() { */ public final fun getLastMotion(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLastMotionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getLastMotionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -596,7 +596,7 @@ public open class CharacterBody2D : PhysicsBody2D() { */ public final fun getPositionDelta(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPositionDeltaPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getPositionDeltaPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -607,7 +607,7 @@ public open class CharacterBody2D : PhysicsBody2D() { */ public final fun getRealVelocity(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRealVelocityPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getRealVelocityPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -619,7 +619,7 @@ public open class CharacterBody2D : PhysicsBody2D() { @JvmOverloads public final fun getFloorAngle(upDirection: Vector2 = Vector2(0, -1)): Float { TransferContext.writeArguments(VECTOR2 to upDirection) - TransferContext.callMethod(rawPtr, MethodBindings.getFloorAnglePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFloorAnglePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -629,7 +629,7 @@ public open class CharacterBody2D : PhysicsBody2D() { */ public final fun getPlatformVelocity(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPlatformVelocityPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getPlatformVelocityPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -639,7 +639,7 @@ public open class CharacterBody2D : PhysicsBody2D() { */ public final fun getSlideCollisionCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSlideCollisionCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSlideCollisionCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -667,7 +667,7 @@ public open class CharacterBody2D : PhysicsBody2D() { */ public final fun getSlideCollision(slideIdx: Int): KinematicCollision2D? { TransferContext.writeArguments(LONG to slideIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSlideCollisionPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getSlideCollisionPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as KinematicCollision2D?) } @@ -677,7 +677,7 @@ public open class CharacterBody2D : PhysicsBody2D() { */ public final fun getLastSlideCollision(): KinematicCollision2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLastSlideCollisionPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getLastSlideCollisionPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as KinematicCollision2D?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CharacterBody3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CharacterBody3D.kt index 5aed9bb418..f401ec4163 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CharacterBody3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CharacterBody3D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE @@ -18,7 +19,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -315,7 +315,7 @@ public open class CharacterBody3D : PhysicsBody3D() { */ public final fun moveAndSlide(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.moveAndSlidePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.moveAndSlidePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -325,171 +325,171 @@ public open class CharacterBody3D : PhysicsBody3D() { */ public final fun applyFloorSnap(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.applyFloorSnapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.applyFloorSnapPtr, NIL) } public final fun setVelocity(velocity: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to velocity) - TransferContext.callMethod(rawPtr, MethodBindings.setVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVelocityPtr, NIL) } public final fun getVelocity(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVelocityPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getVelocityPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setSafeMargin(margin: Float): Unit { TransferContext.writeArguments(DOUBLE to margin.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSafeMarginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSafeMarginPtr, NIL) } public final fun getSafeMargin(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSafeMarginPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSafeMarginPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun isFloorStopOnSlopeEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isFloorStopOnSlopeEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isFloorStopOnSlopeEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setFloorStopOnSlopeEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setFloorStopOnSlopeEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFloorStopOnSlopeEnabledPtr, NIL) } public final fun setFloorConstantSpeedEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setFloorConstantSpeedEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFloorConstantSpeedEnabledPtr, NIL) } public final fun isFloorConstantSpeedEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isFloorConstantSpeedEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isFloorConstantSpeedEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setFloorBlockOnWallEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setFloorBlockOnWallEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFloorBlockOnWallEnabledPtr, NIL) } public final fun isFloorBlockOnWallEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isFloorBlockOnWallEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isFloorBlockOnWallEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSlideOnCeilingEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setSlideOnCeilingEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSlideOnCeilingEnabledPtr, NIL) } public final fun isSlideOnCeilingEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSlideOnCeilingEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSlideOnCeilingEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setPlatformFloorLayers(excludeLayer: Long): Unit { TransferContext.writeArguments(LONG to excludeLayer) - TransferContext.callMethod(rawPtr, MethodBindings.setPlatformFloorLayersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPlatformFloorLayersPtr, NIL) } public final fun getPlatformFloorLayers(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPlatformFloorLayersPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPlatformFloorLayersPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setPlatformWallLayers(excludeLayer: Long): Unit { TransferContext.writeArguments(LONG to excludeLayer) - TransferContext.callMethod(rawPtr, MethodBindings.setPlatformWallLayersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPlatformWallLayersPtr, NIL) } public final fun getPlatformWallLayers(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPlatformWallLayersPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPlatformWallLayersPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun getMaxSlides(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxSlidesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMaxSlidesPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setMaxSlides(maxSlides: Int): Unit { TransferContext.writeArguments(LONG to maxSlides.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxSlidesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxSlidesPtr, NIL) } public final fun getFloorMaxAngle(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFloorMaxAnglePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFloorMaxAnglePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setFloorMaxAngle(radians: Float): Unit { TransferContext.writeArguments(DOUBLE to radians.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFloorMaxAnglePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFloorMaxAnglePtr, NIL) } public final fun getFloorSnapLength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFloorSnapLengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFloorSnapLengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setFloorSnapLength(floorSnapLength: Float): Unit { TransferContext.writeArguments(DOUBLE to floorSnapLength.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFloorSnapLengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFloorSnapLengthPtr, NIL) } public final fun getWallMinSlideAngle(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWallMinSlideAnglePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getWallMinSlideAnglePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setWallMinSlideAngle(radians: Float): Unit { TransferContext.writeArguments(DOUBLE to radians.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setWallMinSlideAnglePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setWallMinSlideAnglePtr, NIL) } public final fun getUpDirection(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUpDirectionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getUpDirectionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setUpDirection(upDirection: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to upDirection) - TransferContext.callMethod(rawPtr, MethodBindings.setUpDirectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUpDirectionPtr, NIL) } public final fun setMotionMode(mode: MotionMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setMotionModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMotionModePtr, NIL) } public final fun getMotionMode(): MotionMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMotionModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMotionModePtr, LONG) return CharacterBody3D.MotionMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setPlatformOnLeave(onLeaveApplyVelocity: PlatformOnLeave): Unit { TransferContext.writeArguments(LONG to onLeaveApplyVelocity.id) - TransferContext.callMethod(rawPtr, MethodBindings.setPlatformOnLeavePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPlatformOnLeavePtr, NIL) } public final fun getPlatformOnLeave(): PlatformOnLeave { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPlatformOnLeavePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPlatformOnLeavePtr, LONG) return CharacterBody3D.PlatformOnLeave.from(TransferContext.readReturnValue(LONG) as Long) } @@ -500,7 +500,7 @@ public open class CharacterBody3D : PhysicsBody3D() { */ public final fun isOnFloor(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isOnFloorPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isOnFloorPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -511,7 +511,7 @@ public open class CharacterBody3D : PhysicsBody3D() { */ public final fun isOnFloorOnly(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isOnFloorOnlyPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isOnFloorOnlyPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -522,7 +522,7 @@ public open class CharacterBody3D : PhysicsBody3D() { */ public final fun isOnCeiling(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isOnCeilingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isOnCeilingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -533,7 +533,7 @@ public open class CharacterBody3D : PhysicsBody3D() { */ public final fun isOnCeilingOnly(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isOnCeilingOnlyPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isOnCeilingOnlyPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -544,7 +544,7 @@ public open class CharacterBody3D : PhysicsBody3D() { */ public final fun isOnWall(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isOnWallPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isOnWallPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -555,7 +555,7 @@ public open class CharacterBody3D : PhysicsBody3D() { */ public final fun isOnWallOnly(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isOnWallOnlyPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isOnWallOnlyPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -566,7 +566,7 @@ public open class CharacterBody3D : PhysicsBody3D() { */ public final fun getFloorNormal(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFloorNormalPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getFloorNormalPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -577,7 +577,7 @@ public open class CharacterBody3D : PhysicsBody3D() { */ public final fun getWallNormal(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWallNormalPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getWallNormalPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -588,7 +588,7 @@ public open class CharacterBody3D : PhysicsBody3D() { */ public final fun getLastMotion(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLastMotionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getLastMotionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -597,7 +597,7 @@ public open class CharacterBody3D : PhysicsBody3D() { */ public final fun getPositionDelta(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPositionDeltaPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getPositionDeltaPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -608,7 +608,7 @@ public open class CharacterBody3D : PhysicsBody3D() { */ public final fun getRealVelocity(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRealVelocityPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getRealVelocityPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -620,7 +620,7 @@ public open class CharacterBody3D : PhysicsBody3D() { @JvmOverloads public final fun getFloorAngle(upDirection: Vector3 = Vector3(0, 1, 0)): Float { TransferContext.writeArguments(VECTOR3 to upDirection) - TransferContext.callMethod(rawPtr, MethodBindings.getFloorAnglePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFloorAnglePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -630,7 +630,7 @@ public open class CharacterBody3D : PhysicsBody3D() { */ public final fun getPlatformVelocity(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPlatformVelocityPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getPlatformVelocityPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -640,7 +640,7 @@ public open class CharacterBody3D : PhysicsBody3D() { */ public final fun getPlatformAngularVelocity(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPlatformAngularVelocityPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getPlatformAngularVelocityPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -650,7 +650,7 @@ public open class CharacterBody3D : PhysicsBody3D() { */ public final fun getSlideCollisionCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSlideCollisionCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSlideCollisionCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -662,7 +662,7 @@ public open class CharacterBody3D : PhysicsBody3D() { */ public final fun getSlideCollision(slideIdx: Int): KinematicCollision3D? { TransferContext.writeArguments(LONG to slideIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSlideCollisionPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getSlideCollisionPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as KinematicCollision3D?) } @@ -672,7 +672,7 @@ public open class CharacterBody3D : PhysicsBody3D() { */ public final fun getLastSlideCollision(): KinematicCollision3D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLastSlideCollisionPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getLastSlideCollisionPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as KinematicCollision3D?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CircleShape2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CircleShape2D.kt index 3dbc16b70d..5e8c7fe1da 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CircleShape2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CircleShape2D.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -44,12 +44,12 @@ public open class CircleShape2D : Shape2D() { public final fun setRadius(radius: Float): Unit { TransferContext.writeArguments(DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRadiusPtr, NIL) } public final fun getRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ClassDB.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ClassDB.kt index 0372ae3f39..c3d0dac247 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ClassDB.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ClassDB.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedStringArray import godot.core.StringName @@ -21,7 +22,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -46,7 +46,7 @@ public object ClassDB : Object() { @JvmStatic public final fun getClassList(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getClassListPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getClassListPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -56,8 +56,7 @@ public object ClassDB : Object() { @JvmStatic public final fun getInheritersFromClass(`class`: StringName): PackedStringArray { TransferContext.writeArguments(STRING_NAME to `class`) - TransferContext.callMethod(rawPtr, MethodBindings.getInheritersFromClassPtr, - PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getInheritersFromClassPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -67,7 +66,7 @@ public object ClassDB : Object() { @JvmStatic public final fun getParentClass(`class`: StringName): StringName { TransferContext.writeArguments(STRING_NAME to `class`) - TransferContext.callMethod(rawPtr, MethodBindings.getParentClassPtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getParentClassPtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } @@ -77,7 +76,7 @@ public object ClassDB : Object() { @JvmStatic public final fun classExists(`class`: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to `class`) - TransferContext.callMethod(rawPtr, MethodBindings.classExistsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.classExistsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -87,7 +86,7 @@ public object ClassDB : Object() { @JvmStatic public final fun isParentClass(`class`: StringName, inherits: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to `class`, STRING_NAME to inherits) - TransferContext.callMethod(rawPtr, MethodBindings.isParentClassPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isParentClassPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -98,7 +97,7 @@ public object ClassDB : Object() { @JvmStatic public final fun canInstantiate(`class`: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to `class`) - TransferContext.callMethod(rawPtr, MethodBindings.canInstantiatePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.canInstantiatePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -108,7 +107,7 @@ public object ClassDB : Object() { @JvmStatic public final fun instantiate(`class`: StringName): Any? { TransferContext.writeArguments(STRING_NAME to `class`) - TransferContext.callMethod(rawPtr, MethodBindings.instantiatePtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.instantiatePtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -118,7 +117,7 @@ public object ClassDB : Object() { @JvmStatic public final fun classHasSignal(`class`: StringName, signal: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to `class`, STRING_NAME to signal) - TransferContext.callMethod(rawPtr, MethodBindings.classHasSignalPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.classHasSignalPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -130,7 +129,7 @@ public object ClassDB : Object() { @JvmStatic public final fun classGetSignal(`class`: StringName, signal: StringName): Dictionary { TransferContext.writeArguments(STRING_NAME to `class`, STRING_NAME to signal) - TransferContext.callMethod(rawPtr, MethodBindings.classGetSignalPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.classGetSignalPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -143,7 +142,7 @@ public object ClassDB : Object() { public final fun classGetSignalList(`class`: StringName, noInheritance: Boolean = false): VariantArray> { TransferContext.writeArguments(STRING_NAME to `class`, BOOL to noInheritance) - TransferContext.callMethod(rawPtr, MethodBindings.classGetSignalListPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.classGetSignalListPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray>) } @@ -156,7 +155,7 @@ public object ClassDB : Object() { public final fun classGetPropertyList(`class`: StringName, noInheritance: Boolean = false): VariantArray> { TransferContext.writeArguments(STRING_NAME to `class`, BOOL to noInheritance) - TransferContext.callMethod(rawPtr, MethodBindings.classGetPropertyListPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.classGetPropertyListPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray>) } @@ -166,7 +165,7 @@ public object ClassDB : Object() { @JvmStatic public final fun classGetProperty(`object`: Object?, `property`: StringName): Any? { TransferContext.writeArguments(OBJECT to `object`, STRING_NAME to property) - TransferContext.callMethod(rawPtr, MethodBindings.classGetPropertyPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.classGetPropertyPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -180,7 +179,7 @@ public object ClassDB : Object() { `value`: Any?, ): Error { TransferContext.writeArguments(OBJECT to `object`, STRING_NAME to property, ANY to value) - TransferContext.callMethod(rawPtr, MethodBindings.classSetPropertyPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.classSetPropertyPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -190,7 +189,7 @@ public object ClassDB : Object() { @JvmStatic public final fun classGetPropertyDefaultValue(`class`: StringName, `property`: StringName): Any? { TransferContext.writeArguments(STRING_NAME to `class`, STRING_NAME to property) - TransferContext.callMethod(rawPtr, MethodBindings.classGetPropertyDefaultValuePtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.classGetPropertyDefaultValuePtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -206,7 +205,7 @@ public object ClassDB : Object() { noInheritance: Boolean = false, ): Boolean { TransferContext.writeArguments(STRING_NAME to `class`, STRING_NAME to method, BOOL to noInheritance) - TransferContext.callMethod(rawPtr, MethodBindings.classHasMethodPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.classHasMethodPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -222,7 +221,7 @@ public object ClassDB : Object() { noInheritance: Boolean = false, ): Int { TransferContext.writeArguments(STRING_NAME to `class`, STRING_NAME to method, BOOL to noInheritance) - TransferContext.callMethod(rawPtr, MethodBindings.classGetMethodArgumentCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.classGetMethodArgumentCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -238,7 +237,7 @@ public object ClassDB : Object() { public final fun classGetMethodList(`class`: StringName, noInheritance: Boolean = false): VariantArray> { TransferContext.writeArguments(STRING_NAME to `class`, BOOL to noInheritance) - TransferContext.callMethod(rawPtr, MethodBindings.classGetMethodListPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.classGetMethodListPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray>) } @@ -250,7 +249,7 @@ public object ClassDB : Object() { public final fun classGetIntegerConstantList(`class`: StringName, noInheritance: Boolean = false): PackedStringArray { TransferContext.writeArguments(STRING_NAME to `class`, BOOL to noInheritance) - TransferContext.callMethod(rawPtr, MethodBindings.classGetIntegerConstantListPtr, + TransferContext.callMethod(ptr, MethodBindings.classGetIntegerConstantListPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -261,7 +260,7 @@ public object ClassDB : Object() { @JvmStatic public final fun classHasIntegerConstant(`class`: StringName, name: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to `class`, STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.classHasIntegerConstantPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.classHasIntegerConstantPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -272,7 +271,7 @@ public object ClassDB : Object() { @JvmStatic public final fun classGetIntegerConstant(`class`: StringName, name: StringName): Long { TransferContext.writeArguments(STRING_NAME to `class`, STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.classGetIntegerConstantPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.classGetIntegerConstantPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -287,7 +286,7 @@ public object ClassDB : Object() { noInheritance: Boolean = false, ): Boolean { TransferContext.writeArguments(STRING_NAME to `class`, STRING_NAME to name, BOOL to noInheritance) - TransferContext.callMethod(rawPtr, MethodBindings.classHasEnumPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.classHasEnumPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -299,7 +298,7 @@ public object ClassDB : Object() { public final fun classGetEnumList(`class`: StringName, noInheritance: Boolean = false): PackedStringArray { TransferContext.writeArguments(STRING_NAME to `class`, BOOL to noInheritance) - TransferContext.callMethod(rawPtr, MethodBindings.classGetEnumListPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.classGetEnumListPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -314,7 +313,7 @@ public object ClassDB : Object() { noInheritance: Boolean = false, ): PackedStringArray { TransferContext.writeArguments(STRING_NAME to `class`, STRING_NAME to `enum`, BOOL to noInheritance) - TransferContext.callMethod(rawPtr, MethodBindings.classGetEnumConstantsPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.classGetEnumConstantsPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -329,7 +328,7 @@ public object ClassDB : Object() { noInheritance: Boolean = false, ): StringName { TransferContext.writeArguments(STRING_NAME to `class`, STRING_NAME to name, BOOL to noInheritance) - TransferContext.callMethod(rawPtr, MethodBindings.classGetIntegerConstantEnumPtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.classGetIntegerConstantEnumPtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } @@ -345,7 +344,7 @@ public object ClassDB : Object() { noInheritance: Boolean = false, ): Boolean { TransferContext.writeArguments(STRING_NAME to `class`, STRING_NAME to `enum`, BOOL to noInheritance) - TransferContext.callMethod(rawPtr, MethodBindings.isClassEnumBitfieldPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isClassEnumBitfieldPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -355,7 +354,7 @@ public object ClassDB : Object() { @JvmStatic public final fun isClassEnabled(`class`: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to `class`) - TransferContext.callMethod(rawPtr, MethodBindings.isClassEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isClassEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CodeEdit.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CodeEdit.kt index 1fbbec51aa..9a354769c8 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CodeEdit.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CodeEdit.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.Dictionary import godot.core.PackedInt32Array @@ -28,7 +29,6 @@ import godot.core.VariantParser.STRING import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -328,45 +328,45 @@ public open class CodeEdit : TextEdit() { public final fun setIndentSize(size: Int): Unit { TransferContext.writeArguments(LONG to size.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setIndentSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIndentSizePtr, NIL) } public final fun getIndentSize(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getIndentSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getIndentSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setIndentUsingSpaces(useSpaces: Boolean): Unit { TransferContext.writeArguments(BOOL to useSpaces) - TransferContext.callMethod(rawPtr, MethodBindings.setIndentUsingSpacesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIndentUsingSpacesPtr, NIL) } public final fun isIndentUsingSpaces(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isIndentUsingSpacesPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isIndentUsingSpacesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAutoIndentEnabled(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setAutoIndentEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutoIndentEnabledPtr, NIL) } public final fun isAutoIndentEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isAutoIndentEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isAutoIndentEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAutoIndentPrefixes(prefixes: VariantArray): Unit { TransferContext.writeArguments(ARRAY to prefixes) - TransferContext.callMethod(rawPtr, MethodBindings.setAutoIndentPrefixesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutoIndentPrefixesPtr, NIL) } public final fun getAutoIndentPrefixes(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAutoIndentPrefixesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getAutoIndentPrefixesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -375,7 +375,7 @@ public open class CodeEdit : TextEdit() { */ public final fun doIndent(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.doIndentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.doIndentPtr, NIL) } /** @@ -383,7 +383,7 @@ public open class CodeEdit : TextEdit() { */ public final fun indentLines(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.indentLinesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.indentLinesPtr, NIL) } /** @@ -392,7 +392,7 @@ public open class CodeEdit : TextEdit() { */ public final fun unindentLines(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.unindentLinesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.unindentLinesPtr, NIL) } /** @@ -403,28 +403,28 @@ public open class CodeEdit : TextEdit() { @JvmOverloads public final fun convertIndent(fromLine: Int = -1, toLine: Int = -1): Unit { TransferContext.writeArguments(LONG to fromLine.toLong(), LONG to toLine.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.convertIndentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.convertIndentPtr, NIL) } public final fun setAutoBraceCompletionEnabled(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setAutoBraceCompletionEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutoBraceCompletionEnabledPtr, NIL) } public final fun isAutoBraceCompletionEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isAutoBraceCompletionEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isAutoBraceCompletionEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setHighlightMatchingBracesEnabled(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setHighlightMatchingBracesEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHighlightMatchingBracesEnabledPtr, NIL) } public final fun isHighlightMatchingBracesEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isHighlightMatchingBracesEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isHighlightMatchingBracesEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -434,17 +434,17 @@ public open class CodeEdit : TextEdit() { */ public final fun addAutoBraceCompletionPair(startKey: String, endKey: String): Unit { TransferContext.writeArguments(STRING to startKey, STRING to endKey) - TransferContext.callMethod(rawPtr, MethodBindings.addAutoBraceCompletionPairPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addAutoBraceCompletionPairPtr, NIL) } public final fun setAutoBraceCompletionPairs(pairs: Dictionary): Unit { TransferContext.writeArguments(DICTIONARY to pairs) - TransferContext.callMethod(rawPtr, MethodBindings.setAutoBraceCompletionPairsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutoBraceCompletionPairsPtr, NIL) } public final fun getAutoBraceCompletionPairs(): Dictionary { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAutoBraceCompletionPairsPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getAutoBraceCompletionPairsPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -453,7 +453,7 @@ public open class CodeEdit : TextEdit() { */ public final fun hasAutoBraceCompletionOpenKey(openKey: String): Boolean { TransferContext.writeArguments(STRING to openKey) - TransferContext.callMethod(rawPtr, MethodBindings.hasAutoBraceCompletionOpenKeyPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasAutoBraceCompletionOpenKeyPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -462,7 +462,7 @@ public open class CodeEdit : TextEdit() { */ public final fun hasAutoBraceCompletionCloseKey(closeKey: String): Boolean { TransferContext.writeArguments(STRING to closeKey) - TransferContext.callMethod(rawPtr, MethodBindings.hasAutoBraceCompletionCloseKeyPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasAutoBraceCompletionCloseKeyPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -471,40 +471,40 @@ public open class CodeEdit : TextEdit() { */ public final fun getAutoBraceCompletionCloseKey(openKey: String): String { TransferContext.writeArguments(STRING to openKey) - TransferContext.callMethod(rawPtr, MethodBindings.getAutoBraceCompletionCloseKeyPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getAutoBraceCompletionCloseKeyPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setDrawBreakpointsGutter(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setDrawBreakpointsGutterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDrawBreakpointsGutterPtr, NIL) } public final fun isDrawingBreakpointsGutter(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDrawingBreakpointsGutterPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDrawingBreakpointsGutterPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDrawBookmarksGutter(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setDrawBookmarksGutterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDrawBookmarksGutterPtr, NIL) } public final fun isDrawingBookmarksGutter(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDrawingBookmarksGutterPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDrawingBookmarksGutterPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDrawExecutingLinesGutter(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setDrawExecutingLinesGutterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDrawExecutingLinesGutterPtr, NIL) } public final fun isDrawingExecutingLinesGutter(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDrawingExecutingLinesGutterPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDrawingExecutingLinesGutterPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -513,7 +513,7 @@ public open class CodeEdit : TextEdit() { */ public final fun setLineAsBreakpoint(line: Int, breakpointed: Boolean): Unit { TransferContext.writeArguments(LONG to line.toLong(), BOOL to breakpointed) - TransferContext.callMethod(rawPtr, MethodBindings.setLineAsBreakpointPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLineAsBreakpointPtr, NIL) } /** @@ -521,7 +521,7 @@ public open class CodeEdit : TextEdit() { */ public final fun isLineBreakpointed(line: Int): Boolean { TransferContext.writeArguments(LONG to line.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isLineBreakpointedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isLineBreakpointedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -530,7 +530,7 @@ public open class CodeEdit : TextEdit() { */ public final fun clearBreakpointedLines(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearBreakpointedLinesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearBreakpointedLinesPtr, NIL) } /** @@ -538,7 +538,7 @@ public open class CodeEdit : TextEdit() { */ public final fun getBreakpointedLines(): PackedInt32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBreakpointedLinesPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getBreakpointedLinesPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } @@ -547,7 +547,7 @@ public open class CodeEdit : TextEdit() { */ public final fun setLineAsBookmarked(line: Int, bookmarked: Boolean): Unit { TransferContext.writeArguments(LONG to line.toLong(), BOOL to bookmarked) - TransferContext.callMethod(rawPtr, MethodBindings.setLineAsBookmarkedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLineAsBookmarkedPtr, NIL) } /** @@ -555,7 +555,7 @@ public open class CodeEdit : TextEdit() { */ public final fun isLineBookmarked(line: Int): Boolean { TransferContext.writeArguments(LONG to line.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isLineBookmarkedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isLineBookmarkedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -564,7 +564,7 @@ public open class CodeEdit : TextEdit() { */ public final fun clearBookmarkedLines(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearBookmarkedLinesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearBookmarkedLinesPtr, NIL) } /** @@ -572,7 +572,7 @@ public open class CodeEdit : TextEdit() { */ public final fun getBookmarkedLines(): PackedInt32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBookmarkedLinesPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getBookmarkedLinesPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } @@ -581,7 +581,7 @@ public open class CodeEdit : TextEdit() { */ public final fun setLineAsExecuting(line: Int, executing: Boolean): Unit { TransferContext.writeArguments(LONG to line.toLong(), BOOL to executing) - TransferContext.callMethod(rawPtr, MethodBindings.setLineAsExecutingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLineAsExecutingPtr, NIL) } /** @@ -589,7 +589,7 @@ public open class CodeEdit : TextEdit() { */ public final fun isLineExecuting(line: Int): Boolean { TransferContext.writeArguments(LONG to line.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isLineExecutingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isLineExecutingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -598,7 +598,7 @@ public open class CodeEdit : TextEdit() { */ public final fun clearExecutingLines(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearExecutingLinesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearExecutingLinesPtr, NIL) } /** @@ -606,51 +606,51 @@ public open class CodeEdit : TextEdit() { */ public final fun getExecutingLines(): PackedInt32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getExecutingLinesPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getExecutingLinesPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } public final fun setDrawLineNumbers(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setDrawLineNumbersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDrawLineNumbersPtr, NIL) } public final fun isDrawLineNumbersEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDrawLineNumbersEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDrawLineNumbersEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setLineNumbersZeroPadded(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setLineNumbersZeroPaddedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLineNumbersZeroPaddedPtr, NIL) } public final fun isLineNumbersZeroPadded(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isLineNumbersZeroPaddedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isLineNumbersZeroPaddedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDrawFoldGutter(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setDrawFoldGutterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDrawFoldGutterPtr, NIL) } public final fun isDrawingFoldGutter(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDrawingFoldGutterPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDrawingFoldGutterPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setLineFoldingEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setLineFoldingEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLineFoldingEnabledPtr, NIL) } public final fun isLineFoldingEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isLineFoldingEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isLineFoldingEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -660,7 +660,7 @@ public open class CodeEdit : TextEdit() { */ public final fun canFoldLine(line: Int): Boolean { TransferContext.writeArguments(LONG to line.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.canFoldLinePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.canFoldLinePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -669,7 +669,7 @@ public open class CodeEdit : TextEdit() { */ public final fun foldLine(line: Int): Unit { TransferContext.writeArguments(LONG to line.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.foldLinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.foldLinePtr, NIL) } /** @@ -677,7 +677,7 @@ public open class CodeEdit : TextEdit() { */ public final fun unfoldLine(line: Int): Unit { TransferContext.writeArguments(LONG to line.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.unfoldLinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.unfoldLinePtr, NIL) } /** @@ -685,7 +685,7 @@ public open class CodeEdit : TextEdit() { */ public final fun foldAllLines(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.foldAllLinesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.foldAllLinesPtr, NIL) } /** @@ -693,7 +693,7 @@ public open class CodeEdit : TextEdit() { */ public final fun unfoldAllLines(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.unfoldAllLinesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.unfoldAllLinesPtr, NIL) } /** @@ -701,7 +701,7 @@ public open class CodeEdit : TextEdit() { */ public final fun toggleFoldableLine(line: Int): Unit { TransferContext.writeArguments(LONG to line.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.toggleFoldableLinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.toggleFoldableLinePtr, NIL) } /** @@ -709,7 +709,7 @@ public open class CodeEdit : TextEdit() { */ public final fun toggleFoldableLinesAtCarets(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.toggleFoldableLinesAtCaretsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.toggleFoldableLinesAtCaretsPtr, NIL) } /** @@ -717,7 +717,7 @@ public open class CodeEdit : TextEdit() { */ public final fun isLineFolded(line: Int): Boolean { TransferContext.writeArguments(LONG to line.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isLineFoldedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isLineFoldedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -726,7 +726,7 @@ public open class CodeEdit : TextEdit() { */ public final fun getFoldedLines(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFoldedLinesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getFoldedLinesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -741,7 +741,7 @@ public open class CodeEdit : TextEdit() { */ public final fun createCodeRegion(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.createCodeRegionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.createCodeRegionPtr, NIL) } /** @@ -749,7 +749,7 @@ public open class CodeEdit : TextEdit() { */ public final fun getCodeRegionStartTag(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCodeRegionStartTagPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getCodeRegionStartTagPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -758,7 +758,7 @@ public open class CodeEdit : TextEdit() { */ public final fun getCodeRegionEndTag(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCodeRegionEndTagPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getCodeRegionEndTagPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -768,7 +768,7 @@ public open class CodeEdit : TextEdit() { @JvmOverloads public final fun setCodeRegionTags(start: String = "region", end: String = "endregion"): Unit { TransferContext.writeArguments(STRING to start, STRING to end) - TransferContext.callMethod(rawPtr, MethodBindings.setCodeRegionTagsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCodeRegionTagsPtr, NIL) } /** @@ -776,7 +776,7 @@ public open class CodeEdit : TextEdit() { */ public final fun isLineCodeRegionStart(line: Int): Boolean { TransferContext.writeArguments(LONG to line.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isLineCodeRegionStartPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isLineCodeRegionStartPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -785,7 +785,7 @@ public open class CodeEdit : TextEdit() { */ public final fun isLineCodeRegionEnd(line: Int): Boolean { TransferContext.writeArguments(LONG to line.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isLineCodeRegionEndPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isLineCodeRegionEndPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -802,7 +802,7 @@ public open class CodeEdit : TextEdit() { lineOnly: Boolean = false, ): Unit { TransferContext.writeArguments(STRING to startKey, STRING to endKey, BOOL to lineOnly) - TransferContext.callMethod(rawPtr, MethodBindings.addStringDelimiterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addStringDelimiterPtr, NIL) } /** @@ -810,7 +810,7 @@ public open class CodeEdit : TextEdit() { */ public final fun removeStringDelimiter(startKey: String): Unit { TransferContext.writeArguments(STRING to startKey) - TransferContext.callMethod(rawPtr, MethodBindings.removeStringDelimiterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeStringDelimiterPtr, NIL) } /** @@ -818,13 +818,13 @@ public open class CodeEdit : TextEdit() { */ public final fun hasStringDelimiter(startKey: String): Boolean { TransferContext.writeArguments(STRING to startKey) - TransferContext.callMethod(rawPtr, MethodBindings.hasStringDelimiterPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasStringDelimiterPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setStringDelimiters(stringDelimiters: VariantArray): Unit { TransferContext.writeArguments(ARRAY to stringDelimiters) - TransferContext.callMethod(rawPtr, MethodBindings.setStringDelimitersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStringDelimitersPtr, NIL) } /** @@ -832,12 +832,12 @@ public open class CodeEdit : TextEdit() { */ public final fun clearStringDelimiters(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearStringDelimitersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearStringDelimitersPtr, NIL) } public final fun getStringDelimiters(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStringDelimitersPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getStringDelimitersPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -848,7 +848,7 @@ public open class CodeEdit : TextEdit() { @JvmOverloads public final fun isInString(line: Int, column: Int = -1): Int { TransferContext.writeArguments(LONG to line.toLong(), LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isInStringPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.isInStringPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -865,7 +865,7 @@ public open class CodeEdit : TextEdit() { lineOnly: Boolean = false, ): Unit { TransferContext.writeArguments(STRING to startKey, STRING to endKey, BOOL to lineOnly) - TransferContext.callMethod(rawPtr, MethodBindings.addCommentDelimiterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addCommentDelimiterPtr, NIL) } /** @@ -873,7 +873,7 @@ public open class CodeEdit : TextEdit() { */ public final fun removeCommentDelimiter(startKey: String): Unit { TransferContext.writeArguments(STRING to startKey) - TransferContext.callMethod(rawPtr, MethodBindings.removeCommentDelimiterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeCommentDelimiterPtr, NIL) } /** @@ -881,13 +881,13 @@ public open class CodeEdit : TextEdit() { */ public final fun hasCommentDelimiter(startKey: String): Boolean { TransferContext.writeArguments(STRING to startKey) - TransferContext.callMethod(rawPtr, MethodBindings.hasCommentDelimiterPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasCommentDelimiterPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCommentDelimiters(commentDelimiters: VariantArray): Unit { TransferContext.writeArguments(ARRAY to commentDelimiters) - TransferContext.callMethod(rawPtr, MethodBindings.setCommentDelimitersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCommentDelimitersPtr, NIL) } /** @@ -895,12 +895,12 @@ public open class CodeEdit : TextEdit() { */ public final fun clearCommentDelimiters(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearCommentDelimitersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearCommentDelimitersPtr, NIL) } public final fun getCommentDelimiters(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCommentDelimitersPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getCommentDelimitersPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -911,7 +911,7 @@ public open class CodeEdit : TextEdit() { @JvmOverloads public final fun isInComment(line: Int, column: Int = -1): Int { TransferContext.writeArguments(LONG to line.toLong(), LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isInCommentPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.isInCommentPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -920,7 +920,7 @@ public open class CodeEdit : TextEdit() { */ public final fun getDelimiterStartKey(delimiterIndex: Int): String { TransferContext.writeArguments(LONG to delimiterIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getDelimiterStartKeyPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getDelimiterStartKeyPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -929,7 +929,7 @@ public open class CodeEdit : TextEdit() { */ public final fun getDelimiterEndKey(delimiterIndex: Int): String { TransferContext.writeArguments(LONG to delimiterIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getDelimiterEndKeyPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getDelimiterEndKeyPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -939,7 +939,7 @@ public open class CodeEdit : TextEdit() { */ public final fun getDelimiterStartPosition(line: Int, column: Int): Vector2 { TransferContext.writeArguments(LONG to line.toLong(), LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getDelimiterStartPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getDelimiterStartPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -949,7 +949,7 @@ public open class CodeEdit : TextEdit() { */ public final fun getDelimiterEndPosition(line: Int, column: Int): Vector2 { TransferContext.writeArguments(LONG to line.toLong(), LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getDelimiterEndPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getDelimiterEndPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -958,7 +958,7 @@ public open class CodeEdit : TextEdit() { */ public final fun setCodeHint(codeHint: String): Unit { TransferContext.writeArguments(STRING to codeHint) - TransferContext.callMethod(rawPtr, MethodBindings.setCodeHintPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCodeHintPtr, NIL) } /** @@ -966,7 +966,7 @@ public open class CodeEdit : TextEdit() { */ public final fun setCodeHintDrawBelow(drawBelow: Boolean): Unit { TransferContext.writeArguments(BOOL to drawBelow) - TransferContext.callMethod(rawPtr, MethodBindings.setCodeHintDrawBelowPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCodeHintDrawBelowPtr, NIL) } /** @@ -974,7 +974,7 @@ public open class CodeEdit : TextEdit() { */ public final fun getTextForCodeCompletion(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextForCodeCompletionPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getTextForCodeCompletionPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -986,7 +986,7 @@ public open class CodeEdit : TextEdit() { @JvmOverloads public final fun requestCodeCompletion(force: Boolean = false): Unit { TransferContext.writeArguments(BOOL to force) - TransferContext.callMethod(rawPtr, MethodBindings.requestCodeCompletionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.requestCodeCompletionPtr, NIL) } /** @@ -1007,7 +1007,7 @@ public open class CodeEdit : TextEdit() { location: Int = 1024, ): Unit { TransferContext.writeArguments(LONG to type.id, STRING to displayText, STRING to insertText, COLOR to textColor, OBJECT to icon, ANY to value, LONG to location.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addCodeCompletionOptionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addCodeCompletionOptionPtr, NIL) } /** @@ -1017,7 +1017,7 @@ public open class CodeEdit : TextEdit() { */ public final fun updateCodeCompletionOptions(force: Boolean): Unit { TransferContext.writeArguments(BOOL to force) - TransferContext.callMethod(rawPtr, MethodBindings.updateCodeCompletionOptionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.updateCodeCompletionOptionsPtr, NIL) } /** @@ -1025,7 +1025,7 @@ public open class CodeEdit : TextEdit() { */ public final fun getCodeCompletionOptions(): VariantArray> { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCodeCompletionOptionsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getCodeCompletionOptionsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray>) } @@ -1040,7 +1040,7 @@ public open class CodeEdit : TextEdit() { */ public final fun getCodeCompletionOption(index: Int): Dictionary { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCodeCompletionOptionPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getCodeCompletionOptionPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -1049,7 +1049,7 @@ public open class CodeEdit : TextEdit() { */ public final fun getCodeCompletionSelectedIndex(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCodeCompletionSelectedIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCodeCompletionSelectedIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1058,7 +1058,7 @@ public open class CodeEdit : TextEdit() { */ public final fun setCodeCompletionSelectedIndex(index: Int): Unit { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setCodeCompletionSelectedIndexPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCodeCompletionSelectedIndexPtr, NIL) } /** @@ -1068,7 +1068,7 @@ public open class CodeEdit : TextEdit() { @JvmOverloads public final fun confirmCodeCompletion(replace: Boolean = false): Unit { TransferContext.writeArguments(BOOL to replace) - TransferContext.callMethod(rawPtr, MethodBindings.confirmCodeCompletionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.confirmCodeCompletionPtr, NIL) } /** @@ -1076,50 +1076,50 @@ public open class CodeEdit : TextEdit() { */ public final fun cancelCodeCompletion(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.cancelCodeCompletionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.cancelCodeCompletionPtr, NIL) } public final fun setCodeCompletionEnabled(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setCodeCompletionEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCodeCompletionEnabledPtr, NIL) } public final fun isCodeCompletionEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCodeCompletionEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCodeCompletionEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCodeCompletionPrefixes(prefixes: VariantArray): Unit { TransferContext.writeArguments(ARRAY to prefixes) - TransferContext.callMethod(rawPtr, MethodBindings.setCodeCompletionPrefixesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCodeCompletionPrefixesPtr, NIL) } public final fun getCodeCompletionPrefixes(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCodeCompletionPrefixesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getCodeCompletionPrefixesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } public final fun setLineLengthGuidelines(guidelineColumns: VariantArray): Unit { TransferContext.writeArguments(ARRAY to guidelineColumns) - TransferContext.callMethod(rawPtr, MethodBindings.setLineLengthGuidelinesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLineLengthGuidelinesPtr, NIL) } public final fun getLineLengthGuidelines(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLineLengthGuidelinesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getLineLengthGuidelinesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } public final fun setSymbolLookupOnClickEnabled(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setSymbolLookupOnClickEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSymbolLookupOnClickEnabledPtr, NIL) } public final fun isSymbolLookupOnClickEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSymbolLookupOnClickEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSymbolLookupOnClickEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1128,7 +1128,7 @@ public open class CodeEdit : TextEdit() { */ public final fun getTextForSymbolLookup(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextForSymbolLookupPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getTextForSymbolLookupPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -1137,7 +1137,7 @@ public open class CodeEdit : TextEdit() { */ public final fun getTextWithCursorChar(line: Int, column: Int): String { TransferContext.writeArguments(LONG to line.toLong(), LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTextWithCursorCharPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getTextWithCursorCharPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -1146,7 +1146,7 @@ public open class CodeEdit : TextEdit() { */ public final fun setSymbolLookupWordAsValid(valid: Boolean): Unit { TransferContext.writeArguments(BOOL to valid) - TransferContext.callMethod(rawPtr, MethodBindings.setSymbolLookupWordAsValidPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSymbolLookupWordAsValidPtr, NIL) } /** @@ -1154,7 +1154,7 @@ public open class CodeEdit : TextEdit() { */ public final fun moveLinesUp(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.moveLinesUpPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.moveLinesUpPtr, NIL) } /** @@ -1162,7 +1162,7 @@ public open class CodeEdit : TextEdit() { */ public final fun moveLinesDown(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.moveLinesDownPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.moveLinesDownPtr, NIL) } /** @@ -1170,7 +1170,7 @@ public open class CodeEdit : TextEdit() { */ public final fun deleteLines(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.deleteLinesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.deleteLinesPtr, NIL) } /** @@ -1178,7 +1178,7 @@ public open class CodeEdit : TextEdit() { */ public final fun duplicateSelection(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.duplicateSelectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.duplicateSelectionPtr, NIL) } /** @@ -1187,7 +1187,7 @@ public open class CodeEdit : TextEdit() { */ public final fun duplicateLines(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.duplicateLinesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.duplicateLinesPtr, NIL) } public enum class CodeCompletionKind( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CodeHighlighter.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CodeHighlighter.kt index bc0047ed42..195cbb2a49 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CodeHighlighter.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CodeHighlighter.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.Dictionary import godot.core.TypeManager @@ -18,7 +19,6 @@ import godot.core.VariantParser.DICTIONARY import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -227,7 +227,7 @@ public open class CodeHighlighter : SyntaxHighlighter() { */ public final fun addKeywordColor(keyword: String, color: Color): Unit { TransferContext.writeArguments(STRING to keyword, COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.addKeywordColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addKeywordColorPtr, NIL) } /** @@ -235,7 +235,7 @@ public open class CodeHighlighter : SyntaxHighlighter() { */ public final fun removeKeywordColor(keyword: String): Unit { TransferContext.writeArguments(STRING to keyword) - TransferContext.callMethod(rawPtr, MethodBindings.removeKeywordColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeKeywordColorPtr, NIL) } /** @@ -243,7 +243,7 @@ public open class CodeHighlighter : SyntaxHighlighter() { */ public final fun hasKeywordColor(keyword: String): Boolean { TransferContext.writeArguments(STRING to keyword) - TransferContext.callMethod(rawPtr, MethodBindings.hasKeywordColorPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasKeywordColorPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -252,13 +252,13 @@ public open class CodeHighlighter : SyntaxHighlighter() { */ public final fun getKeywordColor(keyword: String): Color { TransferContext.writeArguments(STRING to keyword) - TransferContext.callMethod(rawPtr, MethodBindings.getKeywordColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getKeywordColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setKeywordColors(keywords: Dictionary): Unit { TransferContext.writeArguments(DICTIONARY to keywords) - TransferContext.callMethod(rawPtr, MethodBindings.setKeywordColorsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setKeywordColorsPtr, NIL) } /** @@ -266,12 +266,12 @@ public open class CodeHighlighter : SyntaxHighlighter() { */ public final fun clearKeywordColors(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearKeywordColorsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearKeywordColorsPtr, NIL) } public final fun getKeywordColors(): Dictionary { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getKeywordColorsPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getKeywordColorsPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -282,7 +282,7 @@ public open class CodeHighlighter : SyntaxHighlighter() { */ public final fun addMemberKeywordColor(memberKeyword: String, color: Color): Unit { TransferContext.writeArguments(STRING to memberKeyword, COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.addMemberKeywordColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addMemberKeywordColorPtr, NIL) } /** @@ -290,7 +290,7 @@ public open class CodeHighlighter : SyntaxHighlighter() { */ public final fun removeMemberKeywordColor(memberKeyword: String): Unit { TransferContext.writeArguments(STRING to memberKeyword) - TransferContext.callMethod(rawPtr, MethodBindings.removeMemberKeywordColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeMemberKeywordColorPtr, NIL) } /** @@ -298,7 +298,7 @@ public open class CodeHighlighter : SyntaxHighlighter() { */ public final fun hasMemberKeywordColor(memberKeyword: String): Boolean { TransferContext.writeArguments(STRING to memberKeyword) - TransferContext.callMethod(rawPtr, MethodBindings.hasMemberKeywordColorPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasMemberKeywordColorPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -307,13 +307,13 @@ public open class CodeHighlighter : SyntaxHighlighter() { */ public final fun getMemberKeywordColor(memberKeyword: String): Color { TransferContext.writeArguments(STRING to memberKeyword) - TransferContext.callMethod(rawPtr, MethodBindings.getMemberKeywordColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getMemberKeywordColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setMemberKeywordColors(memberKeyword: Dictionary): Unit { TransferContext.writeArguments(DICTIONARY to memberKeyword) - TransferContext.callMethod(rawPtr, MethodBindings.setMemberKeywordColorsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMemberKeywordColorsPtr, NIL) } /** @@ -321,12 +321,12 @@ public open class CodeHighlighter : SyntaxHighlighter() { */ public final fun clearMemberKeywordColors(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearMemberKeywordColorsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearMemberKeywordColorsPtr, NIL) } public final fun getMemberKeywordColors(): Dictionary { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMemberKeywordColorsPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getMemberKeywordColorsPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -344,7 +344,7 @@ public open class CodeHighlighter : SyntaxHighlighter() { lineOnly: Boolean = false, ): Unit { TransferContext.writeArguments(STRING to startKey, STRING to endKey, COLOR to color, BOOL to lineOnly) - TransferContext.callMethod(rawPtr, MethodBindings.addColorRegionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addColorRegionPtr, NIL) } /** @@ -352,7 +352,7 @@ public open class CodeHighlighter : SyntaxHighlighter() { */ public final fun removeColorRegion(startKey: String): Unit { TransferContext.writeArguments(STRING to startKey) - TransferContext.callMethod(rawPtr, MethodBindings.removeColorRegionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeColorRegionPtr, NIL) } /** @@ -360,13 +360,13 @@ public open class CodeHighlighter : SyntaxHighlighter() { */ public final fun hasColorRegion(startKey: String): Boolean { TransferContext.writeArguments(STRING to startKey) - TransferContext.callMethod(rawPtr, MethodBindings.hasColorRegionPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasColorRegionPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setColorRegions(colorRegions: Dictionary): Unit { TransferContext.writeArguments(DICTIONARY to colorRegions) - TransferContext.callMethod(rawPtr, MethodBindings.setColorRegionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColorRegionsPtr, NIL) } /** @@ -374,56 +374,56 @@ public open class CodeHighlighter : SyntaxHighlighter() { */ public final fun clearColorRegions(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearColorRegionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearColorRegionsPtr, NIL) } public final fun getColorRegions(): Dictionary { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColorRegionsPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getColorRegionsPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } public final fun setFunctionColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setFunctionColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFunctionColorPtr, NIL) } public final fun getFunctionColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFunctionColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getFunctionColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setNumberColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setNumberColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNumberColorPtr, NIL) } public final fun getNumberColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNumberColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getNumberColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setSymbolColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setSymbolColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSymbolColorPtr, NIL) } public final fun getSymbolColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSymbolColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getSymbolColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setMemberVariableColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setMemberVariableColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMemberVariableColorPtr, NIL) } public final fun getMemberVariableColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMemberVariableColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getMemberVariableColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CollisionObject2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CollisionObject2D.kt index 595c2405ed..a2e8fcb1d0 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CollisionObject2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CollisionObject2D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedInt32Array import godot.core.RID import godot.core.Signal0 @@ -23,7 +24,6 @@ import godot.core.VariantParser.PACKED_INT_32_ARRAY import godot.core.VariantParser.TRANSFORM2D import godot.core.VariantParser._RID import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -209,29 +209,29 @@ public open class CollisionObject2D internal constructor() : Node2D() { */ public final fun getRid(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRidPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getRidPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } public final fun setCollisionLayer(layer: Long): Unit { TransferContext.writeArguments(LONG to layer) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionLayerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionLayerPtr, NIL) } public final fun getCollisionLayer(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionLayerPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCollisionLayerPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setCollisionMask(mask: Long): Unit { TransferContext.writeArguments(LONG to mask) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionMaskPtr, NIL) } public final fun getCollisionMask(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCollisionMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -241,7 +241,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { */ public final fun setCollisionLayerValue(layerNumber: Int, `value`: Boolean): Unit { TransferContext.writeArguments(LONG to layerNumber.toLong(), BOOL to value) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionLayerValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionLayerValuePtr, NIL) } /** @@ -250,7 +250,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { */ public final fun getCollisionLayerValue(layerNumber: Int): Boolean { TransferContext.writeArguments(LONG to layerNumber.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionLayerValuePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getCollisionLayerValuePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -260,7 +260,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { */ public final fun setCollisionMaskValue(layerNumber: Int, `value`: Boolean): Unit { TransferContext.writeArguments(LONG to layerNumber.toLong(), BOOL to value) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionMaskValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionMaskValuePtr, NIL) } /** @@ -269,40 +269,40 @@ public open class CollisionObject2D internal constructor() : Node2D() { */ public final fun getCollisionMaskValue(layerNumber: Int): Boolean { TransferContext.writeArguments(LONG to layerNumber.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionMaskValuePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getCollisionMaskValuePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCollisionPriority(priority: Float): Unit { TransferContext.writeArguments(DOUBLE to priority.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionPriorityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionPriorityPtr, NIL) } public final fun getCollisionPriority(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionPriorityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCollisionPriorityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDisableMode(mode: DisableMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setDisableModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDisableModePtr, NIL) } public final fun getDisableMode(): DisableMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDisableModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDisableModePtr, LONG) return CollisionObject2D.DisableMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setPickable(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setPickablePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPickablePtr, NIL) } public final fun isPickable(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isPickablePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPickablePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -312,7 +312,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { */ public final fun createShapeOwner(owner: Object?): Long { TransferContext.writeArguments(OBJECT to owner) - TransferContext.callMethod(rawPtr, MethodBindings.createShapeOwnerPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.createShapeOwnerPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -321,7 +321,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { */ public final fun removeShapeOwner(ownerId: Long): Unit { TransferContext.writeArguments(LONG to ownerId) - TransferContext.callMethod(rawPtr, MethodBindings.removeShapeOwnerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeShapeOwnerPtr, NIL) } /** @@ -330,7 +330,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { */ public final fun getShapeOwners(): PackedInt32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getShapeOwnersPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getShapeOwnersPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } @@ -339,7 +339,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { */ public final fun shapeOwnerSetTransform(ownerId: Long, transform: Transform2D): Unit { TransferContext.writeArguments(LONG to ownerId, TRANSFORM2D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.shapeOwnerSetTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.shapeOwnerSetTransformPtr, NIL) } /** @@ -347,7 +347,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { */ public final fun shapeOwnerGetTransform(ownerId: Long): Transform2D { TransferContext.writeArguments(LONG to ownerId) - TransferContext.callMethod(rawPtr, MethodBindings.shapeOwnerGetTransformPtr, TRANSFORM2D) + TransferContext.callMethod(ptr, MethodBindings.shapeOwnerGetTransformPtr, TRANSFORM2D) return (TransferContext.readReturnValue(TRANSFORM2D) as Transform2D) } @@ -356,7 +356,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { */ public final fun shapeOwnerGetOwner(ownerId: Long): Object? { TransferContext.writeArguments(LONG to ownerId) - TransferContext.callMethod(rawPtr, MethodBindings.shapeOwnerGetOwnerPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.shapeOwnerGetOwnerPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Object?) } @@ -365,7 +365,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { */ public final fun shapeOwnerSetDisabled(ownerId: Long, disabled: Boolean): Unit { TransferContext.writeArguments(LONG to ownerId, BOOL to disabled) - TransferContext.callMethod(rawPtr, MethodBindings.shapeOwnerSetDisabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.shapeOwnerSetDisabledPtr, NIL) } /** @@ -373,7 +373,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { */ public final fun isShapeOwnerDisabled(ownerId: Long): Boolean { TransferContext.writeArguments(LONG to ownerId) - TransferContext.callMethod(rawPtr, MethodBindings.isShapeOwnerDisabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isShapeOwnerDisabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -383,7 +383,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { */ public final fun shapeOwnerSetOneWayCollision(ownerId: Long, enable: Boolean): Unit { TransferContext.writeArguments(LONG to ownerId, BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.shapeOwnerSetOneWayCollisionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.shapeOwnerSetOneWayCollisionPtr, NIL) } /** @@ -392,7 +392,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { */ public final fun isShapeOwnerOneWayCollisionEnabled(ownerId: Long): Boolean { TransferContext.writeArguments(LONG to ownerId) - TransferContext.callMethod(rawPtr, MethodBindings.isShapeOwnerOneWayCollisionEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isShapeOwnerOneWayCollisionEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -402,7 +402,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { */ public final fun shapeOwnerSetOneWayCollisionMargin(ownerId: Long, margin: Float): Unit { TransferContext.writeArguments(LONG to ownerId, DOUBLE to margin.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.shapeOwnerSetOneWayCollisionMarginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.shapeOwnerSetOneWayCollisionMarginPtr, NIL) } /** @@ -410,7 +410,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { */ public final fun getShapeOwnerOneWayCollisionMargin(ownerId: Long): Float { TransferContext.writeArguments(LONG to ownerId) - TransferContext.callMethod(rawPtr, MethodBindings.getShapeOwnerOneWayCollisionMarginPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getShapeOwnerOneWayCollisionMarginPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -419,7 +419,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { */ public final fun shapeOwnerAddShape(ownerId: Long, shape: Shape2D?): Unit { TransferContext.writeArguments(LONG to ownerId, OBJECT to shape) - TransferContext.callMethod(rawPtr, MethodBindings.shapeOwnerAddShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.shapeOwnerAddShapePtr, NIL) } /** @@ -427,7 +427,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { */ public final fun shapeOwnerGetShapeCount(ownerId: Long): Int { TransferContext.writeArguments(LONG to ownerId) - TransferContext.callMethod(rawPtr, MethodBindings.shapeOwnerGetShapeCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.shapeOwnerGetShapeCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -436,7 +436,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { */ public final fun shapeOwnerGetShape(ownerId: Long, shapeId: Int): Shape2D? { TransferContext.writeArguments(LONG to ownerId, LONG to shapeId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.shapeOwnerGetShapePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.shapeOwnerGetShapePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Shape2D?) } @@ -445,7 +445,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { */ public final fun shapeOwnerGetShapeIndex(ownerId: Long, shapeId: Int): Int { TransferContext.writeArguments(LONG to ownerId, LONG to shapeId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.shapeOwnerGetShapeIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.shapeOwnerGetShapeIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -454,7 +454,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { */ public final fun shapeOwnerRemoveShape(ownerId: Long, shapeId: Int): Unit { TransferContext.writeArguments(LONG to ownerId, LONG to shapeId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.shapeOwnerRemoveShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.shapeOwnerRemoveShapePtr, NIL) } /** @@ -462,7 +462,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { */ public final fun shapeOwnerClearShapes(ownerId: Long): Unit { TransferContext.writeArguments(LONG to ownerId) - TransferContext.callMethod(rawPtr, MethodBindings.shapeOwnerClearShapesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.shapeOwnerClearShapesPtr, NIL) } /** @@ -470,7 +470,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { */ public final fun shapeFindOwner(shapeIndex: Int): Long { TransferContext.writeArguments(LONG to shapeIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.shapeFindOwnerPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.shapeFindOwnerPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CollisionObject3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CollisionObject3D.kt index d786377a26..92ffb82577 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CollisionObject3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CollisionObject3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedInt32Array import godot.core.RID import godot.core.Signal0 @@ -23,7 +24,6 @@ import godot.core.VariantParser.TRANSFORM3D import godot.core.VariantParser._RID import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -189,23 +189,23 @@ public open class CollisionObject3D internal constructor() : Node3D() { public final fun setCollisionLayer(layer: Long): Unit { TransferContext.writeArguments(LONG to layer) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionLayerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionLayerPtr, NIL) } public final fun getCollisionLayer(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionLayerPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCollisionLayerPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setCollisionMask(mask: Long): Unit { TransferContext.writeArguments(LONG to mask) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionMaskPtr, NIL) } public final fun getCollisionMask(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCollisionMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -215,7 +215,7 @@ public open class CollisionObject3D internal constructor() : Node3D() { */ public final fun setCollisionLayerValue(layerNumber: Int, `value`: Boolean): Unit { TransferContext.writeArguments(LONG to layerNumber.toLong(), BOOL to value) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionLayerValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionLayerValuePtr, NIL) } /** @@ -224,7 +224,7 @@ public open class CollisionObject3D internal constructor() : Node3D() { */ public final fun getCollisionLayerValue(layerNumber: Int): Boolean { TransferContext.writeArguments(LONG to layerNumber.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionLayerValuePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getCollisionLayerValuePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -234,7 +234,7 @@ public open class CollisionObject3D internal constructor() : Node3D() { */ public final fun setCollisionMaskValue(layerNumber: Int, `value`: Boolean): Unit { TransferContext.writeArguments(LONG to layerNumber.toLong(), BOOL to value) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionMaskValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionMaskValuePtr, NIL) } /** @@ -243,51 +243,51 @@ public open class CollisionObject3D internal constructor() : Node3D() { */ public final fun getCollisionMaskValue(layerNumber: Int): Boolean { TransferContext.writeArguments(LONG to layerNumber.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionMaskValuePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getCollisionMaskValuePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCollisionPriority(priority: Float): Unit { TransferContext.writeArguments(DOUBLE to priority.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionPriorityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionPriorityPtr, NIL) } public final fun getCollisionPriority(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionPriorityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCollisionPriorityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDisableMode(mode: DisableMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setDisableModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDisableModePtr, NIL) } public final fun getDisableMode(): DisableMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDisableModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDisableModePtr, LONG) return CollisionObject3D.DisableMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setRayPickable(rayPickable: Boolean): Unit { TransferContext.writeArguments(BOOL to rayPickable) - TransferContext.callMethod(rawPtr, MethodBindings.setRayPickablePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRayPickablePtr, NIL) } public final fun isRayPickable(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isRayPickablePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isRayPickablePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCaptureInputOnDrag(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setCaptureInputOnDragPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCaptureInputOnDragPtr, NIL) } public final fun getCaptureInputOnDrag(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCaptureInputOnDragPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getCaptureInputOnDragPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -296,7 +296,7 @@ public open class CollisionObject3D internal constructor() : Node3D() { */ public final fun getRid(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRidPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getRidPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -306,7 +306,7 @@ public open class CollisionObject3D internal constructor() : Node3D() { */ public final fun createShapeOwner(owner: Object?): Long { TransferContext.writeArguments(OBJECT to owner) - TransferContext.callMethod(rawPtr, MethodBindings.createShapeOwnerPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.createShapeOwnerPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -315,7 +315,7 @@ public open class CollisionObject3D internal constructor() : Node3D() { */ public final fun removeShapeOwner(ownerId: Long): Unit { TransferContext.writeArguments(LONG to ownerId) - TransferContext.callMethod(rawPtr, MethodBindings.removeShapeOwnerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeShapeOwnerPtr, NIL) } /** @@ -324,7 +324,7 @@ public open class CollisionObject3D internal constructor() : Node3D() { */ public final fun getShapeOwners(): PackedInt32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getShapeOwnersPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getShapeOwnersPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } @@ -333,7 +333,7 @@ public open class CollisionObject3D internal constructor() : Node3D() { */ public final fun shapeOwnerSetTransform(ownerId: Long, transform: Transform3D): Unit { TransferContext.writeArguments(LONG to ownerId, TRANSFORM3D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.shapeOwnerSetTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.shapeOwnerSetTransformPtr, NIL) } /** @@ -341,7 +341,7 @@ public open class CollisionObject3D internal constructor() : Node3D() { */ public final fun shapeOwnerGetTransform(ownerId: Long): Transform3D { TransferContext.writeArguments(LONG to ownerId) - TransferContext.callMethod(rawPtr, MethodBindings.shapeOwnerGetTransformPtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.shapeOwnerGetTransformPtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } @@ -350,7 +350,7 @@ public open class CollisionObject3D internal constructor() : Node3D() { */ public final fun shapeOwnerGetOwner(ownerId: Long): Object? { TransferContext.writeArguments(LONG to ownerId) - TransferContext.callMethod(rawPtr, MethodBindings.shapeOwnerGetOwnerPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.shapeOwnerGetOwnerPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Object?) } @@ -359,7 +359,7 @@ public open class CollisionObject3D internal constructor() : Node3D() { */ public final fun shapeOwnerSetDisabled(ownerId: Long, disabled: Boolean): Unit { TransferContext.writeArguments(LONG to ownerId, BOOL to disabled) - TransferContext.callMethod(rawPtr, MethodBindings.shapeOwnerSetDisabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.shapeOwnerSetDisabledPtr, NIL) } /** @@ -367,7 +367,7 @@ public open class CollisionObject3D internal constructor() : Node3D() { */ public final fun isShapeOwnerDisabled(ownerId: Long): Boolean { TransferContext.writeArguments(LONG to ownerId) - TransferContext.callMethod(rawPtr, MethodBindings.isShapeOwnerDisabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isShapeOwnerDisabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -376,7 +376,7 @@ public open class CollisionObject3D internal constructor() : Node3D() { */ public final fun shapeOwnerAddShape(ownerId: Long, shape: Shape3D?): Unit { TransferContext.writeArguments(LONG to ownerId, OBJECT to shape) - TransferContext.callMethod(rawPtr, MethodBindings.shapeOwnerAddShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.shapeOwnerAddShapePtr, NIL) } /** @@ -384,7 +384,7 @@ public open class CollisionObject3D internal constructor() : Node3D() { */ public final fun shapeOwnerGetShapeCount(ownerId: Long): Int { TransferContext.writeArguments(LONG to ownerId) - TransferContext.callMethod(rawPtr, MethodBindings.shapeOwnerGetShapeCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.shapeOwnerGetShapeCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -393,7 +393,7 @@ public open class CollisionObject3D internal constructor() : Node3D() { */ public final fun shapeOwnerGetShape(ownerId: Long, shapeId: Int): Shape3D? { TransferContext.writeArguments(LONG to ownerId, LONG to shapeId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.shapeOwnerGetShapePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.shapeOwnerGetShapePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Shape3D?) } @@ -402,7 +402,7 @@ public open class CollisionObject3D internal constructor() : Node3D() { */ public final fun shapeOwnerGetShapeIndex(ownerId: Long, shapeId: Int): Int { TransferContext.writeArguments(LONG to ownerId, LONG to shapeId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.shapeOwnerGetShapeIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.shapeOwnerGetShapeIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -411,7 +411,7 @@ public open class CollisionObject3D internal constructor() : Node3D() { */ public final fun shapeOwnerRemoveShape(ownerId: Long, shapeId: Int): Unit { TransferContext.writeArguments(LONG to ownerId, LONG to shapeId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.shapeOwnerRemoveShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.shapeOwnerRemoveShapePtr, NIL) } /** @@ -419,7 +419,7 @@ public open class CollisionObject3D internal constructor() : Node3D() { */ public final fun shapeOwnerClearShapes(ownerId: Long): Unit { TransferContext.writeArguments(LONG to ownerId) - TransferContext.callMethod(rawPtr, MethodBindings.shapeOwnerClearShapesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.shapeOwnerClearShapesPtr, NIL) } /** @@ -427,7 +427,7 @@ public open class CollisionObject3D internal constructor() : Node3D() { */ public final fun shapeFindOwner(shapeIndex: Int): Long { TransferContext.writeArguments(LONG to shapeIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.shapeFindOwnerPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.shapeFindOwnerPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CollisionPolygon2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CollisionPolygon2D.kt index 3ac26944f7..d1becba105 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CollisionPolygon2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CollisionPolygon2D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedVector2Array import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -15,7 +16,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_VECTOR2_ARRAY import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -102,56 +102,56 @@ public open class CollisionPolygon2D : Node2D() { public final fun setPolygon(polygon: PackedVector2Array): Unit { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to polygon) - TransferContext.callMethod(rawPtr, MethodBindings.setPolygonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPolygonPtr, NIL) } public final fun getPolygon(): PackedVector2Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPolygonPtr, PACKED_VECTOR2_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getPolygonPtr, PACKED_VECTOR2_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR2_ARRAY) as PackedVector2Array) } public final fun setBuildMode(buildMode: BuildMode): Unit { TransferContext.writeArguments(LONG to buildMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setBuildModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBuildModePtr, NIL) } public final fun getBuildMode(): BuildMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBuildModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBuildModePtr, LONG) return CollisionPolygon2D.BuildMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setDisabled(disabled: Boolean): Unit { TransferContext.writeArguments(BOOL to disabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDisabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDisabledPtr, NIL) } public final fun isDisabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDisabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDisabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setOneWayCollision(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setOneWayCollisionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOneWayCollisionPtr, NIL) } public final fun isOneWayCollisionEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isOneWayCollisionEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isOneWayCollisionEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setOneWayCollisionMargin(margin: Float): Unit { TransferContext.writeArguments(DOUBLE to margin.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setOneWayCollisionMarginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOneWayCollisionMarginPtr, NIL) } public final fun getOneWayCollisionMargin(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOneWayCollisionMarginPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getOneWayCollisionMarginPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CollisionPolygon3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CollisionPolygon3D.kt index 2ecfb30af1..41510686d0 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CollisionPolygon3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CollisionPolygon3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedVector2Array import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -14,7 +15,6 @@ import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_VECTOR2_ARRAY import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -83,45 +83,45 @@ public open class CollisionPolygon3D : Node3D() { public final fun setDepth(depth: Float): Unit { TransferContext.writeArguments(DOUBLE to depth.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDepthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDepthPtr, NIL) } public final fun getDepth(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDepthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDepthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setPolygon(polygon: PackedVector2Array): Unit { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to polygon) - TransferContext.callMethod(rawPtr, MethodBindings.setPolygonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPolygonPtr, NIL) } public final fun getPolygon(): PackedVector2Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPolygonPtr, PACKED_VECTOR2_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getPolygonPtr, PACKED_VECTOR2_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR2_ARRAY) as PackedVector2Array) } public final fun setDisabled(disabled: Boolean): Unit { TransferContext.writeArguments(BOOL to disabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDisabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDisabledPtr, NIL) } public final fun isDisabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDisabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDisabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setMargin(margin: Float): Unit { TransferContext.writeArguments(DOUBLE to margin.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMarginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMarginPtr, NIL) } public final fun getMargin(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMarginPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMarginPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CollisionShape2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CollisionShape2D.kt index b87fd6d1ae..8e48f199a3 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CollisionShape2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CollisionShape2D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -17,7 +18,6 @@ import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -128,56 +128,56 @@ public open class CollisionShape2D : Node2D() { public final fun setShape(shape: Shape2D?): Unit { TransferContext.writeArguments(OBJECT to shape) - TransferContext.callMethod(rawPtr, MethodBindings.setShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShapePtr, NIL) } public final fun getShape(): Shape2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getShapePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getShapePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Shape2D?) } public final fun setDisabled(disabled: Boolean): Unit { TransferContext.writeArguments(BOOL to disabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDisabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDisabledPtr, NIL) } public final fun isDisabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDisabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDisabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setOneWayCollision(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setOneWayCollisionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOneWayCollisionPtr, NIL) } public final fun isOneWayCollisionEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isOneWayCollisionEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isOneWayCollisionEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setOneWayCollisionMargin(margin: Float): Unit { TransferContext.writeArguments(DOUBLE to margin.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setOneWayCollisionMarginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOneWayCollisionMarginPtr, NIL) } public final fun getOneWayCollisionMargin(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOneWayCollisionMarginPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getOneWayCollisionMarginPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDebugColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setDebugColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDebugColorPtr, NIL) } public final fun getDebugColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDebugColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getDebugColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CollisionShape3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CollisionShape3D.kt index fa0a36d949..0ad5a4081e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CollisionShape3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CollisionShape3D.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -58,28 +58,28 @@ public open class CollisionShape3D : Node3D() { */ public final fun resourceChanged(resource: Resource?): Unit { TransferContext.writeArguments(OBJECT to resource) - TransferContext.callMethod(rawPtr, MethodBindings.resourceChangedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.resourceChangedPtr, NIL) } public final fun setShape(shape: Shape3D?): Unit { TransferContext.writeArguments(OBJECT to shape) - TransferContext.callMethod(rawPtr, MethodBindings.setShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShapePtr, NIL) } public final fun getShape(): Shape3D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getShapePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getShapePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Shape3D?) } public final fun setDisabled(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setDisabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDisabledPtr, NIL) } public final fun isDisabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDisabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDisabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -89,7 +89,7 @@ public open class CollisionShape3D : Node3D() { */ public final fun makeConvexFromSiblings(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.makeConvexFromSiblingsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.makeConvexFromSiblingsPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ColorPicker.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ColorPicker.kt index 0f5fc6b0b6..bc0865d058 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ColorPicker.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ColorPicker.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.PackedColorArray import godot.core.Signal1 @@ -19,7 +20,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_COLOR_ARRAY import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -204,111 +204,111 @@ public open class ColorPicker : VBoxContainer() { public final fun setPickColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setPickColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPickColorPtr, NIL) } public final fun getPickColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPickColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getPickColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setDeferredMode(mode: Boolean): Unit { TransferContext.writeArguments(BOOL to mode) - TransferContext.callMethod(rawPtr, MethodBindings.setDeferredModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDeferredModePtr, NIL) } public final fun isDeferredMode(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDeferredModePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDeferredModePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setColorMode(colorMode: ColorModeType): Unit { TransferContext.writeArguments(LONG to colorMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setColorModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColorModePtr, NIL) } public final fun getColorMode(): ColorModeType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColorModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getColorModePtr, LONG) return ColorPicker.ColorModeType.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setEditAlpha(show: Boolean): Unit { TransferContext.writeArguments(BOOL to show) - TransferContext.callMethod(rawPtr, MethodBindings.setEditAlphaPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEditAlphaPtr, NIL) } public final fun isEditingAlpha(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isEditingAlphaPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isEditingAlphaPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCanAddSwatches(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setCanAddSwatchesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCanAddSwatchesPtr, NIL) } public final fun areSwatchesEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.areSwatchesEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.areSwatchesEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setPresetsVisible(visible: Boolean): Unit { TransferContext.writeArguments(BOOL to visible) - TransferContext.callMethod(rawPtr, MethodBindings.setPresetsVisiblePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPresetsVisiblePtr, NIL) } public final fun arePresetsVisible(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.arePresetsVisiblePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.arePresetsVisiblePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setModesVisible(visible: Boolean): Unit { TransferContext.writeArguments(BOOL to visible) - TransferContext.callMethod(rawPtr, MethodBindings.setModesVisiblePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setModesVisiblePtr, NIL) } public final fun areModesVisible(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.areModesVisiblePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.areModesVisiblePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSamplerVisible(visible: Boolean): Unit { TransferContext.writeArguments(BOOL to visible) - TransferContext.callMethod(rawPtr, MethodBindings.setSamplerVisiblePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSamplerVisiblePtr, NIL) } public final fun isSamplerVisible(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSamplerVisiblePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSamplerVisiblePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSlidersVisible(visible: Boolean): Unit { TransferContext.writeArguments(BOOL to visible) - TransferContext.callMethod(rawPtr, MethodBindings.setSlidersVisiblePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSlidersVisiblePtr, NIL) } public final fun areSlidersVisible(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.areSlidersVisiblePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.areSlidersVisiblePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setHexVisible(visible: Boolean): Unit { TransferContext.writeArguments(BOOL to visible) - TransferContext.callMethod(rawPtr, MethodBindings.setHexVisiblePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHexVisiblePtr, NIL) } public final fun isHexVisible(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isHexVisiblePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isHexVisiblePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -319,7 +319,7 @@ public open class ColorPicker : VBoxContainer() { */ public final fun addPreset(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.addPresetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addPresetPtr, NIL) } /** @@ -327,7 +327,7 @@ public open class ColorPicker : VBoxContainer() { */ public final fun erasePreset(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.erasePresetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.erasePresetPtr, NIL) } /** @@ -335,7 +335,7 @@ public open class ColorPicker : VBoxContainer() { */ public final fun getPresets(): PackedColorArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPresetsPtr, PACKED_COLOR_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getPresetsPtr, PACKED_COLOR_ARRAY) return (TransferContext.readReturnValue(PACKED_COLOR_ARRAY) as PackedColorArray) } @@ -347,7 +347,7 @@ public open class ColorPicker : VBoxContainer() { */ public final fun addRecentPreset(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.addRecentPresetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addRecentPresetPtr, NIL) } /** @@ -355,7 +355,7 @@ public open class ColorPicker : VBoxContainer() { */ public final fun eraseRecentPreset(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.eraseRecentPresetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.eraseRecentPresetPtr, NIL) } /** @@ -363,18 +363,18 @@ public open class ColorPicker : VBoxContainer() { */ public final fun getRecentPresets(): PackedColorArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRecentPresetsPtr, PACKED_COLOR_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getRecentPresetsPtr, PACKED_COLOR_ARRAY) return (TransferContext.readReturnValue(PACKED_COLOR_ARRAY) as PackedColorArray) } public final fun setPickerShape(shape: PickerShapeType): Unit { TransferContext.writeArguments(LONG to shape.id) - TransferContext.callMethod(rawPtr, MethodBindings.setPickerShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPickerShapePtr, NIL) } public final fun getPickerShape(): PickerShapeType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPickerShapePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPickerShapePtr, LONG) return ColorPicker.PickerShapeType.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ColorPickerButton.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ColorPickerButton.kt index 33da70e49f..8e9d5c0cd7 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ColorPickerButton.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ColorPickerButton.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.Signal0 import godot.core.Signal1 @@ -18,7 +19,6 @@ import godot.core.VariantParser.COLOR import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -103,12 +103,12 @@ public open class ColorPickerButton : Button() { public final fun setPickColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setPickColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPickColorPtr, NIL) } public final fun getPickColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPickColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getPickColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } @@ -119,7 +119,7 @@ public open class ColorPickerButton : Button() { */ public final fun getPicker(): ColorPicker? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPickerPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getPickerPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as ColorPicker?) } @@ -131,18 +131,18 @@ public open class ColorPickerButton : Button() { */ public final fun getPopup(): PopupPanel? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPopupPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getPopupPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as PopupPanel?) } public final fun setEditAlpha(show: Boolean): Unit { TransferContext.writeArguments(BOOL to show) - TransferContext.callMethod(rawPtr, MethodBindings.setEditAlphaPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEditAlphaPtr, NIL) } public final fun isEditingAlpha(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isEditingAlphaPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isEditingAlphaPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ColorRect.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ColorRect.kt index eaa29ce04d..57bdd91325 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ColorRect.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ColorRect.kt @@ -9,12 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.TypeManager import godot.core.VariantParser.COLOR import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -68,12 +68,12 @@ public open class ColorRect : Control() { public final fun setColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColorPtr, NIL) } public final fun getColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Compositor.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Compositor.kt index 19c891d057..ae500a3a81 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Compositor.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Compositor.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -41,12 +41,12 @@ public open class Compositor : Resource() { public final fun setCompositorEffects(compositorEffects: VariantArray): Unit { TransferContext.writeArguments(ARRAY to compositorEffects) - TransferContext.callMethod(rawPtr, MethodBindings.setCompositorEffectsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCompositorEffectsPtr, NIL) } public final fun getCompositorEffects(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCompositorEffectsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getCompositorEffectsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CompositorEffect.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CompositorEffect.kt index 9a450360fa..2ed4311048 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CompositorEffect.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CompositorEffect.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -146,78 +146,78 @@ public open class CompositorEffect : Resource() { public final fun setEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnabledPtr, NIL) } public final fun getEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setEffectCallbackType(effectCallbackType: EffectCallbackType): Unit { TransferContext.writeArguments(LONG to effectCallbackType.id) - TransferContext.callMethod(rawPtr, MethodBindings.setEffectCallbackTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEffectCallbackTypePtr, NIL) } public final fun getEffectCallbackType(): EffectCallbackType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEffectCallbackTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getEffectCallbackTypePtr, LONG) return CompositorEffect.EffectCallbackType.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setAccessResolvedColor(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setAccessResolvedColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAccessResolvedColorPtr, NIL) } public final fun getAccessResolvedColor(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAccessResolvedColorPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getAccessResolvedColorPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAccessResolvedDepth(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setAccessResolvedDepthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAccessResolvedDepthPtr, NIL) } public final fun getAccessResolvedDepth(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAccessResolvedDepthPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getAccessResolvedDepthPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setNeedsMotionVectors(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setNeedsMotionVectorsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNeedsMotionVectorsPtr, NIL) } public final fun getNeedsMotionVectors(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNeedsMotionVectorsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getNeedsMotionVectorsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setNeedsNormalRoughness(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setNeedsNormalRoughnessPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNeedsNormalRoughnessPtr, NIL) } public final fun getNeedsNormalRoughness(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNeedsNormalRoughnessPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getNeedsNormalRoughnessPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setNeedsSeparateSpecular(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setNeedsSeparateSpecularPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNeedsSeparateSpecularPtr, NIL) } public final fun getNeedsSeparateSpecular(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNeedsSeparateSpecularPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getNeedsSeparateSpecularPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CompressedTexture2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CompressedTexture2D.kt index 189270ccb7..f1de77e779 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CompressedTexture2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CompressedTexture2D.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.String @@ -54,13 +54,13 @@ public open class CompressedTexture2D : Texture2D() { */ public final fun load(path: String): Error { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.loadPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.loadPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } public final fun getLoadPath(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLoadPathPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getLoadPathPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CompressedTexture3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CompressedTexture3D.kt index 70e032be3f..5c8ca840d1 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CompressedTexture3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CompressedTexture3D.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.String @@ -47,13 +47,13 @@ public open class CompressedTexture3D : Texture3D() { */ public final fun load(path: String): Error { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.loadPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.loadPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } public final fun getLoadPath(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLoadPathPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getLoadPathPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CompressedTextureLayered.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CompressedTextureLayered.kt index 2e708a6498..2b640a8c23 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CompressedTextureLayered.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CompressedTextureLayered.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.String @@ -42,13 +42,13 @@ public open class CompressedTextureLayered internal constructor() : TextureLayer */ public final fun load(path: String): Error { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.loadPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.loadPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } public final fun getLoadPath(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLoadPathPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getLoadPathPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ConcavePolygonShape2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ConcavePolygonShape2D.kt index 6a1c97ac12..0c0a2b7cc5 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ConcavePolygonShape2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ConcavePolygonShape2D.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedVector2Array import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_VECTOR2_ARRAY import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -59,12 +59,12 @@ public open class ConcavePolygonShape2D : Shape2D() { public final fun setSegments(segments: PackedVector2Array): Unit { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to segments) - TransferContext.callMethod(rawPtr, MethodBindings.setSegmentsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSegmentsPtr, NIL) } public final fun getSegments(): PackedVector2Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSegmentsPtr, PACKED_VECTOR2_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getSegmentsPtr, PACKED_VECTOR2_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR2_ARRAY) as PackedVector2Array) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ConcavePolygonShape3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ConcavePolygonShape3D.kt index a14d2a279f..6514e6bdae 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ConcavePolygonShape3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ConcavePolygonShape3D.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedVector3Array import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_VECTOR3_ARRAY import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -72,7 +72,7 @@ public open class ConcavePolygonShape3D : Shape3D() { */ public final fun setFaces(faces: PackedVector3Array): Unit { TransferContext.writeArguments(PACKED_VECTOR3_ARRAY to faces) - TransferContext.callMethod(rawPtr, MethodBindings.setFacesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFacesPtr, NIL) } /** @@ -81,18 +81,18 @@ public open class ConcavePolygonShape3D : Shape3D() { */ public final fun getFaces(): PackedVector3Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFacesPtr, PACKED_VECTOR3_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getFacesPtr, PACKED_VECTOR3_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR3_ARRAY) as PackedVector3Array) } public final fun setBackfaceCollisionEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setBackfaceCollisionEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBackfaceCollisionEnabledPtr, NIL) } public final fun isBackfaceCollisionEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isBackfaceCollisionEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isBackfaceCollisionEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ConeTwistJoint3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ConeTwistJoint3D.kt index 9fad3ef292..56b56e6b8d 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ConeTwistJoint3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ConeTwistJoint3D.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -99,7 +99,7 @@ public open class ConeTwistJoint3D : Joint3D() { */ public final fun setParam(`param`: Param, `value`: Float): Unit { TransferContext.writeArguments(LONG to param.id, DOUBLE to value.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setParamPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setParamPtr, NIL) } /** @@ -107,7 +107,7 @@ public open class ConeTwistJoint3D : Joint3D() { */ public final fun getParam(`param`: Param): Float { TransferContext.writeArguments(LONG to param.id) - TransferContext.callMethod(rawPtr, MethodBindings.getParamPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getParamPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ConfigFile.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ConfigFile.kt index c109adeea1..4aff3938c1 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ConfigFile.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ConfigFile.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedByteArray import godot.core.PackedStringArray import godot.core.TypeManager @@ -18,7 +19,6 @@ import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -146,7 +146,7 @@ public open class ConfigFile : RefCounted() { `value`: Any?, ): Unit { TransferContext.writeArguments(STRING to section, STRING to key, ANY to value) - TransferContext.callMethod(rawPtr, MethodBindings.setValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setValuePtr, NIL) } /** @@ -161,7 +161,7 @@ public open class ConfigFile : RefCounted() { default: Any? = null, ): Any? { TransferContext.writeArguments(STRING to section, STRING to key, ANY to default) - TransferContext.callMethod(rawPtr, MethodBindings.getValuePtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getValuePtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -170,7 +170,7 @@ public open class ConfigFile : RefCounted() { */ public final fun hasSection(section: String): Boolean { TransferContext.writeArguments(STRING to section) - TransferContext.callMethod(rawPtr, MethodBindings.hasSectionPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasSectionPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -179,7 +179,7 @@ public open class ConfigFile : RefCounted() { */ public final fun hasSectionKey(section: String, key: String): Boolean { TransferContext.writeArguments(STRING to section, STRING to key) - TransferContext.callMethod(rawPtr, MethodBindings.hasSectionKeyPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasSectionKeyPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -188,7 +188,7 @@ public open class ConfigFile : RefCounted() { */ public final fun getSections(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSectionsPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getSectionsPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -198,7 +198,7 @@ public open class ConfigFile : RefCounted() { */ public final fun getSectionKeys(section: String): PackedStringArray { TransferContext.writeArguments(STRING to section) - TransferContext.callMethod(rawPtr, MethodBindings.getSectionKeysPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getSectionKeysPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -208,7 +208,7 @@ public open class ConfigFile : RefCounted() { */ public final fun eraseSection(section: String): Unit { TransferContext.writeArguments(STRING to section) - TransferContext.callMethod(rawPtr, MethodBindings.eraseSectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.eraseSectionPtr, NIL) } /** @@ -217,7 +217,7 @@ public open class ConfigFile : RefCounted() { */ public final fun eraseSectionKey(section: String, key: String): Unit { TransferContext.writeArguments(STRING to section, STRING to key) - TransferContext.callMethod(rawPtr, MethodBindings.eraseSectionKeyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.eraseSectionKeyPtr, NIL) } /** @@ -227,7 +227,7 @@ public open class ConfigFile : RefCounted() { */ public final fun load(path: String): Error { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.loadPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.loadPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -238,7 +238,7 @@ public open class ConfigFile : RefCounted() { */ public final fun parse(`data`: String): Error { TransferContext.writeArguments(STRING to data) - TransferContext.callMethod(rawPtr, MethodBindings.parsePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.parsePtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -249,7 +249,7 @@ public open class ConfigFile : RefCounted() { */ public final fun save(path: String): Error { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.savePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.savePtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -258,7 +258,7 @@ public open class ConfigFile : RefCounted() { */ public final fun encodeToText(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.encodeToTextPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.encodeToTextPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -270,7 +270,7 @@ public open class ConfigFile : RefCounted() { */ public final fun loadEncrypted(path: String, key: PackedByteArray): Error { TransferContext.writeArguments(STRING to path, PACKED_BYTE_ARRAY to key) - TransferContext.callMethod(rawPtr, MethodBindings.loadEncryptedPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.loadEncryptedPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -282,7 +282,7 @@ public open class ConfigFile : RefCounted() { */ public final fun loadEncryptedPass(path: String, password: String): Error { TransferContext.writeArguments(STRING to path, STRING to password) - TransferContext.callMethod(rawPtr, MethodBindings.loadEncryptedPassPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.loadEncryptedPassPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -293,7 +293,7 @@ public open class ConfigFile : RefCounted() { */ public final fun saveEncrypted(path: String, key: PackedByteArray): Error { TransferContext.writeArguments(STRING to path, PACKED_BYTE_ARRAY to key) - TransferContext.callMethod(rawPtr, MethodBindings.saveEncryptedPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.saveEncryptedPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -305,7 +305,7 @@ public open class ConfigFile : RefCounted() { */ public final fun saveEncryptedPass(path: String, password: String): Error { TransferContext.writeArguments(STRING to path, STRING to password) - TransferContext.callMethod(rawPtr, MethodBindings.saveEncryptedPassPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.saveEncryptedPassPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -314,7 +314,7 @@ public open class ConfigFile : RefCounted() { */ public final fun clear(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ConfirmationDialog.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ConfirmationDialog.kt index 4e88e56108..7d8b090dbb 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ConfirmationDialog.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ConfirmationDialog.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.String import kotlin.Suppress @@ -58,18 +58,18 @@ public open class ConfirmationDialog : AcceptDialog() { */ public final fun getCancelButton(): Button? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCancelButtonPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getCancelButtonPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Button?) } public final fun setCancelButtonText(text: String): Unit { TransferContext.writeArguments(STRING to text) - TransferContext.callMethod(rawPtr, MethodBindings.setCancelButtonTextPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCancelButtonTextPtr, NIL) } public final fun getCancelButtonText(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCancelButtonTextPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getCancelButtonTextPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Container.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Container.kt index 9fbf5588f2..5c5e8c21b6 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Container.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Container.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedInt32Array import godot.core.Rect2 import godot.core.Signal0 @@ -15,7 +16,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.RECT2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.NotImplementedError @@ -70,7 +70,7 @@ public open class Container : Control() { */ public final fun queueSort(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.queueSortPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.queueSortPtr, NIL) } /** @@ -79,7 +79,7 @@ public open class Container : Control() { */ public final fun fitChildInRect(child: Control?, rect: Rect2): Unit { TransferContext.writeArguments(OBJECT to child, RECT2 to rect) - TransferContext.callMethod(rawPtr, MethodBindings.fitChildInRectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fitChildInRectPtr, NIL) } public companion object { diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Control.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Control.kt index 28df81cc67..2c52871a82 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Control.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Control.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.Color import godot.core.NodePath @@ -34,7 +35,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.Vector3i import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -1019,7 +1019,7 @@ public open class Control : CanvasItem() { */ public final fun acceptEvent(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.acceptEventPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.acceptEventPtr, NIL) } /** @@ -1027,7 +1027,7 @@ public open class Control : CanvasItem() { */ public final fun getMinimumSize(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMinimumSizePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getMinimumSizePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -1036,7 +1036,7 @@ public open class Control : CanvasItem() { */ public final fun getCombinedMinimumSize(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCombinedMinimumSizePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getCombinedMinimumSizePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -1048,7 +1048,7 @@ public open class Control : CanvasItem() { @JvmOverloads public final fun setAnchorsPreset(preset: LayoutPreset, keepOffsets: Boolean = false): Unit { TransferContext.writeArguments(LONG to preset.id, BOOL to keepOffsets) - TransferContext.callMethod(rawPtr, MethodBindings.setAnchorsPresetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAnchorsPresetPtr, NIL) } /** @@ -1066,7 +1066,7 @@ public open class Control : CanvasItem() { margin: Int = 0, ): Unit { TransferContext.writeArguments(LONG to preset.id, LONG to resizeMode.id, LONG to margin.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setOffsetsPresetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOffsetsPresetPtr, NIL) } /** @@ -1079,7 +1079,7 @@ public open class Control : CanvasItem() { margin: Int = 0, ): Unit { TransferContext.writeArguments(LONG to preset.id, LONG to resizeMode.id, LONG to margin.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setAnchorsAndOffsetsPresetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAnchorsAndOffsetsPresetPtr, NIL) } /** @@ -1099,7 +1099,7 @@ public open class Control : CanvasItem() { pushOppositeAnchor: Boolean = true, ): Unit { TransferContext.writeArguments(LONG to side.id, DOUBLE to anchor.toDouble(), BOOL to keepOffset, BOOL to pushOppositeAnchor) - TransferContext.callMethod(rawPtr, MethodBindings.setAnchorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAnchorPtr, NIL) } /** @@ -1108,7 +1108,7 @@ public open class Control : CanvasItem() { */ public final fun getAnchor(side: Side): Float { TransferContext.writeArguments(LONG to side.id) - TransferContext.callMethod(rawPtr, MethodBindings.getAnchorPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAnchorPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1118,7 +1118,7 @@ public open class Control : CanvasItem() { */ public final fun setOffset(side: Side, offset: Float): Unit { TransferContext.writeArguments(LONG to side.id, DOUBLE to offset.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOffsetPtr, NIL) } /** @@ -1127,7 +1127,7 @@ public open class Control : CanvasItem() { */ public final fun getOffset(offset: Side): Float { TransferContext.writeArguments(LONG to offset.id) - TransferContext.callMethod(rawPtr, MethodBindings.getOffsetPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getOffsetPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1143,7 +1143,7 @@ public open class Control : CanvasItem() { pushOppositeAnchor: Boolean = false, ): Unit { TransferContext.writeArguments(LONG to side.id, DOUBLE to anchor.toDouble(), DOUBLE to offset.toDouble(), BOOL to pushOppositeAnchor) - TransferContext.callMethod(rawPtr, MethodBindings.setAnchorAndOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAnchorAndOffsetPtr, NIL) } /** @@ -1151,7 +1151,7 @@ public open class Control : CanvasItem() { */ public final fun setBegin(position: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.setBeginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBeginPtr, NIL) } /** @@ -1159,7 +1159,7 @@ public open class Control : CanvasItem() { */ public final fun setEnd(position: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.setEndPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEndPtr, NIL) } /** @@ -1169,7 +1169,7 @@ public open class Control : CanvasItem() { @JvmOverloads public final fun setPosition(position: Vector2, keepOffsets: Boolean = false): Unit { TransferContext.writeArguments(VECTOR2 to position, BOOL to keepOffsets) - TransferContext.callMethod(rawPtr, MethodBindings.setPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPositionPtr, NIL) } /** @@ -1179,7 +1179,7 @@ public open class Control : CanvasItem() { @JvmOverloads public final fun setSize(size: Vector2, keepOffsets: Boolean = false): Unit { TransferContext.writeArguments(VECTOR2 to size, BOOL to keepOffsets) - TransferContext.callMethod(rawPtr, MethodBindings.setSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSizePtr, NIL) } /** @@ -1188,12 +1188,12 @@ public open class Control : CanvasItem() { */ public final fun resetSize(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.resetSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.resetSizePtr, NIL) } public final fun setCustomMinimumSize(size: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to size) - TransferContext.callMethod(rawPtr, MethodBindings.setCustomMinimumSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCustomMinimumSizePtr, NIL) } /** @@ -1203,27 +1203,27 @@ public open class Control : CanvasItem() { @JvmOverloads public final fun setGlobalPosition(position: Vector2, keepOffsets: Boolean = false): Unit { TransferContext.writeArguments(VECTOR2 to position, BOOL to keepOffsets) - TransferContext.callMethod(rawPtr, MethodBindings.setGlobalPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlobalPositionPtr, NIL) } public final fun setRotation(radians: Float): Unit { TransferContext.writeArguments(DOUBLE to radians.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRotationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRotationPtr, NIL) } public final fun setRotationDegrees(degrees: Float): Unit { TransferContext.writeArguments(DOUBLE to degrees.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRotationDegreesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRotationDegreesPtr, NIL) } public final fun setScale(scale: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to scale) - TransferContext.callMethod(rawPtr, MethodBindings.setScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setScalePtr, NIL) } public final fun setPivotOffset(pivotOffset: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to pivotOffset) - TransferContext.callMethod(rawPtr, MethodBindings.setPivotOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPivotOffsetPtr, NIL) } /** @@ -1231,7 +1231,7 @@ public open class Control : CanvasItem() { */ public final fun getBegin(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBeginPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getBeginPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -1240,49 +1240,49 @@ public open class Control : CanvasItem() { */ public final fun getEnd(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEndPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getEndPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun getPosition(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun getSize(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSizePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getSizePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun getRotation(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRotationPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRotationPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun getRotationDegrees(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRotationDegreesPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRotationDegreesPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun getScale(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScalePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getScalePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun getPivotOffset(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPivotOffsetPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getPivotOffsetPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun getCustomMinimumSize(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCustomMinimumSizePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getCustomMinimumSizePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -1291,13 +1291,13 @@ public open class Control : CanvasItem() { */ public final fun getParentAreaSize(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getParentAreaSizePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getParentAreaSizePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun getGlobalPosition(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGlobalPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getGlobalPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -1314,7 +1314,7 @@ public open class Control : CanvasItem() { */ public final fun getScreenPosition(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScreenPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getScreenPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -1327,7 +1327,7 @@ public open class Control : CanvasItem() { */ public final fun getRect(): Rect2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRectPtr, RECT2) + TransferContext.callMethod(ptr, MethodBindings.getRectPtr, RECT2) return (TransferContext.readReturnValue(RECT2) as Rect2) } @@ -1341,18 +1341,18 @@ public open class Control : CanvasItem() { */ public final fun getGlobalRect(): Rect2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGlobalRectPtr, RECT2) + TransferContext.callMethod(ptr, MethodBindings.getGlobalRectPtr, RECT2) return (TransferContext.readReturnValue(RECT2) as Rect2) } public final fun setFocusMode(mode: FocusMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setFocusModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFocusModePtr, NIL) } public final fun getFocusMode(): FocusMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFocusModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFocusModePtr, LONG) return Control.FocusMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -1361,7 +1361,7 @@ public open class Control : CanvasItem() { */ public final fun hasFocus(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasFocusPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasFocusPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1372,7 +1372,7 @@ public open class Control : CanvasItem() { */ public final fun grabFocus(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.grabFocusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.grabFocusPtr, NIL) } /** @@ -1380,7 +1380,7 @@ public open class Control : CanvasItem() { */ public final fun releaseFocus(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.releaseFocusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.releaseFocusPtr, NIL) } /** @@ -1388,7 +1388,7 @@ public open class Control : CanvasItem() { */ public final fun findPrevValidFocus(): Control? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.findPrevValidFocusPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.findPrevValidFocusPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Control?) } @@ -1397,7 +1397,7 @@ public open class Control : CanvasItem() { */ public final fun findNextValidFocus(): Control? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.findNextValidFocusPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.findNextValidFocusPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Control?) } @@ -1408,62 +1408,62 @@ public open class Control : CanvasItem() { */ public final fun findValidFocusNeighbor(side: Side): Control? { TransferContext.writeArguments(LONG to side.id) - TransferContext.callMethod(rawPtr, MethodBindings.findValidFocusNeighborPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.findValidFocusNeighborPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Control?) } public final fun setHSizeFlags(flags: SizeFlags): Unit { TransferContext.writeArguments(LONG to flags.flag) - TransferContext.callMethod(rawPtr, MethodBindings.setHSizeFlagsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHSizeFlagsPtr, NIL) } public final fun getHSizeFlags(): SizeFlags { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHSizeFlagsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getHSizeFlagsPtr, LONG) return SizeFlagsValue(TransferContext.readReturnValue(LONG) as Long) } public final fun setStretchRatio(ratio: Float): Unit { TransferContext.writeArguments(DOUBLE to ratio.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setStretchRatioPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStretchRatioPtr, NIL) } public final fun getStretchRatio(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStretchRatioPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getStretchRatioPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVSizeFlags(flags: SizeFlags): Unit { TransferContext.writeArguments(LONG to flags.flag) - TransferContext.callMethod(rawPtr, MethodBindings.setVSizeFlagsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVSizeFlagsPtr, NIL) } public final fun getVSizeFlags(): SizeFlags { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVSizeFlagsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVSizeFlagsPtr, LONG) return SizeFlagsValue(TransferContext.readReturnValue(LONG) as Long) } public final fun setTheme(theme: Theme?): Unit { TransferContext.writeArguments(OBJECT to theme) - TransferContext.callMethod(rawPtr, MethodBindings.setThemePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setThemePtr, NIL) } public final fun getTheme(): Theme? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getThemePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getThemePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Theme?) } public final fun setThemeTypeVariation(themeType: StringName): Unit { TransferContext.writeArguments(STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.setThemeTypeVariationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setThemeTypeVariationPtr, NIL) } public final fun getThemeTypeVariation(): StringName { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getThemeTypeVariationPtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getThemeTypeVariationPtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } @@ -1473,7 +1473,7 @@ public open class Control : CanvasItem() { */ public final fun beginBulkThemeOverride(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.beginBulkThemeOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.beginBulkThemeOverridePtr, NIL) } /** @@ -1481,7 +1481,7 @@ public open class Control : CanvasItem() { */ public final fun endBulkThemeOverride(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.endBulkThemeOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.endBulkThemeOverridePtr, NIL) } /** @@ -1492,7 +1492,7 @@ public open class Control : CanvasItem() { */ public final fun addThemeIconOverride(name: StringName, texture: Texture2D?): Unit { TransferContext.writeArguments(STRING_NAME to name, OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.addThemeIconOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addThemeIconOverridePtr, NIL) } /** @@ -1530,7 +1530,7 @@ public open class Control : CanvasItem() { */ public final fun addThemeStyleboxOverride(name: StringName, stylebox: StyleBox?): Unit { TransferContext.writeArguments(STRING_NAME to name, OBJECT to stylebox) - TransferContext.callMethod(rawPtr, MethodBindings.addThemeStyleboxOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addThemeStyleboxOverridePtr, NIL) } /** @@ -1541,7 +1541,7 @@ public open class Control : CanvasItem() { */ public final fun addThemeFontOverride(name: StringName, font: Font?): Unit { TransferContext.writeArguments(STRING_NAME to name, OBJECT to font) - TransferContext.callMethod(rawPtr, MethodBindings.addThemeFontOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addThemeFontOverridePtr, NIL) } /** @@ -1552,7 +1552,7 @@ public open class Control : CanvasItem() { */ public final fun addThemeFontSizeOverride(name: StringName, fontSize: Int): Unit { TransferContext.writeArguments(STRING_NAME to name, LONG to fontSize.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addThemeFontSizeOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addThemeFontSizeOverridePtr, NIL) } /** @@ -1584,7 +1584,7 @@ public open class Control : CanvasItem() { */ public final fun addThemeColorOverride(name: StringName, color: Color): Unit { TransferContext.writeArguments(STRING_NAME to name, COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.addThemeColorOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addThemeColorOverridePtr, NIL) } /** @@ -1595,7 +1595,7 @@ public open class Control : CanvasItem() { */ public final fun addThemeConstantOverride(name: StringName, constant: Int): Unit { TransferContext.writeArguments(STRING_NAME to name, LONG to constant.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addThemeConstantOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addThemeConstantOverridePtr, NIL) } /** @@ -1604,7 +1604,7 @@ public open class Control : CanvasItem() { */ public final fun removeThemeIconOverride(name: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.removeThemeIconOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeThemeIconOverridePtr, NIL) } /** @@ -1613,7 +1613,7 @@ public open class Control : CanvasItem() { */ public final fun removeThemeStyleboxOverride(name: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.removeThemeStyleboxOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeThemeStyleboxOverridePtr, NIL) } /** @@ -1622,7 +1622,7 @@ public open class Control : CanvasItem() { */ public final fun removeThemeFontOverride(name: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.removeThemeFontOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeThemeFontOverridePtr, NIL) } /** @@ -1631,7 +1631,7 @@ public open class Control : CanvasItem() { */ public final fun removeThemeFontSizeOverride(name: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.removeThemeFontSizeOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeThemeFontSizeOverridePtr, NIL) } /** @@ -1640,7 +1640,7 @@ public open class Control : CanvasItem() { */ public final fun removeThemeColorOverride(name: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.removeThemeColorOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeThemeColorOverridePtr, NIL) } /** @@ -1649,7 +1649,7 @@ public open class Control : CanvasItem() { */ public final fun removeThemeConstantOverride(name: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.removeThemeConstantOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeThemeConstantOverridePtr, NIL) } /** @@ -1661,7 +1661,7 @@ public open class Control : CanvasItem() { public final fun getThemeIcon(name: StringName, themeType: StringName = StringName("")): Texture2D? { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.getThemeIconPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getThemeIconPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } @@ -1674,7 +1674,7 @@ public open class Control : CanvasItem() { public final fun getThemeStylebox(name: StringName, themeType: StringName = StringName("")): StyleBox? { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.getThemeStyleboxPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getThemeStyleboxPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as StyleBox?) } @@ -1686,7 +1686,7 @@ public open class Control : CanvasItem() { @JvmOverloads public final fun getThemeFont(name: StringName, themeType: StringName = StringName("")): Font? { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.getThemeFontPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getThemeFontPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Font?) } @@ -1698,7 +1698,7 @@ public open class Control : CanvasItem() { @JvmOverloads public final fun getThemeFontSize(name: StringName, themeType: StringName = StringName("")): Int { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.getThemeFontSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getThemeFontSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1737,7 +1737,7 @@ public open class Control : CanvasItem() { @JvmOverloads public final fun getThemeColor(name: StringName, themeType: StringName = StringName("")): Color { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.getThemeColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getThemeColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } @@ -1749,7 +1749,7 @@ public open class Control : CanvasItem() { @JvmOverloads public final fun getThemeConstant(name: StringName, themeType: StringName = StringName("")): Int { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.getThemeConstantPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getThemeConstantPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1760,7 +1760,7 @@ public open class Control : CanvasItem() { */ public final fun hasThemeIconOverride(name: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.hasThemeIconOverridePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasThemeIconOverridePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1771,7 +1771,7 @@ public open class Control : CanvasItem() { */ public final fun hasThemeStyleboxOverride(name: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.hasThemeStyleboxOverridePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasThemeStyleboxOverridePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1782,7 +1782,7 @@ public open class Control : CanvasItem() { */ public final fun hasThemeFontOverride(name: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.hasThemeFontOverridePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasThemeFontOverridePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1793,7 +1793,7 @@ public open class Control : CanvasItem() { */ public final fun hasThemeFontSizeOverride(name: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.hasThemeFontSizeOverridePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasThemeFontSizeOverridePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1804,7 +1804,7 @@ public open class Control : CanvasItem() { */ public final fun hasThemeColorOverride(name: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.hasThemeColorOverridePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasThemeColorOverridePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1815,7 +1815,7 @@ public open class Control : CanvasItem() { */ public final fun hasThemeConstantOverride(name: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.hasThemeConstantOverridePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasThemeConstantOverridePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1827,7 +1827,7 @@ public open class Control : CanvasItem() { @JvmOverloads public final fun hasThemeIcon(name: StringName, themeType: StringName = StringName("")): Boolean { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.hasThemeIconPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasThemeIconPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1840,7 +1840,7 @@ public open class Control : CanvasItem() { public final fun hasThemeStylebox(name: StringName, themeType: StringName = StringName("")): Boolean { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.hasThemeStyleboxPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasThemeStyleboxPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1852,7 +1852,7 @@ public open class Control : CanvasItem() { @JvmOverloads public final fun hasThemeFont(name: StringName, themeType: StringName = StringName("")): Boolean { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.hasThemeFontPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasThemeFontPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1865,7 +1865,7 @@ public open class Control : CanvasItem() { public final fun hasThemeFontSize(name: StringName, themeType: StringName = StringName("")): Boolean { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.hasThemeFontSizePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasThemeFontSizePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1878,7 +1878,7 @@ public open class Control : CanvasItem() { public final fun hasThemeColor(name: StringName, themeType: StringName = StringName("")): Boolean { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.hasThemeColorPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasThemeColorPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1891,7 +1891,7 @@ public open class Control : CanvasItem() { public final fun hasThemeConstant(name: StringName, themeType: StringName = StringName("")): Boolean { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.hasThemeConstantPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasThemeConstantPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1902,7 +1902,7 @@ public open class Control : CanvasItem() { */ public final fun getThemeDefaultBaseScale(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getThemeDefaultBaseScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getThemeDefaultBaseScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1913,7 +1913,7 @@ public open class Control : CanvasItem() { */ public final fun getThemeDefaultFont(): Font? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getThemeDefaultFontPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getThemeDefaultFontPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Font?) } @@ -1924,7 +1924,7 @@ public open class Control : CanvasItem() { */ public final fun getThemeDefaultFontSize(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getThemeDefaultFontSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getThemeDefaultFontSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1933,40 +1933,40 @@ public open class Control : CanvasItem() { */ public final fun getParentControl(): Control? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getParentControlPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getParentControlPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Control?) } public final fun setHGrowDirection(direction: GrowDirection): Unit { TransferContext.writeArguments(LONG to direction.id) - TransferContext.callMethod(rawPtr, MethodBindings.setHGrowDirectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHGrowDirectionPtr, NIL) } public final fun getHGrowDirection(): GrowDirection { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHGrowDirectionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getHGrowDirectionPtr, LONG) return Control.GrowDirection.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setVGrowDirection(direction: GrowDirection): Unit { TransferContext.writeArguments(LONG to direction.id) - TransferContext.callMethod(rawPtr, MethodBindings.setVGrowDirectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVGrowDirectionPtr, NIL) } public final fun getVGrowDirection(): GrowDirection { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVGrowDirectionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVGrowDirectionPtr, LONG) return Control.GrowDirection.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setTooltipText(hint: String): Unit { TransferContext.writeArguments(STRING to hint) - TransferContext.callMethod(rawPtr, MethodBindings.setTooltipTextPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTooltipTextPtr, NIL) } public final fun getTooltipText(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTooltipTextPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getTooltipTextPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -1980,18 +1980,18 @@ public open class Control : CanvasItem() { @JvmOverloads public final fun getTooltip(atPosition: Vector2 = Vector2(0, 0)): String { TransferContext.writeArguments(VECTOR2 to atPosition) - TransferContext.callMethod(rawPtr, MethodBindings.getTooltipPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getTooltipPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setDefaultCursorShape(shape: CursorShape): Unit { TransferContext.writeArguments(LONG to shape.id) - TransferContext.callMethod(rawPtr, MethodBindings.setDefaultCursorShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDefaultCursorShapePtr, NIL) } public final fun getDefaultCursorShape(): CursorShape { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDefaultCursorShapePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDefaultCursorShapePtr, LONG) return Control.CursorShape.from(TransferContext.readReturnValue(LONG) as Long) } @@ -2001,7 +2001,7 @@ public open class Control : CanvasItem() { @JvmOverloads public final fun getCursorShape(position: Vector2 = Vector2(0, 0)): CursorShape { TransferContext.writeArguments(VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.getCursorShapePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCursorShapePtr, LONG) return Control.CursorShape.from(TransferContext.readReturnValue(LONG) as Long) } @@ -2012,7 +2012,7 @@ public open class Control : CanvasItem() { */ public final fun setFocusNeighbor(side: Side, neighbor: NodePath): Unit { TransferContext.writeArguments(LONG to side.id, NODE_PATH to neighbor) - TransferContext.callMethod(rawPtr, MethodBindings.setFocusNeighborPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFocusNeighborPtr, NIL) } /** @@ -2023,29 +2023,29 @@ public open class Control : CanvasItem() { */ public final fun getFocusNeighbor(side: Side): NodePath { TransferContext.writeArguments(LONG to side.id) - TransferContext.callMethod(rawPtr, MethodBindings.getFocusNeighborPtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getFocusNeighborPtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } public final fun setFocusNext(next: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to next) - TransferContext.callMethod(rawPtr, MethodBindings.setFocusNextPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFocusNextPtr, NIL) } public final fun getFocusNext(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFocusNextPtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getFocusNextPtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } public final fun setFocusPrevious(previous: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to previous) - TransferContext.callMethod(rawPtr, MethodBindings.setFocusPreviousPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFocusPreviousPtr, NIL) } public final fun getFocusPrevious(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFocusPreviousPtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getFocusPreviousPtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } @@ -2057,39 +2057,39 @@ public open class Control : CanvasItem() { */ public final fun forceDrag(`data`: Any?, preview: Control?): Unit { TransferContext.writeArguments(ANY to data, OBJECT to preview) - TransferContext.callMethod(rawPtr, MethodBindings.forceDragPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.forceDragPtr, NIL) } public final fun setMouseFilter(filter: MouseFilter): Unit { TransferContext.writeArguments(LONG to filter.id) - TransferContext.callMethod(rawPtr, MethodBindings.setMouseFilterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMouseFilterPtr, NIL) } public final fun getMouseFilter(): MouseFilter { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMouseFilterPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMouseFilterPtr, LONG) return Control.MouseFilter.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setForcePassScrollEvents(forcePassScrollEvents: Boolean): Unit { TransferContext.writeArguments(BOOL to forcePassScrollEvents) - TransferContext.callMethod(rawPtr, MethodBindings.setForcePassScrollEventsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setForcePassScrollEventsPtr, NIL) } public final fun isForcePassScrollEvents(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isForcePassScrollEventsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isForcePassScrollEventsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setClipContents(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setClipContentsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setClipContentsPtr, NIL) } public final fun isClippingContents(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isClippingContentsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isClippingContentsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -2112,7 +2112,7 @@ public open class Control : CanvasItem() { */ public final fun grabClickFocus(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.grabClickFocusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.grabClickFocusPtr, NIL) } /** @@ -2129,7 +2129,7 @@ public open class Control : CanvasItem() { dropFunc: Callable, ): Unit { TransferContext.writeArguments(CALLABLE to dragFunc, CALLABLE to canDropFunc, CALLABLE to dropFunc) - TransferContext.callMethod(rawPtr, MethodBindings.setDragForwardingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDragForwardingPtr, NIL) } /** @@ -2168,7 +2168,7 @@ public open class Control : CanvasItem() { */ public final fun setDragPreview(control: Control?): Unit { TransferContext.writeArguments(OBJECT to control) - TransferContext.callMethod(rawPtr, MethodBindings.setDragPreviewPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDragPreviewPtr, NIL) } /** @@ -2178,7 +2178,7 @@ public open class Control : CanvasItem() { */ public final fun isDragSuccessful(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDragSuccessfulPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDragSuccessfulPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -2189,17 +2189,17 @@ public open class Control : CanvasItem() { */ public final fun warpMouse(position: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.warpMousePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.warpMousePtr, NIL) } public final fun setShortcutContext(node: Node?): Unit { TransferContext.writeArguments(OBJECT to node) - TransferContext.callMethod(rawPtr, MethodBindings.setShortcutContextPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShortcutContextPtr, NIL) } public final fun getShortcutContext(): Node? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getShortcutContextPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getShortcutContextPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Node?) } @@ -2210,17 +2210,17 @@ public open class Control : CanvasItem() { */ public final fun updateMinimumSize(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.updateMinimumSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.updateMinimumSizePtr, NIL) } public final fun setLayoutDirection(direction: LayoutDirection): Unit { TransferContext.writeArguments(LONG to direction.id) - TransferContext.callMethod(rawPtr, MethodBindings.setLayoutDirectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLayoutDirectionPtr, NIL) } public final fun getLayoutDirection(): LayoutDirection { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLayoutDirectionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLayoutDirectionPtr, LONG) return Control.LayoutDirection.from(TransferContext.readReturnValue(LONG) as Long) } @@ -2229,29 +2229,29 @@ public open class Control : CanvasItem() { */ public final fun isLayoutRtl(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isLayoutRtlPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isLayoutRtlPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAutoTranslate(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setAutoTranslatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutoTranslatePtr, NIL) } public final fun isAutoTranslating(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isAutoTranslatingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isAutoTranslatingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setLocalizeNumeralSystem(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setLocalizeNumeralSystemPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLocalizeNumeralSystemPtr, NIL) } public final fun isLocalizingNumeralSystem(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isLocalizingNumeralSystemPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isLocalizingNumeralSystemPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ConvexPolygonShape2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ConvexPolygonShape2D.kt index 7c9c893046..c1c45aa6d4 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ConvexPolygonShape2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ConvexPolygonShape2D.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedVector2Array import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_VECTOR2_ARRAY import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -61,17 +61,17 @@ public open class ConvexPolygonShape2D : Shape2D() { */ public final fun setPointCloud(pointCloud: PackedVector2Array): Unit { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to pointCloud) - TransferContext.callMethod(rawPtr, MethodBindings.setPointCloudPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPointCloudPtr, NIL) } public final fun setPoints(points: PackedVector2Array): Unit { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to points) - TransferContext.callMethod(rawPtr, MethodBindings.setPointsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPointsPtr, NIL) } public final fun getPoints(): PackedVector2Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPointsPtr, PACKED_VECTOR2_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getPointsPtr, PACKED_VECTOR2_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR2_ARRAY) as PackedVector2Array) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ConvexPolygonShape3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ConvexPolygonShape3D.kt index 8e6f4359bd..9072c048ab 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ConvexPolygonShape3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ConvexPolygonShape3D.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedVector3Array import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_VECTOR3_ARRAY import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -55,12 +55,12 @@ public open class ConvexPolygonShape3D : Shape3D() { public final fun setPoints(points: PackedVector3Array): Unit { TransferContext.writeArguments(PACKED_VECTOR3_ARRAY to points) - TransferContext.callMethod(rawPtr, MethodBindings.setPointsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPointsPtr, NIL) } public final fun getPoints(): PackedVector3Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPointsPtr, PACKED_VECTOR3_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getPointsPtr, PACKED_VECTOR3_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR3_ARRAY) as PackedVector3Array) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Crypto.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Crypto.kt index d83eb819ca..b97c7cb8fd 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Crypto.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Crypto.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedByteArray import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -15,7 +16,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.String @@ -108,7 +108,7 @@ public open class Crypto : RefCounted() { */ public final fun generateRandomBytes(size: Int): PackedByteArray { TransferContext.writeArguments(LONG to size.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.generateRandomBytesPtr, PACKED_BYTE_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.generateRandomBytesPtr, PACKED_BYTE_ARRAY) return (TransferContext.readReturnValue(PACKED_BYTE_ARRAY) as PackedByteArray) } @@ -118,7 +118,7 @@ public open class Crypto : RefCounted() { */ public final fun generateRsa(size: Int): CryptoKey? { TransferContext.writeArguments(LONG to size.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.generateRsaPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.generateRsaPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as CryptoKey?) } @@ -156,7 +156,7 @@ public open class Crypto : RefCounted() { notAfter: String = "20340101000000", ): X509Certificate? { TransferContext.writeArguments(OBJECT to key, STRING to issuerName, STRING to notBefore, STRING to notAfter) - TransferContext.callMethod(rawPtr, MethodBindings.generateSelfSignedCertificatePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.generateSelfSignedCertificatePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as X509Certificate?) } @@ -169,7 +169,7 @@ public open class Crypto : RefCounted() { key: CryptoKey?, ): PackedByteArray { TransferContext.writeArguments(LONG to hashType.id, PACKED_BYTE_ARRAY to hash, OBJECT to key) - TransferContext.callMethod(rawPtr, MethodBindings.signPtr, PACKED_BYTE_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.signPtr, PACKED_BYTE_ARRAY) return (TransferContext.readReturnValue(PACKED_BYTE_ARRAY) as PackedByteArray) } @@ -184,7 +184,7 @@ public open class Crypto : RefCounted() { key: CryptoKey?, ): Boolean { TransferContext.writeArguments(LONG to hashType.id, PACKED_BYTE_ARRAY to hash, PACKED_BYTE_ARRAY to signature, OBJECT to key) - TransferContext.callMethod(rawPtr, MethodBindings.verifyPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.verifyPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -194,7 +194,7 @@ public open class Crypto : RefCounted() { */ public final fun encrypt(key: CryptoKey?, plaintext: PackedByteArray): PackedByteArray { TransferContext.writeArguments(OBJECT to key, PACKED_BYTE_ARRAY to plaintext) - TransferContext.callMethod(rawPtr, MethodBindings.encryptPtr, PACKED_BYTE_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.encryptPtr, PACKED_BYTE_ARRAY) return (TransferContext.readReturnValue(PACKED_BYTE_ARRAY) as PackedByteArray) } @@ -204,7 +204,7 @@ public open class Crypto : RefCounted() { */ public final fun decrypt(key: CryptoKey?, ciphertext: PackedByteArray): PackedByteArray { TransferContext.writeArguments(OBJECT to key, PACKED_BYTE_ARRAY to ciphertext) - TransferContext.callMethod(rawPtr, MethodBindings.decryptPtr, PACKED_BYTE_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.decryptPtr, PACKED_BYTE_ARRAY) return (TransferContext.readReturnValue(PACKED_BYTE_ARRAY) as PackedByteArray) } @@ -219,7 +219,7 @@ public open class Crypto : RefCounted() { msg: PackedByteArray, ): PackedByteArray { TransferContext.writeArguments(LONG to hashType.id, PACKED_BYTE_ARRAY to key, PACKED_BYTE_ARRAY to msg) - TransferContext.callMethod(rawPtr, MethodBindings.hmacDigestPtr, PACKED_BYTE_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.hmacDigestPtr, PACKED_BYTE_ARRAY) return (TransferContext.readReturnValue(PACKED_BYTE_ARRAY) as PackedByteArray) } @@ -233,7 +233,7 @@ public open class Crypto : RefCounted() { public final fun constantTimeCompare(trusted: PackedByteArray, received: PackedByteArray): Boolean { TransferContext.writeArguments(PACKED_BYTE_ARRAY to trusted, PACKED_BYTE_ARRAY to received) - TransferContext.callMethod(rawPtr, MethodBindings.constantTimeComparePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.constantTimeComparePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CryptoKey.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CryptoKey.kt index 6cf65068b5..a3aa42c268 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CryptoKey.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CryptoKey.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -41,7 +41,7 @@ public open class CryptoKey : Resource() { @JvmOverloads public final fun save(path: String, publicOnly: Boolean = false): Error { TransferContext.writeArguments(STRING to path, BOOL to publicOnly) - TransferContext.callMethod(rawPtr, MethodBindings.savePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.savePtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -52,7 +52,7 @@ public open class CryptoKey : Resource() { @JvmOverloads public final fun load(path: String, publicOnly: Boolean = false): Error { TransferContext.writeArguments(STRING to path, BOOL to publicOnly) - TransferContext.callMethod(rawPtr, MethodBindings.loadPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.loadPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -61,7 +61,7 @@ public open class CryptoKey : Resource() { */ public final fun isPublicOnly(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isPublicOnlyPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPublicOnlyPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -72,7 +72,7 @@ public open class CryptoKey : Resource() { @JvmOverloads public final fun saveToString(publicOnly: Boolean = false): String { TransferContext.writeArguments(BOOL to publicOnly) - TransferContext.callMethod(rawPtr, MethodBindings.saveToStringPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.saveToStringPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -83,7 +83,7 @@ public open class CryptoKey : Resource() { @JvmOverloads public final fun loadFromString(stringKey: String, publicOnly: Boolean = false): Error { TransferContext.writeArguments(STRING to stringKey, BOOL to publicOnly) - TransferContext.callMethod(rawPtr, MethodBindings.loadFromStringPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.loadFromStringPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Cubemap.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Cubemap.kt index 126a6a0aba..9113ed98f5 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Cubemap.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Cubemap.kt @@ -7,10 +7,10 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -39,7 +39,7 @@ public open class Cubemap : ImageTextureLayered() { */ public final fun createPlaceholder(): Resource? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.createPlaceholderPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.createPlaceholderPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Resource?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CubemapArray.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CubemapArray.kt index d4445398d9..8b3b6df096 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CubemapArray.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CubemapArray.kt @@ -7,10 +7,10 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -39,7 +39,7 @@ public open class CubemapArray : ImageTextureLayered() { */ public final fun createPlaceholder(): Resource? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.createPlaceholderPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.createPlaceholderPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Resource?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Curve.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Curve.kt index 9aa12d3eff..39a8c91af4 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Curve.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Curve.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.TypeManager import godot.core.VariantParser.DOUBLE @@ -15,7 +16,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -88,13 +88,13 @@ public open class Curve : Resource() { public final fun getPointCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPointCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPointCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setPointCount(count: Int): Unit { TransferContext.writeArguments(LONG to count.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setPointCountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPointCountPtr, NIL) } /** @@ -111,7 +111,7 @@ public open class Curve : Resource() { rightMode: TangentMode = Curve.TangentMode.TANGENT_FREE, ): Int { TransferContext.writeArguments(VECTOR2 to position, DOUBLE to leftTangent.toDouble(), DOUBLE to rightTangent.toDouble(), LONG to leftMode.id, LONG to rightMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.addPointPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.addPointPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -120,7 +120,7 @@ public open class Curve : Resource() { */ public final fun removePoint(index: Int): Unit { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removePointPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removePointPtr, NIL) } /** @@ -128,7 +128,7 @@ public open class Curve : Resource() { */ public final fun clearPoints(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearPointsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPointsPtr, NIL) } /** @@ -136,7 +136,7 @@ public open class Curve : Resource() { */ public final fun getPointPosition(index: Int): Vector2 { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getPointPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getPointPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -145,7 +145,7 @@ public open class Curve : Resource() { */ public final fun setPointValue(index: Int, y: Float): Unit { TransferContext.writeArguments(LONG to index.toLong(), DOUBLE to y.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPointValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPointValuePtr, NIL) } /** @@ -153,7 +153,7 @@ public open class Curve : Resource() { */ public final fun setPointOffset(index: Int, offset: Float): Int { TransferContext.writeArguments(LONG to index.toLong(), DOUBLE to offset.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPointOffsetPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.setPointOffsetPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -162,7 +162,7 @@ public open class Curve : Resource() { */ public final fun sample(offset: Float): Float { TransferContext.writeArguments(DOUBLE to offset.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.samplePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.samplePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -172,7 +172,7 @@ public open class Curve : Resource() { */ public final fun sampleBaked(offset: Float): Float { TransferContext.writeArguments(DOUBLE to offset.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.sampleBakedPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.sampleBakedPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -181,7 +181,7 @@ public open class Curve : Resource() { */ public final fun getPointLeftTangent(index: Int): Float { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getPointLeftTangentPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPointLeftTangentPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -190,7 +190,7 @@ public open class Curve : Resource() { */ public final fun getPointRightTangent(index: Int): Float { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getPointRightTangentPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPointRightTangentPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -199,7 +199,7 @@ public open class Curve : Resource() { */ public final fun getPointLeftMode(index: Int): TangentMode { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getPointLeftModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPointLeftModePtr, LONG) return Curve.TangentMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -208,7 +208,7 @@ public open class Curve : Resource() { */ public final fun getPointRightMode(index: Int): TangentMode { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getPointRightModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPointRightModePtr, LONG) return Curve.TangentMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -217,7 +217,7 @@ public open class Curve : Resource() { */ public final fun setPointLeftTangent(index: Int, tangent: Float): Unit { TransferContext.writeArguments(LONG to index.toLong(), DOUBLE to tangent.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPointLeftTangentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPointLeftTangentPtr, NIL) } /** @@ -225,7 +225,7 @@ public open class Curve : Resource() { */ public final fun setPointRightTangent(index: Int, tangent: Float): Unit { TransferContext.writeArguments(LONG to index.toLong(), DOUBLE to tangent.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPointRightTangentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPointRightTangentPtr, NIL) } /** @@ -233,7 +233,7 @@ public open class Curve : Resource() { */ public final fun setPointLeftMode(index: Int, mode: TangentMode): Unit { TransferContext.writeArguments(LONG to index.toLong(), LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setPointLeftModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPointLeftModePtr, NIL) } /** @@ -241,29 +241,29 @@ public open class Curve : Resource() { */ public final fun setPointRightMode(index: Int, mode: TangentMode): Unit { TransferContext.writeArguments(LONG to index.toLong(), LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setPointRightModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPointRightModePtr, NIL) } public final fun getMinValue(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMinValuePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMinValuePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setMinValue(min: Float): Unit { TransferContext.writeArguments(DOUBLE to min.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMinValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMinValuePtr, NIL) } public final fun getMaxValue(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxValuePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMaxValuePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setMaxValue(max: Float): Unit { TransferContext.writeArguments(DOUBLE to max.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxValuePtr, NIL) } /** @@ -272,7 +272,7 @@ public open class Curve : Resource() { */ public final fun cleanDupes(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.cleanDupesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.cleanDupesPtr, NIL) } /** @@ -280,18 +280,18 @@ public open class Curve : Resource() { */ public final fun bake(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.bakePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bakePtr, NIL) } public final fun getBakeResolution(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBakeResolutionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBakeResolutionPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setBakeResolution(resolution: Int): Unit { TransferContext.writeArguments(LONG to resolution.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setBakeResolutionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBakeResolutionPtr, NIL) } public enum class TangentMode( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Curve2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Curve2D.kt index c309f44f06..49f3bea5ee 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Curve2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Curve2D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedVector2Array import godot.core.Transform2D import godot.core.TypeManager @@ -19,7 +20,6 @@ import godot.core.VariantParser.TRANSFORM2D import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -67,13 +67,13 @@ public open class Curve2D : Resource() { public final fun getPointCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPointCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPointCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setPointCount(count: Int): Unit { TransferContext.writeArguments(LONG to count.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setPointCountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPointCountPtr, NIL) } /** @@ -92,7 +92,7 @@ public open class Curve2D : Resource() { index: Int = -1, ): Unit { TransferContext.writeArguments(VECTOR2 to position, VECTOR2 to `in`, VECTOR2 to out, LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addPointPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addPointPtr, NIL) } /** @@ -101,7 +101,7 @@ public open class Curve2D : Resource() { */ public final fun setPointPosition(idx: Int, position: Vector2): Unit { TransferContext.writeArguments(LONG to idx.toLong(), VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.setPointPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPointPositionPtr, NIL) } /** @@ -110,7 +110,7 @@ public open class Curve2D : Resource() { */ public final fun getPointPosition(idx: Int): Vector2 { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getPointPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getPointPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -120,7 +120,7 @@ public open class Curve2D : Resource() { */ public final fun setPointIn(idx: Int, position: Vector2): Unit { TransferContext.writeArguments(LONG to idx.toLong(), VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.setPointInPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPointInPtr, NIL) } /** @@ -130,7 +130,7 @@ public open class Curve2D : Resource() { */ public final fun getPointIn(idx: Int): Vector2 { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getPointInPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getPointInPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -140,7 +140,7 @@ public open class Curve2D : Resource() { */ public final fun setPointOut(idx: Int, position: Vector2): Unit { TransferContext.writeArguments(LONG to idx.toLong(), VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.setPointOutPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPointOutPtr, NIL) } /** @@ -150,7 +150,7 @@ public open class Curve2D : Resource() { */ public final fun getPointOut(idx: Int): Vector2 { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getPointOutPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getPointOutPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -160,7 +160,7 @@ public open class Curve2D : Resource() { */ public final fun removePoint(idx: Int): Unit { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removePointPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removePointPtr, NIL) } /** @@ -168,7 +168,7 @@ public open class Curve2D : Resource() { */ public final fun clearPoints(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearPointsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPointsPtr, NIL) } /** @@ -180,7 +180,7 @@ public open class Curve2D : Resource() { */ public final fun sample(idx: Int, t: Float): Vector2 { TransferContext.writeArguments(LONG to idx.toLong(), DOUBLE to t.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.samplePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.samplePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -190,18 +190,18 @@ public open class Curve2D : Resource() { */ public final fun samplef(fofs: Float): Vector2 { TransferContext.writeArguments(DOUBLE to fofs.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.samplefPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.samplefPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setBakeInterval(distance: Float): Unit { TransferContext.writeArguments(DOUBLE to distance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setBakeIntervalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBakeIntervalPtr, NIL) } public final fun getBakeInterval(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBakeIntervalPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getBakeIntervalPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -211,7 +211,7 @@ public open class Curve2D : Resource() { */ public final fun getBakedLength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBakedLengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getBakedLengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -226,7 +226,7 @@ public open class Curve2D : Resource() { @JvmOverloads public final fun sampleBaked(offset: Float = 0.0f, cubic: Boolean = false): Vector2 { TransferContext.writeArguments(DOUBLE to offset.toDouble(), BOOL to cubic) - TransferContext.callMethod(rawPtr, MethodBindings.sampleBakedPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.sampleBakedPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -247,7 +247,7 @@ public open class Curve2D : Resource() { public final fun sampleBakedWithRotation(offset: Float = 0.0f, cubic: Boolean = false): Transform2D { TransferContext.writeArguments(DOUBLE to offset.toDouble(), BOOL to cubic) - TransferContext.callMethod(rawPtr, MethodBindings.sampleBakedWithRotationPtr, TRANSFORM2D) + TransferContext.callMethod(ptr, MethodBindings.sampleBakedWithRotationPtr, TRANSFORM2D) return (TransferContext.readReturnValue(TRANSFORM2D) as Transform2D) } @@ -256,7 +256,7 @@ public open class Curve2D : Resource() { */ public final fun getBakedPoints(): PackedVector2Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBakedPointsPtr, PACKED_VECTOR2_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getBakedPointsPtr, PACKED_VECTOR2_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR2_ARRAY) as PackedVector2Array) } @@ -266,7 +266,7 @@ public open class Curve2D : Resource() { */ public final fun getClosestPoint(toPoint: Vector2): Vector2 { TransferContext.writeArguments(VECTOR2 to toPoint) - TransferContext.callMethod(rawPtr, MethodBindings.getClosestPointPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getClosestPointPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -276,7 +276,7 @@ public open class Curve2D : Resource() { */ public final fun getClosestOffset(toPoint: Vector2): Float { TransferContext.writeArguments(VECTOR2 to toPoint) - TransferContext.callMethod(rawPtr, MethodBindings.getClosestOffsetPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getClosestOffsetPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -295,7 +295,7 @@ public open class Curve2D : Resource() { public final fun tessellate(maxStages: Int = 5, toleranceDegrees: Float = 4.0f): PackedVector2Array { TransferContext.writeArguments(LONG to maxStages.toLong(), DOUBLE to toleranceDegrees.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.tessellatePtr, PACKED_VECTOR2_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.tessellatePtr, PACKED_VECTOR2_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR2_ARRAY) as PackedVector2Array) } @@ -311,7 +311,7 @@ public open class Curve2D : Resource() { public final fun tessellateEvenLength(maxStages: Int = 5, toleranceLength: Float = 20.0f): PackedVector2Array { TransferContext.writeArguments(LONG to maxStages.toLong(), DOUBLE to toleranceLength.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.tessellateEvenLengthPtr, PACKED_VECTOR2_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.tessellateEvenLengthPtr, PACKED_VECTOR2_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR2_ARRAY) as PackedVector2Array) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Curve3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Curve3D.kt index 462c3d61d1..ab438df806 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Curve3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Curve3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedFloat32Array import godot.core.PackedVector3Array import godot.core.Transform3D @@ -21,7 +22,6 @@ import godot.core.VariantParser.TRANSFORM3D import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -82,13 +82,13 @@ public open class Curve3D : Resource() { public final fun getPointCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPointCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPointCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setPointCount(count: Int): Unit { TransferContext.writeArguments(LONG to count.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setPointCountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPointCountPtr, NIL) } /** @@ -107,7 +107,7 @@ public open class Curve3D : Resource() { index: Int = -1, ): Unit { TransferContext.writeArguments(VECTOR3 to position, VECTOR3 to `in`, VECTOR3 to out, LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addPointPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addPointPtr, NIL) } /** @@ -116,7 +116,7 @@ public open class Curve3D : Resource() { */ public final fun setPointPosition(idx: Int, position: Vector3): Unit { TransferContext.writeArguments(LONG to idx.toLong(), VECTOR3 to position) - TransferContext.callMethod(rawPtr, MethodBindings.setPointPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPointPositionPtr, NIL) } /** @@ -125,7 +125,7 @@ public open class Curve3D : Resource() { */ public final fun getPointPosition(idx: Int): Vector3 { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getPointPositionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getPointPositionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -138,7 +138,7 @@ public open class Curve3D : Resource() { */ public final fun setPointTilt(idx: Int, tilt: Float): Unit { TransferContext.writeArguments(LONG to idx.toLong(), DOUBLE to tilt.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPointTiltPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPointTiltPtr, NIL) } /** @@ -147,7 +147,7 @@ public open class Curve3D : Resource() { */ public final fun getPointTilt(idx: Int): Float { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getPointTiltPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPointTiltPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -157,7 +157,7 @@ public open class Curve3D : Resource() { */ public final fun setPointIn(idx: Int, position: Vector3): Unit { TransferContext.writeArguments(LONG to idx.toLong(), VECTOR3 to position) - TransferContext.callMethod(rawPtr, MethodBindings.setPointInPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPointInPtr, NIL) } /** @@ -167,7 +167,7 @@ public open class Curve3D : Resource() { */ public final fun getPointIn(idx: Int): Vector3 { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getPointInPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getPointInPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -177,7 +177,7 @@ public open class Curve3D : Resource() { */ public final fun setPointOut(idx: Int, position: Vector3): Unit { TransferContext.writeArguments(LONG to idx.toLong(), VECTOR3 to position) - TransferContext.callMethod(rawPtr, MethodBindings.setPointOutPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPointOutPtr, NIL) } /** @@ -187,7 +187,7 @@ public open class Curve3D : Resource() { */ public final fun getPointOut(idx: Int): Vector3 { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getPointOutPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getPointOutPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -197,7 +197,7 @@ public open class Curve3D : Resource() { */ public final fun removePoint(idx: Int): Unit { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removePointPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removePointPtr, NIL) } /** @@ -205,7 +205,7 @@ public open class Curve3D : Resource() { */ public final fun clearPoints(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearPointsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPointsPtr, NIL) } /** @@ -217,7 +217,7 @@ public open class Curve3D : Resource() { */ public final fun sample(idx: Int, t: Float): Vector3 { TransferContext.writeArguments(LONG to idx.toLong(), DOUBLE to t.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.samplePtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.samplePtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -227,29 +227,29 @@ public open class Curve3D : Resource() { */ public final fun samplef(fofs: Float): Vector3 { TransferContext.writeArguments(DOUBLE to fofs.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.samplefPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.samplefPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setBakeInterval(distance: Float): Unit { TransferContext.writeArguments(DOUBLE to distance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setBakeIntervalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBakeIntervalPtr, NIL) } public final fun getBakeInterval(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBakeIntervalPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getBakeIntervalPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setUpVectorEnabled(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setUpVectorEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUpVectorEnabledPtr, NIL) } public final fun isUpVectorEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUpVectorEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUpVectorEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -259,7 +259,7 @@ public open class Curve3D : Resource() { */ public final fun getBakedLength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBakedLengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getBakedLengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -274,7 +274,7 @@ public open class Curve3D : Resource() { @JvmOverloads public final fun sampleBaked(offset: Float = 0.0f, cubic: Boolean = false): Vector3 { TransferContext.writeArguments(DOUBLE to offset.toDouble(), BOOL to cubic) - TransferContext.callMethod(rawPtr, MethodBindings.sampleBakedPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.sampleBakedPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -290,7 +290,7 @@ public open class Curve3D : Resource() { applyTilt: Boolean = false, ): Transform3D { TransferContext.writeArguments(DOUBLE to offset.toDouble(), BOOL to cubic, BOOL to applyTilt) - TransferContext.callMethod(rawPtr, MethodBindings.sampleBakedWithRotationPtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.sampleBakedWithRotationPtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } @@ -305,7 +305,7 @@ public open class Curve3D : Resource() { @JvmOverloads public final fun sampleBakedUpVector(offset: Float, applyTilt: Boolean = false): Vector3 { TransferContext.writeArguments(DOUBLE to offset.toDouble(), BOOL to applyTilt) - TransferContext.callMethod(rawPtr, MethodBindings.sampleBakedUpVectorPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.sampleBakedUpVectorPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -314,7 +314,7 @@ public open class Curve3D : Resource() { */ public final fun getBakedPoints(): PackedVector3Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBakedPointsPtr, PACKED_VECTOR3_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getBakedPointsPtr, PACKED_VECTOR3_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR3_ARRAY) as PackedVector3Array) } @@ -323,7 +323,7 @@ public open class Curve3D : Resource() { */ public final fun getBakedTilts(): PackedFloat32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBakedTiltsPtr, PACKED_FLOAT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getBakedTiltsPtr, PACKED_FLOAT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_FLOAT_32_ARRAY) as PackedFloat32Array) } @@ -333,7 +333,7 @@ public open class Curve3D : Resource() { */ public final fun getBakedUpVectors(): PackedVector3Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBakedUpVectorsPtr, PACKED_VECTOR3_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getBakedUpVectorsPtr, PACKED_VECTOR3_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR3_ARRAY) as PackedVector3Array) } @@ -343,7 +343,7 @@ public open class Curve3D : Resource() { */ public final fun getClosestPoint(toPoint: Vector3): Vector3 { TransferContext.writeArguments(VECTOR3 to toPoint) - TransferContext.callMethod(rawPtr, MethodBindings.getClosestPointPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getClosestPointPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -354,7 +354,7 @@ public open class Curve3D : Resource() { */ public final fun getClosestOffset(toPoint: Vector3): Float { TransferContext.writeArguments(VECTOR3 to toPoint) - TransferContext.callMethod(rawPtr, MethodBindings.getClosestOffsetPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getClosestOffsetPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -373,7 +373,7 @@ public open class Curve3D : Resource() { public final fun tessellate(maxStages: Int = 5, toleranceDegrees: Float = 4.0f): PackedVector3Array { TransferContext.writeArguments(LONG to maxStages.toLong(), DOUBLE to toleranceDegrees.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.tessellatePtr, PACKED_VECTOR3_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.tessellatePtr, PACKED_VECTOR3_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR3_ARRAY) as PackedVector3Array) } @@ -389,7 +389,7 @@ public open class Curve3D : Resource() { public final fun tessellateEvenLength(maxStages: Int = 5, toleranceLength: Float = 0.2f): PackedVector3Array { TransferContext.writeArguments(LONG to maxStages.toLong(), DOUBLE to toleranceLength.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.tessellateEvenLengthPtr, PACKED_VECTOR3_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.tessellateEvenLengthPtr, PACKED_VECTOR3_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR3_ARRAY) as PackedVector3Array) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CurveTexture.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CurveTexture.kt index b4904f48bb..e46b2c161f 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CurveTexture.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CurveTexture.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -69,28 +69,28 @@ public open class CurveTexture : Texture2D() { public final fun setWidth(width: Int): Unit { TransferContext.writeArguments(LONG to width.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setWidthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setWidthPtr, NIL) } public final fun setCurve(curve: Curve?): Unit { TransferContext.writeArguments(OBJECT to curve) - TransferContext.callMethod(rawPtr, MethodBindings.setCurvePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCurvePtr, NIL) } public final fun getCurve(): Curve? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCurvePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getCurvePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Curve?) } public final fun setTextureMode(textureMode: TextureMode): Unit { TransferContext.writeArguments(LONG to textureMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureModePtr, NIL) } public final fun getTextureMode(): TextureMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextureModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTextureModePtr, LONG) return CurveTexture.TextureMode.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CurveXYZTexture.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CurveXYZTexture.kt index 5992104c0f..7cf9bb041e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CurveXYZTexture.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CurveXYZTexture.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -79,39 +79,39 @@ public open class CurveXYZTexture : Texture2D() { public final fun setWidth(width: Int): Unit { TransferContext.writeArguments(LONG to width.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setWidthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setWidthPtr, NIL) } public final fun setCurveX(curve: Curve?): Unit { TransferContext.writeArguments(OBJECT to curve) - TransferContext.callMethod(rawPtr, MethodBindings.setCurveXPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCurveXPtr, NIL) } public final fun getCurveX(): Curve? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCurveXPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getCurveXPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Curve?) } public final fun setCurveY(curve: Curve?): Unit { TransferContext.writeArguments(OBJECT to curve) - TransferContext.callMethod(rawPtr, MethodBindings.setCurveYPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCurveYPtr, NIL) } public final fun getCurveY(): Curve? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCurveYPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getCurveYPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Curve?) } public final fun setCurveZ(curve: Curve?): Unit { TransferContext.writeArguments(OBJECT to curve) - TransferContext.callMethod(rawPtr, MethodBindings.setCurveZPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCurveZPtr, NIL) } public final fun getCurveZ(): Curve? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCurveZPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getCurveZPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Curve?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CylinderMesh.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CylinderMesh.kt index 6623bf00cc..9f5202d6e5 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CylinderMesh.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CylinderMesh.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -124,78 +124,78 @@ public open class CylinderMesh : PrimitiveMesh() { public final fun setTopRadius(radius: Float): Unit { TransferContext.writeArguments(DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTopRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTopRadiusPtr, NIL) } public final fun getTopRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTopRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTopRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setBottomRadius(radius: Float): Unit { TransferContext.writeArguments(DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setBottomRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBottomRadiusPtr, NIL) } public final fun getBottomRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBottomRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getBottomRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setHeight(height: Float): Unit { TransferContext.writeArguments(DOUBLE to height.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setHeightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHeightPtr, NIL) } public final fun getHeight(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHeightPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getHeightPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setRadialSegments(segments: Int): Unit { TransferContext.writeArguments(LONG to segments.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setRadialSegmentsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRadialSegmentsPtr, NIL) } public final fun getRadialSegments(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRadialSegmentsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getRadialSegmentsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setRings(rings: Int): Unit { TransferContext.writeArguments(LONG to rings.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setRingsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRingsPtr, NIL) } public final fun getRings(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRingsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getRingsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setCapTop(capTop: Boolean): Unit { TransferContext.writeArguments(BOOL to capTop) - TransferContext.callMethod(rawPtr, MethodBindings.setCapTopPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCapTopPtr, NIL) } public final fun isCapTop(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCapTopPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCapTopPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCapBottom(capBottom: Boolean): Unit { TransferContext.writeArguments(BOOL to capBottom) - TransferContext.callMethod(rawPtr, MethodBindings.setCapBottomPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCapBottomPtr, NIL) } public final fun isCapBottom(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCapBottomPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCapBottomPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/CylinderShape3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/CylinderShape3D.kt index 05a36d86f4..2b82ecdb64 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/CylinderShape3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/CylinderShape3D.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -57,23 +57,23 @@ public open class CylinderShape3D : Shape3D() { public final fun setRadius(radius: Float): Unit { TransferContext.writeArguments(DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRadiusPtr, NIL) } public final fun getRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setHeight(height: Float): Unit { TransferContext.writeArguments(DOUBLE to height.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setHeightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHeightPtr, NIL) } public final fun getHeight(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHeightPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getHeightPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/DTLSServer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/DTLSServer.kt index cedc5e9b72..a506a20111 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/DTLSServer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/DTLSServer.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -182,7 +182,7 @@ public open class DTLSServer : RefCounted() { */ public final fun setup(serverOptions: TLSOptions?): Error { TransferContext.writeArguments(OBJECT to serverOptions) - TransferContext.callMethod(rawPtr, MethodBindings.setupPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.setupPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -195,7 +195,7 @@ public open class DTLSServer : RefCounted() { */ public final fun takeConnection(udpPeer: PacketPeerUDP?): PacketPeerDTLS? { TransferContext.writeArguments(OBJECT to udpPeer) - TransferContext.callMethod(rawPtr, MethodBindings.takeConnectionPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.takeConnectionPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as PacketPeerDTLS?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/DampedSpringJoint2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/DampedSpringJoint2D.kt index 17a1a12d34..e50d3c884a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/DampedSpringJoint2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/DampedSpringJoint2D.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -80,45 +80,45 @@ public open class DampedSpringJoint2D : Joint2D() { public final fun setLength(length: Float): Unit { TransferContext.writeArguments(DOUBLE to length.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setLengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLengthPtr, NIL) } public final fun getLength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setRestLength(restLength: Float): Unit { TransferContext.writeArguments(DOUBLE to restLength.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRestLengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRestLengthPtr, NIL) } public final fun getRestLength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRestLengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRestLengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setStiffness(stiffness: Float): Unit { TransferContext.writeArguments(DOUBLE to stiffness.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setStiffnessPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStiffnessPtr, NIL) } public final fun getStiffness(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStiffnessPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getStiffnessPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDamping(damping: Float): Unit { TransferContext.writeArguments(DOUBLE to damping.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDampingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDampingPtr, NIL) } public final fun getDamping(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDampingPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDampingPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Decal.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Decal.kt index 5ecb8dca99..1922347742 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Decal.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Decal.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -20,7 +21,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -341,12 +341,12 @@ public open class Decal : VisualInstance3D() { public final fun setSize(size: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to size) - TransferContext.callMethod(rawPtr, MethodBindings.setSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSizePtr, NIL) } public final fun getSize(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSizePtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getSizePtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -373,7 +373,7 @@ public open class Decal : VisualInstance3D() { */ public final fun setTexture(type: DecalTexture, texture: Texture2D?): Unit { TransferContext.writeArguments(LONG to type.id, OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTexturePtr, NIL) } /** @@ -399,117 +399,117 @@ public open class Decal : VisualInstance3D() { */ public final fun getTexture(type: DecalTexture): Texture2D? { TransferContext.writeArguments(LONG to type.id) - TransferContext.callMethod(rawPtr, MethodBindings.getTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } public final fun setEmissionEnergy(energy: Float): Unit { TransferContext.writeArguments(DOUBLE to energy.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionEnergyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionEnergyPtr, NIL) } public final fun getEmissionEnergy(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmissionEnergyPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getEmissionEnergyPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAlbedoMix(energy: Float): Unit { TransferContext.writeArguments(DOUBLE to energy.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAlbedoMixPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAlbedoMixPtr, NIL) } public final fun getAlbedoMix(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAlbedoMixPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAlbedoMixPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setModulate(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setModulatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setModulatePtr, NIL) } public final fun getModulate(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getModulatePtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getModulatePtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setUpperFade(fade: Float): Unit { TransferContext.writeArguments(DOUBLE to fade.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setUpperFadePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUpperFadePtr, NIL) } public final fun getUpperFade(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUpperFadePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getUpperFadePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setLowerFade(fade: Float): Unit { TransferContext.writeArguments(DOUBLE to fade.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setLowerFadePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLowerFadePtr, NIL) } public final fun getLowerFade(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLowerFadePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLowerFadePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setNormalFade(fade: Float): Unit { TransferContext.writeArguments(DOUBLE to fade.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setNormalFadePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNormalFadePtr, NIL) } public final fun getNormalFade(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNormalFadePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getNormalFadePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setEnableDistanceFade(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setEnableDistanceFadePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnableDistanceFadePtr, NIL) } public final fun isDistanceFadeEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDistanceFadeEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDistanceFadeEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDistanceFadeBegin(distance: Float): Unit { TransferContext.writeArguments(DOUBLE to distance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDistanceFadeBeginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDistanceFadeBeginPtr, NIL) } public final fun getDistanceFadeBegin(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDistanceFadeBeginPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDistanceFadeBeginPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDistanceFadeLength(distance: Float): Unit { TransferContext.writeArguments(DOUBLE to distance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDistanceFadeLengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDistanceFadeLengthPtr, NIL) } public final fun getDistanceFadeLength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDistanceFadeLengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDistanceFadeLengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setCullMask(mask: Long): Unit { TransferContext.writeArguments(LONG to mask) - TransferContext.callMethod(rawPtr, MethodBindings.setCullMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCullMaskPtr, NIL) } public final fun getCullMask(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCullMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCullMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/DirAccess.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/DirAccess.kt index 74e70578b6..af235a3b94 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/DirAccess.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/DirAccess.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedStringArray import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -16,7 +17,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -130,7 +130,7 @@ public open class DirAccess internal constructor() : RefCounted() { */ public final fun listDirBegin(): Error { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.listDirBeginPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.listDirBeginPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -142,7 +142,7 @@ public open class DirAccess internal constructor() : RefCounted() { */ public final fun getNext(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNextPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getNextPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -152,7 +152,7 @@ public open class DirAccess internal constructor() : RefCounted() { */ public final fun currentIsDir(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.currentIsDirPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.currentIsDirPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -162,7 +162,7 @@ public open class DirAccess internal constructor() : RefCounted() { */ public final fun listDirEnd(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.listDirEndPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.listDirEndPtr, NIL) } /** @@ -178,7 +178,7 @@ public open class DirAccess internal constructor() : RefCounted() { */ public final fun getFiles(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFilesPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getFilesPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -189,7 +189,7 @@ public open class DirAccess internal constructor() : RefCounted() { */ public final fun getDirectories(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDirectoriesPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getDirectoriesPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -199,7 +199,7 @@ public open class DirAccess internal constructor() : RefCounted() { */ public final fun getCurrentDrive(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCurrentDrivePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCurrentDrivePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -214,7 +214,7 @@ public open class DirAccess internal constructor() : RefCounted() { */ public final fun changeDir(toDir: String): Error { TransferContext.writeArguments(STRING to toDir) - TransferContext.callMethod(rawPtr, MethodBindings.changeDirPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.changeDirPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -225,7 +225,7 @@ public open class DirAccess internal constructor() : RefCounted() { @JvmOverloads public final fun getCurrentDir(includeDrive: Boolean = true): String { TransferContext.writeArguments(BOOL to includeDrive) - TransferContext.callMethod(rawPtr, MethodBindings.getCurrentDirPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getCurrentDirPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -237,7 +237,7 @@ public open class DirAccess internal constructor() : RefCounted() { */ public final fun makeDir(path: String): Error { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.makeDirPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.makeDirPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -248,7 +248,7 @@ public open class DirAccess internal constructor() : RefCounted() { */ public final fun makeDirRecursive(path: String): Error { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.makeDirRecursivePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.makeDirRecursivePtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -259,7 +259,7 @@ public open class DirAccess internal constructor() : RefCounted() { */ public final fun fileExists(path: String): Boolean { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.fileExistsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.fileExistsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -269,7 +269,7 @@ public open class DirAccess internal constructor() : RefCounted() { */ public final fun dirExists(path: String): Boolean { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.dirExistsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.dirExistsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -279,7 +279,7 @@ public open class DirAccess internal constructor() : RefCounted() { */ public final fun getSpaceLeft(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSpaceLeftPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSpaceLeftPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -298,7 +298,7 @@ public open class DirAccess internal constructor() : RefCounted() { chmodFlags: Int = -1, ): Error { TransferContext.writeArguments(STRING to from, STRING to to, LONG to chmodFlags.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.copyPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.copyPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -310,7 +310,7 @@ public open class DirAccess internal constructor() : RefCounted() { */ public final fun rename(from: String, to: String): Error { TransferContext.writeArguments(STRING to from, STRING to to) - TransferContext.callMethod(rawPtr, MethodBindings.renamePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.renamePtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -323,7 +323,7 @@ public open class DirAccess internal constructor() : RefCounted() { */ public final fun remove(path: String): Error { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.removePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.removePtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -334,7 +334,7 @@ public open class DirAccess internal constructor() : RefCounted() { */ public final fun isLink(path: String): Boolean { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.isLinkPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isLinkPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -344,7 +344,7 @@ public open class DirAccess internal constructor() : RefCounted() { */ public final fun readLink(path: String): String { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.readLinkPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.readLinkPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -356,29 +356,29 @@ public open class DirAccess internal constructor() : RefCounted() { */ public final fun createLink(source: String, target: String): Error { TransferContext.writeArguments(STRING to source, STRING to target) - TransferContext.callMethod(rawPtr, MethodBindings.createLinkPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.createLinkPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setIncludeNavigational(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setIncludeNavigationalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIncludeNavigationalPtr, NIL) } public final fun getIncludeNavigational(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getIncludeNavigationalPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getIncludeNavigationalPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setIncludeHidden(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setIncludeHiddenPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIncludeHiddenPtr, NIL) } public final fun getIncludeHidden(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getIncludeHiddenPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getIncludeHiddenPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -389,7 +389,7 @@ public open class DirAccess internal constructor() : RefCounted() { */ public final fun isCaseSensitive(path: String): Boolean { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.isCaseSensitivePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCaseSensitivePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/DirectionalLight2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/DirectionalLight2D.kt index 7789533068..75197eb949 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/DirectionalLight2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/DirectionalLight2D.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -61,12 +61,12 @@ public open class DirectionalLight2D : Light2D() { public final fun setMaxDistance(pixels: Float): Unit { TransferContext.writeArguments(DOUBLE to pixels.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxDistancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxDistancePtr, NIL) } public final fun getMaxDistance(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxDistancePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMaxDistancePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/DirectionalLight3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/DirectionalLight3D.kt index afd050ba29..dac7b5f71e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/DirectionalLight3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/DirectionalLight3D.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -70,34 +70,34 @@ public open class DirectionalLight3D : Light3D() { public final fun setShadowMode(mode: ShadowMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setShadowModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShadowModePtr, NIL) } public final fun getShadowMode(): ShadowMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getShadowModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getShadowModePtr, LONG) return DirectionalLight3D.ShadowMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setBlendSplits(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setBlendSplitsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBlendSplitsPtr, NIL) } public final fun isBlendSplitsEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isBlendSplitsEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isBlendSplitsEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSkyMode(mode: SkyMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setSkyModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSkyModePtr, NIL) } public final fun getSkyMode(): SkyMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSkyModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSkyModePtr, LONG) return DirectionalLight3D.SkyMode.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/DisplayServer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/DisplayServer.kt index 0df2aba58f..c965bf1efd 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/DisplayServer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/DisplayServer.kt @@ -8,6 +8,7 @@ package godot import godot.MouseButtonMaskValue import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.Color import godot.core.Dictionary @@ -43,7 +44,6 @@ import godot.core.Vector2 import godot.core.Vector2i import godot.core.Vector3i import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -119,7 +119,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun hasFeature(feature: Feature): Boolean { TransferContext.writeArguments(LONG to feature.id) - TransferContext.callMethod(rawPtr, MethodBindings.hasFeaturePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasFeaturePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -134,7 +134,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun getName(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -151,7 +151,7 @@ public object DisplayServer : Object() { public final fun helpSetSearchCallbacks(searchCallback: Callable, actionCallback: Callable): Unit { TransferContext.writeArguments(CALLABLE to searchCallback, CALLABLE to actionCallback) - TransferContext.callMethod(rawPtr, MethodBindings.helpSetSearchCallbacksPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.helpSetSearchCallbacksPtr, NIL) } /** @@ -165,7 +165,7 @@ public object DisplayServer : Object() { closeCallback: Callable, ): Unit { TransferContext.writeArguments(STRING to menuRoot, CALLABLE to openCallback, CALLABLE to closeCallback) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuSetPopupCallbacksPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.globalMenuSetPopupCallbacksPtr, NIL) } /** @@ -191,7 +191,7 @@ public object DisplayServer : Object() { index: Int = -1, ): Int { TransferContext.writeArguments(STRING to menuRoot, STRING to label, STRING to submenu, LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuAddSubmenuItemPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.globalMenuAddSubmenuItemPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -226,7 +226,7 @@ public object DisplayServer : Object() { index: Int = -1, ): Int { TransferContext.writeArguments(STRING to menuRoot, STRING to label, CALLABLE to callback, CALLABLE to keyCallback, ANY to tag, LONG to accelerator.id, LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuAddItemPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.globalMenuAddItemPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -261,7 +261,7 @@ public object DisplayServer : Object() { index: Int = -1, ): Int { TransferContext.writeArguments(STRING to menuRoot, STRING to label, CALLABLE to callback, CALLABLE to keyCallback, ANY to tag, LONG to accelerator.id, LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuAddCheckItemPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.globalMenuAddCheckItemPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -297,7 +297,7 @@ public object DisplayServer : Object() { index: Int = -1, ): Int { TransferContext.writeArguments(STRING to menuRoot, OBJECT to icon, STRING to label, CALLABLE to callback, CALLABLE to keyCallback, ANY to tag, LONG to accelerator.id, LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuAddIconItemPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.globalMenuAddIconItemPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -334,7 +334,7 @@ public object DisplayServer : Object() { index: Int = -1, ): Int { TransferContext.writeArguments(STRING to menuRoot, OBJECT to icon, STRING to label, CALLABLE to callback, CALLABLE to keyCallback, ANY to tag, LONG to accelerator.id, LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuAddIconCheckItemPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.globalMenuAddIconCheckItemPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -372,7 +372,7 @@ public object DisplayServer : Object() { index: Int = -1, ): Int { TransferContext.writeArguments(STRING to menuRoot, STRING to label, CALLABLE to callback, CALLABLE to keyCallback, ANY to tag, LONG to accelerator.id, LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuAddRadioCheckItemPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.globalMenuAddRadioCheckItemPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -412,7 +412,7 @@ public object DisplayServer : Object() { index: Int = -1, ): Int { TransferContext.writeArguments(STRING to menuRoot, OBJECT to icon, STRING to label, CALLABLE to callback, CALLABLE to keyCallback, ANY to tag, LONG to accelerator.id, LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuAddIconRadioCheckItemPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.globalMenuAddIconRadioCheckItemPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -454,7 +454,7 @@ public object DisplayServer : Object() { index: Int = -1, ): Int { TransferContext.writeArguments(STRING to menuRoot, STRING to label, LONG to maxStates.toLong(), LONG to defaultState.toLong(), CALLABLE to callback, CALLABLE to keyCallback, ANY to tag, LONG to accelerator.id, LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuAddMultistateItemPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.globalMenuAddMultistateItemPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -476,7 +476,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun globalMenuAddSeparator(menuRoot: String, index: Int = -1): Int { TransferContext.writeArguments(STRING to menuRoot, LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuAddSeparatorPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.globalMenuAddSeparatorPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -488,7 +488,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun globalMenuGetItemIndexFromText(menuRoot: String, text: String): Int { TransferContext.writeArguments(STRING to menuRoot, STRING to text) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuGetItemIndexFromTextPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.globalMenuGetItemIndexFromTextPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -500,7 +500,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun globalMenuGetItemIndexFromTag(menuRoot: String, tag: Any?): Int { TransferContext.writeArguments(STRING to menuRoot, ANY to tag) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuGetItemIndexFromTagPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.globalMenuGetItemIndexFromTagPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -511,7 +511,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun globalMenuIsItemChecked(menuRoot: String, idx: Int): Boolean { TransferContext.writeArguments(STRING to menuRoot, LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuIsItemCheckedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.globalMenuIsItemCheckedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -523,7 +523,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun globalMenuIsItemCheckable(menuRoot: String, idx: Int): Boolean { TransferContext.writeArguments(STRING to menuRoot, LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuIsItemCheckablePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.globalMenuIsItemCheckablePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -536,7 +536,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun globalMenuIsItemRadioCheckable(menuRoot: String, idx: Int): Boolean { TransferContext.writeArguments(STRING to menuRoot, LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuIsItemRadioCheckablePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.globalMenuIsItemRadioCheckablePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -547,7 +547,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun globalMenuGetItemCallback(menuRoot: String, idx: Int): Callable { TransferContext.writeArguments(STRING to menuRoot, LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuGetItemCallbackPtr, CALLABLE) + TransferContext.callMethod(ptr, MethodBindings.globalMenuGetItemCallbackPtr, CALLABLE) return (TransferContext.readReturnValue(CALLABLE) as Callable) } @@ -558,7 +558,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun globalMenuGetItemKeyCallback(menuRoot: String, idx: Int): Callable { TransferContext.writeArguments(STRING to menuRoot, LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuGetItemKeyCallbackPtr, CALLABLE) + TransferContext.callMethod(ptr, MethodBindings.globalMenuGetItemKeyCallbackPtr, CALLABLE) return (TransferContext.readReturnValue(CALLABLE) as Callable) } @@ -570,7 +570,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun globalMenuGetItemTag(menuRoot: String, idx: Int): Any? { TransferContext.writeArguments(STRING to menuRoot, LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuGetItemTagPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.globalMenuGetItemTagPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -581,7 +581,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun globalMenuGetItemText(menuRoot: String, idx: Int): String { TransferContext.writeArguments(STRING to menuRoot, LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuGetItemTextPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.globalMenuGetItemTextPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -593,7 +593,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun globalMenuGetItemSubmenu(menuRoot: String, idx: Int): String { TransferContext.writeArguments(STRING to menuRoot, LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuGetItemSubmenuPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.globalMenuGetItemSubmenuPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -605,7 +605,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun globalMenuGetItemAccelerator(menuRoot: String, idx: Int): Key { TransferContext.writeArguments(STRING to menuRoot, LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuGetItemAcceleratorPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.globalMenuGetItemAcceleratorPtr, LONG) return Key.from(TransferContext.readReturnValue(LONG) as Long) } @@ -618,7 +618,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun globalMenuIsItemDisabled(menuRoot: String, idx: Int): Boolean { TransferContext.writeArguments(STRING to menuRoot, LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuIsItemDisabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.globalMenuIsItemDisabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -630,7 +630,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun globalMenuIsItemHidden(menuRoot: String, idx: Int): Boolean { TransferContext.writeArguments(STRING to menuRoot, LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuIsItemHiddenPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.globalMenuIsItemHiddenPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -641,7 +641,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun globalMenuGetItemTooltip(menuRoot: String, idx: Int): String { TransferContext.writeArguments(STRING to menuRoot, LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuGetItemTooltipPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.globalMenuGetItemTooltipPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -652,7 +652,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun globalMenuGetItemState(menuRoot: String, idx: Int): Int { TransferContext.writeArguments(STRING to menuRoot, LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuGetItemStatePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.globalMenuGetItemStatePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -663,7 +663,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun globalMenuGetItemMaxStates(menuRoot: String, idx: Int): Int { TransferContext.writeArguments(STRING to menuRoot, LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuGetItemMaxStatesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.globalMenuGetItemMaxStatesPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -674,7 +674,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun globalMenuGetItemIcon(menuRoot: String, idx: Int): Texture2D? { TransferContext.writeArguments(STRING to menuRoot, LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuGetItemIconPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.globalMenuGetItemIconPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } @@ -685,7 +685,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun globalMenuGetItemIndentationLevel(menuRoot: String, idx: Int): Int { TransferContext.writeArguments(STRING to menuRoot, LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuGetItemIndentationLevelPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.globalMenuGetItemIndentationLevelPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -700,7 +700,7 @@ public object DisplayServer : Object() { checked: Boolean, ): Unit { TransferContext.writeArguments(STRING to menuRoot, LONG to idx.toLong(), BOOL to checked) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuSetItemCheckedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.globalMenuSetItemCheckedPtr, NIL) } /** @@ -715,7 +715,7 @@ public object DisplayServer : Object() { checkable: Boolean, ): Unit { TransferContext.writeArguments(STRING to menuRoot, LONG to idx.toLong(), BOOL to checkable) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuSetItemCheckablePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.globalMenuSetItemCheckablePtr, NIL) } /** @@ -732,7 +732,7 @@ public object DisplayServer : Object() { checkable: Boolean, ): Unit { TransferContext.writeArguments(STRING to menuRoot, LONG to idx.toLong(), BOOL to checkable) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuSetItemRadioCheckablePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.globalMenuSetItemRadioCheckablePtr, NIL) } /** @@ -749,7 +749,7 @@ public object DisplayServer : Object() { callback: Callable, ): Unit { TransferContext.writeArguments(STRING to menuRoot, LONG to idx.toLong(), CALLABLE to callback) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuSetItemCallbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.globalMenuSetItemCallbackPtr, NIL) } /** @@ -766,7 +766,7 @@ public object DisplayServer : Object() { callback: Callable, ): Unit { TransferContext.writeArguments(STRING to menuRoot, LONG to idx.toLong(), CALLABLE to callback) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuSetItemHoverCallbacksPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.globalMenuSetItemHoverCallbacksPtr, NIL) } /** @@ -784,7 +784,7 @@ public object DisplayServer : Object() { keyCallback: Callable, ): Unit { TransferContext.writeArguments(STRING to menuRoot, LONG to idx.toLong(), CALLABLE to keyCallback) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuSetItemKeyCallbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.globalMenuSetItemKeyCallbackPtr, NIL) } /** @@ -799,7 +799,7 @@ public object DisplayServer : Object() { tag: Any?, ): Unit { TransferContext.writeArguments(STRING to menuRoot, LONG to idx.toLong(), ANY to tag) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuSetItemTagPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.globalMenuSetItemTagPtr, NIL) } /** @@ -813,7 +813,7 @@ public object DisplayServer : Object() { text: String, ): Unit { TransferContext.writeArguments(STRING to menuRoot, LONG to idx.toLong(), STRING to text) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuSetItemTextPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.globalMenuSetItemTextPtr, NIL) } /** @@ -828,7 +828,7 @@ public object DisplayServer : Object() { submenu: String, ): Unit { TransferContext.writeArguments(STRING to menuRoot, LONG to idx.toLong(), STRING to submenu) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuSetItemSubmenuPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.globalMenuSetItemSubmenuPtr, NIL) } /** @@ -844,7 +844,7 @@ public object DisplayServer : Object() { keycode: Key, ): Unit { TransferContext.writeArguments(STRING to menuRoot, LONG to idx.toLong(), LONG to keycode.id) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuSetItemAcceleratorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.globalMenuSetItemAcceleratorPtr, NIL) } /** @@ -859,7 +859,7 @@ public object DisplayServer : Object() { disabled: Boolean, ): Unit { TransferContext.writeArguments(STRING to menuRoot, LONG to idx.toLong(), BOOL to disabled) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuSetItemDisabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.globalMenuSetItemDisabledPtr, NIL) } /** @@ -874,7 +874,7 @@ public object DisplayServer : Object() { hidden: Boolean, ): Unit { TransferContext.writeArguments(STRING to menuRoot, LONG to idx.toLong(), BOOL to hidden) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuSetItemHiddenPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.globalMenuSetItemHiddenPtr, NIL) } /** @@ -888,7 +888,7 @@ public object DisplayServer : Object() { tooltip: String, ): Unit { TransferContext.writeArguments(STRING to menuRoot, LONG to idx.toLong(), STRING to tooltip) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuSetItemTooltipPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.globalMenuSetItemTooltipPtr, NIL) } /** @@ -902,7 +902,7 @@ public object DisplayServer : Object() { state: Int, ): Unit { TransferContext.writeArguments(STRING to menuRoot, LONG to idx.toLong(), LONG to state.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuSetItemStatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.globalMenuSetItemStatePtr, NIL) } /** @@ -916,7 +916,7 @@ public object DisplayServer : Object() { maxStates: Int, ): Unit { TransferContext.writeArguments(STRING to menuRoot, LONG to idx.toLong(), LONG to maxStates.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuSetItemMaxStatesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.globalMenuSetItemMaxStatesPtr, NIL) } /** @@ -931,7 +931,7 @@ public object DisplayServer : Object() { icon: Texture2D?, ): Unit { TransferContext.writeArguments(STRING to menuRoot, LONG to idx.toLong(), OBJECT to icon) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuSetItemIconPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.globalMenuSetItemIconPtr, NIL) } /** @@ -945,7 +945,7 @@ public object DisplayServer : Object() { level: Int, ): Unit { TransferContext.writeArguments(STRING to menuRoot, LONG to idx.toLong(), LONG to level.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuSetItemIndentationLevelPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.globalMenuSetItemIndentationLevelPtr, NIL) } /** @@ -955,7 +955,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun globalMenuGetItemCount(menuRoot: String): Int { TransferContext.writeArguments(STRING to menuRoot) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuGetItemCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.globalMenuGetItemCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -967,7 +967,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun globalMenuRemoveItem(menuRoot: String, idx: Int): Unit { TransferContext.writeArguments(STRING to menuRoot, LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuRemoveItemPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.globalMenuRemoveItemPtr, NIL) } /** @@ -985,7 +985,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun globalMenuClear(menuRoot: String): Unit { TransferContext.writeArguments(STRING to menuRoot) - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuClearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.globalMenuClearPtr, NIL) } /** @@ -995,7 +995,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun globalMenuGetSystemMenuRoots(): Dictionary { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.globalMenuGetSystemMenuRootsPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.globalMenuGetSystemMenuRootsPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -1008,7 +1008,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun ttsIsSpeaking(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.ttsIsSpeakingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.ttsIsSpeakingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1021,7 +1021,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun ttsIsPaused(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.ttsIsPausedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.ttsIsPausedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1044,7 +1044,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun ttsGetVoices(): VariantArray> { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.ttsGetVoicesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.ttsGetVoicesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray>) } @@ -1057,8 +1057,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun ttsGetVoicesForLanguage(language: String): PackedStringArray { TransferContext.writeArguments(STRING to language) - TransferContext.callMethod(rawPtr, MethodBindings.ttsGetVoicesForLanguagePtr, - PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.ttsGetVoicesForLanguagePtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -1093,7 +1092,7 @@ public object DisplayServer : Object() { interrupt: Boolean = false, ): Unit { TransferContext.writeArguments(STRING to text, STRING to voice, LONG to volume.toLong(), DOUBLE to pitch.toDouble(), DOUBLE to rate.toDouble(), LONG to utteranceId.toLong(), BOOL to interrupt) - TransferContext.callMethod(rawPtr, MethodBindings.ttsSpeakPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.ttsSpeakPtr, NIL) } /** @@ -1105,7 +1104,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun ttsPause(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.ttsPausePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.ttsPausePtr, NIL) } /** @@ -1117,7 +1116,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun ttsResume(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.ttsResumePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.ttsResumePtr, NIL) } /** @@ -1129,7 +1128,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun ttsStop(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.ttsStopPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.ttsStopPtr, NIL) } /** @@ -1147,7 +1146,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun ttsSetUtteranceCallback(event: TTSUtteranceEvent, callable: Callable): Unit { TransferContext.writeArguments(LONG to event.id, CALLABLE to callable) - TransferContext.callMethod(rawPtr, MethodBindings.ttsSetUtteranceCallbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.ttsSetUtteranceCallbackPtr, NIL) } /** @@ -1157,7 +1156,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun isDarkModeSupported(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDarkModeSupportedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDarkModeSupportedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1168,7 +1167,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun isDarkMode(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDarkModePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDarkModePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1179,7 +1178,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun getAccentColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAccentColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getAccentColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } @@ -1191,7 +1190,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun getBaseColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBaseColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getBaseColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } @@ -1203,7 +1202,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun setSystemThemeChangeCallback(callable: Callable): Unit { TransferContext.writeArguments(CALLABLE to callable) - TransferContext.callMethod(rawPtr, MethodBindings.setSystemThemeChangeCallbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSystemThemeChangeCallbackPtr, NIL) } /** @@ -1212,7 +1211,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun mouseSetMode(mouseMode: MouseMode): Unit { TransferContext.writeArguments(LONG to mouseMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.mouseSetModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.mouseSetModePtr, NIL) } /** @@ -1221,7 +1220,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun mouseGetMode(): MouseMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.mouseGetModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.mouseGetModePtr, LONG) return DisplayServer.MouseMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -1234,7 +1233,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun warpMouse(position: Vector2i): Unit { TransferContext.writeArguments(VECTOR2I to position) - TransferContext.callMethod(rawPtr, MethodBindings.warpMousePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.warpMousePtr, NIL) } /** @@ -1243,7 +1242,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun mouseGetPosition(): Vector2i { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.mouseGetPositionPtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.mouseGetPositionPtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -1255,7 +1254,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun mouseGetButtonState(): MouseButtonMask { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.mouseGetButtonStatePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.mouseGetButtonStatePtr, LONG) return MouseButtonMaskValue(TransferContext.readReturnValue(LONG) as Long) } @@ -1265,7 +1264,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun clipboardSet(clipboard: String): Unit { TransferContext.writeArguments(STRING to clipboard) - TransferContext.callMethod(rawPtr, MethodBindings.clipboardSetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clipboardSetPtr, NIL) } /** @@ -1274,7 +1273,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun clipboardGet(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clipboardGetPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.clipboardGetPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -1286,7 +1285,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun clipboardGetImage(): Image? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clipboardGetImagePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.clipboardGetImagePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Image?) } @@ -1296,7 +1295,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun clipboardHas(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clipboardHasPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.clipboardHasPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1306,7 +1305,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun clipboardHasImage(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clipboardHasImagePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.clipboardHasImagePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1322,7 +1321,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun clipboardSetPrimary(clipboardPrimary: String): Unit { TransferContext.writeArguments(STRING to clipboardPrimary) - TransferContext.callMethod(rawPtr, MethodBindings.clipboardSetPrimaryPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clipboardSetPrimaryPtr, NIL) } /** @@ -1337,7 +1336,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun clipboardGetPrimary(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clipboardGetPrimaryPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.clipboardGetPrimaryPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -1351,7 +1350,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun getDisplayCutouts(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDisplayCutoutsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getDisplayCutoutsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -1362,7 +1361,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun getDisplaySafeArea(): Rect2i { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDisplaySafeAreaPtr, RECT2I) + TransferContext.callMethod(ptr, MethodBindings.getDisplaySafeAreaPtr, RECT2I) return (TransferContext.readReturnValue(RECT2I) as Rect2i) } @@ -1372,7 +1371,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun getScreenCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScreenCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getScreenCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1382,7 +1381,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun getPrimaryScreen(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPrimaryScreenPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPrimaryScreenPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1393,7 +1392,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun getKeyboardFocusScreen(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getKeyboardFocusScreenPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getKeyboardFocusScreenPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1403,7 +1402,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun getScreenFromRect(rect: Rect2): Int { TransferContext.writeArguments(RECT2 to rect) - TransferContext.callMethod(rawPtr, MethodBindings.getScreenFromRectPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getScreenFromRectPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1426,7 +1425,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun screenGetPosition(screen: Int = -1): Vector2i { TransferContext.writeArguments(LONG to screen.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.screenGetPositionPtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.screenGetPositionPtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -1437,7 +1436,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun screenGetSize(screen: Int = -1): Vector2i { TransferContext.writeArguments(LONG to screen.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.screenGetSizePtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.screenGetSizePtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -1449,7 +1448,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun screenGetUsableRect(screen: Int = -1): Rect2i { TransferContext.writeArguments(LONG to screen.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.screenGetUsableRectPtr, RECT2I) + TransferContext.callMethod(ptr, MethodBindings.screenGetUsableRectPtr, RECT2I) return (TransferContext.readReturnValue(RECT2I) as Rect2i) } @@ -1474,7 +1473,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun screenGetDpi(screen: Int = -1): Int { TransferContext.writeArguments(LONG to screen.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.screenGetDpiPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.screenGetDpiPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1491,7 +1490,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun screenGetScale(screen: Int = -1): Float { TransferContext.writeArguments(LONG to screen.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.screenGetScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.screenGetScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1502,7 +1501,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun isTouchscreenAvailable(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isTouchscreenAvailablePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isTouchscreenAvailablePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1515,7 +1514,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun screenGetMaxScale(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.screenGetMaxScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.screenGetMaxScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1536,7 +1535,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun screenGetRefreshRate(screen: Int = -1): Float { TransferContext.writeArguments(LONG to screen.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.screenGetRefreshRatePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.screenGetRefreshRatePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1549,7 +1548,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun screenGetPixel(position: Vector2i): Color { TransferContext.writeArguments(VECTOR2I to position) - TransferContext.callMethod(rawPtr, MethodBindings.screenGetPixelPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.screenGetPixelPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } @@ -1563,7 +1562,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun screenGetImage(screen: Int = -1): Image? { TransferContext.writeArguments(LONG to screen.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.screenGetImagePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.screenGetImagePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Image?) } @@ -1576,7 +1575,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun screenSetOrientation(orientation: ScreenOrientation, screen: Int = -1): Unit { TransferContext.writeArguments(LONG to orientation.id, LONG to screen.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.screenSetOrientationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.screenSetOrientationPtr, NIL) } /** @@ -1587,7 +1586,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun screenGetOrientation(screen: Int = -1): ScreenOrientation { TransferContext.writeArguments(LONG to screen.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.screenGetOrientationPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.screenGetOrientationPtr, LONG) return DisplayServer.ScreenOrientation.from(TransferContext.readReturnValue(LONG) as Long) } @@ -1598,7 +1597,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun screenSetKeepOn(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.screenSetKeepOnPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.screenSetKeepOnPtr, NIL) } /** @@ -1608,7 +1607,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun screenIsKeptOn(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.screenIsKeptOnPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.screenIsKeptOnPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1619,7 +1618,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun getWindowList(): PackedInt32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWindowListPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getWindowListPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } @@ -1640,7 +1639,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun getWindowAtScreenPosition(position: Vector2i): Int { TransferContext.writeArguments(VECTOR2I to position) - TransferContext.callMethod(rawPtr, MethodBindings.getWindowAtScreenPositionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getWindowAtScreenPositionPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1652,7 +1651,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowGetNativeHandle(handleType: HandleType, windowId: Int = 0): Long { TransferContext.writeArguments(LONG to handleType.id, LONG to windowId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowGetNativeHandlePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.windowGetNativeHandlePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -1662,7 +1661,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowGetActivePopup(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.windowGetActivePopupPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.windowGetActivePopupPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1673,7 +1672,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowSetPopupSafeRect(window: Int, rect: Rect2i): Unit { TransferContext.writeArguments(LONG to window.toLong(), RECT2I to rect) - TransferContext.callMethod(rawPtr, MethodBindings.windowSetPopupSafeRectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.windowSetPopupSafeRectPtr, NIL) } /** @@ -1683,7 +1682,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowGetPopupSafeRect(window: Int): Rect2i { TransferContext.writeArguments(LONG to window.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowGetPopupSafeRectPtr, RECT2I) + TransferContext.callMethod(ptr, MethodBindings.windowGetPopupSafeRectPtr, RECT2I) return (TransferContext.readReturnValue(RECT2I) as Rect2i) } @@ -1697,7 +1696,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowSetTitle(title: String, windowId: Int = 0): Unit { TransferContext.writeArguments(STRING to title, LONG to windowId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowSetTitlePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.windowSetTitlePtr, NIL) } /** @@ -1709,7 +1708,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowGetTitleSize(title: String, windowId: Int = 0): Vector2i { TransferContext.writeArguments(STRING to title, LONG to windowId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowGetTitleSizePtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.windowGetTitleSizePtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -1750,7 +1749,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowSetMousePassthrough(region: PackedVector2Array, windowId: Int = 0): Unit { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to region, LONG to windowId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowSetMousePassthroughPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.windowSetMousePassthroughPtr, NIL) } /** @@ -1762,7 +1761,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowGetCurrentScreen(windowId: Int = 0): Int { TransferContext.writeArguments(LONG to windowId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowGetCurrentScreenPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.windowGetCurrentScreenPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1774,7 +1773,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowSetCurrentScreen(screen: Int, windowId: Int = 0): Unit { TransferContext.writeArguments(LONG to screen.toLong(), LONG to windowId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowSetCurrentScreenPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.windowSetCurrentScreenPtr, NIL) } /** @@ -1784,7 +1783,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowGetPosition(windowId: Int = 0): Vector2i { TransferContext.writeArguments(LONG to windowId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowGetPositionPtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.windowGetPositionPtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -1796,7 +1795,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowGetPositionWithDecorations(windowId: Int = 0): Vector2i { TransferContext.writeArguments(LONG to windowId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowGetPositionWithDecorationsPtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.windowGetPositionWithDecorationsPtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -1820,7 +1819,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowSetPosition(position: Vector2i, windowId: Int = 0): Unit { TransferContext.writeArguments(VECTOR2I to position, LONG to windowId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowSetPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.windowSetPositionPtr, NIL) } /** @@ -1832,7 +1831,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowGetSize(windowId: Int = 0): Vector2i { TransferContext.writeArguments(LONG to windowId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowGetSizePtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.windowGetSizePtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -1845,7 +1844,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowSetSize(size: Vector2i, windowId: Int = 0): Unit { TransferContext.writeArguments(VECTOR2I to size, LONG to windowId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowSetSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.windowSetSizePtr, NIL) } /** @@ -1858,7 +1857,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowSetRectChangedCallback(callback: Callable, windowId: Int = 0): Unit { TransferContext.writeArguments(CALLABLE to callback, LONG to windowId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowSetRectChangedCallbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.windowSetRectChangedCallbackPtr, NIL) } /** @@ -1871,7 +1870,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowSetWindowEventCallback(callback: Callable, windowId: Int = 0): Unit { TransferContext.writeArguments(CALLABLE to callback, LONG to windowId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowSetWindowEventCallbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.windowSetWindowEventCallbackPtr, NIL) } /** @@ -1884,7 +1883,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowSetInputEventCallback(callback: Callable, windowId: Int = 0): Unit { TransferContext.writeArguments(CALLABLE to callback, LONG to windowId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowSetInputEventCallbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.windowSetInputEventCallbackPtr, NIL) } /** @@ -1897,7 +1896,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowSetInputTextCallback(callback: Callable, windowId: Int = 0): Unit { TransferContext.writeArguments(CALLABLE to callback, LONG to windowId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowSetInputTextCallbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.windowSetInputTextCallbackPtr, NIL) } /** @@ -1912,7 +1911,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowSetDropFilesCallback(callback: Callable, windowId: Int = 0): Unit { TransferContext.writeArguments(CALLABLE to callback, LONG to windowId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowSetDropFilesCallbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.windowSetDropFilesCallbackPtr, NIL) } /** @@ -1922,7 +1921,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowGetAttachedInstanceId(windowId: Int = 0): Long { TransferContext.writeArguments(LONG to windowId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowGetAttachedInstanceIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.windowGetAttachedInstanceIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -1933,7 +1932,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowGetMaxSize(windowId: Int = 0): Vector2i { TransferContext.writeArguments(LONG to windowId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowGetMaxSizePtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.windowGetMaxSizePtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -1949,7 +1948,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowSetMaxSize(maxSize: Vector2i, windowId: Int = 0): Unit { TransferContext.writeArguments(VECTOR2I to maxSize, LONG to windowId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowSetMaxSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.windowSetMaxSizePtr, NIL) } /** @@ -1959,7 +1958,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowGetMinSize(windowId: Int = 0): Vector2i { TransferContext.writeArguments(LONG to windowId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowGetMinSizePtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.windowGetMinSizePtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -1977,7 +1976,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowSetMinSize(minSize: Vector2i, windowId: Int = 0): Unit { TransferContext.writeArguments(VECTOR2I to minSize, LONG to windowId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowSetMinSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.windowSetMinSizePtr, NIL) } /** @@ -1988,7 +1987,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowGetSizeWithDecorations(windowId: Int = 0): Vector2i { TransferContext.writeArguments(LONG to windowId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowGetSizeWithDecorationsPtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.windowGetSizeWithDecorationsPtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -1999,7 +1998,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowGetMode(windowId: Int = 0): WindowMode { TransferContext.writeArguments(LONG to windowId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowGetModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.windowGetModePtr, LONG) return DisplayServer.WindowMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -2013,7 +2012,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowSetMode(mode: WindowMode, windowId: Int = 0): Unit { TransferContext.writeArguments(LONG to mode.id, LONG to windowId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowSetModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.windowSetModePtr, NIL) } /** @@ -2028,7 +2027,7 @@ public object DisplayServer : Object() { windowId: Int = 0, ): Unit { TransferContext.writeArguments(LONG to flag.id, BOOL to enabled, LONG to windowId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowSetFlagPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.windowSetFlagPtr, NIL) } /** @@ -2038,7 +2037,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowGetFlag(flag: WindowFlags, windowId: Int = 0): Boolean { TransferContext.writeArguments(LONG to flag.id, LONG to windowId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowGetFlagPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.windowGetFlagPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -2051,7 +2050,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowSetWindowButtonsOffset(offset: Vector2i, windowId: Int = 0): Unit { TransferContext.writeArguments(VECTOR2I to offset, LONG to windowId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowSetWindowButtonsOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.windowSetWindowButtonsOffsetPtr, NIL) } /** @@ -2062,7 +2061,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowGetSafeTitleMargins(windowId: Int = 0): Vector3i { TransferContext.writeArguments(LONG to windowId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowGetSafeTitleMarginsPtr, VECTOR3I) + TransferContext.callMethod(ptr, MethodBindings.windowGetSafeTitleMarginsPtr, VECTOR3I) return (TransferContext.readReturnValue(VECTOR3I) as Vector3i) } @@ -2075,7 +2074,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowRequestAttention(windowId: Int = 0): Unit { TransferContext.writeArguments(LONG to windowId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowRequestAttentionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.windowRequestAttentionPtr, NIL) } /** @@ -2086,7 +2085,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowMoveToForeground(windowId: Int = 0): Unit { TransferContext.writeArguments(LONG to windowId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowMoveToForegroundPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.windowMoveToForegroundPtr, NIL) } /** @@ -2096,7 +2095,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowIsFocused(windowId: Int = 0): Boolean { TransferContext.writeArguments(LONG to windowId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowIsFocusedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.windowIsFocusedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -2109,7 +2108,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowCanDraw(windowId: Int = 0): Boolean { TransferContext.writeArguments(LONG to windowId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowCanDrawPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.windowCanDrawPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -2123,7 +2122,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowSetTransient(windowId: Int, parentWindowId: Int): Unit { TransferContext.writeArguments(LONG to windowId.toLong(), LONG to parentWindowId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowSetTransientPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.windowSetTransientPtr, NIL) } /** @@ -2136,7 +2135,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowSetExclusive(windowId: Int, exclusive: Boolean): Unit { TransferContext.writeArguments(LONG to windowId.toLong(), BOOL to exclusive) - TransferContext.callMethod(rawPtr, MethodBindings.windowSetExclusivePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.windowSetExclusivePtr, NIL) } /** @@ -2147,7 +2146,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowSetImeActive(active: Boolean, windowId: Int = 0): Unit { TransferContext.writeArguments(BOOL to active, LONG to windowId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowSetImeActivePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.windowSetImeActivePtr, NIL) } /** @@ -2159,7 +2158,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowSetImePosition(position: Vector2i, windowId: Int = 0): Unit { TransferContext.writeArguments(VECTOR2I to position, LONG to windowId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowSetImePositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.windowSetImePositionPtr, NIL) } /** @@ -2176,7 +2175,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowSetVsyncMode(vsyncMode: VSyncMode, windowId: Int = 0): Unit { TransferContext.writeArguments(LONG to vsyncMode.id, LONG to windowId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowSetVsyncModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.windowSetVsyncModePtr, NIL) } /** @@ -2186,7 +2185,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowGetVsyncMode(windowId: Int = 0): VSyncMode { TransferContext.writeArguments(LONG to windowId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowGetVsyncModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.windowGetVsyncModePtr, LONG) return DisplayServer.VSyncMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -2197,7 +2196,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowIsMaximizeAllowed(windowId: Int = 0): Boolean { TransferContext.writeArguments(LONG to windowId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.windowIsMaximizeAllowedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.windowIsMaximizeAllowedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -2208,7 +2207,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowMaximizeOnTitleDblClick(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.windowMaximizeOnTitleDblClickPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.windowMaximizeOnTitleDblClickPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -2219,7 +2218,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun windowMinimizeOnTitleDblClick(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.windowMinimizeOnTitleDblClickPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.windowMinimizeOnTitleDblClickPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -2232,7 +2231,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun imeGetSelection(): Vector2i { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.imeGetSelectionPtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.imeGetSelectionPtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -2244,7 +2243,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun imeGetText(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.imeGetTextPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.imeGetTextPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -2271,7 +2270,7 @@ public object DisplayServer : Object() { cursorEnd: Int = -1, ): Unit { TransferContext.writeArguments(STRING to existingText, RECT2 to position, LONG to type.id, LONG to maxLength.toLong(), LONG to cursorStart.toLong(), LONG to cursorEnd.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.virtualKeyboardShowPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.virtualKeyboardShowPtr, NIL) } /** @@ -2280,7 +2279,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun virtualKeyboardHide(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.virtualKeyboardHidePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.virtualKeyboardHidePtr, NIL) } /** @@ -2290,7 +2289,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun virtualKeyboardGetHeight(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.virtualKeyboardGetHeightPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.virtualKeyboardGetHeightPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -2301,7 +2300,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun cursorSetShape(shape: CursorShape): Unit { TransferContext.writeArguments(LONG to shape.id) - TransferContext.callMethod(rawPtr, MethodBindings.cursorSetShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.cursorSetShapePtr, NIL) } /** @@ -2310,7 +2309,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun cursorGetShape(): CursorShape { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.cursorGetShapePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.cursorGetShapePtr, LONG) return DisplayServer.CursorShape.from(TransferContext.readReturnValue(LONG) as Long) } @@ -2330,7 +2329,7 @@ public object DisplayServer : Object() { hotspot: Vector2 = Vector2(0, 0), ): Unit { TransferContext.writeArguments(OBJECT to cursor, LONG to shape.id, VECTOR2 to hotspot) - TransferContext.callMethod(rawPtr, MethodBindings.cursorSetCustomImagePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.cursorSetCustomImagePtr, NIL) } /** @@ -2343,7 +2342,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun getSwapCancelOk(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSwapCancelOkPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getSwapCancelOkPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -2355,7 +2354,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun enableForStealingFocus(processId: Long): Unit { TransferContext.writeArguments(LONG to processId) - TransferContext.callMethod(rawPtr, MethodBindings.enableForStealingFocusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.enableForStealingFocusPtr, NIL) } /** @@ -2372,7 +2371,7 @@ public object DisplayServer : Object() { callback: Callable, ): Error { TransferContext.writeArguments(STRING to title, STRING to description, PACKED_STRING_ARRAY to buttons, CALLABLE to callback) - TransferContext.callMethod(rawPtr, MethodBindings.dialogShowPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.dialogShowPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -2390,7 +2389,7 @@ public object DisplayServer : Object() { callback: Callable, ): Error { TransferContext.writeArguments(STRING to title, STRING to description, STRING to existingText, CALLABLE to callback) - TransferContext.callMethod(rawPtr, MethodBindings.dialogInputTextPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.dialogInputTextPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -2421,7 +2420,7 @@ public object DisplayServer : Object() { callback: Callable, ): Error { TransferContext.writeArguments(STRING to title, STRING to currentDirectory, STRING to filename, BOOL to showHidden, LONG to mode.id, PACKED_STRING_ARRAY to filters, CALLABLE to callback) - TransferContext.callMethod(rawPtr, MethodBindings.fileDialogShowPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.fileDialogShowPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -2459,7 +2458,7 @@ public object DisplayServer : Object() { callback: Callable, ): Error { TransferContext.writeArguments(STRING to title, STRING to currentDirectory, STRING to root, STRING to filename, BOOL to showHidden, LONG to mode.id, PACKED_STRING_ARRAY to filters, ARRAY to options, CALLABLE to callback) - TransferContext.callMethod(rawPtr, MethodBindings.fileDialogWithOptionsShowPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.fileDialogWithOptionsShowPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -2470,7 +2469,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun keyboardGetLayoutCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.keyboardGetLayoutCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.keyboardGetLayoutCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -2481,7 +2480,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun keyboardGetCurrentLayout(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.keyboardGetCurrentLayoutPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.keyboardGetCurrentLayoutPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -2492,7 +2491,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun keyboardSetCurrentLayout(index: Int): Unit { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.keyboardSetCurrentLayoutPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.keyboardSetCurrentLayoutPtr, NIL) } /** @@ -2502,7 +2501,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun keyboardGetLayoutLanguage(index: Int): String { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.keyboardGetLayoutLanguagePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.keyboardGetLayoutLanguagePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -2513,7 +2512,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun keyboardGetLayoutName(index: Int): String { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.keyboardGetLayoutNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.keyboardGetLayoutNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -2524,7 +2523,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun keyboardGetKeycodeFromPhysical(keycode: Key): Key { TransferContext.writeArguments(LONG to keycode.id) - TransferContext.callMethod(rawPtr, MethodBindings.keyboardGetKeycodeFromPhysicalPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.keyboardGetKeycodeFromPhysicalPtr, LONG) return Key.from(TransferContext.readReturnValue(LONG) as Long) } @@ -2536,7 +2535,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun keyboardGetLabelFromPhysical(keycode: Key): Key { TransferContext.writeArguments(LONG to keycode.id) - TransferContext.callMethod(rawPtr, MethodBindings.keyboardGetLabelFromPhysicalPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.keyboardGetLabelFromPhysicalPtr, LONG) return Key.from(TransferContext.readReturnValue(LONG) as Long) } @@ -2547,7 +2546,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun processEvents(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.processEventsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.processEventsPtr, NIL) } /** @@ -2557,7 +2556,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun forceProcessAndDropEvents(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.forceProcessAndDropEventsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.forceProcessAndDropEventsPtr, NIL) } /** @@ -2572,7 +2571,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun setNativeIcon(filename: String): Unit { TransferContext.writeArguments(STRING to filename) - TransferContext.callMethod(rawPtr, MethodBindings.setNativeIconPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNativeIconPtr, NIL) } /** @@ -2583,7 +2582,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun setIcon(image: Image?): Unit { TransferContext.writeArguments(OBJECT to image) - TransferContext.callMethod(rawPtr, MethodBindings.setIconPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIconPtr, NIL) } /** @@ -2599,7 +2598,7 @@ public object DisplayServer : Object() { callback: Callable, ): Int { TransferContext.writeArguments(OBJECT to icon, STRING to tooltip, CALLABLE to callback) - TransferContext.callMethod(rawPtr, MethodBindings.createStatusIndicatorPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.createStatusIndicatorPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -2610,7 +2609,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun statusIndicatorSetIcon(id: Int, icon: Texture2D?): Unit { TransferContext.writeArguments(LONG to id.toLong(), OBJECT to icon) - TransferContext.callMethod(rawPtr, MethodBindings.statusIndicatorSetIconPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.statusIndicatorSetIconPtr, NIL) } /** @@ -2620,7 +2619,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun statusIndicatorSetTooltip(id: Int, tooltip: String): Unit { TransferContext.writeArguments(LONG to id.toLong(), STRING to tooltip) - TransferContext.callMethod(rawPtr, MethodBindings.statusIndicatorSetTooltipPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.statusIndicatorSetTooltipPtr, NIL) } /** @@ -2636,7 +2635,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun statusIndicatorSetMenu(id: Int, menuRid: RID): Unit { TransferContext.writeArguments(LONG to id.toLong(), _RID to menuRid) - TransferContext.callMethod(rawPtr, MethodBindings.statusIndicatorSetMenuPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.statusIndicatorSetMenuPtr, NIL) } /** @@ -2648,7 +2647,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun statusIndicatorSetCallback(id: Int, callback: Callable): Unit { TransferContext.writeArguments(LONG to id.toLong(), CALLABLE to callback) - TransferContext.callMethod(rawPtr, MethodBindings.statusIndicatorSetCallbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.statusIndicatorSetCallbackPtr, NIL) } /** @@ -2659,7 +2658,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun statusIndicatorGetRect(id: Int): Rect2 { TransferContext.writeArguments(LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.statusIndicatorGetRectPtr, RECT2) + TransferContext.callMethod(ptr, MethodBindings.statusIndicatorGetRectPtr, RECT2) return (TransferContext.readReturnValue(RECT2) as Rect2) } @@ -2669,7 +2668,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun deleteStatusIndicator(id: Int): Unit { TransferContext.writeArguments(LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.deleteStatusIndicatorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.deleteStatusIndicatorPtr, NIL) } /** @@ -2679,7 +2678,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun tabletGetDriverCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.tabletGetDriverCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.tabletGetDriverCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -2690,7 +2689,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun tabletGetDriverName(idx: Int): String { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.tabletGetDriverNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.tabletGetDriverNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -2701,7 +2700,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun tabletGetCurrentDriver(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.tabletGetCurrentDriverPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.tabletGetCurrentDriverPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -2716,7 +2715,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun tabletSetCurrentDriver(name: String): Unit { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.tabletSetCurrentDriverPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.tabletSetCurrentDriverPtr, NIL) } /** @@ -2727,7 +2726,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun isWindowTransparencyAvailable(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isWindowTransparencyAvailablePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isWindowTransparencyAvailablePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -2740,7 +2739,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun registerAdditionalOutput(`object`: Object?): Unit { TransferContext.writeArguments(OBJECT to `object`) - TransferContext.callMethod(rawPtr, MethodBindings.registerAdditionalOutputPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.registerAdditionalOutputPtr, NIL) } /** @@ -2750,7 +2749,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun unregisterAdditionalOutput(`object`: Object?): Unit { TransferContext.writeArguments(OBJECT to `object`) - TransferContext.callMethod(rawPtr, MethodBindings.unregisterAdditionalOutputPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.unregisterAdditionalOutputPtr, NIL) } /** @@ -2759,7 +2758,7 @@ public object DisplayServer : Object() { @JvmStatic public final fun hasAdditionalOutputs(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasAdditionalOutputsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasAdditionalOutputsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ENetConnection.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ENetConnection.kt index e3e3c88772..30d1eb0899 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ENetConnection.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ENetConnection.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedByteArray import godot.core.TypeManager import godot.core.VariantArray @@ -19,7 +20,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -57,7 +57,7 @@ public open class ENetConnection : RefCounted() { outBandwidth: Int = 0, ): Error { TransferContext.writeArguments(STRING to bindAddress, LONG to bindPort.toLong(), LONG to maxPeers.toLong(), LONG to maxChannels.toLong(), LONG to inBandwidth.toLong(), LONG to outBandwidth.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.createHostBoundPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.createHostBoundPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -78,7 +78,7 @@ public open class ENetConnection : RefCounted() { outBandwidth: Int = 0, ): Error { TransferContext.writeArguments(LONG to maxPeers.toLong(), LONG to maxChannels.toLong(), LONG to inBandwidth.toLong(), LONG to outBandwidth.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.createHostPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.createHostPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -87,7 +87,7 @@ public open class ENetConnection : RefCounted() { */ public final fun destroy(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.destroyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.destroyPtr, NIL) } /** @@ -105,7 +105,7 @@ public open class ENetConnection : RefCounted() { `data`: Int = 0, ): ENetPacketPeer? { TransferContext.writeArguments(STRING to address, LONG to port.toLong(), LONG to channels.toLong(), LONG to data.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.connectToHostPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.connectToHostPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as ENetPacketPeer?) } @@ -122,7 +122,7 @@ public open class ENetConnection : RefCounted() { @JvmOverloads public final fun service(timeout: Int = 0): VariantArray { TransferContext.writeArguments(LONG to timeout.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.servicePtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.servicePtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -131,7 +131,7 @@ public open class ENetConnection : RefCounted() { */ public final fun flush(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.flushPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.flushPtr, NIL) } /** @@ -140,7 +140,7 @@ public open class ENetConnection : RefCounted() { @JvmOverloads public final fun bandwidthLimit(inBandwidth: Int = 0, outBandwidth: Int = 0): Unit { TransferContext.writeArguments(LONG to inBandwidth.toLong(), LONG to outBandwidth.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.bandwidthLimitPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bandwidthLimitPtr, NIL) } /** @@ -148,7 +148,7 @@ public open class ENetConnection : RefCounted() { */ public final fun channelLimit(limit: Int): Unit { TransferContext.writeArguments(LONG to limit.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.channelLimitPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.channelLimitPtr, NIL) } /** @@ -161,7 +161,7 @@ public open class ENetConnection : RefCounted() { flags: Int, ): Unit { TransferContext.writeArguments(LONG to channel.toLong(), PACKED_BYTE_ARRAY to packet, LONG to flags.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.broadcastPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.broadcastPtr, NIL) } /** @@ -177,7 +177,7 @@ public open class ENetConnection : RefCounted() { */ public final fun compress(mode: CompressionMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.compressPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.compressPtr, NIL) } /** @@ -187,7 +187,7 @@ public open class ENetConnection : RefCounted() { */ public final fun dtlsServerSetup(serverOptions: TLSOptions?): Error { TransferContext.writeArguments(OBJECT to serverOptions) - TransferContext.callMethod(rawPtr, MethodBindings.dtlsServerSetupPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.dtlsServerSetupPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -201,7 +201,7 @@ public open class ENetConnection : RefCounted() { @JvmOverloads public final fun dtlsClientSetup(hostname: String, clientOptions: TLSOptions? = null): Error { TransferContext.writeArguments(STRING to hostname, OBJECT to clientOptions) - TransferContext.callMethod(rawPtr, MethodBindings.dtlsClientSetupPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.dtlsClientSetupPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -211,7 +211,7 @@ public open class ENetConnection : RefCounted() { */ public final fun refuseNewConnections(refuse: Boolean): Unit { TransferContext.writeArguments(BOOL to refuse) - TransferContext.callMethod(rawPtr, MethodBindings.refuseNewConnectionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.refuseNewConnectionsPtr, NIL) } /** @@ -219,7 +219,7 @@ public open class ENetConnection : RefCounted() { */ public final fun popStatistic(statistic: HostStatistic): Double { TransferContext.writeArguments(LONG to statistic.id) - TransferContext.callMethod(rawPtr, MethodBindings.popStatisticPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.popStatisticPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -228,7 +228,7 @@ public open class ENetConnection : RefCounted() { */ public final fun getMaxChannels(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxChannelsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMaxChannelsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -237,7 +237,7 @@ public open class ENetConnection : RefCounted() { */ public final fun getLocalPort(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLocalPortPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLocalPortPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -248,7 +248,7 @@ public open class ENetConnection : RefCounted() { */ public final fun getPeers(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPeersPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getPeersPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -271,7 +271,7 @@ public open class ENetConnection : RefCounted() { packet: PackedByteArray, ): Unit { TransferContext.writeArguments(STRING to destinationAddress, LONG to destinationPort.toLong(), PACKED_BYTE_ARRAY to packet) - TransferContext.callMethod(rawPtr, MethodBindings.socketSendPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.socketSendPtr, NIL) } public enum class CompressionMode( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ENetMultiplayerPeer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ENetMultiplayerPeer.kt index 26acf776ea..9b6f188a70 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ENetMultiplayerPeer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ENetMultiplayerPeer.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.String @@ -64,7 +64,7 @@ public open class ENetMultiplayerPeer : MultiplayerPeer() { outBandwidth: Int = 0, ): Error { TransferContext.writeArguments(LONG to port.toLong(), LONG to maxClients.toLong(), LONG to maxChannels.toLong(), LONG to inBandwidth.toLong(), LONG to outBandwidth.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.createServerPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.createServerPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -94,7 +94,7 @@ public open class ENetMultiplayerPeer : MultiplayerPeer() { localPort: Int = 0, ): Error { TransferContext.writeArguments(STRING to address, LONG to port.toLong(), LONG to channelCount.toLong(), LONG to inBandwidth.toLong(), LONG to outBandwidth.toLong(), LONG to localPort.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.createClientPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.createClientPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -108,7 +108,7 @@ public open class ENetMultiplayerPeer : MultiplayerPeer() { */ public final fun createMesh(uniqueId: Int): Error { TransferContext.writeArguments(LONG to uniqueId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.createMeshPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.createMeshPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -118,7 +118,7 @@ public open class ENetMultiplayerPeer : MultiplayerPeer() { */ public final fun addMeshPeer(peerId: Int, host: ENetConnection?): Error { TransferContext.writeArguments(LONG to peerId.toLong(), OBJECT to host) - TransferContext.callMethod(rawPtr, MethodBindings.addMeshPeerPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.addMeshPeerPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -129,12 +129,12 @@ public open class ENetMultiplayerPeer : MultiplayerPeer() { */ public final fun setBindIp(ip: String): Unit { TransferContext.writeArguments(STRING to ip) - TransferContext.callMethod(rawPtr, MethodBindings.setBindIpPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBindIpPtr, NIL) } public final fun getHost(): ENetConnection? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHostPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getHostPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as ENetConnection?) } @@ -143,7 +143,7 @@ public open class ENetMultiplayerPeer : MultiplayerPeer() { */ public final fun getPeer(id: Int): ENetPacketPeer? { TransferContext.writeArguments(LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getPeerPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getPeerPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as ENetPacketPeer?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ENetPacketPeer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ENetPacketPeer.kt index 69094a37a7..ff4887e752 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ENetPacketPeer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ENetPacketPeer.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedByteArray import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -16,7 +17,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Int @@ -47,7 +47,7 @@ public open class ENetPacketPeer internal constructor() : PacketPeer() { @JvmOverloads public final fun peerDisconnect(`data`: Int = 0): Unit { TransferContext.writeArguments(LONG to data.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.peerDisconnectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.peerDisconnectPtr, NIL) } /** @@ -58,7 +58,7 @@ public open class ENetPacketPeer internal constructor() : PacketPeer() { @JvmOverloads public final fun peerDisconnectLater(`data`: Int = 0): Unit { TransferContext.writeArguments(LONG to data.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.peerDisconnectLaterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.peerDisconnectLaterPtr, NIL) } /** @@ -69,7 +69,7 @@ public open class ENetPacketPeer internal constructor() : PacketPeer() { @JvmOverloads public final fun peerDisconnectNow(`data`: Int = 0): Unit { TransferContext.writeArguments(LONG to data.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.peerDisconnectNowPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.peerDisconnectNowPtr, NIL) } /** @@ -78,7 +78,7 @@ public open class ENetPacketPeer internal constructor() : PacketPeer() { */ public final fun ping(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.pingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pingPtr, NIL) } /** @@ -89,7 +89,7 @@ public open class ENetPacketPeer internal constructor() : PacketPeer() { */ public final fun pingInterval(pingInterval: Int): Unit { TransferContext.writeArguments(LONG to pingInterval.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.pingIntervalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pingIntervalPtr, NIL) } /** @@ -98,7 +98,7 @@ public open class ENetPacketPeer internal constructor() : PacketPeer() { */ public final fun reset(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.resetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.resetPtr, NIL) } /** @@ -111,7 +111,7 @@ public open class ENetPacketPeer internal constructor() : PacketPeer() { flags: Int, ): Error { TransferContext.writeArguments(LONG to channel.toLong(), PACKED_BYTE_ARRAY to packet, LONG to flags.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.sendPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.sendPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -138,7 +138,7 @@ public open class ENetPacketPeer internal constructor() : PacketPeer() { deceleration: Int, ): Unit { TransferContext.writeArguments(LONG to interval.toLong(), LONG to acceleration.toLong(), LONG to deceleration.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.throttleConfigurePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.throttleConfigurePtr, NIL) } /** @@ -157,7 +157,7 @@ public open class ENetPacketPeer internal constructor() : PacketPeer() { timeoutMax: Int, ): Unit { TransferContext.writeArguments(LONG to timeout.toLong(), LONG to timeoutMin.toLong(), LONG to timeoutMax.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setTimeoutPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTimeoutPtr, NIL) } /** @@ -165,7 +165,7 @@ public open class ENetPacketPeer internal constructor() : PacketPeer() { */ public final fun getRemoteAddress(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRemoteAddressPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getRemoteAddressPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -174,7 +174,7 @@ public open class ENetPacketPeer internal constructor() : PacketPeer() { */ public final fun getRemotePort(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRemotePortPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getRemotePortPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -183,7 +183,7 @@ public open class ENetPacketPeer internal constructor() : PacketPeer() { */ public final fun getStatistic(statistic: PeerStatistic): Double { TransferContext.writeArguments(LONG to statistic.id) - TransferContext.callMethod(rawPtr, MethodBindings.getStatisticPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getStatisticPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -192,7 +192,7 @@ public open class ENetPacketPeer internal constructor() : PacketPeer() { */ public final fun getState(): PeerState { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStatePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getStatePtr, LONG) return ENetPacketPeer.PeerState.from(TransferContext.readReturnValue(LONG) as Long) } @@ -201,7 +201,7 @@ public open class ENetPacketPeer internal constructor() : PacketPeer() { */ public final fun getChannels(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getChannelsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getChannelsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -211,7 +211,7 @@ public open class ENetPacketPeer internal constructor() : PacketPeer() { */ public final fun isActive(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isActivePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isActivePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/EncodedObjectAsID.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/EncodedObjectAsID.kt index 5cefb074b6..a4fe71217f 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/EncodedObjectAsID.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/EncodedObjectAsID.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -45,12 +45,12 @@ public open class EncodedObjectAsID : RefCounted() { public final fun setObjectId(id: Long): Unit { TransferContext.writeArguments(LONG to id) - TransferContext.callMethod(rawPtr, MethodBindings.setObjectIdPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setObjectIdPtr, NIL) } public final fun getObjectId(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getObjectIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getObjectIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Engine.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Engine.kt index d2a2577029..0e5ce4baeb 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Engine.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Engine.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedStringArray import godot.core.StringName @@ -23,7 +24,6 @@ import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -48,39 +48,39 @@ public object Engine : Object() { @JvmStatic public final fun setPhysicsTicksPerSecond(physicsTicksPerSecond: Int): Unit { TransferContext.writeArguments(LONG to physicsTicksPerSecond.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setPhysicsTicksPerSecondPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPhysicsTicksPerSecondPtr, NIL) } @JvmStatic public final fun getPhysicsTicksPerSecond(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPhysicsTicksPerSecondPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPhysicsTicksPerSecondPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @JvmStatic public final fun setMaxPhysicsStepsPerFrame(maxPhysicsSteps: Int): Unit { TransferContext.writeArguments(LONG to maxPhysicsSteps.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxPhysicsStepsPerFramePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxPhysicsStepsPerFramePtr, NIL) } @JvmStatic public final fun getMaxPhysicsStepsPerFrame(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxPhysicsStepsPerFramePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMaxPhysicsStepsPerFramePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @JvmStatic public final fun setPhysicsJitterFix(physicsJitterFix: Double): Unit { TransferContext.writeArguments(DOUBLE to physicsJitterFix) - TransferContext.callMethod(rawPtr, MethodBindings.setPhysicsJitterFixPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPhysicsJitterFixPtr, NIL) } @JvmStatic public final fun getPhysicsJitterFix(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPhysicsJitterFixPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPhysicsJitterFixPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -91,33 +91,33 @@ public object Engine : Object() { @JvmStatic public final fun getPhysicsInterpolationFraction(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPhysicsInterpolationFractionPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPhysicsInterpolationFractionPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @JvmStatic public final fun setMaxFps(maxFps: Int): Unit { TransferContext.writeArguments(LONG to maxFps.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxFpsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxFpsPtr, NIL) } @JvmStatic public final fun getMaxFps(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxFpsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMaxFpsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @JvmStatic public final fun setTimeScale(timeScale: Double): Unit { TransferContext.writeArguments(DOUBLE to timeScale) - TransferContext.callMethod(rawPtr, MethodBindings.setTimeScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTimeScalePtr, NIL) } @JvmStatic public final fun getTimeScale(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTimeScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTimeScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -129,7 +129,7 @@ public object Engine : Object() { @JvmStatic public final fun getFramesDrawn(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFramesDrawnPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFramesDrawnPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -139,7 +139,7 @@ public object Engine : Object() { @JvmStatic public final fun getFramesPerSecond(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFramesPerSecondPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFramesPerSecondPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -170,7 +170,7 @@ public object Engine : Object() { @JvmStatic public final fun getPhysicsFrames(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPhysicsFramesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPhysicsFramesPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -202,7 +202,7 @@ public object Engine : Object() { @JvmStatic public final fun getProcessFrames(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getProcessFramesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getProcessFramesPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -215,7 +215,7 @@ public object Engine : Object() { @JvmStatic public final fun getMainLoop(): MainLoop? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMainLoopPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getMainLoopPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as MainLoop?) } @@ -261,7 +261,7 @@ public object Engine : Object() { @JvmStatic public final fun getVersionInfo(): Dictionary { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVersionInfoPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getVersionInfoPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -273,7 +273,7 @@ public object Engine : Object() { @JvmStatic public final fun getAuthorInfo(): Dictionary { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAuthorInfoPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getAuthorInfoPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -291,7 +291,7 @@ public object Engine : Object() { @JvmStatic public final fun getCopyrightInfo(): VariantArray> { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCopyrightInfoPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getCopyrightInfoPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray>) } @@ -303,7 +303,7 @@ public object Engine : Object() { @JvmStatic public final fun getDonorInfo(): Dictionary { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDonorInfoPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getDonorInfoPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -316,7 +316,7 @@ public object Engine : Object() { @JvmStatic public final fun getLicenseInfo(): Dictionary { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLicenseInfoPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getLicenseInfoPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -326,7 +326,7 @@ public object Engine : Object() { @JvmStatic public final fun getLicenseText(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLicenseTextPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getLicenseTextPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -359,7 +359,7 @@ public object Engine : Object() { @JvmStatic public final fun getArchitectureName(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getArchitectureNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getArchitectureNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -381,7 +381,7 @@ public object Engine : Object() { @JvmStatic public final fun isInPhysicsFrame(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isInPhysicsFramePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isInPhysicsFramePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -410,7 +410,7 @@ public object Engine : Object() { @JvmStatic public final fun hasSingleton(name: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.hasSingletonPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasSingletonPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -423,7 +423,7 @@ public object Engine : Object() { @JvmStatic public final fun getSingleton(name: StringName): Object? { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.getSingletonPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getSingletonPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Object?) } @@ -434,7 +434,7 @@ public object Engine : Object() { @JvmStatic public final fun registerSingleton(name: StringName, instance: Object?): Unit { TransferContext.writeArguments(STRING_NAME to name, OBJECT to instance) - TransferContext.callMethod(rawPtr, MethodBindings.registerSingletonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.registerSingletonPtr, NIL) } /** @@ -444,7 +444,7 @@ public object Engine : Object() { @JvmStatic public final fun unregisterSingleton(name: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.unregisterSingletonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.unregisterSingletonPtr, NIL) } /** @@ -453,7 +453,7 @@ public object Engine : Object() { @JvmStatic public final fun getSingletonList(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSingletonListPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getSingletonListPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -469,7 +469,7 @@ public object Engine : Object() { @JvmStatic public final fun registerScriptLanguage(language: ScriptLanguage?): Error { TransferContext.writeArguments(OBJECT to language) - TransferContext.callMethod(rawPtr, MethodBindings.registerScriptLanguagePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.registerScriptLanguagePtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -482,7 +482,7 @@ public object Engine : Object() { @JvmStatic public final fun unregisterScriptLanguage(language: ScriptLanguage?): Error { TransferContext.writeArguments(OBJECT to language) - TransferContext.callMethod(rawPtr, MethodBindings.unregisterScriptLanguagePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.unregisterScriptLanguagePtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -492,7 +492,7 @@ public object Engine : Object() { @JvmStatic public final fun getScriptLanguageCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScriptLanguageCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getScriptLanguageCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -502,7 +502,7 @@ public object Engine : Object() { @JvmStatic public final fun getScriptLanguage(index: Int): ScriptLanguage? { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getScriptLanguagePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getScriptLanguagePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as ScriptLanguage?) } @@ -536,7 +536,7 @@ public object Engine : Object() { @JvmStatic public final fun isEditorHint(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isEditorHintPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isEditorHintPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -548,20 +548,20 @@ public object Engine : Object() { @JvmStatic public final fun getWriteMoviePath(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWriteMoviePathPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getWriteMoviePathPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @JvmStatic public final fun setPrintErrorMessages(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setPrintErrorMessagesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPrintErrorMessagesPtr, NIL) } @JvmStatic public final fun isPrintingErrorMessages(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isPrintingErrorMessagesPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPrintingErrorMessagesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/EngineDebugger.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/EngineDebugger.kt index 556fe95d12..ec6c5806c6 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/EngineDebugger.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/EngineDebugger.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.StringName import godot.core.TypeManager @@ -20,7 +21,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -47,7 +47,7 @@ public object EngineDebugger : Object() { @JvmStatic public final fun isActive(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isActivePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isActivePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -57,7 +57,7 @@ public object EngineDebugger : Object() { @JvmStatic public final fun registerProfiler(name: StringName, profiler: EngineProfiler?): Unit { TransferContext.writeArguments(STRING_NAME to name, OBJECT to profiler) - TransferContext.callMethod(rawPtr, MethodBindings.registerProfilerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.registerProfilerPtr, NIL) } /** @@ -66,7 +66,7 @@ public object EngineDebugger : Object() { @JvmStatic public final fun unregisterProfiler(name: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.unregisterProfilerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.unregisterProfilerPtr, NIL) } /** @@ -75,7 +75,7 @@ public object EngineDebugger : Object() { @JvmStatic public final fun isProfiling(name: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.isProfilingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isProfilingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -85,7 +85,7 @@ public object EngineDebugger : Object() { @JvmStatic public final fun hasProfiler(name: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.hasProfilerPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasProfilerPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -95,7 +95,7 @@ public object EngineDebugger : Object() { @JvmStatic public final fun profilerAddFrameData(name: StringName, `data`: VariantArray): Unit { TransferContext.writeArguments(STRING_NAME to name, ARRAY to data) - TransferContext.callMethod(rawPtr, MethodBindings.profilerAddFrameDataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.profilerAddFrameDataPtr, NIL) } /** @@ -110,7 +110,7 @@ public object EngineDebugger : Object() { arguments: VariantArray = godot.core.variantArrayOf(), ): Unit { TransferContext.writeArguments(STRING_NAME to name, BOOL to enable, ARRAY to arguments) - TransferContext.callMethod(rawPtr, MethodBindings.profilerEnablePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.profilerEnablePtr, NIL) } /** @@ -122,7 +122,7 @@ public object EngineDebugger : Object() { @JvmStatic public final fun registerMessageCapture(name: StringName, callable: Callable): Unit { TransferContext.writeArguments(STRING_NAME to name, CALLABLE to callable) - TransferContext.callMethod(rawPtr, MethodBindings.registerMessageCapturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.registerMessageCapturePtr, NIL) } /** @@ -131,7 +131,7 @@ public object EngineDebugger : Object() { @JvmStatic public final fun unregisterMessageCapture(name: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.unregisterMessageCapturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.unregisterMessageCapturePtr, NIL) } /** @@ -140,7 +140,7 @@ public object EngineDebugger : Object() { @JvmStatic public final fun hasCapture(name: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.hasCapturePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasCapturePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -152,7 +152,7 @@ public object EngineDebugger : Object() { @JvmStatic public final fun linePoll(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.linePollPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.linePollPtr, NIL) } /** @@ -161,7 +161,7 @@ public object EngineDebugger : Object() { @JvmStatic public final fun sendMessage(message: String, `data`: VariantArray): Unit { TransferContext.writeArguments(STRING to message, ARRAY to data) - TransferContext.callMethod(rawPtr, MethodBindings.sendMessagePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.sendMessagePtr, NIL) } /** @@ -172,7 +172,7 @@ public object EngineDebugger : Object() { @JvmStatic public final fun debug(canContinue: Boolean = true, isErrorBreakpoint: Boolean = false): Unit { TransferContext.writeArguments(BOOL to canContinue, BOOL to isErrorBreakpoint) - TransferContext.callMethod(rawPtr, MethodBindings.debugPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.debugPtr, NIL) } /** @@ -187,7 +187,7 @@ public object EngineDebugger : Object() { isErrorBreakpoint: Boolean = false, ): Unit { TransferContext.writeArguments(OBJECT to language, BOOL to canContinue, BOOL to isErrorBreakpoint) - TransferContext.callMethod(rawPtr, MethodBindings.scriptDebugPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.scriptDebugPtr, NIL) } /** @@ -196,7 +196,7 @@ public object EngineDebugger : Object() { @JvmStatic public final fun setLinesLeft(lines: Int): Unit { TransferContext.writeArguments(LONG to lines.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setLinesLeftPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLinesLeftPtr, NIL) } /** @@ -205,7 +205,7 @@ public object EngineDebugger : Object() { @JvmStatic public final fun getLinesLeft(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLinesLeftPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLinesLeftPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -215,7 +215,7 @@ public object EngineDebugger : Object() { @JvmStatic public final fun setDepth(depth: Int): Unit { TransferContext.writeArguments(LONG to depth.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setDepthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDepthPtr, NIL) } /** @@ -224,7 +224,7 @@ public object EngineDebugger : Object() { @JvmStatic public final fun getDepth(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDepthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDepthPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -234,7 +234,7 @@ public object EngineDebugger : Object() { @JvmStatic public final fun isBreakpoint(line: Int, source: StringName): Boolean { TransferContext.writeArguments(LONG to line.toLong(), STRING_NAME to source) - TransferContext.callMethod(rawPtr, MethodBindings.isBreakpointPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isBreakpointPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -244,7 +244,7 @@ public object EngineDebugger : Object() { @JvmStatic public final fun isSkippingBreakpoints(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSkippingBreakpointsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSkippingBreakpointsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -254,7 +254,7 @@ public object EngineDebugger : Object() { @JvmStatic public final fun insertBreakpoint(line: Int, source: StringName): Unit { TransferContext.writeArguments(LONG to line.toLong(), STRING_NAME to source) - TransferContext.callMethod(rawPtr, MethodBindings.insertBreakpointPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.insertBreakpointPtr, NIL) } /** @@ -263,7 +263,7 @@ public object EngineDebugger : Object() { @JvmStatic public final fun removeBreakpoint(line: Int, source: StringName): Unit { TransferContext.writeArguments(LONG to line.toLong(), STRING_NAME to source) - TransferContext.callMethod(rawPtr, MethodBindings.removeBreakpointPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeBreakpointPtr, NIL) } /** @@ -272,7 +272,7 @@ public object EngineDebugger : Object() { @JvmStatic public final fun clearBreakpoints(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearBreakpointsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearBreakpointsPtr, NIL) } internal object MethodBindings { diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Environment.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Environment.kt index 621be23ddf..e70646b5dd 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Environment.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Environment.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -20,7 +21,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -1418,540 +1418,540 @@ public open class Environment : Resource() { public final fun setBackground(mode: BGMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setBackgroundPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBackgroundPtr, NIL) } public final fun getBackground(): BGMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBackgroundPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBackgroundPtr, LONG) return Environment.BGMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setSky(sky: Sky?): Unit { TransferContext.writeArguments(OBJECT to sky) - TransferContext.callMethod(rawPtr, MethodBindings.setSkyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSkyPtr, NIL) } public final fun getSky(): Sky? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSkyPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getSkyPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Sky?) } public final fun setSkyCustomFov(scale: Float): Unit { TransferContext.writeArguments(DOUBLE to scale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSkyCustomFovPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSkyCustomFovPtr, NIL) } public final fun getSkyCustomFov(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSkyCustomFovPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSkyCustomFovPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSkyRotation(eulerRadians: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to eulerRadians) - TransferContext.callMethod(rawPtr, MethodBindings.setSkyRotationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSkyRotationPtr, NIL) } public final fun getSkyRotation(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSkyRotationPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getSkyRotationPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setBgColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setBgColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBgColorPtr, NIL) } public final fun getBgColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBgColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getBgColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setBgEnergyMultiplier(energy: Float): Unit { TransferContext.writeArguments(DOUBLE to energy.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setBgEnergyMultiplierPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBgEnergyMultiplierPtr, NIL) } public final fun getBgEnergyMultiplier(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBgEnergyMultiplierPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getBgEnergyMultiplierPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setBgIntensity(energy: Float): Unit { TransferContext.writeArguments(DOUBLE to energy.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setBgIntensityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBgIntensityPtr, NIL) } public final fun getBgIntensity(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBgIntensityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getBgIntensityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setCanvasMaxLayer(layer: Int): Unit { TransferContext.writeArguments(LONG to layer.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setCanvasMaxLayerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCanvasMaxLayerPtr, NIL) } public final fun getCanvasMaxLayer(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCanvasMaxLayerPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCanvasMaxLayerPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setCameraFeedId(id: Int): Unit { TransferContext.writeArguments(LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setCameraFeedIdPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCameraFeedIdPtr, NIL) } public final fun getCameraFeedId(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCameraFeedIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCameraFeedIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setAmbientLightColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setAmbientLightColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAmbientLightColorPtr, NIL) } public final fun getAmbientLightColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAmbientLightColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getAmbientLightColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setAmbientSource(source: AmbientSource): Unit { TransferContext.writeArguments(LONG to source.id) - TransferContext.callMethod(rawPtr, MethodBindings.setAmbientSourcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAmbientSourcePtr, NIL) } public final fun getAmbientSource(): AmbientSource { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAmbientSourcePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAmbientSourcePtr, LONG) return Environment.AmbientSource.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setAmbientLightEnergy(energy: Float): Unit { TransferContext.writeArguments(DOUBLE to energy.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAmbientLightEnergyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAmbientLightEnergyPtr, NIL) } public final fun getAmbientLightEnergy(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAmbientLightEnergyPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAmbientLightEnergyPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAmbientLightSkyContribution(ratio: Float): Unit { TransferContext.writeArguments(DOUBLE to ratio.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAmbientLightSkyContributionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAmbientLightSkyContributionPtr, NIL) } public final fun getAmbientLightSkyContribution(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAmbientLightSkyContributionPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAmbientLightSkyContributionPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setReflectionSource(source: ReflectionSource): Unit { TransferContext.writeArguments(LONG to source.id) - TransferContext.callMethod(rawPtr, MethodBindings.setReflectionSourcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setReflectionSourcePtr, NIL) } public final fun getReflectionSource(): ReflectionSource { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getReflectionSourcePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getReflectionSourcePtr, LONG) return Environment.ReflectionSource.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setTonemapper(mode: ToneMapper): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTonemapperPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTonemapperPtr, NIL) } public final fun getTonemapper(): ToneMapper { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTonemapperPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTonemapperPtr, LONG) return Environment.ToneMapper.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setTonemapExposure(exposure: Float): Unit { TransferContext.writeArguments(DOUBLE to exposure.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTonemapExposurePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTonemapExposurePtr, NIL) } public final fun getTonemapExposure(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTonemapExposurePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTonemapExposurePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setTonemapWhite(white: Float): Unit { TransferContext.writeArguments(DOUBLE to white.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTonemapWhitePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTonemapWhitePtr, NIL) } public final fun getTonemapWhite(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTonemapWhitePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTonemapWhitePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSsrEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setSsrEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSsrEnabledPtr, NIL) } public final fun isSsrEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSsrEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSsrEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSsrMaxSteps(maxSteps: Int): Unit { TransferContext.writeArguments(LONG to maxSteps.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSsrMaxStepsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSsrMaxStepsPtr, NIL) } public final fun getSsrMaxSteps(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSsrMaxStepsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSsrMaxStepsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setSsrFadeIn(fadeIn: Float): Unit { TransferContext.writeArguments(DOUBLE to fadeIn.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSsrFadeInPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSsrFadeInPtr, NIL) } public final fun getSsrFadeIn(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSsrFadeInPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSsrFadeInPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSsrFadeOut(fadeOut: Float): Unit { TransferContext.writeArguments(DOUBLE to fadeOut.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSsrFadeOutPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSsrFadeOutPtr, NIL) } public final fun getSsrFadeOut(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSsrFadeOutPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSsrFadeOutPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSsrDepthTolerance(depthTolerance: Float): Unit { TransferContext.writeArguments(DOUBLE to depthTolerance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSsrDepthTolerancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSsrDepthTolerancePtr, NIL) } public final fun getSsrDepthTolerance(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSsrDepthTolerancePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSsrDepthTolerancePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSsaoEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setSsaoEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSsaoEnabledPtr, NIL) } public final fun isSsaoEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSsaoEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSsaoEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSsaoRadius(radius: Float): Unit { TransferContext.writeArguments(DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSsaoRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSsaoRadiusPtr, NIL) } public final fun getSsaoRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSsaoRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSsaoRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSsaoIntensity(intensity: Float): Unit { TransferContext.writeArguments(DOUBLE to intensity.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSsaoIntensityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSsaoIntensityPtr, NIL) } public final fun getSsaoIntensity(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSsaoIntensityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSsaoIntensityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSsaoPower(power: Float): Unit { TransferContext.writeArguments(DOUBLE to power.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSsaoPowerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSsaoPowerPtr, NIL) } public final fun getSsaoPower(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSsaoPowerPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSsaoPowerPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSsaoDetail(detail: Float): Unit { TransferContext.writeArguments(DOUBLE to detail.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSsaoDetailPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSsaoDetailPtr, NIL) } public final fun getSsaoDetail(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSsaoDetailPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSsaoDetailPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSsaoHorizon(horizon: Float): Unit { TransferContext.writeArguments(DOUBLE to horizon.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSsaoHorizonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSsaoHorizonPtr, NIL) } public final fun getSsaoHorizon(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSsaoHorizonPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSsaoHorizonPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSsaoSharpness(sharpness: Float): Unit { TransferContext.writeArguments(DOUBLE to sharpness.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSsaoSharpnessPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSsaoSharpnessPtr, NIL) } public final fun getSsaoSharpness(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSsaoSharpnessPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSsaoSharpnessPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSsaoDirectLightAffect(amount: Float): Unit { TransferContext.writeArguments(DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSsaoDirectLightAffectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSsaoDirectLightAffectPtr, NIL) } public final fun getSsaoDirectLightAffect(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSsaoDirectLightAffectPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSsaoDirectLightAffectPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSsaoAoChannelAffect(amount: Float): Unit { TransferContext.writeArguments(DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSsaoAoChannelAffectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSsaoAoChannelAffectPtr, NIL) } public final fun getSsaoAoChannelAffect(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSsaoAoChannelAffectPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSsaoAoChannelAffectPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSsilEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setSsilEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSsilEnabledPtr, NIL) } public final fun isSsilEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSsilEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSsilEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSsilRadius(radius: Float): Unit { TransferContext.writeArguments(DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSsilRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSsilRadiusPtr, NIL) } public final fun getSsilRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSsilRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSsilRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSsilIntensity(intensity: Float): Unit { TransferContext.writeArguments(DOUBLE to intensity.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSsilIntensityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSsilIntensityPtr, NIL) } public final fun getSsilIntensity(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSsilIntensityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSsilIntensityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSsilSharpness(sharpness: Float): Unit { TransferContext.writeArguments(DOUBLE to sharpness.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSsilSharpnessPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSsilSharpnessPtr, NIL) } public final fun getSsilSharpness(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSsilSharpnessPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSsilSharpnessPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSsilNormalRejection(normalRejection: Float): Unit { TransferContext.writeArguments(DOUBLE to normalRejection.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSsilNormalRejectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSsilNormalRejectionPtr, NIL) } public final fun getSsilNormalRejection(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSsilNormalRejectionPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSsilNormalRejectionPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSdfgiEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setSdfgiEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSdfgiEnabledPtr, NIL) } public final fun isSdfgiEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSdfgiEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSdfgiEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSdfgiCascades(amount: Int): Unit { TransferContext.writeArguments(LONG to amount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSdfgiCascadesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSdfgiCascadesPtr, NIL) } public final fun getSdfgiCascades(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSdfgiCascadesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSdfgiCascadesPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setSdfgiMinCellSize(size: Float): Unit { TransferContext.writeArguments(DOUBLE to size.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSdfgiMinCellSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSdfgiMinCellSizePtr, NIL) } public final fun getSdfgiMinCellSize(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSdfgiMinCellSizePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSdfgiMinCellSizePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSdfgiMaxDistance(distance: Float): Unit { TransferContext.writeArguments(DOUBLE to distance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSdfgiMaxDistancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSdfgiMaxDistancePtr, NIL) } public final fun getSdfgiMaxDistance(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSdfgiMaxDistancePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSdfgiMaxDistancePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSdfgiCascade0Distance(distance: Float): Unit { TransferContext.writeArguments(DOUBLE to distance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSdfgiCascade0DistancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSdfgiCascade0DistancePtr, NIL) } public final fun getSdfgiCascade0Distance(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSdfgiCascade0DistancePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSdfgiCascade0DistancePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSdfgiYScale(scale: SDFGIYScale): Unit { TransferContext.writeArguments(LONG to scale.id) - TransferContext.callMethod(rawPtr, MethodBindings.setSdfgiYScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSdfgiYScalePtr, NIL) } public final fun getSdfgiYScale(): SDFGIYScale { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSdfgiYScalePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSdfgiYScalePtr, LONG) return Environment.SDFGIYScale.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setSdfgiUseOcclusion(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setSdfgiUseOcclusionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSdfgiUseOcclusionPtr, NIL) } public final fun isSdfgiUsingOcclusion(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSdfgiUsingOcclusionPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSdfgiUsingOcclusionPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSdfgiBounceFeedback(amount: Float): Unit { TransferContext.writeArguments(DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSdfgiBounceFeedbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSdfgiBounceFeedbackPtr, NIL) } public final fun getSdfgiBounceFeedback(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSdfgiBounceFeedbackPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSdfgiBounceFeedbackPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSdfgiReadSkyLight(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setSdfgiReadSkyLightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSdfgiReadSkyLightPtr, NIL) } public final fun isSdfgiReadingSkyLight(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSdfgiReadingSkyLightPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSdfgiReadingSkyLightPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSdfgiEnergy(amount: Float): Unit { TransferContext.writeArguments(DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSdfgiEnergyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSdfgiEnergyPtr, NIL) } public final fun getSdfgiEnergy(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSdfgiEnergyPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSdfgiEnergyPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSdfgiNormalBias(bias: Float): Unit { TransferContext.writeArguments(DOUBLE to bias.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSdfgiNormalBiasPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSdfgiNormalBiasPtr, NIL) } public final fun getSdfgiNormalBias(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSdfgiNormalBiasPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSdfgiNormalBiasPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSdfgiProbeBias(bias: Float): Unit { TransferContext.writeArguments(DOUBLE to bias.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSdfgiProbeBiasPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSdfgiProbeBiasPtr, NIL) } public final fun getSdfgiProbeBias(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSdfgiProbeBiasPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSdfgiProbeBiasPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setGlowEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setGlowEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlowEnabledPtr, NIL) } public final fun isGlowEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isGlowEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isGlowEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1962,7 +1962,7 @@ public open class Environment : Resource() { */ public final fun setGlowLevel(idx: Int, intensity: Float): Unit { TransferContext.writeArguments(LONG to idx.toLong(), DOUBLE to intensity.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setGlowLevelPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlowLevelPtr, NIL) } /** @@ -1970,404 +1970,404 @@ public open class Environment : Resource() { */ public final fun getGlowLevel(idx: Int): Float { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getGlowLevelPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getGlowLevelPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setGlowNormalized(normalize: Boolean): Unit { TransferContext.writeArguments(BOOL to normalize) - TransferContext.callMethod(rawPtr, MethodBindings.setGlowNormalizedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlowNormalizedPtr, NIL) } public final fun isGlowNormalized(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isGlowNormalizedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isGlowNormalizedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setGlowIntensity(intensity: Float): Unit { TransferContext.writeArguments(DOUBLE to intensity.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setGlowIntensityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlowIntensityPtr, NIL) } public final fun getGlowIntensity(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGlowIntensityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getGlowIntensityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setGlowStrength(strength: Float): Unit { TransferContext.writeArguments(DOUBLE to strength.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setGlowStrengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlowStrengthPtr, NIL) } public final fun getGlowStrength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGlowStrengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getGlowStrengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setGlowMix(mix: Float): Unit { TransferContext.writeArguments(DOUBLE to mix.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setGlowMixPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlowMixPtr, NIL) } public final fun getGlowMix(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGlowMixPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getGlowMixPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setGlowBloom(amount: Float): Unit { TransferContext.writeArguments(DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setGlowBloomPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlowBloomPtr, NIL) } public final fun getGlowBloom(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGlowBloomPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getGlowBloomPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setGlowBlendMode(mode: GlowBlendMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setGlowBlendModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlowBlendModePtr, NIL) } public final fun getGlowBlendMode(): GlowBlendMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGlowBlendModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getGlowBlendModePtr, LONG) return Environment.GlowBlendMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setGlowHdrBleedThreshold(threshold: Float): Unit { TransferContext.writeArguments(DOUBLE to threshold.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setGlowHdrBleedThresholdPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlowHdrBleedThresholdPtr, NIL) } public final fun getGlowHdrBleedThreshold(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGlowHdrBleedThresholdPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getGlowHdrBleedThresholdPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setGlowHdrBleedScale(scale: Float): Unit { TransferContext.writeArguments(DOUBLE to scale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setGlowHdrBleedScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlowHdrBleedScalePtr, NIL) } public final fun getGlowHdrBleedScale(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGlowHdrBleedScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getGlowHdrBleedScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setGlowHdrLuminanceCap(amount: Float): Unit { TransferContext.writeArguments(DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setGlowHdrLuminanceCapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlowHdrLuminanceCapPtr, NIL) } public final fun getGlowHdrLuminanceCap(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGlowHdrLuminanceCapPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getGlowHdrLuminanceCapPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setGlowMapStrength(strength: Float): Unit { TransferContext.writeArguments(DOUBLE to strength.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setGlowMapStrengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlowMapStrengthPtr, NIL) } public final fun getGlowMapStrength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGlowMapStrengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getGlowMapStrengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setGlowMap(mode: Texture?): Unit { TransferContext.writeArguments(OBJECT to mode) - TransferContext.callMethod(rawPtr, MethodBindings.setGlowMapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlowMapPtr, NIL) } public final fun getGlowMap(): Texture? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGlowMapPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getGlowMapPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture?) } public final fun setFogEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setFogEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFogEnabledPtr, NIL) } public final fun isFogEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isFogEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isFogEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setFogMode(mode: FogMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setFogModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFogModePtr, NIL) } public final fun getFogMode(): FogMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFogModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFogModePtr, LONG) return Environment.FogMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setFogLightColor(lightColor: Color): Unit { TransferContext.writeArguments(COLOR to lightColor) - TransferContext.callMethod(rawPtr, MethodBindings.setFogLightColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFogLightColorPtr, NIL) } public final fun getFogLightColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFogLightColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getFogLightColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setFogLightEnergy(lightEnergy: Float): Unit { TransferContext.writeArguments(DOUBLE to lightEnergy.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFogLightEnergyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFogLightEnergyPtr, NIL) } public final fun getFogLightEnergy(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFogLightEnergyPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFogLightEnergyPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setFogSunScatter(sunScatter: Float): Unit { TransferContext.writeArguments(DOUBLE to sunScatter.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFogSunScatterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFogSunScatterPtr, NIL) } public final fun getFogSunScatter(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFogSunScatterPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFogSunScatterPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setFogDensity(density: Float): Unit { TransferContext.writeArguments(DOUBLE to density.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFogDensityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFogDensityPtr, NIL) } public final fun getFogDensity(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFogDensityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFogDensityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setFogHeight(height: Float): Unit { TransferContext.writeArguments(DOUBLE to height.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFogHeightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFogHeightPtr, NIL) } public final fun getFogHeight(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFogHeightPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFogHeightPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setFogHeightDensity(heightDensity: Float): Unit { TransferContext.writeArguments(DOUBLE to heightDensity.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFogHeightDensityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFogHeightDensityPtr, NIL) } public final fun getFogHeightDensity(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFogHeightDensityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFogHeightDensityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setFogAerialPerspective(aerialPerspective: Float): Unit { TransferContext.writeArguments(DOUBLE to aerialPerspective.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFogAerialPerspectivePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFogAerialPerspectivePtr, NIL) } public final fun getFogAerialPerspective(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFogAerialPerspectivePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFogAerialPerspectivePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setFogSkyAffect(skyAffect: Float): Unit { TransferContext.writeArguments(DOUBLE to skyAffect.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFogSkyAffectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFogSkyAffectPtr, NIL) } public final fun getFogSkyAffect(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFogSkyAffectPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFogSkyAffectPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setFogDepthCurve(curve: Float): Unit { TransferContext.writeArguments(DOUBLE to curve.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFogDepthCurvePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFogDepthCurvePtr, NIL) } public final fun getFogDepthCurve(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFogDepthCurvePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFogDepthCurvePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setFogDepthBegin(begin: Float): Unit { TransferContext.writeArguments(DOUBLE to begin.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFogDepthBeginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFogDepthBeginPtr, NIL) } public final fun getFogDepthBegin(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFogDepthBeginPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFogDepthBeginPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setFogDepthEnd(end: Float): Unit { TransferContext.writeArguments(DOUBLE to end.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFogDepthEndPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFogDepthEndPtr, NIL) } public final fun getFogDepthEnd(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFogDepthEndPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFogDepthEndPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVolumetricFogEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setVolumetricFogEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVolumetricFogEnabledPtr, NIL) } public final fun isVolumetricFogEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isVolumetricFogEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isVolumetricFogEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setVolumetricFogEmission(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setVolumetricFogEmissionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVolumetricFogEmissionPtr, NIL) } public final fun getVolumetricFogEmission(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVolumetricFogEmissionPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getVolumetricFogEmissionPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setVolumetricFogAlbedo(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setVolumetricFogAlbedoPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVolumetricFogAlbedoPtr, NIL) } public final fun getVolumetricFogAlbedo(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVolumetricFogAlbedoPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getVolumetricFogAlbedoPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setVolumetricFogDensity(density: Float): Unit { TransferContext.writeArguments(DOUBLE to density.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVolumetricFogDensityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVolumetricFogDensityPtr, NIL) } public final fun getVolumetricFogDensity(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVolumetricFogDensityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVolumetricFogDensityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVolumetricFogEmissionEnergy(begin: Float): Unit { TransferContext.writeArguments(DOUBLE to begin.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVolumetricFogEmissionEnergyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVolumetricFogEmissionEnergyPtr, NIL) } public final fun getVolumetricFogEmissionEnergy(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVolumetricFogEmissionEnergyPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVolumetricFogEmissionEnergyPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVolumetricFogAnisotropy(anisotropy: Float): Unit { TransferContext.writeArguments(DOUBLE to anisotropy.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVolumetricFogAnisotropyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVolumetricFogAnisotropyPtr, NIL) } public final fun getVolumetricFogAnisotropy(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVolumetricFogAnisotropyPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVolumetricFogAnisotropyPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVolumetricFogLength(length: Float): Unit { TransferContext.writeArguments(DOUBLE to length.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVolumetricFogLengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVolumetricFogLengthPtr, NIL) } public final fun getVolumetricFogLength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVolumetricFogLengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVolumetricFogLengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVolumetricFogDetailSpread(detailSpread: Float): Unit { TransferContext.writeArguments(DOUBLE to detailSpread.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVolumetricFogDetailSpreadPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVolumetricFogDetailSpreadPtr, NIL) } public final fun getVolumetricFogDetailSpread(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVolumetricFogDetailSpreadPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVolumetricFogDetailSpreadPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVolumetricFogGiInject(giInject: Float): Unit { TransferContext.writeArguments(DOUBLE to giInject.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVolumetricFogGiInjectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVolumetricFogGiInjectPtr, NIL) } public final fun getVolumetricFogGiInject(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVolumetricFogGiInjectPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVolumetricFogGiInjectPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVolumetricFogAmbientInject(enabled: Float): Unit { TransferContext.writeArguments(DOUBLE to enabled.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVolumetricFogAmbientInjectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVolumetricFogAmbientInjectPtr, NIL) } public final fun getVolumetricFogAmbientInject(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVolumetricFogAmbientInjectPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVolumetricFogAmbientInjectPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVolumetricFogSkyAffect(skyAffect: Float): Unit { TransferContext.writeArguments(DOUBLE to skyAffect.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVolumetricFogSkyAffectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVolumetricFogSkyAffectPtr, NIL) } public final fun getVolumetricFogSkyAffect(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVolumetricFogSkyAffectPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVolumetricFogSkyAffectPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVolumetricFogTemporalReprojectionEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, - MethodBindings.setVolumetricFogTemporalReprojectionEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVolumetricFogTemporalReprojectionEnabledPtr, + NIL) } public final fun isVolumetricFogTemporalReprojectionEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isVolumetricFogTemporalReprojectionEnabledPtr, + TransferContext.callMethod(ptr, MethodBindings.isVolumetricFogTemporalReprojectionEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -2375,69 +2375,69 @@ public open class Environment : Resource() { public final fun setVolumetricFogTemporalReprojectionAmount(temporalReprojectionAmount: Float): Unit { TransferContext.writeArguments(DOUBLE to temporalReprojectionAmount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVolumetricFogTemporalReprojectionAmountPtr, + TransferContext.callMethod(ptr, MethodBindings.setVolumetricFogTemporalReprojectionAmountPtr, NIL) } public final fun getVolumetricFogTemporalReprojectionAmount(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVolumetricFogTemporalReprojectionAmountPtr, + TransferContext.callMethod(ptr, MethodBindings.getVolumetricFogTemporalReprojectionAmountPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAdjustmentEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setAdjustmentEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAdjustmentEnabledPtr, NIL) } public final fun isAdjustmentEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isAdjustmentEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isAdjustmentEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAdjustmentBrightness(brightness: Float): Unit { TransferContext.writeArguments(DOUBLE to brightness.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAdjustmentBrightnessPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAdjustmentBrightnessPtr, NIL) } public final fun getAdjustmentBrightness(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAdjustmentBrightnessPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAdjustmentBrightnessPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAdjustmentContrast(contrast: Float): Unit { TransferContext.writeArguments(DOUBLE to contrast.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAdjustmentContrastPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAdjustmentContrastPtr, NIL) } public final fun getAdjustmentContrast(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAdjustmentContrastPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAdjustmentContrastPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAdjustmentSaturation(saturation: Float): Unit { TransferContext.writeArguments(DOUBLE to saturation.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAdjustmentSaturationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAdjustmentSaturationPtr, NIL) } public final fun getAdjustmentSaturation(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAdjustmentSaturationPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAdjustmentSaturationPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAdjustmentColorCorrection(colorCorrection: Texture?): Unit { TransferContext.writeArguments(OBJECT to colorCorrection) - TransferContext.callMethod(rawPtr, MethodBindings.setAdjustmentColorCorrectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAdjustmentColorCorrectionPtr, NIL) } public final fun getAdjustmentColorCorrection(): Texture? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAdjustmentColorCorrectionPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getAdjustmentColorCorrectionPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Expression.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Expression.kt index 7da274bb40..56c3e8751a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Expression.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Expression.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedStringArray import godot.core.TypeManager import godot.core.VariantArray @@ -18,7 +19,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -91,7 +91,7 @@ public open class Expression : RefCounted() { public final fun parse(expression: String, inputNames: PackedStringArray = PackedStringArray()): Error { TransferContext.writeArguments(STRING to expression, PACKED_STRING_ARRAY to inputNames) - TransferContext.callMethod(rawPtr, MethodBindings.parsePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.parsePtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -109,7 +109,7 @@ public open class Expression : RefCounted() { constCallsOnly: Boolean = false, ): Any? { TransferContext.writeArguments(ARRAY to inputs, OBJECT to baseInstance, BOOL to showError, BOOL to constCallsOnly) - TransferContext.callMethod(rawPtr, MethodBindings.executePtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.executePtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -118,7 +118,7 @@ public open class Expression : RefCounted() { */ public final fun hasExecuteFailed(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasExecuteFailedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasExecuteFailedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -127,7 +127,7 @@ public open class Expression : RefCounted() { */ public final fun getErrorText(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getErrorTextPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getErrorTextPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/FBXState.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/FBXState.kt index 7742b77f5b..23fc39ea23 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/FBXState.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/FBXState.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -41,13 +41,13 @@ public open class FBXState : GLTFState() { public final fun getAllowGeometryHelperNodes(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAllowGeometryHelperNodesPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getAllowGeometryHelperNodesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAllowGeometryHelperNodes(allow: Boolean): Unit { TransferContext.writeArguments(BOOL to allow) - TransferContext.callMethod(rawPtr, MethodBindings.setAllowGeometryHelperNodesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAllowGeometryHelperNodesPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/FastNoiseLite.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/FastNoiseLite.kt index 489283a8e9..7e23227884 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/FastNoiseLite.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/FastNoiseLite.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE @@ -17,7 +18,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -309,232 +309,232 @@ public open class FastNoiseLite : Noise() { public final fun setNoiseType(type: NoiseType): Unit { TransferContext.writeArguments(LONG to type.id) - TransferContext.callMethod(rawPtr, MethodBindings.setNoiseTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNoiseTypePtr, NIL) } public final fun getNoiseType(): NoiseType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNoiseTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getNoiseTypePtr, LONG) return FastNoiseLite.NoiseType.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setSeed(seed: Int): Unit { TransferContext.writeArguments(LONG to seed.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSeedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSeedPtr, NIL) } public final fun getSeed(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSeedPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSeedPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setFrequency(freq: Float): Unit { TransferContext.writeArguments(DOUBLE to freq.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFrequencyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFrequencyPtr, NIL) } public final fun getFrequency(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFrequencyPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFrequencyPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setOffset(offset: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.setOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOffsetPtr, NIL) } public final fun getOffset(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOffsetPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getOffsetPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setFractalType(type: FractalType): Unit { TransferContext.writeArguments(LONG to type.id) - TransferContext.callMethod(rawPtr, MethodBindings.setFractalTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFractalTypePtr, NIL) } public final fun getFractalType(): FractalType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFractalTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFractalTypePtr, LONG) return FastNoiseLite.FractalType.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setFractalOctaves(octaveCount: Int): Unit { TransferContext.writeArguments(LONG to octaveCount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setFractalOctavesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFractalOctavesPtr, NIL) } public final fun getFractalOctaves(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFractalOctavesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFractalOctavesPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setFractalLacunarity(lacunarity: Float): Unit { TransferContext.writeArguments(DOUBLE to lacunarity.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFractalLacunarityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFractalLacunarityPtr, NIL) } public final fun getFractalLacunarity(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFractalLacunarityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFractalLacunarityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setFractalGain(gain: Float): Unit { TransferContext.writeArguments(DOUBLE to gain.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFractalGainPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFractalGainPtr, NIL) } public final fun getFractalGain(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFractalGainPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFractalGainPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setFractalWeightedStrength(weightedStrength: Float): Unit { TransferContext.writeArguments(DOUBLE to weightedStrength.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFractalWeightedStrengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFractalWeightedStrengthPtr, NIL) } public final fun getFractalWeightedStrength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFractalWeightedStrengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFractalWeightedStrengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setFractalPingPongStrength(pingPongStrength: Float): Unit { TransferContext.writeArguments(DOUBLE to pingPongStrength.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFractalPingPongStrengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFractalPingPongStrengthPtr, NIL) } public final fun getFractalPingPongStrength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFractalPingPongStrengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFractalPingPongStrengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setCellularDistanceFunction(func: CellularDistanceFunction): Unit { TransferContext.writeArguments(LONG to func.id) - TransferContext.callMethod(rawPtr, MethodBindings.setCellularDistanceFunctionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCellularDistanceFunctionPtr, NIL) } public final fun getCellularDistanceFunction(): CellularDistanceFunction { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCellularDistanceFunctionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCellularDistanceFunctionPtr, LONG) return FastNoiseLite.CellularDistanceFunction.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setCellularJitter(jitter: Float): Unit { TransferContext.writeArguments(DOUBLE to jitter.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setCellularJitterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCellularJitterPtr, NIL) } public final fun getCellularJitter(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCellularJitterPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCellularJitterPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setCellularReturnType(ret: CellularReturnType): Unit { TransferContext.writeArguments(LONG to ret.id) - TransferContext.callMethod(rawPtr, MethodBindings.setCellularReturnTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCellularReturnTypePtr, NIL) } public final fun getCellularReturnType(): CellularReturnType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCellularReturnTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCellularReturnTypePtr, LONG) return FastNoiseLite.CellularReturnType.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setDomainWarpEnabled(domainWarpEnabled: Boolean): Unit { TransferContext.writeArguments(BOOL to domainWarpEnabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDomainWarpEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDomainWarpEnabledPtr, NIL) } public final fun isDomainWarpEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDomainWarpEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDomainWarpEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDomainWarpType(domainWarpType: DomainWarpType): Unit { TransferContext.writeArguments(LONG to domainWarpType.id) - TransferContext.callMethod(rawPtr, MethodBindings.setDomainWarpTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDomainWarpTypePtr, NIL) } public final fun getDomainWarpType(): DomainWarpType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDomainWarpTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDomainWarpTypePtr, LONG) return FastNoiseLite.DomainWarpType.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setDomainWarpAmplitude(domainWarpAmplitude: Float): Unit { TransferContext.writeArguments(DOUBLE to domainWarpAmplitude.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDomainWarpAmplitudePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDomainWarpAmplitudePtr, NIL) } public final fun getDomainWarpAmplitude(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDomainWarpAmplitudePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDomainWarpAmplitudePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDomainWarpFrequency(domainWarpFrequency: Float): Unit { TransferContext.writeArguments(DOUBLE to domainWarpFrequency.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDomainWarpFrequencyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDomainWarpFrequencyPtr, NIL) } public final fun getDomainWarpFrequency(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDomainWarpFrequencyPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDomainWarpFrequencyPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDomainWarpFractalType(domainWarpFractalType: DomainWarpFractalType): Unit { TransferContext.writeArguments(LONG to domainWarpFractalType.id) - TransferContext.callMethod(rawPtr, MethodBindings.setDomainWarpFractalTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDomainWarpFractalTypePtr, NIL) } public final fun getDomainWarpFractalType(): DomainWarpFractalType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDomainWarpFractalTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDomainWarpFractalTypePtr, LONG) return FastNoiseLite.DomainWarpFractalType.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setDomainWarpFractalOctaves(domainWarpOctaveCount: Int): Unit { TransferContext.writeArguments(LONG to domainWarpOctaveCount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setDomainWarpFractalOctavesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDomainWarpFractalOctavesPtr, NIL) } public final fun getDomainWarpFractalOctaves(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDomainWarpFractalOctavesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDomainWarpFractalOctavesPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setDomainWarpFractalLacunarity(domainWarpLacunarity: Float): Unit { TransferContext.writeArguments(DOUBLE to domainWarpLacunarity.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDomainWarpFractalLacunarityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDomainWarpFractalLacunarityPtr, NIL) } public final fun getDomainWarpFractalLacunarity(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDomainWarpFractalLacunarityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDomainWarpFractalLacunarityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDomainWarpFractalGain(domainWarpGain: Float): Unit { TransferContext.writeArguments(DOUBLE to domainWarpGain.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDomainWarpFractalGainPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDomainWarpFractalGainPtr, NIL) } public final fun getDomainWarpFractalGain(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDomainWarpFractalGainPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDomainWarpFractalGainPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/FileAccess.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/FileAccess.kt index 7bf04bbb94..847be92898 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/FileAccess.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/FileAccess.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedByteArray import godot.core.PackedStringArray import godot.core.TypeManager @@ -20,7 +21,6 @@ import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -111,7 +111,7 @@ public open class FileAccess internal constructor() : RefCounted() { */ public final fun resize(length: Long): Error { TransferContext.writeArguments(LONG to length) - TransferContext.callMethod(rawPtr, MethodBindings.resizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.resizePtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -125,7 +125,7 @@ public open class FileAccess internal constructor() : RefCounted() { */ public final fun flush(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.flushPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.flushPtr, NIL) } /** @@ -133,7 +133,7 @@ public open class FileAccess internal constructor() : RefCounted() { */ public final fun getPath(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPathPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getPathPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -142,7 +142,7 @@ public open class FileAccess internal constructor() : RefCounted() { */ public final fun getPathAbsolute(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPathAbsolutePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getPathAbsolutePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -151,7 +151,7 @@ public open class FileAccess internal constructor() : RefCounted() { */ public final fun isOpen(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isOpenPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isOpenPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -161,7 +161,7 @@ public open class FileAccess internal constructor() : RefCounted() { */ public final fun seek(position: Long): Unit { TransferContext.writeArguments(LONG to position) - TransferContext.callMethod(rawPtr, MethodBindings.seekPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.seekPtr, NIL) } /** @@ -173,7 +173,7 @@ public open class FileAccess internal constructor() : RefCounted() { @JvmOverloads public final fun seekEnd(position: Long = 0): Unit { TransferContext.writeArguments(LONG to position) - TransferContext.callMethod(rawPtr, MethodBindings.seekEndPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.seekEndPtr, NIL) } /** @@ -181,7 +181,7 @@ public open class FileAccess internal constructor() : RefCounted() { */ public final fun getPosition(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPositionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPositionPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -190,7 +190,7 @@ public open class FileAccess internal constructor() : RefCounted() { */ public final fun getLength(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLengthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLengthPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -214,7 +214,7 @@ public open class FileAccess internal constructor() : RefCounted() { */ public final fun eofReached(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.eofReachedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.eofReachedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -224,7 +224,7 @@ public open class FileAccess internal constructor() : RefCounted() { */ public final fun get8(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.get8Ptr, LONG) + TransferContext.callMethod(ptr, MethodBindings.get8Ptr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -234,7 +234,7 @@ public open class FileAccess internal constructor() : RefCounted() { */ public final fun get16(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.get16Ptr, LONG) + TransferContext.callMethod(ptr, MethodBindings.get16Ptr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -244,7 +244,7 @@ public open class FileAccess internal constructor() : RefCounted() { */ public final fun get32(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.get32Ptr, LONG) + TransferContext.callMethod(ptr, MethodBindings.get32Ptr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -254,7 +254,7 @@ public open class FileAccess internal constructor() : RefCounted() { */ public final fun get64(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.get64Ptr, LONG) + TransferContext.callMethod(ptr, MethodBindings.get64Ptr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -263,7 +263,7 @@ public open class FileAccess internal constructor() : RefCounted() { */ public final fun getFloat(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFloatPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFloatPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -272,7 +272,7 @@ public open class FileAccess internal constructor() : RefCounted() { */ public final fun getDouble(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDoublePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDoublePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -281,7 +281,7 @@ public open class FileAccess internal constructor() : RefCounted() { */ public final fun getReal(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRealPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRealPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -290,7 +290,7 @@ public open class FileAccess internal constructor() : RefCounted() { */ public final fun getBuffer(length: Long): PackedByteArray { TransferContext.writeArguments(LONG to length) - TransferContext.callMethod(rawPtr, MethodBindings.getBufferPtr, PACKED_BYTE_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getBufferPtr, PACKED_BYTE_ARRAY) return (TransferContext.readReturnValue(PACKED_BYTE_ARRAY) as PackedByteArray) } @@ -302,7 +302,7 @@ public open class FileAccess internal constructor() : RefCounted() { */ public final fun getLine(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLinePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getLinePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -327,7 +327,7 @@ public open class FileAccess internal constructor() : RefCounted() { @JvmOverloads public final fun getCsvLine(delim: String = ","): PackedStringArray { TransferContext.writeArguments(STRING to delim) - TransferContext.callMethod(rawPtr, MethodBindings.getCsvLinePtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getCsvLinePtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -339,19 +339,19 @@ public open class FileAccess internal constructor() : RefCounted() { @JvmOverloads public final fun getAsText(skipCr: Boolean = false): String { TransferContext.writeArguments(BOOL to skipCr) - TransferContext.callMethod(rawPtr, MethodBindings.getAsTextPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getAsTextPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun isBigEndian(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isBigEndianPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isBigEndianPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setBigEndian(bigEndian: Boolean): Unit { TransferContext.writeArguments(BOOL to bigEndian) - TransferContext.callMethod(rawPtr, MethodBindings.setBigEndianPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBigEndianPtr, NIL) } /** @@ -360,7 +360,7 @@ public open class FileAccess internal constructor() : RefCounted() { */ public final fun getError(): Error { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getErrorPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getErrorPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -375,7 +375,7 @@ public open class FileAccess internal constructor() : RefCounted() { @JvmOverloads public final fun getVar(allowObjects: Boolean = false): Any? { TransferContext.writeArguments(BOOL to allowObjects) - TransferContext.callMethod(rawPtr, MethodBindings.getVarPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getVarPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -388,7 +388,7 @@ public open class FileAccess internal constructor() : RefCounted() { */ public final fun store8(`value`: Int): Unit { TransferContext.writeArguments(LONG to value.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.store8Ptr, NIL) + TransferContext.callMethod(ptr, MethodBindings.store8Ptr, NIL) } /** @@ -434,7 +434,7 @@ public open class FileAccess internal constructor() : RefCounted() { */ public final fun store16(`value`: Int): Unit { TransferContext.writeArguments(LONG to value.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.store16Ptr, NIL) + TransferContext.callMethod(ptr, MethodBindings.store16Ptr, NIL) } /** @@ -446,7 +446,7 @@ public open class FileAccess internal constructor() : RefCounted() { */ public final fun store32(`value`: Long): Unit { TransferContext.writeArguments(LONG to value) - TransferContext.callMethod(rawPtr, MethodBindings.store32Ptr, NIL) + TransferContext.callMethod(ptr, MethodBindings.store32Ptr, NIL) } /** @@ -456,7 +456,7 @@ public open class FileAccess internal constructor() : RefCounted() { */ public final fun store64(`value`: Long): Unit { TransferContext.writeArguments(LONG to value) - TransferContext.callMethod(rawPtr, MethodBindings.store64Ptr, NIL) + TransferContext.callMethod(ptr, MethodBindings.store64Ptr, NIL) } /** @@ -464,7 +464,7 @@ public open class FileAccess internal constructor() : RefCounted() { */ public final fun storeFloat(`value`: Float): Unit { TransferContext.writeArguments(DOUBLE to value.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.storeFloatPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.storeFloatPtr, NIL) } /** @@ -472,7 +472,7 @@ public open class FileAccess internal constructor() : RefCounted() { */ public final fun storeDouble(`value`: Double): Unit { TransferContext.writeArguments(DOUBLE to value) - TransferContext.callMethod(rawPtr, MethodBindings.storeDoublePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.storeDoublePtr, NIL) } /** @@ -480,7 +480,7 @@ public open class FileAccess internal constructor() : RefCounted() { */ public final fun storeReal(`value`: Float): Unit { TransferContext.writeArguments(DOUBLE to value.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.storeRealPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.storeRealPtr, NIL) } /** @@ -488,7 +488,7 @@ public open class FileAccess internal constructor() : RefCounted() { */ public final fun storeBuffer(buffer: PackedByteArray): Unit { TransferContext.writeArguments(PACKED_BYTE_ARRAY to buffer) - TransferContext.callMethod(rawPtr, MethodBindings.storeBufferPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.storeBufferPtr, NIL) } /** @@ -497,7 +497,7 @@ public open class FileAccess internal constructor() : RefCounted() { */ public final fun storeLine(line: String): Unit { TransferContext.writeArguments(STRING to line) - TransferContext.callMethod(rawPtr, MethodBindings.storeLinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.storeLinePtr, NIL) } /** @@ -509,7 +509,7 @@ public open class FileAccess internal constructor() : RefCounted() { @JvmOverloads public final fun storeCsvLine(values: PackedStringArray, delim: String = ","): Unit { TransferContext.writeArguments(PACKED_STRING_ARRAY to values, STRING to delim) - TransferContext.callMethod(rawPtr, MethodBindings.storeCsvLinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.storeCsvLinePtr, NIL) } /** @@ -522,7 +522,7 @@ public open class FileAccess internal constructor() : RefCounted() { */ public final fun storeString(string: String): Unit { TransferContext.writeArguments(STRING to string) - TransferContext.callMethod(rawPtr, MethodBindings.storeStringPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.storeStringPtr, NIL) } /** @@ -538,7 +538,7 @@ public open class FileAccess internal constructor() : RefCounted() { @JvmOverloads public final fun storeVar(`value`: Any?, fullObjects: Boolean = false): Unit { TransferContext.writeArguments(ANY to value, BOOL to fullObjects) - TransferContext.callMethod(rawPtr, MethodBindings.storeVarPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.storeVarPtr, NIL) } /** @@ -548,7 +548,7 @@ public open class FileAccess internal constructor() : RefCounted() { */ public final fun storePascalString(string: String): Unit { TransferContext.writeArguments(STRING to string) - TransferContext.callMethod(rawPtr, MethodBindings.storePascalStringPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.storePascalStringPtr, NIL) } /** @@ -557,7 +557,7 @@ public open class FileAccess internal constructor() : RefCounted() { */ public final fun getPascalString(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPascalStringPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getPascalStringPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -571,7 +571,7 @@ public open class FileAccess internal constructor() : RefCounted() { */ public final fun close(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.closePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.closePtr, NIL) } public enum class ModeFlags( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/FileDialog.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/FileDialog.kt index 9efc081777..e11fc20e42 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/FileDialog.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/FileDialog.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedStringArray import godot.core.Signal1 @@ -19,7 +20,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -200,7 +200,7 @@ public open class FileDialog : ConfirmationDialog() { */ public final fun clearFilters(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearFiltersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearFiltersPtr, NIL) } /** @@ -214,17 +214,17 @@ public open class FileDialog : ConfirmationDialog() { @JvmOverloads public final fun addFilter(filter: String, description: String = ""): Unit { TransferContext.writeArguments(STRING to filter, STRING to description) - TransferContext.callMethod(rawPtr, MethodBindings.addFilterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addFilterPtr, NIL) } public final fun setFilters(filters: PackedStringArray): Unit { TransferContext.writeArguments(PACKED_STRING_ARRAY to filters) - TransferContext.callMethod(rawPtr, MethodBindings.setFiltersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFiltersPtr, NIL) } public final fun getFilters(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFiltersPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getFiltersPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -233,7 +233,7 @@ public open class FileDialog : ConfirmationDialog() { */ public final fun getOptionName(option: Int): String { TransferContext.writeArguments(LONG to option.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getOptionNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getOptionNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -242,7 +242,7 @@ public open class FileDialog : ConfirmationDialog() { */ public final fun getOptionValues(option: Int): PackedStringArray { TransferContext.writeArguments(LONG to option.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getOptionValuesPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getOptionValuesPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -251,7 +251,7 @@ public open class FileDialog : ConfirmationDialog() { */ public final fun getOptionDefault(option: Int): Int { TransferContext.writeArguments(LONG to option.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getOptionDefaultPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOptionDefaultPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -260,7 +260,7 @@ public open class FileDialog : ConfirmationDialog() { */ public final fun setOptionName(option: Int, name: String): Unit { TransferContext.writeArguments(LONG to option.toLong(), STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.setOptionNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOptionNamePtr, NIL) } /** @@ -268,7 +268,7 @@ public open class FileDialog : ConfirmationDialog() { */ public final fun setOptionValues(option: Int, values: PackedStringArray): Unit { TransferContext.writeArguments(LONG to option.toLong(), PACKED_STRING_ARRAY to values) - TransferContext.callMethod(rawPtr, MethodBindings.setOptionValuesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOptionValuesPtr, NIL) } /** @@ -276,17 +276,17 @@ public open class FileDialog : ConfirmationDialog() { */ public final fun setOptionDefault(option: Int, defaultValueIndex: Int): Unit { TransferContext.writeArguments(LONG to option.toLong(), LONG to defaultValueIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setOptionDefaultPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOptionDefaultPtr, NIL) } public final fun setOptionCount(count: Int): Unit { TransferContext.writeArguments(LONG to count.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setOptionCountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOptionCountPtr, NIL) } public final fun getOptionCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOptionCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOptionCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -302,7 +302,7 @@ public open class FileDialog : ConfirmationDialog() { defaultValueIndex: Int, ): Unit { TransferContext.writeArguments(STRING to name, PACKED_STRING_ARRAY to values, LONG to defaultValueIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addOptionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addOptionPtr, NIL) } /** @@ -311,62 +311,62 @@ public open class FileDialog : ConfirmationDialog() { */ public final fun getSelectedOptions(): Dictionary { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSelectedOptionsPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getSelectedOptionsPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } public final fun getCurrentDir(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCurrentDirPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getCurrentDirPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun getCurrentFile(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCurrentFilePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getCurrentFilePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun getCurrentPath(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCurrentPathPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getCurrentPathPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setCurrentDir(dir: String): Unit { TransferContext.writeArguments(STRING to dir) - TransferContext.callMethod(rawPtr, MethodBindings.setCurrentDirPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCurrentDirPtr, NIL) } public final fun setCurrentFile(`file`: String): Unit { TransferContext.writeArguments(STRING to file) - TransferContext.callMethod(rawPtr, MethodBindings.setCurrentFilePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCurrentFilePtr, NIL) } public final fun setCurrentPath(path: String): Unit { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.setCurrentPathPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCurrentPathPtr, NIL) } public final fun setModeOverridesTitle(`override`: Boolean): Unit { TransferContext.writeArguments(BOOL to override) - TransferContext.callMethod(rawPtr, MethodBindings.setModeOverridesTitlePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setModeOverridesTitlePtr, NIL) } public final fun isModeOverridingTitle(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isModeOverridingTitlePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isModeOverridingTitlePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setFileMode(mode: FileMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setFileModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFileModePtr, NIL) } public final fun getFileMode(): FileMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFileModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFileModePtr, LONG) return FileDialog.FileMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -379,7 +379,7 @@ public open class FileDialog : ConfirmationDialog() { */ public final fun getVbox(): VBoxContainer? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVboxPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getVboxPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as VBoxContainer?) } @@ -390,51 +390,51 @@ public open class FileDialog : ConfirmationDialog() { */ public final fun getLineEdit(): LineEdit? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLineEditPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getLineEditPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as LineEdit?) } public final fun setAccess(access: Access): Unit { TransferContext.writeArguments(LONG to access.id) - TransferContext.callMethod(rawPtr, MethodBindings.setAccessPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAccessPtr, NIL) } public final fun getAccess(): Access { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAccessPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAccessPtr, LONG) return FileDialog.Access.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setRootSubfolder(dir: String): Unit { TransferContext.writeArguments(STRING to dir) - TransferContext.callMethod(rawPtr, MethodBindings.setRootSubfolderPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRootSubfolderPtr, NIL) } public final fun getRootSubfolder(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRootSubfolderPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getRootSubfolderPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setShowHiddenFiles(show: Boolean): Unit { TransferContext.writeArguments(BOOL to show) - TransferContext.callMethod(rawPtr, MethodBindings.setShowHiddenFilesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShowHiddenFilesPtr, NIL) } public final fun isShowingHiddenFiles(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isShowingHiddenFilesPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isShowingHiddenFilesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setUseNativeDialog(native: Boolean): Unit { TransferContext.writeArguments(BOOL to native) - TransferContext.callMethod(rawPtr, MethodBindings.setUseNativeDialogPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseNativeDialogPtr, NIL) } public final fun getUseNativeDialog(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUseNativeDialogPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getUseNativeDialogPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -443,7 +443,7 @@ public open class FileDialog : ConfirmationDialog() { */ public final fun deselectAll(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.deselectAllPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.deselectAllPtr, NIL) } /** @@ -452,7 +452,7 @@ public open class FileDialog : ConfirmationDialog() { */ public final fun invalidate(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.invalidatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.invalidatePtr, NIL) } public enum class FileMode( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/FlowContainer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/FlowContainer.kt index 395b68eecc..3c06059f3a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/FlowContainer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/FlowContainer.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -87,51 +87,51 @@ public open class FlowContainer : Container() { */ public final fun getLineCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLineCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLineCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setAlignment(alignment: AlignmentMode): Unit { TransferContext.writeArguments(LONG to alignment.id) - TransferContext.callMethod(rawPtr, MethodBindings.setAlignmentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAlignmentPtr, NIL) } public final fun getAlignment(): AlignmentMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAlignmentPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAlignmentPtr, LONG) return FlowContainer.AlignmentMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setLastWrapAlignment(lastWrapAlignment: LastWrapAlignmentMode): Unit { TransferContext.writeArguments(LONG to lastWrapAlignment.id) - TransferContext.callMethod(rawPtr, MethodBindings.setLastWrapAlignmentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLastWrapAlignmentPtr, NIL) } public final fun getLastWrapAlignment(): LastWrapAlignmentMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLastWrapAlignmentPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLastWrapAlignmentPtr, LONG) return FlowContainer.LastWrapAlignmentMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setVertical(vertical: Boolean): Unit { TransferContext.writeArguments(BOOL to vertical) - TransferContext.callMethod(rawPtr, MethodBindings.setVerticalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVerticalPtr, NIL) } public final fun isVertical(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isVerticalPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isVerticalPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setReverseFill(reverseFill: Boolean): Unit { TransferContext.writeArguments(BOOL to reverseFill) - TransferContext.callMethod(rawPtr, MethodBindings.setReverseFillPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setReverseFillPtr, NIL) } public final fun isReverseFill(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isReverseFillPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isReverseFillPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/FogMaterial.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/FogMaterial.kt index 2608f89c2f..0184bc0fcf 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/FogMaterial.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/FogMaterial.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.TypeManager import godot.core.VariantParser.COLOR @@ -16,7 +17,6 @@ import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -171,67 +171,67 @@ public open class FogMaterial : Material() { public final fun setDensity(density: Float): Unit { TransferContext.writeArguments(DOUBLE to density.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDensityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDensityPtr, NIL) } public final fun getDensity(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDensityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDensityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAlbedo(albedo: Color): Unit { TransferContext.writeArguments(COLOR to albedo) - TransferContext.callMethod(rawPtr, MethodBindings.setAlbedoPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAlbedoPtr, NIL) } public final fun getAlbedo(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAlbedoPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getAlbedoPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setEmission(emission: Color): Unit { TransferContext.writeArguments(COLOR to emission) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionPtr, NIL) } public final fun getEmission(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmissionPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getEmissionPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setHeightFalloff(heightFalloff: Float): Unit { TransferContext.writeArguments(DOUBLE to heightFalloff.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setHeightFalloffPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHeightFalloffPtr, NIL) } public final fun getHeightFalloff(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHeightFalloffPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getHeightFalloffPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setEdgeFade(edgeFade: Float): Unit { TransferContext.writeArguments(DOUBLE to edgeFade.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setEdgeFadePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEdgeFadePtr, NIL) } public final fun getEdgeFade(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEdgeFadePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getEdgeFadePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDensityTexture(densityTexture: Texture3D?): Unit { TransferContext.writeArguments(OBJECT to densityTexture) - TransferContext.callMethod(rawPtr, MethodBindings.setDensityTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDensityTexturePtr, NIL) } public final fun getDensityTexture(): Texture3D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDensityTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getDensityTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture3D?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/FogVolume.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/FogVolume.kt index 88a5b5cfe7..014efe929e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/FogVolume.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/FogVolume.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL @@ -16,7 +17,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -126,34 +126,34 @@ public open class FogVolume : VisualInstance3D() { public final fun setSize(size: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to size) - TransferContext.callMethod(rawPtr, MethodBindings.setSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSizePtr, NIL) } public final fun getSize(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSizePtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getSizePtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setShape(shape: RenderingServer.FogVolumeShape): Unit { TransferContext.writeArguments(LONG to shape.id) - TransferContext.callMethod(rawPtr, MethodBindings.setShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShapePtr, NIL) } public final fun getShape(): RenderingServer.FogVolumeShape { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getShapePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getShapePtr, LONG) return RenderingServer.FogVolumeShape.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setMaterial(material: Material?): Unit { TransferContext.writeArguments(OBJECT to material) - TransferContext.callMethod(rawPtr, MethodBindings.setMaterialPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaterialPtr, NIL) } public final fun getMaterial(): Material? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaterialPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getMaterialPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Material?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Font.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Font.kt index 1720930ea1..b1e689621e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Font.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Font.kt @@ -8,6 +8,7 @@ package godot import godot.TextServer.FontStyleValue import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.Dictionary import godot.core.RID @@ -27,7 +28,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -66,12 +66,12 @@ public open class Font internal constructor() : Resource() { public final fun setFallbacks(fallbacks: VariantArray): Unit { TransferContext.writeArguments(ARRAY to fallbacks) - TransferContext.callMethod(rawPtr, MethodBindings.setFallbacksPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFallbacksPtr, NIL) } public final fun getFallbacks(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFallbacksPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getFallbacksPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -91,7 +91,7 @@ public open class Font internal constructor() : Resource() { baselineOffset: Float = 0.0f, ): RID { TransferContext.writeArguments(DICTIONARY to variationCoordinates, LONG to faceIndex.toLong(), DOUBLE to strength.toDouble(), TRANSFORM2D to transform, LONG to spacingTop.toLong(), LONG to spacingBottom.toLong(), LONG to spacingSpace.toLong(), LONG to spacingGlyph.toLong(), DOUBLE to baselineOffset.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.findVariationPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.findVariationPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -100,7 +100,7 @@ public open class Font internal constructor() : Resource() { */ public final fun getRids(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRidsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getRidsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -113,7 +113,7 @@ public open class Font internal constructor() : Resource() { @JvmOverloads public final fun getHeight(fontSize: Int = 16): Float { TransferContext.writeArguments(LONG to fontSize.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getHeightPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getHeightPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -126,7 +126,7 @@ public open class Font internal constructor() : Resource() { @JvmOverloads public final fun getAscent(fontSize: Int = 16): Float { TransferContext.writeArguments(LONG to fontSize.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getAscentPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAscentPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -139,7 +139,7 @@ public open class Font internal constructor() : Resource() { @JvmOverloads public final fun getDescent(fontSize: Int = 16): Float { TransferContext.writeArguments(LONG to fontSize.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getDescentPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDescentPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -151,7 +151,7 @@ public open class Font internal constructor() : Resource() { @JvmOverloads public final fun getUnderlinePosition(fontSize: Int = 16): Float { TransferContext.writeArguments(LONG to fontSize.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getUnderlinePositionPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getUnderlinePositionPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -163,7 +163,7 @@ public open class Font internal constructor() : Resource() { @JvmOverloads public final fun getUnderlineThickness(fontSize: Int = 16): Float { TransferContext.writeArguments(LONG to fontSize.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getUnderlineThicknessPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getUnderlineThicknessPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -172,7 +172,7 @@ public open class Font internal constructor() : Resource() { */ public final fun getFontName(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFontNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getFontNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -181,7 +181,7 @@ public open class Font internal constructor() : Resource() { */ public final fun getFontStyleName(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFontStyleNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getFontStyleNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -191,7 +191,7 @@ public open class Font internal constructor() : Resource() { */ public final fun getOtNameStrings(): Dictionary { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOtNameStringsPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getOtNameStringsPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -200,7 +200,7 @@ public open class Font internal constructor() : Resource() { */ public final fun getFontStyle(): TextServer.FontStyle { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFontStylePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFontStylePtr, LONG) return FontStyleValue(TransferContext.readReturnValue(LONG) as Long) } @@ -210,7 +210,7 @@ public open class Font internal constructor() : Resource() { */ public final fun getFontWeight(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFontWeightPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFontWeightPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -220,7 +220,7 @@ public open class Font internal constructor() : Resource() { */ public final fun getFontStretch(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFontStretchPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFontStretchPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -229,7 +229,7 @@ public open class Font internal constructor() : Resource() { */ public final fun getSpacing(spacing: TextServer.SpacingType): Int { TransferContext.writeArguments(LONG to spacing.id) - TransferContext.callMethod(rawPtr, MethodBindings.getSpacingPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSpacingPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -240,7 +240,7 @@ public open class Font internal constructor() : Resource() { */ public final fun getOpentypeFeatures(): Dictionary { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOpentypeFeaturesPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getOpentypeFeaturesPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -249,7 +249,7 @@ public open class Font internal constructor() : Resource() { */ public final fun setCacheCapacity(singleLine: Int, multiLine: Int): Unit { TransferContext.writeArguments(LONG to singleLine.toLong(), LONG to multiLine.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setCacheCapacityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCacheCapacityPtr, NIL) } /** @@ -287,7 +287,7 @@ public open class Font internal constructor() : Resource() { orientation: TextServer.Orientation = TextServer.Orientation.ORIENTATION_HORIZONTAL, ): Vector2 { TransferContext.writeArguments(STRING to text, LONG to alignment.id, DOUBLE to width.toDouble(), LONG to fontSize.toLong(), LONG to justificationFlags.flag, LONG to direction.id, LONG to orientation.id) - TransferContext.callMethod(rawPtr, MethodBindings.getStringSizePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getStringSizePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -309,7 +309,7 @@ public open class Font internal constructor() : Resource() { orientation: TextServer.Orientation = TextServer.Orientation.ORIENTATION_HORIZONTAL, ): Vector2 { TransferContext.writeArguments(STRING to text, LONG to alignment.id, DOUBLE to width.toDouble(), LONG to fontSize.toLong(), LONG to maxLines.toLong(), LONG to brkFlags.flag, LONG to justificationFlags.flag, LONG to direction.id, LONG to orientation.id) - TransferContext.callMethod(rawPtr, MethodBindings.getMultilineStringSizePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getMultilineStringSizePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -333,7 +333,7 @@ public open class Font internal constructor() : Resource() { orientation: TextServer.Orientation = TextServer.Orientation.ORIENTATION_HORIZONTAL, ): Unit { TransferContext.writeArguments(_RID to canvasItem, VECTOR2 to pos, STRING to text, LONG to alignment.id, DOUBLE to width.toDouble(), LONG to fontSize.toLong(), COLOR to modulate, LONG to justificationFlags.flag, LONG to direction.id, LONG to orientation.id) - TransferContext.callMethod(rawPtr, MethodBindings.drawStringPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawStringPtr, NIL) } /** @@ -359,7 +359,7 @@ public open class Font internal constructor() : Resource() { orientation: TextServer.Orientation = TextServer.Orientation.ORIENTATION_HORIZONTAL, ): Unit { TransferContext.writeArguments(_RID to canvasItem, VECTOR2 to pos, STRING to text, LONG to alignment.id, DOUBLE to width.toDouble(), LONG to fontSize.toLong(), LONG to maxLines.toLong(), COLOR to modulate, LONG to brkFlags.flag, LONG to justificationFlags.flag, LONG to direction.id, LONG to orientation.id) - TransferContext.callMethod(rawPtr, MethodBindings.drawMultilineStringPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawMultilineStringPtr, NIL) } /** @@ -383,7 +383,7 @@ public open class Font internal constructor() : Resource() { orientation: TextServer.Orientation = TextServer.Orientation.ORIENTATION_HORIZONTAL, ): Unit { TransferContext.writeArguments(_RID to canvasItem, VECTOR2 to pos, STRING to text, LONG to alignment.id, DOUBLE to width.toDouble(), LONG to fontSize.toLong(), LONG to size.toLong(), COLOR to modulate, LONG to justificationFlags.flag, LONG to direction.id, LONG to orientation.id) - TransferContext.callMethod(rawPtr, MethodBindings.drawStringOutlinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawStringOutlinePtr, NIL) } /** @@ -410,7 +410,7 @@ public open class Font internal constructor() : Resource() { orientation: TextServer.Orientation = TextServer.Orientation.ORIENTATION_HORIZONTAL, ): Unit { TransferContext.writeArguments(_RID to canvasItem, VECTOR2 to pos, STRING to text, LONG to alignment.id, DOUBLE to width.toDouble(), LONG to fontSize.toLong(), LONG to maxLines.toLong(), LONG to size.toLong(), COLOR to modulate, LONG to brkFlags.flag, LONG to justificationFlags.flag, LONG to direction.id, LONG to orientation.id) - TransferContext.callMethod(rawPtr, MethodBindings.drawMultilineStringOutlinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawMultilineStringOutlinePtr, NIL) } /** @@ -421,7 +421,7 @@ public open class Font internal constructor() : Resource() { */ public final fun getCharSize(char: Long, fontSize: Int): Vector2 { TransferContext.writeArguments(LONG to char, LONG to fontSize.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCharSizePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getCharSizePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -441,7 +441,7 @@ public open class Font internal constructor() : Resource() { modulate: Color = Color(Color(1, 1, 1, 1)), ): Float { TransferContext.writeArguments(_RID to canvasItem, VECTOR2 to pos, LONG to char, LONG to fontSize.toLong(), COLOR to modulate) - TransferContext.callMethod(rawPtr, MethodBindings.drawCharPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.drawCharPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -462,7 +462,7 @@ public open class Font internal constructor() : Resource() { modulate: Color = Color(Color(1, 1, 1, 1)), ): Float { TransferContext.writeArguments(_RID to canvasItem, VECTOR2 to pos, LONG to char, LONG to fontSize.toLong(), LONG to size.toLong(), COLOR to modulate) - TransferContext.callMethod(rawPtr, MethodBindings.drawCharOutlinePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.drawCharOutlinePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -471,7 +471,7 @@ public open class Font internal constructor() : Resource() { */ public final fun hasChar(char: Long): Boolean { TransferContext.writeArguments(LONG to char) - TransferContext.callMethod(rawPtr, MethodBindings.hasCharPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasCharPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -482,7 +482,7 @@ public open class Font internal constructor() : Resource() { */ public final fun getSupportedChars(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSupportedCharsPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getSupportedCharsPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -492,7 +492,7 @@ public open class Font internal constructor() : Resource() { */ public final fun isLanguageSupported(language: String): Boolean { TransferContext.writeArguments(STRING to language) - TransferContext.callMethod(rawPtr, MethodBindings.isLanguageSupportedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isLanguageSupportedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -502,7 +502,7 @@ public open class Font internal constructor() : Resource() { */ public final fun isScriptSupported(script: String): Boolean { TransferContext.writeArguments(STRING to script) - TransferContext.callMethod(rawPtr, MethodBindings.isScriptSupportedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isScriptSupportedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -511,7 +511,7 @@ public open class Font internal constructor() : Resource() { */ public final fun getSupportedFeatureList(): Dictionary { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSupportedFeatureListPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getSupportedFeatureListPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -538,7 +538,7 @@ public open class Font internal constructor() : Resource() { */ public final fun getSupportedVariationList(): Dictionary { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSupportedVariationListPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getSupportedVariationListPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -547,7 +547,7 @@ public open class Font internal constructor() : Resource() { */ public final fun getFaceCount(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFaceCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFaceCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/FontFile.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/FontFile.kt index 8973a422c1..863f4737ae 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/FontFile.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/FontFile.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedByteArray import godot.core.PackedInt32Array @@ -33,7 +34,6 @@ import godot.core.VariantParser.VECTOR2I import godot.core.Vector2 import godot.core.Vector2i import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -337,7 +337,7 @@ public open class FontFile : Font() { */ public final fun loadBitmapFont(path: String): Error { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.loadBitmapFontPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.loadBitmapFontPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -349,187 +349,187 @@ public open class FontFile : Font() { */ public final fun loadDynamicFont(path: String): Error { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.loadDynamicFontPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.loadDynamicFontPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setData(`data`: PackedByteArray): Unit { TransferContext.writeArguments(PACKED_BYTE_ARRAY to data) - TransferContext.callMethod(rawPtr, MethodBindings.setDataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDataPtr, NIL) } public final fun getData(): PackedByteArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDataPtr, PACKED_BYTE_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getDataPtr, PACKED_BYTE_ARRAY) return (TransferContext.readReturnValue(PACKED_BYTE_ARRAY) as PackedByteArray) } public final fun setFontName(name: String): Unit { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.setFontNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFontNamePtr, NIL) } public final fun setFontStyleName(name: String): Unit { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.setFontStyleNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFontStyleNamePtr, NIL) } public final fun setFontStyle(style: TextServer.FontStyle): Unit { TransferContext.writeArguments(LONG to style.flag) - TransferContext.callMethod(rawPtr, MethodBindings.setFontStylePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFontStylePtr, NIL) } public final fun setFontWeight(weight: Int): Unit { TransferContext.writeArguments(LONG to weight.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setFontWeightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFontWeightPtr, NIL) } public final fun setFontStretch(stretch: Int): Unit { TransferContext.writeArguments(LONG to stretch.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setFontStretchPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFontStretchPtr, NIL) } public final fun setAntialiasing(antialiasing: TextServer.FontAntialiasing): Unit { TransferContext.writeArguments(LONG to antialiasing.id) - TransferContext.callMethod(rawPtr, MethodBindings.setAntialiasingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAntialiasingPtr, NIL) } public final fun getAntialiasing(): TextServer.FontAntialiasing { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAntialiasingPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAntialiasingPtr, LONG) return TextServer.FontAntialiasing.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setDisableEmbeddedBitmaps(disableEmbeddedBitmaps: Boolean): Unit { TransferContext.writeArguments(BOOL to disableEmbeddedBitmaps) - TransferContext.callMethod(rawPtr, MethodBindings.setDisableEmbeddedBitmapsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDisableEmbeddedBitmapsPtr, NIL) } public final fun getDisableEmbeddedBitmaps(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDisableEmbeddedBitmapsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getDisableEmbeddedBitmapsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setGenerateMipmaps(generateMipmaps: Boolean): Unit { TransferContext.writeArguments(BOOL to generateMipmaps) - TransferContext.callMethod(rawPtr, MethodBindings.setGenerateMipmapsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGenerateMipmapsPtr, NIL) } public final fun getGenerateMipmaps(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGenerateMipmapsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getGenerateMipmapsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setMultichannelSignedDistanceField(msdf: Boolean): Unit { TransferContext.writeArguments(BOOL to msdf) - TransferContext.callMethod(rawPtr, MethodBindings.setMultichannelSignedDistanceFieldPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMultichannelSignedDistanceFieldPtr, NIL) } public final fun isMultichannelSignedDistanceField(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isMultichannelSignedDistanceFieldPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isMultichannelSignedDistanceFieldPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setMsdfPixelRange(msdfPixelRange: Int): Unit { TransferContext.writeArguments(LONG to msdfPixelRange.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMsdfPixelRangePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMsdfPixelRangePtr, NIL) } public final fun getMsdfPixelRange(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMsdfPixelRangePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMsdfPixelRangePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setMsdfSize(msdfSize: Int): Unit { TransferContext.writeArguments(LONG to msdfSize.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMsdfSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMsdfSizePtr, NIL) } public final fun getMsdfSize(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMsdfSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMsdfSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setFixedSize(fixedSize: Int): Unit { TransferContext.writeArguments(LONG to fixedSize.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setFixedSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFixedSizePtr, NIL) } public final fun getFixedSize(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFixedSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFixedSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setFixedSizeScaleMode(fixedSizeScaleMode: TextServer.FixedSizeScaleMode): Unit { TransferContext.writeArguments(LONG to fixedSizeScaleMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setFixedSizeScaleModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFixedSizeScaleModePtr, NIL) } public final fun getFixedSizeScaleMode(): TextServer.FixedSizeScaleMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFixedSizeScaleModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFixedSizeScaleModePtr, LONG) return TextServer.FixedSizeScaleMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setAllowSystemFallback(allowSystemFallback: Boolean): Unit { TransferContext.writeArguments(BOOL to allowSystemFallback) - TransferContext.callMethod(rawPtr, MethodBindings.setAllowSystemFallbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAllowSystemFallbackPtr, NIL) } public final fun isAllowSystemFallback(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isAllowSystemFallbackPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isAllowSystemFallbackPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setForceAutohinter(forceAutohinter: Boolean): Unit { TransferContext.writeArguments(BOOL to forceAutohinter) - TransferContext.callMethod(rawPtr, MethodBindings.setForceAutohinterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setForceAutohinterPtr, NIL) } public final fun isForceAutohinter(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isForceAutohinterPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isForceAutohinterPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setHinting(hinting: TextServer.Hinting): Unit { TransferContext.writeArguments(LONG to hinting.id) - TransferContext.callMethod(rawPtr, MethodBindings.setHintingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHintingPtr, NIL) } public final fun getHinting(): TextServer.Hinting { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHintingPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getHintingPtr, LONG) return TextServer.Hinting.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setSubpixelPositioning(subpixelPositioning: TextServer.SubpixelPositioning): Unit { TransferContext.writeArguments(LONG to subpixelPositioning.id) - TransferContext.callMethod(rawPtr, MethodBindings.setSubpixelPositioningPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSubpixelPositioningPtr, NIL) } public final fun getSubpixelPositioning(): TextServer.SubpixelPositioning { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSubpixelPositioningPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSubpixelPositioningPtr, LONG) return TextServer.SubpixelPositioning.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setOversampling(oversampling: Float): Unit { TransferContext.writeArguments(DOUBLE to oversampling.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setOversamplingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOversamplingPtr, NIL) } public final fun getOversampling(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOversamplingPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getOversamplingPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -538,7 +538,7 @@ public open class FontFile : Font() { */ public final fun getCacheCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCacheCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCacheCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -547,7 +547,7 @@ public open class FontFile : Font() { */ public final fun clearCache(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearCachePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearCachePtr, NIL) } /** @@ -555,7 +555,7 @@ public open class FontFile : Font() { */ public final fun removeCache(cacheIndex: Int): Unit { TransferContext.writeArguments(LONG to cacheIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeCachePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeCachePtr, NIL) } /** @@ -564,7 +564,7 @@ public open class FontFile : Font() { */ public final fun getSizeCacheList(cacheIndex: Int): VariantArray { TransferContext.writeArguments(LONG to cacheIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSizeCacheListPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getSizeCacheListPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -573,7 +573,7 @@ public open class FontFile : Font() { */ public final fun clearSizeCache(cacheIndex: Int): Unit { TransferContext.writeArguments(LONG to cacheIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.clearSizeCachePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearSizeCachePtr, NIL) } /** @@ -581,7 +581,7 @@ public open class FontFile : Font() { */ public final fun removeSizeCache(cacheIndex: Int, size: Vector2i): Unit { TransferContext.writeArguments(LONG to cacheIndex.toLong(), VECTOR2I to size) - TransferContext.callMethod(rawPtr, MethodBindings.removeSizeCachePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeSizeCachePtr, NIL) } /** @@ -591,7 +591,7 @@ public open class FontFile : Font() { public final fun setVariationCoordinates(cacheIndex: Int, variationCoordinates: Dictionary): Unit { TransferContext.writeArguments(LONG to cacheIndex.toLong(), DICTIONARY to variationCoordinates) - TransferContext.callMethod(rawPtr, MethodBindings.setVariationCoordinatesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVariationCoordinatesPtr, NIL) } /** @@ -600,7 +600,7 @@ public open class FontFile : Font() { */ public final fun getVariationCoordinates(cacheIndex: Int): Dictionary { TransferContext.writeArguments(LONG to cacheIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getVariationCoordinatesPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getVariationCoordinatesPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -610,7 +610,7 @@ public open class FontFile : Font() { */ public final fun setEmbolden(cacheIndex: Int, strength: Float): Unit { TransferContext.writeArguments(LONG to cacheIndex.toLong(), DOUBLE to strength.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setEmboldenPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmboldenPtr, NIL) } /** @@ -619,7 +619,7 @@ public open class FontFile : Font() { */ public final fun getEmbolden(cacheIndex: Int): Float { TransferContext.writeArguments(LONG to cacheIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getEmboldenPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getEmboldenPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -629,7 +629,7 @@ public open class FontFile : Font() { */ public final fun setTransform(cacheIndex: Int, transform: Transform2D): Unit { TransferContext.writeArguments(LONG to cacheIndex.toLong(), TRANSFORM2D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.setTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTransformPtr, NIL) } /** @@ -638,7 +638,7 @@ public open class FontFile : Font() { */ public final fun getTransform(cacheIndex: Int): Transform2D { TransferContext.writeArguments(LONG to cacheIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTransformPtr, TRANSFORM2D) + TransferContext.callMethod(ptr, MethodBindings.getTransformPtr, TRANSFORM2D) return (TransferContext.readReturnValue(TRANSFORM2D) as Transform2D) } @@ -652,7 +652,7 @@ public open class FontFile : Font() { `value`: Long, ): Unit { TransferContext.writeArguments(LONG to cacheIndex.toLong(), LONG to spacing.id, LONG to value) - TransferContext.callMethod(rawPtr, MethodBindings.setExtraSpacingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExtraSpacingPtr, NIL) } /** @@ -661,7 +661,7 @@ public open class FontFile : Font() { */ public final fun getExtraSpacing(cacheIndex: Int, spacing: TextServer.SpacingType): Long { TransferContext.writeArguments(LONG to cacheIndex.toLong(), LONG to spacing.id) - TransferContext.callMethod(rawPtr, MethodBindings.getExtraSpacingPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getExtraSpacingPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -670,7 +670,7 @@ public open class FontFile : Font() { */ public final fun setExtraBaselineOffset(cacheIndex: Int, baselineOffset: Float): Unit { TransferContext.writeArguments(LONG to cacheIndex.toLong(), DOUBLE to baselineOffset.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setExtraBaselineOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExtraBaselineOffsetPtr, NIL) } /** @@ -678,7 +678,7 @@ public open class FontFile : Font() { */ public final fun getExtraBaselineOffset(cacheIndex: Int): Float { TransferContext.writeArguments(LONG to cacheIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getExtraBaselineOffsetPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getExtraBaselineOffsetPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -687,7 +687,7 @@ public open class FontFile : Font() { */ public final fun setFaceIndex(cacheIndex: Int, faceIndex: Long): Unit { TransferContext.writeArguments(LONG to cacheIndex.toLong(), LONG to faceIndex) - TransferContext.callMethod(rawPtr, MethodBindings.setFaceIndexPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFaceIndexPtr, NIL) } /** @@ -695,7 +695,7 @@ public open class FontFile : Font() { */ public final fun getFaceIndex(cacheIndex: Int): Long { TransferContext.writeArguments(LONG to cacheIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getFaceIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFaceIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -708,7 +708,7 @@ public open class FontFile : Font() { ascent: Float, ): Unit { TransferContext.writeArguments(LONG to cacheIndex.toLong(), LONG to size.toLong(), DOUBLE to ascent.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setCacheAscentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCacheAscentPtr, NIL) } /** @@ -716,7 +716,7 @@ public open class FontFile : Font() { */ public final fun getCacheAscent(cacheIndex: Int, size: Int): Float { TransferContext.writeArguments(LONG to cacheIndex.toLong(), LONG to size.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCacheAscentPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCacheAscentPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -729,7 +729,7 @@ public open class FontFile : Font() { descent: Float, ): Unit { TransferContext.writeArguments(LONG to cacheIndex.toLong(), LONG to size.toLong(), DOUBLE to descent.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setCacheDescentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCacheDescentPtr, NIL) } /** @@ -737,7 +737,7 @@ public open class FontFile : Font() { */ public final fun getCacheDescent(cacheIndex: Int, size: Int): Float { TransferContext.writeArguments(LONG to cacheIndex.toLong(), LONG to size.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCacheDescentPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCacheDescentPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -750,7 +750,7 @@ public open class FontFile : Font() { underlinePosition: Float, ): Unit { TransferContext.writeArguments(LONG to cacheIndex.toLong(), LONG to size.toLong(), DOUBLE to underlinePosition.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setCacheUnderlinePositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCacheUnderlinePositionPtr, NIL) } /** @@ -758,7 +758,7 @@ public open class FontFile : Font() { */ public final fun getCacheUnderlinePosition(cacheIndex: Int, size: Int): Float { TransferContext.writeArguments(LONG to cacheIndex.toLong(), LONG to size.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCacheUnderlinePositionPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCacheUnderlinePositionPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -771,7 +771,7 @@ public open class FontFile : Font() { underlineThickness: Float, ): Unit { TransferContext.writeArguments(LONG to cacheIndex.toLong(), LONG to size.toLong(), DOUBLE to underlineThickness.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setCacheUnderlineThicknessPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCacheUnderlineThicknessPtr, NIL) } /** @@ -779,7 +779,7 @@ public open class FontFile : Font() { */ public final fun getCacheUnderlineThickness(cacheIndex: Int, size: Int): Float { TransferContext.writeArguments(LONG to cacheIndex.toLong(), LONG to size.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCacheUnderlineThicknessPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCacheUnderlineThicknessPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -792,7 +792,7 @@ public open class FontFile : Font() { scale: Float, ): Unit { TransferContext.writeArguments(LONG to cacheIndex.toLong(), LONG to size.toLong(), DOUBLE to scale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setCacheScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCacheScalePtr, NIL) } /** @@ -800,7 +800,7 @@ public open class FontFile : Font() { */ public final fun getCacheScale(cacheIndex: Int, size: Int): Float { TransferContext.writeArguments(LONG to cacheIndex.toLong(), LONG to size.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCacheScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCacheScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -809,7 +809,7 @@ public open class FontFile : Font() { */ public final fun getTextureCount(cacheIndex: Int, size: Vector2i): Int { TransferContext.writeArguments(LONG to cacheIndex.toLong(), VECTOR2I to size) - TransferContext.callMethod(rawPtr, MethodBindings.getTextureCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTextureCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -820,7 +820,7 @@ public open class FontFile : Font() { */ public final fun clearTextures(cacheIndex: Int, size: Vector2i): Unit { TransferContext.writeArguments(LONG to cacheIndex.toLong(), VECTOR2I to size) - TransferContext.callMethod(rawPtr, MethodBindings.clearTexturesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearTexturesPtr, NIL) } /** @@ -834,7 +834,7 @@ public open class FontFile : Font() { textureIndex: Int, ): Unit { TransferContext.writeArguments(LONG to cacheIndex.toLong(), VECTOR2I to size, LONG to textureIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeTexturePtr, NIL) } /** @@ -847,7 +847,7 @@ public open class FontFile : Font() { image: Image?, ): Unit { TransferContext.writeArguments(LONG to cacheIndex.toLong(), VECTOR2I to size, LONG to textureIndex.toLong(), OBJECT to image) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureImagePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureImagePtr, NIL) } /** @@ -859,7 +859,7 @@ public open class FontFile : Font() { textureIndex: Int, ): Image? { TransferContext.writeArguments(LONG to cacheIndex.toLong(), VECTOR2I to size, LONG to textureIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTextureImagePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTextureImagePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Image?) } @@ -873,7 +873,7 @@ public open class FontFile : Font() { offset: PackedInt32Array, ): Unit { TransferContext.writeArguments(LONG to cacheIndex.toLong(), VECTOR2I to size, LONG to textureIndex.toLong(), PACKED_INT_32_ARRAY to offset) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureOffsetsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureOffsetsPtr, NIL) } /** @@ -885,7 +885,7 @@ public open class FontFile : Font() { textureIndex: Int, ): PackedInt32Array { TransferContext.writeArguments(LONG to cacheIndex.toLong(), VECTOR2I to size, LONG to textureIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTextureOffsetsPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getTextureOffsetsPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } @@ -894,7 +894,7 @@ public open class FontFile : Font() { */ public final fun getGlyphList(cacheIndex: Int, size: Vector2i): PackedInt32Array { TransferContext.writeArguments(LONG to cacheIndex.toLong(), VECTOR2I to size) - TransferContext.callMethod(rawPtr, MethodBindings.getGlyphListPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getGlyphListPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } @@ -905,7 +905,7 @@ public open class FontFile : Font() { */ public final fun clearGlyphs(cacheIndex: Int, size: Vector2i): Unit { TransferContext.writeArguments(LONG to cacheIndex.toLong(), VECTOR2I to size) - TransferContext.callMethod(rawPtr, MethodBindings.clearGlyphsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearGlyphsPtr, NIL) } /** @@ -919,7 +919,7 @@ public open class FontFile : Font() { glyph: Int, ): Unit { TransferContext.writeArguments(LONG to cacheIndex.toLong(), VECTOR2I to size, LONG to glyph.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeGlyphPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeGlyphPtr, NIL) } /** @@ -933,7 +933,7 @@ public open class FontFile : Font() { advance: Vector2, ): Unit { TransferContext.writeArguments(LONG to cacheIndex.toLong(), LONG to size.toLong(), LONG to glyph.toLong(), VECTOR2 to advance) - TransferContext.callMethod(rawPtr, MethodBindings.setGlyphAdvancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlyphAdvancePtr, NIL) } /** @@ -946,7 +946,7 @@ public open class FontFile : Font() { glyph: Int, ): Vector2 { TransferContext.writeArguments(LONG to cacheIndex.toLong(), LONG to size.toLong(), LONG to glyph.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getGlyphAdvancePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getGlyphAdvancePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -960,7 +960,7 @@ public open class FontFile : Font() { offset: Vector2, ): Unit { TransferContext.writeArguments(LONG to cacheIndex.toLong(), VECTOR2I to size, LONG to glyph.toLong(), VECTOR2 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.setGlyphOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlyphOffsetPtr, NIL) } /** @@ -972,7 +972,7 @@ public open class FontFile : Font() { glyph: Int, ): Vector2 { TransferContext.writeArguments(LONG to cacheIndex.toLong(), VECTOR2I to size, LONG to glyph.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getGlyphOffsetPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getGlyphOffsetPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -986,7 +986,7 @@ public open class FontFile : Font() { glSize: Vector2, ): Unit { TransferContext.writeArguments(LONG to cacheIndex.toLong(), VECTOR2I to size, LONG to glyph.toLong(), VECTOR2 to glSize) - TransferContext.callMethod(rawPtr, MethodBindings.setGlyphSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlyphSizePtr, NIL) } /** @@ -998,7 +998,7 @@ public open class FontFile : Font() { glyph: Int, ): Vector2 { TransferContext.writeArguments(LONG to cacheIndex.toLong(), VECTOR2I to size, LONG to glyph.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getGlyphSizePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getGlyphSizePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -1012,7 +1012,7 @@ public open class FontFile : Font() { uvRect: Rect2, ): Unit { TransferContext.writeArguments(LONG to cacheIndex.toLong(), VECTOR2I to size, LONG to glyph.toLong(), RECT2 to uvRect) - TransferContext.callMethod(rawPtr, MethodBindings.setGlyphUvRectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlyphUvRectPtr, NIL) } /** @@ -1024,7 +1024,7 @@ public open class FontFile : Font() { glyph: Int, ): Rect2 { TransferContext.writeArguments(LONG to cacheIndex.toLong(), VECTOR2I to size, LONG to glyph.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getGlyphUvRectPtr, RECT2) + TransferContext.callMethod(ptr, MethodBindings.getGlyphUvRectPtr, RECT2) return (TransferContext.readReturnValue(RECT2) as Rect2) } @@ -1038,7 +1038,7 @@ public open class FontFile : Font() { textureIdx: Int, ): Unit { TransferContext.writeArguments(LONG to cacheIndex.toLong(), VECTOR2I to size, LONG to glyph.toLong(), LONG to textureIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setGlyphTextureIdxPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlyphTextureIdxPtr, NIL) } /** @@ -1050,7 +1050,7 @@ public open class FontFile : Font() { glyph: Int, ): Int { TransferContext.writeArguments(LONG to cacheIndex.toLong(), VECTOR2I to size, LONG to glyph.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getGlyphTextureIdxPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getGlyphTextureIdxPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1059,7 +1059,7 @@ public open class FontFile : Font() { */ public final fun getKerningList(cacheIndex: Int, size: Int): VariantArray { TransferContext.writeArguments(LONG to cacheIndex.toLong(), LONG to size.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getKerningListPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getKerningListPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -1068,7 +1068,7 @@ public open class FontFile : Font() { */ public final fun clearKerningMap(cacheIndex: Int, size: Int): Unit { TransferContext.writeArguments(LONG to cacheIndex.toLong(), LONG to size.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.clearKerningMapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearKerningMapPtr, NIL) } /** @@ -1080,7 +1080,7 @@ public open class FontFile : Font() { glyphPair: Vector2i, ): Unit { TransferContext.writeArguments(LONG to cacheIndex.toLong(), LONG to size.toLong(), VECTOR2I to glyphPair) - TransferContext.callMethod(rawPtr, MethodBindings.removeKerningPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeKerningPtr, NIL) } /** @@ -1093,7 +1093,7 @@ public open class FontFile : Font() { kerning: Vector2, ): Unit { TransferContext.writeArguments(LONG to cacheIndex.toLong(), LONG to size.toLong(), VECTOR2I to glyphPair, VECTOR2 to kerning) - TransferContext.callMethod(rawPtr, MethodBindings.setKerningPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setKerningPtr, NIL) } /** @@ -1105,7 +1105,7 @@ public open class FontFile : Font() { glyphPair: Vector2i, ): Vector2 { TransferContext.writeArguments(LONG to cacheIndex.toLong(), LONG to size.toLong(), VECTOR2I to glyphPair) - TransferContext.callMethod(rawPtr, MethodBindings.getKerningPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getKerningPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -1119,7 +1119,7 @@ public open class FontFile : Font() { end: Long, ): Unit { TransferContext.writeArguments(LONG to cacheIndex.toLong(), VECTOR2I to size, LONG to start, LONG to end) - TransferContext.callMethod(rawPtr, MethodBindings.renderRangePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.renderRangePtr, NIL) } /** @@ -1131,7 +1131,7 @@ public open class FontFile : Font() { index: Int, ): Unit { TransferContext.writeArguments(LONG to cacheIndex.toLong(), VECTOR2I to size, LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.renderGlyphPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.renderGlyphPtr, NIL) } /** @@ -1139,7 +1139,7 @@ public open class FontFile : Font() { */ public final fun setLanguageSupportOverride(language: String, supported: Boolean): Unit { TransferContext.writeArguments(STRING to language, BOOL to supported) - TransferContext.callMethod(rawPtr, MethodBindings.setLanguageSupportOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLanguageSupportOverridePtr, NIL) } /** @@ -1147,7 +1147,7 @@ public open class FontFile : Font() { */ public final fun getLanguageSupportOverride(language: String): Boolean { TransferContext.writeArguments(STRING to language) - TransferContext.callMethod(rawPtr, MethodBindings.getLanguageSupportOverridePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getLanguageSupportOverridePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1156,7 +1156,7 @@ public open class FontFile : Font() { */ public final fun removeLanguageSupportOverride(language: String): Unit { TransferContext.writeArguments(STRING to language) - TransferContext.callMethod(rawPtr, MethodBindings.removeLanguageSupportOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeLanguageSupportOverridePtr, NIL) } /** @@ -1164,7 +1164,7 @@ public open class FontFile : Font() { */ public final fun getLanguageSupportOverrides(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLanguageSupportOverridesPtr, + TransferContext.callMethod(ptr, MethodBindings.getLanguageSupportOverridesPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -1174,7 +1174,7 @@ public open class FontFile : Font() { */ public final fun setScriptSupportOverride(script: String, supported: Boolean): Unit { TransferContext.writeArguments(STRING to script, BOOL to supported) - TransferContext.callMethod(rawPtr, MethodBindings.setScriptSupportOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setScriptSupportOverridePtr, NIL) } /** @@ -1182,7 +1182,7 @@ public open class FontFile : Font() { */ public final fun getScriptSupportOverride(script: String): Boolean { TransferContext.writeArguments(STRING to script) - TransferContext.callMethod(rawPtr, MethodBindings.getScriptSupportOverridePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getScriptSupportOverridePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1191,7 +1191,7 @@ public open class FontFile : Font() { */ public final fun removeScriptSupportOverride(script: String): Unit { TransferContext.writeArguments(STRING to script) - TransferContext.callMethod(rawPtr, MethodBindings.removeScriptSupportOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeScriptSupportOverridePtr, NIL) } /** @@ -1199,19 +1199,19 @@ public open class FontFile : Font() { */ public final fun getScriptSupportOverrides(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScriptSupportOverridesPtr, + TransferContext.callMethod(ptr, MethodBindings.getScriptSupportOverridesPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } public final fun setOpentypeFeatureOverrides(overrides: Dictionary): Unit { TransferContext.writeArguments(DICTIONARY to overrides) - TransferContext.callMethod(rawPtr, MethodBindings.setOpentypeFeatureOverridesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOpentypeFeatureOverridesPtr, NIL) } public final fun getOpentypeFeatureOverrides(): Dictionary { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOpentypeFeatureOverridesPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getOpentypeFeatureOverridesPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -1224,7 +1224,7 @@ public open class FontFile : Font() { variationSelector: Long, ): Int { TransferContext.writeArguments(LONG to size.toLong(), LONG to char, LONG to variationSelector) - TransferContext.callMethod(rawPtr, MethodBindings.getGlyphIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getGlyphIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1234,7 +1234,7 @@ public open class FontFile : Font() { */ public final fun getCharFromGlyphIndex(size: Int, glyphIndex: Int): Long { TransferContext.writeArguments(LONG to size.toLong(), LONG to glyphIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCharFromGlyphIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCharFromGlyphIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/FontVariation.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/FontVariation.kt index fe785eb501..bf1188ca10 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/FontVariation.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/FontVariation.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.Transform2D import godot.core.TypeManager @@ -19,7 +20,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.TRANSFORM2D import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Double import kotlin.Float @@ -225,62 +225,62 @@ public open class FontVariation : Font() { public final fun setBaseFont(font: Font?): Unit { TransferContext.writeArguments(OBJECT to font) - TransferContext.callMethod(rawPtr, MethodBindings.setBaseFontPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBaseFontPtr, NIL) } public final fun getBaseFont(): Font? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBaseFontPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getBaseFontPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Font?) } public final fun setVariationOpentype(coords: Dictionary): Unit { TransferContext.writeArguments(DICTIONARY to coords) - TransferContext.callMethod(rawPtr, MethodBindings.setVariationOpentypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVariationOpentypePtr, NIL) } public final fun getVariationOpentype(): Dictionary { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVariationOpentypePtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getVariationOpentypePtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } public final fun setVariationEmbolden(strength: Float): Unit { TransferContext.writeArguments(DOUBLE to strength.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVariationEmboldenPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVariationEmboldenPtr, NIL) } public final fun getVariationEmbolden(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVariationEmboldenPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVariationEmboldenPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVariationFaceIndex(faceIndex: Int): Unit { TransferContext.writeArguments(LONG to faceIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setVariationFaceIndexPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVariationFaceIndexPtr, NIL) } public final fun getVariationFaceIndex(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVariationFaceIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVariationFaceIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setVariationTransform(transform: Transform2D): Unit { TransferContext.writeArguments(TRANSFORM2D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.setVariationTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVariationTransformPtr, NIL) } public final fun getVariationTransform(): Transform2D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVariationTransformPtr, TRANSFORM2D) + TransferContext.callMethod(ptr, MethodBindings.getVariationTransformPtr, TRANSFORM2D) return (TransferContext.readReturnValue(TRANSFORM2D) as Transform2D) } public final fun setOpentypeFeatures(features: Dictionary): Unit { TransferContext.writeArguments(DICTIONARY to features) - TransferContext.callMethod(rawPtr, MethodBindings.setOpentypeFeaturesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOpentypeFeaturesPtr, NIL) } /** @@ -289,17 +289,17 @@ public open class FontVariation : Font() { */ public final fun setSpacing(spacing: TextServer.SpacingType, `value`: Int): Unit { TransferContext.writeArguments(LONG to spacing.id, LONG to value.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSpacingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSpacingPtr, NIL) } public final fun setBaselineOffset(baselineOffset: Float): Unit { TransferContext.writeArguments(DOUBLE to baselineOffset.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setBaselineOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBaselineOffsetPtr, NIL) } public final fun getBaselineOffset(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBaselineOffsetPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getBaselineOffsetPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/FramebufferCacheRD.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/FramebufferCacheRD.kt index 34672399e7..3cd0d6b66a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/FramebufferCacheRD.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/FramebufferCacheRD.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.TypeManager import godot.core.VariantArray @@ -14,7 +15,6 @@ import godot.core.VariantParser.ARRAY import godot.core.VariantParser.LONG import godot.core.VariantParser._RID import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GDExtension.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GDExtension.kt index 4f227109d2..790fd02f69 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GDExtension.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GDExtension.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -37,7 +37,7 @@ public open class GDExtension : Resource() { */ public final fun isLibraryOpen(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isLibraryOpenPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isLibraryOpenPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -47,7 +47,7 @@ public open class GDExtension : Resource() { */ public final fun getMinimumLibraryInitializationLevel(): InitializationLevel { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMinimumLibraryInitializationLevelPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMinimumLibraryInitializationLevelPtr, LONG) return GDExtension.InitializationLevel.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GDExtensionManager.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GDExtensionManager.kt index 9d7f5562b5..84ba8e9f36 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GDExtensionManager.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GDExtensionManager.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedStringArray import godot.core.Signal0 import godot.core.TypeManager @@ -16,7 +17,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -49,7 +49,7 @@ public object GDExtensionManager : Object() { @JvmStatic public final fun loadExtension(path: String): LoadStatus { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.loadExtensionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.loadExtensionPtr, LONG) return GDExtensionManager.LoadStatus.from(TransferContext.readReturnValue(LONG) as Long) } @@ -63,7 +63,7 @@ public object GDExtensionManager : Object() { @JvmStatic public final fun reloadExtension(path: String): LoadStatus { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.reloadExtensionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.reloadExtensionPtr, LONG) return GDExtensionManager.LoadStatus.from(TransferContext.readReturnValue(LONG) as Long) } @@ -74,7 +74,7 @@ public object GDExtensionManager : Object() { @JvmStatic public final fun unloadExtension(path: String): LoadStatus { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.unloadExtensionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.unloadExtensionPtr, LONG) return GDExtensionManager.LoadStatus.from(TransferContext.readReturnValue(LONG) as Long) } @@ -85,7 +85,7 @@ public object GDExtensionManager : Object() { @JvmStatic public final fun isExtensionLoaded(path: String): Boolean { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.isExtensionLoadedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isExtensionLoadedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -95,7 +95,7 @@ public object GDExtensionManager : Object() { @JvmStatic public final fun getLoadedExtensions(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLoadedExtensionsPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getLoadedExtensionsPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -106,7 +106,7 @@ public object GDExtensionManager : Object() { @JvmStatic public final fun getExtension(path: String): GDExtension? { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.getExtensionPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getExtensionPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as GDExtension?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GDScript.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GDScript.kt index c27de0dacd..16c49ecdcb 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GDScript.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GDScript.kt @@ -7,10 +7,10 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantCaster.ANY import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Int import kotlin.Suppress @@ -40,7 +40,7 @@ public open class GDScript : Script() { */ public final fun new(vararg __var_args: Any?): Any? { TransferContext.writeArguments( *__var_args.map { ANY to it }.toTypedArray()) - TransferContext.callMethod(rawPtr, MethodBindings.newPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.newPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFAccessor.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFAccessor.kt index 9ccaa1331e..c642761b0c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFAccessor.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFAccessor.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedFloat64Array import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -14,7 +15,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_FLOAT_64_ARRAY import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -212,167 +212,167 @@ public open class GLTFAccessor : Resource() { public final fun getBufferView(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBufferViewPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBufferViewPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setBufferView(bufferView: Int): Unit { TransferContext.writeArguments(LONG to bufferView.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setBufferViewPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBufferViewPtr, NIL) } public final fun getByteOffset(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getByteOffsetPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getByteOffsetPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setByteOffset(byteOffset: Int): Unit { TransferContext.writeArguments(LONG to byteOffset.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setByteOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setByteOffsetPtr, NIL) } public final fun getComponentType(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getComponentTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getComponentTypePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setComponentType(componentType: Int): Unit { TransferContext.writeArguments(LONG to componentType.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setComponentTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setComponentTypePtr, NIL) } public final fun getNormalized(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNormalizedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getNormalizedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setNormalized(normalized: Boolean): Unit { TransferContext.writeArguments(BOOL to normalized) - TransferContext.callMethod(rawPtr, MethodBindings.setNormalizedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNormalizedPtr, NIL) } public final fun getCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setCount(count: Int): Unit { TransferContext.writeArguments(LONG to count.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setCountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCountPtr, NIL) } public final fun getAccessorType(): GLTFAccessorType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAccessorTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAccessorTypePtr, LONG) return GLTFAccessor.GLTFAccessorType.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setAccessorType(accessorType: GLTFAccessorType): Unit { TransferContext.writeArguments(LONG to accessorType.id) - TransferContext.callMethod(rawPtr, MethodBindings.setAccessorTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAccessorTypePtr, NIL) } public final fun getType(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTypePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setType(type: Int): Unit { TransferContext.writeArguments(LONG to type.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTypePtr, NIL) } public final fun getMin(): PackedFloat64Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMinPtr, PACKED_FLOAT_64_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getMinPtr, PACKED_FLOAT_64_ARRAY) return (TransferContext.readReturnValue(PACKED_FLOAT_64_ARRAY) as PackedFloat64Array) } public final fun setMin(min: PackedFloat64Array): Unit { TransferContext.writeArguments(PACKED_FLOAT_64_ARRAY to min) - TransferContext.callMethod(rawPtr, MethodBindings.setMinPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMinPtr, NIL) } public final fun getMax(): PackedFloat64Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxPtr, PACKED_FLOAT_64_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getMaxPtr, PACKED_FLOAT_64_ARRAY) return (TransferContext.readReturnValue(PACKED_FLOAT_64_ARRAY) as PackedFloat64Array) } public final fun setMax(max: PackedFloat64Array): Unit { TransferContext.writeArguments(PACKED_FLOAT_64_ARRAY to max) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxPtr, NIL) } public final fun getSparseCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSparseCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSparseCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setSparseCount(sparseCount: Int): Unit { TransferContext.writeArguments(LONG to sparseCount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSparseCountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSparseCountPtr, NIL) } public final fun getSparseIndicesBufferView(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSparseIndicesBufferViewPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSparseIndicesBufferViewPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setSparseIndicesBufferView(sparseIndicesBufferView: Int): Unit { TransferContext.writeArguments(LONG to sparseIndicesBufferView.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSparseIndicesBufferViewPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSparseIndicesBufferViewPtr, NIL) } public final fun getSparseIndicesByteOffset(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSparseIndicesByteOffsetPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSparseIndicesByteOffsetPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setSparseIndicesByteOffset(sparseIndicesByteOffset: Int): Unit { TransferContext.writeArguments(LONG to sparseIndicesByteOffset.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSparseIndicesByteOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSparseIndicesByteOffsetPtr, NIL) } public final fun getSparseIndicesComponentType(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSparseIndicesComponentTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSparseIndicesComponentTypePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setSparseIndicesComponentType(sparseIndicesComponentType: Int): Unit { TransferContext.writeArguments(LONG to sparseIndicesComponentType.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSparseIndicesComponentTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSparseIndicesComponentTypePtr, NIL) } public final fun getSparseValuesBufferView(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSparseValuesBufferViewPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSparseValuesBufferViewPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setSparseValuesBufferView(sparseValuesBufferView: Int): Unit { TransferContext.writeArguments(LONG to sparseValuesBufferView.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSparseValuesBufferViewPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSparseValuesBufferViewPtr, NIL) } public final fun getSparseValuesByteOffset(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSparseValuesByteOffsetPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSparseValuesByteOffsetPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setSparseValuesByteOffset(sparseValuesByteOffset: Int): Unit { TransferContext.writeArguments(LONG to sparseValuesByteOffset.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSparseValuesByteOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSparseValuesByteOffsetPtr, NIL) } public enum class GLTFAccessorType( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFAnimation.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFAnimation.kt index 24a6d18238..f3c597a9c9 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFAnimation.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFAnimation.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.StringName import godot.core.TypeManager import godot.core.VariantCaster.ANY @@ -15,7 +16,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -51,24 +51,24 @@ public open class GLTFAnimation : Resource() { public final fun getOriginalName(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOriginalNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getOriginalNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setOriginalName(originalName: String): Unit { TransferContext.writeArguments(STRING to originalName) - TransferContext.callMethod(rawPtr, MethodBindings.setOriginalNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOriginalNamePtr, NIL) } public final fun getLoop(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLoopPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getLoopPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setLoop(loop: Boolean): Unit { TransferContext.writeArguments(BOOL to loop) - TransferContext.callMethod(rawPtr, MethodBindings.setLoopPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLoopPtr, NIL) } /** @@ -81,7 +81,7 @@ public open class GLTFAnimation : Resource() { */ public final fun getAdditionalData(extensionName: StringName): Any? { TransferContext.writeArguments(STRING_NAME to extensionName) - TransferContext.callMethod(rawPtr, MethodBindings.getAdditionalDataPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getAdditionalDataPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -94,7 +94,7 @@ public open class GLTFAnimation : Resource() { */ public final fun setAdditionalData(extensionName: StringName, additionalData: Any?): Unit { TransferContext.writeArguments(STRING_NAME to extensionName, ANY to additionalData) - TransferContext.callMethod(rawPtr, MethodBindings.setAdditionalDataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAdditionalDataPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFBufferView.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFBufferView.kt index 1ef287bf4d..ea1bd6d412 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFBufferView.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFBufferView.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedByteArray import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -15,7 +16,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -119,74 +119,74 @@ public open class GLTFBufferView : Resource() { */ public final fun loadBufferViewData(state: GLTFState?): PackedByteArray { TransferContext.writeArguments(OBJECT to state) - TransferContext.callMethod(rawPtr, MethodBindings.loadBufferViewDataPtr, PACKED_BYTE_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.loadBufferViewDataPtr, PACKED_BYTE_ARRAY) return (TransferContext.readReturnValue(PACKED_BYTE_ARRAY) as PackedByteArray) } public final fun getBuffer(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBufferPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBufferPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setBuffer(buffer: Int): Unit { TransferContext.writeArguments(LONG to buffer.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setBufferPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBufferPtr, NIL) } public final fun getByteOffset(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getByteOffsetPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getByteOffsetPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setByteOffset(byteOffset: Int): Unit { TransferContext.writeArguments(LONG to byteOffset.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setByteOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setByteOffsetPtr, NIL) } public final fun getByteLength(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getByteLengthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getByteLengthPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setByteLength(byteLength: Int): Unit { TransferContext.writeArguments(LONG to byteLength.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setByteLengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setByteLengthPtr, NIL) } public final fun getByteStride(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getByteStridePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getByteStridePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setByteStride(byteStride: Int): Unit { TransferContext.writeArguments(LONG to byteStride.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setByteStridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setByteStridePtr, NIL) } public final fun getIndices(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getIndicesPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getIndicesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setIndices(indices: Boolean): Unit { TransferContext.writeArguments(BOOL to indices) - TransferContext.callMethod(rawPtr, MethodBindings.setIndicesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIndicesPtr, NIL) } public final fun getVertexAttributes(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVertexAttributesPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getVertexAttributesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setVertexAttributes(isAttributes: Boolean): Unit { TransferContext.writeArguments(BOOL to isAttributes) - TransferContext.callMethod(rawPtr, MethodBindings.setVertexAttributesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVertexAttributesPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFCamera.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFCamera.kt index e1cabb4f11..5f903231f1 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFCamera.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFCamera.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -15,7 +16,6 @@ import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -102,7 +102,7 @@ public open class GLTFCamera : Resource() { */ public final fun toNode(): Camera3D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.toNodePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.toNodePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Camera3D?) } @@ -111,63 +111,63 @@ public open class GLTFCamera : Resource() { */ public final fun toDictionary(): Dictionary { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.toDictionaryPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.toDictionaryPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } public final fun getPerspective(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPerspectivePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getPerspectivePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setPerspective(perspective: Boolean): Unit { TransferContext.writeArguments(BOOL to perspective) - TransferContext.callMethod(rawPtr, MethodBindings.setPerspectivePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPerspectivePtr, NIL) } public final fun getFov(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFovPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFovPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setFov(fov: Float): Unit { TransferContext.writeArguments(DOUBLE to fov.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFovPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFovPtr, NIL) } public final fun getSizeMag(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSizeMagPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSizeMagPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSizeMag(sizeMag: Float): Unit { TransferContext.writeArguments(DOUBLE to sizeMag.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSizeMagPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSizeMagPtr, NIL) } public final fun getDepthFar(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDepthFarPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDepthFarPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDepthFar(zdepthFar: Float): Unit { TransferContext.writeArguments(DOUBLE to zdepthFar.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDepthFarPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDepthFarPtr, NIL) } public final fun getDepthNear(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDepthNearPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDepthNearPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDepthNear(zdepthNear: Float): Unit { TransferContext.writeArguments(DOUBLE to zdepthNear.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDepthNearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDepthNearPtr, NIL) } public companion object { diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFDocument.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFDocument.kt index c9f4531d75..f70c73de1e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFDocument.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFDocument.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedByteArray import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -17,7 +18,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -90,34 +90,34 @@ public open class GLTFDocument : Resource() { public final fun setImageFormat(imageFormat: String): Unit { TransferContext.writeArguments(STRING to imageFormat) - TransferContext.callMethod(rawPtr, MethodBindings.setImageFormatPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setImageFormatPtr, NIL) } public final fun getImageFormat(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getImageFormatPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getImageFormatPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setLossyQuality(lossyQuality: Float): Unit { TransferContext.writeArguments(DOUBLE to lossyQuality.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setLossyQualityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLossyQualityPtr, NIL) } public final fun getLossyQuality(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLossyQualityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLossyQualityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setRootNodeMode(rootNodeMode: RootNodeMode): Unit { TransferContext.writeArguments(LONG to rootNodeMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setRootNodeModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRootNodeModePtr, NIL) } public final fun getRootNodeMode(): RootNodeMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRootNodeModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getRootNodeModePtr, LONG) return GLTFDocument.RootNodeMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -134,7 +134,7 @@ public open class GLTFDocument : Resource() { basePath: String = "", ): Error { TransferContext.writeArguments(STRING to path, OBJECT to state, LONG to flags, STRING to basePath) - TransferContext.callMethod(rawPtr, MethodBindings.appendFromFilePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.appendFromFilePtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -151,7 +151,7 @@ public open class GLTFDocument : Resource() { flags: Long = 0, ): Error { TransferContext.writeArguments(PACKED_BYTE_ARRAY to bytes, STRING to basePath, OBJECT to state, LONG to flags) - TransferContext.callMethod(rawPtr, MethodBindings.appendFromBufferPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.appendFromBufferPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -166,7 +166,7 @@ public open class GLTFDocument : Resource() { flags: Long = 0, ): Error { TransferContext.writeArguments(OBJECT to node, OBJECT to state, LONG to flags) - TransferContext.callMethod(rawPtr, MethodBindings.appendFromScenePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.appendFromScenePtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -182,7 +182,7 @@ public open class GLTFDocument : Resource() { removeImmutableTracks: Boolean = true, ): Node? { TransferContext.writeArguments(OBJECT to state, DOUBLE to bakeFps.toDouble(), BOOL to trimming, BOOL to removeImmutableTracks) - TransferContext.callMethod(rawPtr, MethodBindings.generateScenePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.generateScenePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Node?) } @@ -191,7 +191,7 @@ public open class GLTFDocument : Resource() { */ public final fun generateBuffer(state: GLTFState?): PackedByteArray { TransferContext.writeArguments(OBJECT to state) - TransferContext.callMethod(rawPtr, MethodBindings.generateBufferPtr, PACKED_BYTE_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.generateBufferPtr, PACKED_BYTE_ARRAY) return (TransferContext.readReturnValue(PACKED_BYTE_ARRAY) as PackedByteArray) } @@ -203,7 +203,7 @@ public open class GLTFDocument : Resource() { */ public final fun writeToFilesystem(state: GLTFState?, path: String): Error { TransferContext.writeArguments(OBJECT to state, STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.writeToFilesystemPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.writeToFilesystemPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFLight.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFLight.kt index 946c926b5b..6dd999be0f 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFLight.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFLight.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.Dictionary import godot.core.StringName @@ -22,7 +23,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Double import kotlin.Float @@ -150,7 +150,7 @@ public open class GLTFLight : Resource() { */ public final fun toNode(): Light3D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.toNodePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.toNodePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Light3D?) } @@ -159,85 +159,85 @@ public open class GLTFLight : Resource() { */ public final fun toDictionary(): Dictionary { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.toDictionaryPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.toDictionaryPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } public final fun getColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColorPtr, NIL) } public final fun getIntensity(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getIntensityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getIntensityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setIntensity(intensity: Float): Unit { TransferContext.writeArguments(DOUBLE to intensity.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setIntensityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIntensityPtr, NIL) } public final fun getLightType(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLightTypePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getLightTypePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setLightType(lightType: String): Unit { TransferContext.writeArguments(STRING to lightType) - TransferContext.callMethod(rawPtr, MethodBindings.setLightTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLightTypePtr, NIL) } public final fun getRange(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRangePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRangePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setRange(range: Float): Unit { TransferContext.writeArguments(DOUBLE to range.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRangePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRangePtr, NIL) } public final fun getInnerConeAngle(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInnerConeAnglePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getInnerConeAnglePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setInnerConeAngle(innerConeAngle: Float): Unit { TransferContext.writeArguments(DOUBLE to innerConeAngle.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setInnerConeAnglePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInnerConeAnglePtr, NIL) } public final fun getOuterConeAngle(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOuterConeAnglePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getOuterConeAnglePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setOuterConeAngle(outerConeAngle: Float): Unit { TransferContext.writeArguments(DOUBLE to outerConeAngle.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setOuterConeAnglePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOuterConeAnglePtr, NIL) } public final fun getAdditionalData(extensionName: StringName): Any? { TransferContext.writeArguments(STRING_NAME to extensionName) - TransferContext.callMethod(rawPtr, MethodBindings.getAdditionalDataPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getAdditionalDataPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } public final fun setAdditionalData(extensionName: StringName, additionalData: Any?): Unit { TransferContext.writeArguments(STRING_NAME to extensionName, ANY to additionalData) - TransferContext.callMethod(rawPtr, MethodBindings.setAdditionalDataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAdditionalDataPtr, NIL) } public companion object { diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFMesh.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFMesh.kt index 81dd04936d..303c7e8027 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFMesh.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFMesh.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedFloat32Array import godot.core.StringName import godot.core.TypeManager @@ -19,7 +20,6 @@ import godot.core.VariantParser.PACKED_FLOAT_32_ARRAY import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Int import kotlin.String @@ -83,46 +83,46 @@ public open class GLTFMesh : Resource() { public final fun getOriginalName(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOriginalNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getOriginalNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setOriginalName(originalName: String): Unit { TransferContext.writeArguments(STRING to originalName) - TransferContext.callMethod(rawPtr, MethodBindings.setOriginalNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOriginalNamePtr, NIL) } public final fun getMesh(): ImporterMesh? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMeshPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getMeshPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as ImporterMesh?) } public final fun setMesh(mesh: ImporterMesh?): Unit { TransferContext.writeArguments(OBJECT to mesh) - TransferContext.callMethod(rawPtr, MethodBindings.setMeshPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMeshPtr, NIL) } public final fun getBlendWeights(): PackedFloat32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBlendWeightsPtr, PACKED_FLOAT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getBlendWeightsPtr, PACKED_FLOAT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_FLOAT_32_ARRAY) as PackedFloat32Array) } public final fun setBlendWeights(blendWeights: PackedFloat32Array): Unit { TransferContext.writeArguments(PACKED_FLOAT_32_ARRAY to blendWeights) - TransferContext.callMethod(rawPtr, MethodBindings.setBlendWeightsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBlendWeightsPtr, NIL) } public final fun getInstanceMaterials(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInstanceMaterialsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getInstanceMaterialsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } public final fun setInstanceMaterials(instanceMaterials: VariantArray): Unit { TransferContext.writeArguments(ARRAY to instanceMaterials) - TransferContext.callMethod(rawPtr, MethodBindings.setInstanceMaterialsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInstanceMaterialsPtr, NIL) } /** @@ -134,7 +134,7 @@ public open class GLTFMesh : Resource() { */ public final fun getAdditionalData(extensionName: StringName): Any? { TransferContext.writeArguments(STRING_NAME to extensionName) - TransferContext.callMethod(rawPtr, MethodBindings.getAdditionalDataPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getAdditionalDataPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -146,7 +146,7 @@ public open class GLTFMesh : Resource() { */ public final fun setAdditionalData(extensionName: StringName, additionalData: Any?): Unit { TransferContext.writeArguments(STRING_NAME to extensionName, ANY to additionalData) - TransferContext.callMethod(rawPtr, MethodBindings.setAdditionalDataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAdditionalDataPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFNode.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFNode.kt index 802a794dfe..cc278dab0c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFNode.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFNode.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedInt32Array import godot.core.Quaternion import godot.core.StringName @@ -25,7 +26,6 @@ import godot.core.VariantParser.TRANSFORM3D import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Int import kotlin.Long @@ -301,145 +301,145 @@ public open class GLTFNode : Resource() { public final fun getOriginalName(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOriginalNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getOriginalNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setOriginalName(originalName: String): Unit { TransferContext.writeArguments(STRING to originalName) - TransferContext.callMethod(rawPtr, MethodBindings.setOriginalNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOriginalNamePtr, NIL) } public final fun getParent(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getParentPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getParentPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setParent(parent: Int): Unit { TransferContext.writeArguments(LONG to parent.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setParentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setParentPtr, NIL) } public final fun getHeight(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHeightPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getHeightPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setHeight(height: Int): Unit { TransferContext.writeArguments(LONG to height.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setHeightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHeightPtr, NIL) } public final fun getXform(): Transform3D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getXformPtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.getXformPtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } public final fun setXform(xform: Transform3D): Unit { TransferContext.writeArguments(TRANSFORM3D to xform) - TransferContext.callMethod(rawPtr, MethodBindings.setXformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setXformPtr, NIL) } public final fun getMesh(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMeshPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMeshPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setMesh(mesh: Int): Unit { TransferContext.writeArguments(LONG to mesh.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMeshPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMeshPtr, NIL) } public final fun getCamera(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCameraPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCameraPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setCamera(camera: Int): Unit { TransferContext.writeArguments(LONG to camera.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setCameraPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCameraPtr, NIL) } public final fun getSkin(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSkinPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSkinPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setSkin(skin: Int): Unit { TransferContext.writeArguments(LONG to skin.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSkinPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSkinPtr, NIL) } public final fun getSkeleton(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSkeletonPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSkeletonPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setSkeleton(skeleton: Int): Unit { TransferContext.writeArguments(LONG to skeleton.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSkeletonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSkeletonPtr, NIL) } public final fun getPosition(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPositionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getPositionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setPosition(position: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to position) - TransferContext.callMethod(rawPtr, MethodBindings.setPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPositionPtr, NIL) } public final fun getRotation(): Quaternion { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRotationPtr, QUATERNION) + TransferContext.callMethod(ptr, MethodBindings.getRotationPtr, QUATERNION) return (TransferContext.readReturnValue(QUATERNION) as Quaternion) } public final fun setRotation(rotation: Quaternion): Unit { TransferContext.writeArguments(QUATERNION to rotation) - TransferContext.callMethod(rawPtr, MethodBindings.setRotationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRotationPtr, NIL) } public final fun getScale(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScalePtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getScalePtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setScale(scale: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to scale) - TransferContext.callMethod(rawPtr, MethodBindings.setScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setScalePtr, NIL) } public final fun getChildren(): PackedInt32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getChildrenPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getChildrenPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } public final fun setChildren(children: PackedInt32Array): Unit { TransferContext.writeArguments(PACKED_INT_32_ARRAY to children) - TransferContext.callMethod(rawPtr, MethodBindings.setChildrenPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setChildrenPtr, NIL) } public final fun getLight(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLightPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLightPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setLight(light: Int): Unit { TransferContext.writeArguments(LONG to light.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setLightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLightPtr, NIL) } /** @@ -451,7 +451,7 @@ public open class GLTFNode : Resource() { */ public final fun getAdditionalData(extensionName: StringName): Any? { TransferContext.writeArguments(STRING_NAME to extensionName) - TransferContext.callMethod(rawPtr, MethodBindings.getAdditionalDataPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getAdditionalDataPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -463,7 +463,7 @@ public open class GLTFNode : Resource() { */ public final fun setAdditionalData(extensionName: StringName, additionalData: Any?): Unit { TransferContext.writeArguments(STRING_NAME to extensionName, ANY to additionalData) - TransferContext.callMethod(rawPtr, MethodBindings.setAdditionalDataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAdditionalDataPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFPhysicsBody.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFPhysicsBody.kt index 4929e735e3..3cb3af83b7 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFPhysicsBody.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFPhysicsBody.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Basis import godot.core.Dictionary import godot.core.Quaternion @@ -23,7 +24,6 @@ import godot.core.VariantParser.STRING import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Double import kotlin.Float @@ -318,7 +318,7 @@ public open class GLTFPhysicsBody : Resource() { */ public final fun toNode(): CollisionObject3D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.toNodePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.toNodePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as CollisionObject3D?) } @@ -328,96 +328,96 @@ public open class GLTFPhysicsBody : Resource() { */ public final fun toDictionary(): Dictionary { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.toDictionaryPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.toDictionaryPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } public final fun getBodyType(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBodyTypePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getBodyTypePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setBodyType(bodyType: String): Unit { TransferContext.writeArguments(STRING to bodyType) - TransferContext.callMethod(rawPtr, MethodBindings.setBodyTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBodyTypePtr, NIL) } public final fun getMass(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMassPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMassPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setMass(mass: Float): Unit { TransferContext.writeArguments(DOUBLE to mass.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMassPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMassPtr, NIL) } public final fun getLinearVelocity(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLinearVelocityPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getLinearVelocityPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setLinearVelocity(linearVelocity: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to linearVelocity) - TransferContext.callMethod(rawPtr, MethodBindings.setLinearVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLinearVelocityPtr, NIL) } public final fun getAngularVelocity(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAngularVelocityPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getAngularVelocityPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setAngularVelocity(angularVelocity: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to angularVelocity) - TransferContext.callMethod(rawPtr, MethodBindings.setAngularVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAngularVelocityPtr, NIL) } public final fun getCenterOfMass(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCenterOfMassPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getCenterOfMassPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setCenterOfMass(centerOfMass: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to centerOfMass) - TransferContext.callMethod(rawPtr, MethodBindings.setCenterOfMassPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCenterOfMassPtr, NIL) } public final fun getInertiaDiagonal(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInertiaDiagonalPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getInertiaDiagonalPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setInertiaDiagonal(inertiaDiagonal: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to inertiaDiagonal) - TransferContext.callMethod(rawPtr, MethodBindings.setInertiaDiagonalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInertiaDiagonalPtr, NIL) } public final fun getInertiaOrientation(): Quaternion { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInertiaOrientationPtr, QUATERNION) + TransferContext.callMethod(ptr, MethodBindings.getInertiaOrientationPtr, QUATERNION) return (TransferContext.readReturnValue(QUATERNION) as Quaternion) } public final fun setInertiaOrientation(inertiaOrientation: Quaternion): Unit { TransferContext.writeArguments(QUATERNION to inertiaOrientation) - TransferContext.callMethod(rawPtr, MethodBindings.setInertiaOrientationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInertiaOrientationPtr, NIL) } public final fun getInertiaTensor(): Basis { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInertiaTensorPtr, BASIS) + TransferContext.callMethod(ptr, MethodBindings.getInertiaTensorPtr, BASIS) return (TransferContext.readReturnValue(BASIS) as Basis) } public final fun setInertiaTensor(inertiaTensor: Basis): Unit { TransferContext.writeArguments(BASIS to inertiaTensor) - TransferContext.callMethod(rawPtr, MethodBindings.setInertiaTensorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInertiaTensorPtr, NIL) } public companion object { diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFPhysicsShape.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFPhysicsShape.kt index e85267a6b2..b7b57f1774 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFPhysicsShape.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFPhysicsShape.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -21,7 +22,6 @@ import godot.core.VariantParser.STRING import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -164,7 +164,7 @@ public open class GLTFPhysicsShape : Resource() { @JvmOverloads public final fun toNode(cacheShapes: Boolean = false): CollisionShape3D? { TransferContext.writeArguments(BOOL to cacheShapes) - TransferContext.callMethod(rawPtr, MethodBindings.toNodePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.toNodePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as CollisionShape3D?) } @@ -174,7 +174,7 @@ public open class GLTFPhysicsShape : Resource() { @JvmOverloads public final fun toResource(cacheShapes: Boolean = false): Shape3D? { TransferContext.writeArguments(BOOL to cacheShapes) - TransferContext.callMethod(rawPtr, MethodBindings.toResourcePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.toResourcePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Shape3D?) } @@ -184,85 +184,85 @@ public open class GLTFPhysicsShape : Resource() { */ public final fun toDictionary(): Dictionary { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.toDictionaryPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.toDictionaryPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } public final fun getShapeType(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getShapeTypePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getShapeTypePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setShapeType(shapeType: String): Unit { TransferContext.writeArguments(STRING to shapeType) - TransferContext.callMethod(rawPtr, MethodBindings.setShapeTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShapeTypePtr, NIL) } public final fun getSize(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSizePtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getSizePtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setSize(size: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to size) - TransferContext.callMethod(rawPtr, MethodBindings.setSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSizePtr, NIL) } public final fun getRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setRadius(radius: Float): Unit { TransferContext.writeArguments(DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRadiusPtr, NIL) } public final fun getHeight(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHeightPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getHeightPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setHeight(height: Float): Unit { TransferContext.writeArguments(DOUBLE to height.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setHeightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHeightPtr, NIL) } public final fun getIsTrigger(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getIsTriggerPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getIsTriggerPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setIsTrigger(isTrigger: Boolean): Unit { TransferContext.writeArguments(BOOL to isTrigger) - TransferContext.callMethod(rawPtr, MethodBindings.setIsTriggerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIsTriggerPtr, NIL) } public final fun getMeshIndex(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMeshIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMeshIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setMeshIndex(meshIndex: Int): Unit { TransferContext.writeArguments(LONG to meshIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMeshIndexPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMeshIndexPtr, NIL) } public final fun getImporterMesh(): ImporterMesh? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getImporterMeshPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getImporterMeshPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as ImporterMesh?) } public final fun setImporterMesh(importerMesh: ImporterMesh?): Unit { TransferContext.writeArguments(OBJECT to importerMesh) - TransferContext.callMethod(rawPtr, MethodBindings.setImporterMeshPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setImporterMeshPtr, NIL) } public companion object { diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFSkeleton.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFSkeleton.kt index 33be21020b..6187bba6e7 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFSkeleton.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFSkeleton.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedInt32Array import godot.core.TypeManager @@ -18,7 +19,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_INT_32_ARRAY import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Int import kotlin.Long @@ -67,41 +67,41 @@ public open class GLTFSkeleton : Resource() { public final fun getJoints(): PackedInt32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getJointsPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getJointsPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } public final fun setJoints(joints: PackedInt32Array): Unit { TransferContext.writeArguments(PACKED_INT_32_ARRAY to joints) - TransferContext.callMethod(rawPtr, MethodBindings.setJointsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setJointsPtr, NIL) } public final fun getRoots(): PackedInt32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRootsPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getRootsPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } public final fun setRoots(roots: PackedInt32Array): Unit { TransferContext.writeArguments(PACKED_INT_32_ARRAY to roots) - TransferContext.callMethod(rawPtr, MethodBindings.setRootsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRootsPtr, NIL) } public final fun getGodotSkeleton(): Skeleton3D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGodotSkeletonPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getGodotSkeletonPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Skeleton3D?) } public final fun getUniqueNames(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUniqueNamesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getUniqueNamesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } public final fun setUniqueNames(uniqueNames: VariantArray): Unit { TransferContext.writeArguments(ARRAY to uniqueNames) - TransferContext.callMethod(rawPtr, MethodBindings.setUniqueNamesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUniqueNamesPtr, NIL) } /** @@ -111,7 +111,7 @@ public open class GLTFSkeleton : Resource() { */ public final fun getGodotBoneNode(): Dictionary { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGodotBoneNodePtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getGodotBoneNodePtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -122,18 +122,18 @@ public open class GLTFSkeleton : Resource() { */ public final fun setGodotBoneNode(godotBoneNode: Dictionary): Unit { TransferContext.writeArguments(DICTIONARY to godotBoneNode) - TransferContext.callMethod(rawPtr, MethodBindings.setGodotBoneNodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGodotBoneNodePtr, NIL) } public final fun getBoneAttachmentCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBoneAttachmentCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBoneAttachmentCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun getBoneAttachment(idx: Int): BoneAttachment3D? { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBoneAttachmentPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getBoneAttachmentPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as BoneAttachment3D?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFSkin.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFSkin.kt index 8a328926d9..613a20e1d7 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFSkin.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFSkin.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedInt32Array import godot.core.Transform3D @@ -19,7 +20,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_INT_32_ARRAY import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Int import kotlin.Long @@ -115,112 +115,112 @@ public open class GLTFSkin : Resource() { public final fun getSkinRoot(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSkinRootPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSkinRootPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setSkinRoot(skinRoot: Int): Unit { TransferContext.writeArguments(LONG to skinRoot.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSkinRootPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSkinRootPtr, NIL) } public final fun getJointsOriginal(): PackedInt32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getJointsOriginalPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getJointsOriginalPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } public final fun setJointsOriginal(jointsOriginal: PackedInt32Array): Unit { TransferContext.writeArguments(PACKED_INT_32_ARRAY to jointsOriginal) - TransferContext.callMethod(rawPtr, MethodBindings.setJointsOriginalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setJointsOriginalPtr, NIL) } public final fun getInverseBinds(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInverseBindsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getInverseBindsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } public final fun setInverseBinds(inverseBinds: VariantArray): Unit { TransferContext.writeArguments(ARRAY to inverseBinds) - TransferContext.callMethod(rawPtr, MethodBindings.setInverseBindsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInverseBindsPtr, NIL) } public final fun getJoints(): PackedInt32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getJointsPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getJointsPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } public final fun setJoints(joints: PackedInt32Array): Unit { TransferContext.writeArguments(PACKED_INT_32_ARRAY to joints) - TransferContext.callMethod(rawPtr, MethodBindings.setJointsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setJointsPtr, NIL) } public final fun getNonJoints(): PackedInt32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNonJointsPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getNonJointsPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } public final fun setNonJoints(nonJoints: PackedInt32Array): Unit { TransferContext.writeArguments(PACKED_INT_32_ARRAY to nonJoints) - TransferContext.callMethod(rawPtr, MethodBindings.setNonJointsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNonJointsPtr, NIL) } public final fun getRoots(): PackedInt32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRootsPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getRootsPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } public final fun setRoots(roots: PackedInt32Array): Unit { TransferContext.writeArguments(PACKED_INT_32_ARRAY to roots) - TransferContext.callMethod(rawPtr, MethodBindings.setRootsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRootsPtr, NIL) } public final fun getSkeleton(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSkeletonPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSkeletonPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setSkeleton(skeleton: Int): Unit { TransferContext.writeArguments(LONG to skeleton.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSkeletonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSkeletonPtr, NIL) } public final fun getJointIToBoneI(): Dictionary { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getJointIToBoneIPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getJointIToBoneIPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } public final fun setJointIToBoneI(jointIToBoneI: Dictionary): Unit { TransferContext.writeArguments(DICTIONARY to jointIToBoneI) - TransferContext.callMethod(rawPtr, MethodBindings.setJointIToBoneIPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setJointIToBoneIPtr, NIL) } public final fun getJointIToName(): Dictionary { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getJointIToNamePtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getJointIToNamePtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } public final fun setJointIToName(jointIToName: Dictionary): Unit { TransferContext.writeArguments(DICTIONARY to jointIToName) - TransferContext.callMethod(rawPtr, MethodBindings.setJointIToNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setJointIToNamePtr, NIL) } public final fun getGodotSkin(): Skin? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGodotSkinPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getGodotSkinPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Skin?) } public final fun setGodotSkin(godotSkin: Skin?): Unit { TransferContext.writeArguments(OBJECT to godotSkin) - TransferContext.callMethod(rawPtr, MethodBindings.setGodotSkinPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGodotSkinPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFSpecGloss.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFSpecGloss.kt index 571f3e91a5..fd95ab6cc9 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFSpecGloss.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFSpecGloss.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.TypeManager import godot.core.VariantParser.COLOR @@ -16,7 +17,6 @@ import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -141,57 +141,57 @@ public open class GLTFSpecGloss : Resource() { public final fun getDiffuseImg(): Image? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDiffuseImgPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getDiffuseImgPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Image?) } public final fun setDiffuseImg(diffuseImg: Image?): Unit { TransferContext.writeArguments(OBJECT to diffuseImg) - TransferContext.callMethod(rawPtr, MethodBindings.setDiffuseImgPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDiffuseImgPtr, NIL) } public final fun getDiffuseFactor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDiffuseFactorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getDiffuseFactorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setDiffuseFactor(diffuseFactor: Color): Unit { TransferContext.writeArguments(COLOR to diffuseFactor) - TransferContext.callMethod(rawPtr, MethodBindings.setDiffuseFactorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDiffuseFactorPtr, NIL) } public final fun getGlossFactor(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGlossFactorPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getGlossFactorPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setGlossFactor(glossFactor: Float): Unit { TransferContext.writeArguments(DOUBLE to glossFactor.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setGlossFactorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlossFactorPtr, NIL) } public final fun getSpecularFactor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSpecularFactorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getSpecularFactorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setSpecularFactor(specularFactor: Color): Unit { TransferContext.writeArguments(COLOR to specularFactor) - TransferContext.callMethod(rawPtr, MethodBindings.setSpecularFactorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSpecularFactorPtr, NIL) } public final fun getSpecGlossImg(): Image? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSpecGlossImgPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getSpecGlossImgPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Image?) } public final fun setSpecGlossImg(specGlossImg: Image?): Unit { TransferContext.writeArguments(OBJECT to specGlossImg) - TransferContext.callMethod(rawPtr, MethodBindings.setSpecGlossImgPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSpecGlossImgPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFState.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFState.kt index 72541cbe7c..ec899a6542 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFState.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFState.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedByteArray import godot.core.PackedInt32Array @@ -26,7 +27,6 @@ import godot.core.VariantParser.PACKED_INT_32_ARRAY import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -336,7 +336,7 @@ public open class GLTFState : Resource() { */ public final fun addUsedExtension(extensionName: String, required: Boolean): Unit { TransferContext.writeArguments(STRING to extensionName, BOOL to required) - TransferContext.callMethod(rawPtr, MethodBindings.addUsedExtensionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addUsedExtensionPtr, NIL) } /** @@ -346,74 +346,74 @@ public open class GLTFState : Resource() { */ public final fun appendDataToBuffers(`data`: PackedByteArray, deduplication: Boolean): Int { TransferContext.writeArguments(PACKED_BYTE_ARRAY to data, BOOL to deduplication) - TransferContext.callMethod(rawPtr, MethodBindings.appendDataToBuffersPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.appendDataToBuffersPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun getJson(): Dictionary { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getJsonPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getJsonPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } public final fun setJson(json: Dictionary): Unit { TransferContext.writeArguments(DICTIONARY to json) - TransferContext.callMethod(rawPtr, MethodBindings.setJsonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setJsonPtr, NIL) } public final fun getMajorVersion(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMajorVersionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMajorVersionPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setMajorVersion(majorVersion: Int): Unit { TransferContext.writeArguments(LONG to majorVersion.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMajorVersionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMajorVersionPtr, NIL) } public final fun getMinorVersion(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMinorVersionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMinorVersionPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setMinorVersion(minorVersion: Int): Unit { TransferContext.writeArguments(LONG to minorVersion.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMinorVersionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMinorVersionPtr, NIL) } public final fun getCopyright(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCopyrightPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getCopyrightPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setCopyright(copyright: String): Unit { TransferContext.writeArguments(STRING to copyright) - TransferContext.callMethod(rawPtr, MethodBindings.setCopyrightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCopyrightPtr, NIL) } public final fun getGlbData(): PackedByteArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGlbDataPtr, PACKED_BYTE_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getGlbDataPtr, PACKED_BYTE_ARRAY) return (TransferContext.readReturnValue(PACKED_BYTE_ARRAY) as PackedByteArray) } public final fun setGlbData(glbData: PackedByteArray): Unit { TransferContext.writeArguments(PACKED_BYTE_ARRAY to glbData) - TransferContext.callMethod(rawPtr, MethodBindings.setGlbDataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlbDataPtr, NIL) } public final fun getUseNamedSkinBinds(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUseNamedSkinBindsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getUseNamedSkinBindsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setUseNamedSkinBinds(useNamedSkinBinds: Boolean): Unit { TransferContext.writeArguments(BOOL to useNamedSkinBinds) - TransferContext.callMethod(rawPtr, MethodBindings.setUseNamedSkinBindsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseNamedSkinBindsPtr, NIL) } /** @@ -423,7 +423,7 @@ public open class GLTFState : Resource() { */ public final fun getNodes(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNodesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getNodesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -434,40 +434,40 @@ public open class GLTFState : Resource() { */ public final fun setNodes(nodes: VariantArray): Unit { TransferContext.writeArguments(ARRAY to nodes) - TransferContext.callMethod(rawPtr, MethodBindings.setNodesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNodesPtr, NIL) } public final fun getBuffers(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBuffersPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getBuffersPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } public final fun setBuffers(buffers: VariantArray): Unit { TransferContext.writeArguments(ARRAY to buffers) - TransferContext.callMethod(rawPtr, MethodBindings.setBuffersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBuffersPtr, NIL) } public final fun getBufferViews(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBufferViewsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getBufferViewsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } public final fun setBufferViews(bufferViews: VariantArray): Unit { TransferContext.writeArguments(ARRAY to bufferViews) - TransferContext.callMethod(rawPtr, MethodBindings.setBufferViewsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBufferViewsPtr, NIL) } public final fun getAccessors(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAccessorsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getAccessorsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } public final fun setAccessors(accessors: VariantArray): Unit { TransferContext.writeArguments(ARRAY to accessors) - TransferContext.callMethod(rawPtr, MethodBindings.setAccessorsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAccessorsPtr, NIL) } /** @@ -476,7 +476,7 @@ public open class GLTFState : Resource() { */ public final fun getMeshes(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMeshesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getMeshesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -486,7 +486,7 @@ public open class GLTFState : Resource() { */ public final fun setMeshes(meshes: VariantArray): Unit { TransferContext.writeArguments(ARRAY to meshes) - TransferContext.callMethod(rawPtr, MethodBindings.setMeshesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMeshesPtr, NIL) } /** @@ -495,7 +495,7 @@ public open class GLTFState : Resource() { */ public final fun getAnimationPlayersCount(idx: Int): Int { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getAnimationPlayersCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAnimationPlayersCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -505,74 +505,74 @@ public open class GLTFState : Resource() { */ public final fun getAnimationPlayer(idx: Int): AnimationPlayer? { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getAnimationPlayerPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getAnimationPlayerPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as AnimationPlayer?) } public final fun getMaterials(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaterialsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getMaterialsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } public final fun setMaterials(materials: VariantArray): Unit { TransferContext.writeArguments(ARRAY to materials) - TransferContext.callMethod(rawPtr, MethodBindings.setMaterialsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaterialsPtr, NIL) } public final fun getSceneName(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSceneNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getSceneNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setSceneName(sceneName: String): Unit { TransferContext.writeArguments(STRING to sceneName) - TransferContext.callMethod(rawPtr, MethodBindings.setSceneNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSceneNamePtr, NIL) } public final fun getBasePath(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBasePathPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getBasePathPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setBasePath(basePath: String): Unit { TransferContext.writeArguments(STRING to basePath) - TransferContext.callMethod(rawPtr, MethodBindings.setBasePathPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBasePathPtr, NIL) } public final fun getFilename(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFilenamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getFilenamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setFilename(filename: String): Unit { TransferContext.writeArguments(STRING to filename) - TransferContext.callMethod(rawPtr, MethodBindings.setFilenamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFilenamePtr, NIL) } public final fun getRootNodes(): PackedInt32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRootNodesPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getRootNodesPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } public final fun setRootNodes(rootNodes: PackedInt32Array): Unit { TransferContext.writeArguments(PACKED_INT_32_ARRAY to rootNodes) - TransferContext.callMethod(rawPtr, MethodBindings.setRootNodesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRootNodesPtr, NIL) } public final fun getTextures(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTexturesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getTexturesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } public final fun setTextures(textures: VariantArray): Unit { TransferContext.writeArguments(ARRAY to textures) - TransferContext.callMethod(rawPtr, MethodBindings.setTexturesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTexturesPtr, NIL) } /** @@ -580,7 +580,7 @@ public open class GLTFState : Resource() { */ public final fun getTextureSamplers(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextureSamplersPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getTextureSamplersPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -589,7 +589,7 @@ public open class GLTFState : Resource() { */ public final fun setTextureSamplers(textureSamplers: VariantArray): Unit { TransferContext.writeArguments(ARRAY to textureSamplers) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureSamplersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureSamplersPtr, NIL) } /** @@ -598,7 +598,7 @@ public open class GLTFState : Resource() { */ public final fun getImages(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getImagesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getImagesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -608,7 +608,7 @@ public open class GLTFState : Resource() { */ public final fun setImages(images: VariantArray): Unit { TransferContext.writeArguments(ARRAY to images) - TransferContext.callMethod(rawPtr, MethodBindings.setImagesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setImagesPtr, NIL) } /** @@ -617,7 +617,7 @@ public open class GLTFState : Resource() { */ public final fun getSkins(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSkinsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getSkinsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -627,7 +627,7 @@ public open class GLTFState : Resource() { */ public final fun setSkins(skins: VariantArray): Unit { TransferContext.writeArguments(ARRAY to skins) - TransferContext.callMethod(rawPtr, MethodBindings.setSkinsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSkinsPtr, NIL) } /** @@ -636,7 +636,7 @@ public open class GLTFState : Resource() { */ public final fun getCameras(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCamerasPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getCamerasPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -646,7 +646,7 @@ public open class GLTFState : Resource() { */ public final fun setCameras(cameras: VariantArray): Unit { TransferContext.writeArguments(ARRAY to cameras) - TransferContext.callMethod(rawPtr, MethodBindings.setCamerasPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCamerasPtr, NIL) } /** @@ -655,7 +655,7 @@ public open class GLTFState : Resource() { */ public final fun getLights(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLightsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getLightsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -665,7 +665,7 @@ public open class GLTFState : Resource() { */ public final fun setLights(lights: VariantArray): Unit { TransferContext.writeArguments(ARRAY to lights) - TransferContext.callMethod(rawPtr, MethodBindings.setLightsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLightsPtr, NIL) } /** @@ -674,7 +674,7 @@ public open class GLTFState : Resource() { */ public final fun getUniqueNames(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUniqueNamesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getUniqueNamesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -684,7 +684,7 @@ public open class GLTFState : Resource() { */ public final fun setUniqueNames(uniqueNames: VariantArray): Unit { TransferContext.writeArguments(ARRAY to uniqueNames) - TransferContext.callMethod(rawPtr, MethodBindings.setUniqueNamesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUniqueNamesPtr, NIL) } /** @@ -692,7 +692,7 @@ public open class GLTFState : Resource() { */ public final fun getUniqueAnimationNames(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUniqueAnimationNamesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getUniqueAnimationNamesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -701,7 +701,7 @@ public open class GLTFState : Resource() { */ public final fun setUniqueAnimationNames(uniqueAnimationNames: VariantArray): Unit { TransferContext.writeArguments(ARRAY to uniqueAnimationNames) - TransferContext.callMethod(rawPtr, MethodBindings.setUniqueAnimationNamesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUniqueAnimationNamesPtr, NIL) } /** @@ -710,7 +710,7 @@ public open class GLTFState : Resource() { */ public final fun getSkeletons(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSkeletonsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getSkeletonsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -720,29 +720,29 @@ public open class GLTFState : Resource() { */ public final fun setSkeletons(skeletons: VariantArray): Unit { TransferContext.writeArguments(ARRAY to skeletons) - TransferContext.callMethod(rawPtr, MethodBindings.setSkeletonsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSkeletonsPtr, NIL) } public final fun getCreateAnimations(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCreateAnimationsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getCreateAnimationsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCreateAnimations(createAnimations: Boolean): Unit { TransferContext.writeArguments(BOOL to createAnimations) - TransferContext.callMethod(rawPtr, MethodBindings.setCreateAnimationsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCreateAnimationsPtr, NIL) } public final fun getImportAsSkeletonBones(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getImportAsSkeletonBonesPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getImportAsSkeletonBonesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setImportAsSkeletonBones(importAsSkeletonBones: Boolean): Unit { TransferContext.writeArguments(BOOL to importAsSkeletonBones) - TransferContext.callMethod(rawPtr, MethodBindings.setImportAsSkeletonBonesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setImportAsSkeletonBonesPtr, NIL) } /** @@ -752,7 +752,7 @@ public open class GLTFState : Resource() { */ public final fun getAnimations(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAnimationsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getAnimationsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -763,7 +763,7 @@ public open class GLTFState : Resource() { */ public final fun setAnimations(animations: VariantArray): Unit { TransferContext.writeArguments(ARRAY to animations) - TransferContext.callMethod(rawPtr, MethodBindings.setAnimationsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAnimationsPtr, NIL) } /** @@ -775,7 +775,7 @@ public open class GLTFState : Resource() { */ public final fun getSceneNode(idx: Int): Node? { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSceneNodePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getSceneNodePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Node?) } @@ -788,7 +788,7 @@ public open class GLTFState : Resource() { */ public final fun getNodeIndex(sceneNode: Node?): Int { TransferContext.writeArguments(OBJECT to sceneNode) - TransferContext.callMethod(rawPtr, MethodBindings.getNodeIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getNodeIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -801,7 +801,7 @@ public open class GLTFState : Resource() { */ public final fun getAdditionalData(extensionName: StringName): Any? { TransferContext.writeArguments(STRING_NAME to extensionName) - TransferContext.callMethod(rawPtr, MethodBindings.getAdditionalDataPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getAdditionalDataPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -813,28 +813,28 @@ public open class GLTFState : Resource() { */ public final fun setAdditionalData(extensionName: StringName, additionalData: Any?): Unit { TransferContext.writeArguments(STRING_NAME to extensionName, ANY to additionalData) - TransferContext.callMethod(rawPtr, MethodBindings.setAdditionalDataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAdditionalDataPtr, NIL) } public final fun getHandleBinaryImage(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHandleBinaryImagePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getHandleBinaryImagePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setHandleBinaryImage(method: Int): Unit { TransferContext.writeArguments(LONG to method.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setHandleBinaryImagePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHandleBinaryImagePtr, NIL) } public final fun setBakeFps(`value`: Double): Unit { TransferContext.writeArguments(DOUBLE to value) - TransferContext.callMethod(rawPtr, MethodBindings.setBakeFpsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBakeFpsPtr, NIL) } public final fun getBakeFps(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBakeFpsPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getBakeFpsPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFTexture.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFTexture.kt index 05ec2cf947..003a9bb93f 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFTexture.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFTexture.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -50,24 +50,24 @@ public open class GLTFTexture : Resource() { public final fun getSrcImage(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSrcImagePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSrcImagePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setSrcImage(srcImage: Int): Unit { TransferContext.writeArguments(LONG to srcImage.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSrcImagePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSrcImagePtr, NIL) } public final fun getSampler(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSamplerPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSamplerPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setSampler(sampler: Int): Unit { TransferContext.writeArguments(LONG to sampler.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSamplerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSamplerPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFTextureSampler.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFTextureSampler.kt index 69b6f34e3f..3aca40b0a2 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFTextureSampler.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GLTFTextureSampler.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -76,46 +76,46 @@ public open class GLTFTextureSampler : Resource() { public final fun getMagFilter(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMagFilterPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMagFilterPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setMagFilter(filterMode: Int): Unit { TransferContext.writeArguments(LONG to filterMode.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMagFilterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMagFilterPtr, NIL) } public final fun getMinFilter(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMinFilterPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMinFilterPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setMinFilter(filterMode: Int): Unit { TransferContext.writeArguments(LONG to filterMode.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMinFilterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMinFilterPtr, NIL) } public final fun getWrapS(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWrapSPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getWrapSPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setWrapS(wrapMode: Int): Unit { TransferContext.writeArguments(LONG to wrapMode.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setWrapSPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setWrapSPtr, NIL) } public final fun getWrapT(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWrapTPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getWrapTPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setWrapT(wrapMode: Int): Unit { TransferContext.writeArguments(LONG to wrapMode.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setWrapTPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setWrapTPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticles2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticles2D.kt index 4f1223a7ed..450d30162c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticles2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticles2D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.NodePath import godot.core.Rect2 @@ -27,7 +28,6 @@ import godot.core.VariantParser.TRANSFORM2D import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -414,199 +414,199 @@ public open class GPUParticles2D : Node2D() { public final fun setEmitting(emitting: Boolean): Unit { TransferContext.writeArguments(BOOL to emitting) - TransferContext.callMethod(rawPtr, MethodBindings.setEmittingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmittingPtr, NIL) } public final fun setAmount(amount: Int): Unit { TransferContext.writeArguments(LONG to amount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setAmountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAmountPtr, NIL) } public final fun setLifetime(secs: Double): Unit { TransferContext.writeArguments(DOUBLE to secs) - TransferContext.callMethod(rawPtr, MethodBindings.setLifetimePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLifetimePtr, NIL) } public final fun setOneShot(secs: Boolean): Unit { TransferContext.writeArguments(BOOL to secs) - TransferContext.callMethod(rawPtr, MethodBindings.setOneShotPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOneShotPtr, NIL) } public final fun setPreProcessTime(secs: Double): Unit { TransferContext.writeArguments(DOUBLE to secs) - TransferContext.callMethod(rawPtr, MethodBindings.setPreProcessTimePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPreProcessTimePtr, NIL) } public final fun setExplosivenessRatio(ratio: Float): Unit { TransferContext.writeArguments(DOUBLE to ratio.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setExplosivenessRatioPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExplosivenessRatioPtr, NIL) } public final fun setRandomnessRatio(ratio: Float): Unit { TransferContext.writeArguments(DOUBLE to ratio.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRandomnessRatioPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRandomnessRatioPtr, NIL) } public final fun setVisibilityRect(visibilityRect: Rect2): Unit { TransferContext.writeArguments(RECT2 to visibilityRect) - TransferContext.callMethod(rawPtr, MethodBindings.setVisibilityRectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVisibilityRectPtr, NIL) } public final fun setUseLocalCoordinates(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setUseLocalCoordinatesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseLocalCoordinatesPtr, NIL) } public final fun setFixedFps(fps: Int): Unit { TransferContext.writeArguments(LONG to fps.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setFixedFpsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFixedFpsPtr, NIL) } public final fun setFractionalDelta(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setFractionalDeltaPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFractionalDeltaPtr, NIL) } public final fun setInterpolate(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setInterpolatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInterpolatePtr, NIL) } public final fun setProcessMaterial(material: Material?): Unit { TransferContext.writeArguments(OBJECT to material) - TransferContext.callMethod(rawPtr, MethodBindings.setProcessMaterialPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setProcessMaterialPtr, NIL) } public final fun setSpeedScale(scale: Double): Unit { TransferContext.writeArguments(DOUBLE to scale) - TransferContext.callMethod(rawPtr, MethodBindings.setSpeedScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSpeedScalePtr, NIL) } public final fun setCollisionBaseSize(size: Float): Unit { TransferContext.writeArguments(DOUBLE to size.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionBaseSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionBaseSizePtr, NIL) } public final fun setInterpToEnd(interp: Float): Unit { TransferContext.writeArguments(DOUBLE to interp.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setInterpToEndPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInterpToEndPtr, NIL) } public final fun isEmitting(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isEmittingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isEmittingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun getAmount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAmountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAmountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun getLifetime(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLifetimePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLifetimePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun getOneShot(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOneShotPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getOneShotPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun getPreProcessTime(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPreProcessTimePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPreProcessTimePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun getExplosivenessRatio(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getExplosivenessRatioPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getExplosivenessRatioPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun getRandomnessRatio(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRandomnessRatioPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRandomnessRatioPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun getVisibilityRect(): Rect2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVisibilityRectPtr, RECT2) + TransferContext.callMethod(ptr, MethodBindings.getVisibilityRectPtr, RECT2) return (TransferContext.readReturnValue(RECT2) as Rect2) } public final fun getUseLocalCoordinates(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUseLocalCoordinatesPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getUseLocalCoordinatesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun getFixedFps(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFixedFpsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFixedFpsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun getFractionalDelta(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFractionalDeltaPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getFractionalDeltaPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun getInterpolate(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInterpolatePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getInterpolatePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun getProcessMaterial(): Material? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getProcessMaterialPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getProcessMaterialPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Material?) } public final fun getSpeedScale(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSpeedScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSpeedScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun getCollisionBaseSize(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionBaseSizePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCollisionBaseSizePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun getInterpToEnd(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInterpToEndPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getInterpToEndPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDrawOrder(order: DrawOrder): Unit { TransferContext.writeArguments(LONG to order.id) - TransferContext.callMethod(rawPtr, MethodBindings.setDrawOrderPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDrawOrderPtr, NIL) } public final fun getDrawOrder(): DrawOrder { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDrawOrderPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDrawOrderPtr, LONG) return GPUParticles2D.DrawOrder.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setTexture(texture: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTexturePtr, NIL) } public final fun getTexture(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } @@ -617,7 +617,7 @@ public open class GPUParticles2D : Node2D() { */ public final fun captureRect(): Rect2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.captureRectPtr, RECT2) + TransferContext.callMethod(ptr, MethodBindings.captureRectPtr, RECT2) return (TransferContext.readReturnValue(RECT2) as Rect2) } @@ -628,17 +628,17 @@ public open class GPUParticles2D : Node2D() { */ public final fun restart(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.restartPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.restartPtr, NIL) } public final fun setSubEmitter(path: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to path) - TransferContext.callMethod(rawPtr, MethodBindings.setSubEmitterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSubEmitterPtr, NIL) } public final fun getSubEmitter(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSubEmitterPtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getSubEmitterPtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } @@ -656,50 +656,50 @@ public open class GPUParticles2D : Node2D() { flags: Long, ): Unit { TransferContext.writeArguments(TRANSFORM2D to xform, VECTOR2 to velocity, COLOR to color, COLOR to custom, LONG to flags) - TransferContext.callMethod(rawPtr, MethodBindings.emitParticlePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.emitParticlePtr, NIL) } public final fun setTrailEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setTrailEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTrailEnabledPtr, NIL) } public final fun setTrailLifetime(secs: Double): Unit { TransferContext.writeArguments(DOUBLE to secs) - TransferContext.callMethod(rawPtr, MethodBindings.setTrailLifetimePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTrailLifetimePtr, NIL) } public final fun isTrailEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isTrailEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isTrailEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun getTrailLifetime(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTrailLifetimePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTrailLifetimePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun setTrailSections(sections: Int): Unit { TransferContext.writeArguments(LONG to sections.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setTrailSectionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTrailSectionsPtr, NIL) } public final fun getTrailSections(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTrailSectionsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTrailSectionsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setTrailSectionSubdivisions(subdivisions: Int): Unit { TransferContext.writeArguments(LONG to subdivisions.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setTrailSectionSubdivisionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTrailSectionSubdivisionsPtr, NIL) } public final fun getTrailSectionSubdivisions(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTrailSectionSubdivisionsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTrailSectionSubdivisionsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -708,17 +708,17 @@ public open class GPUParticles2D : Node2D() { */ public final fun convertFromParticles(particles: Node?): Unit { TransferContext.writeArguments(OBJECT to particles) - TransferContext.callMethod(rawPtr, MethodBindings.convertFromParticlesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.convertFromParticlesPtr, NIL) } public final fun setAmountRatio(ratio: Float): Unit { TransferContext.writeArguments(DOUBLE to ratio.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAmountRatioPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAmountRatioPtr, NIL) } public final fun getAmountRatio(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAmountRatioPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAmountRatioPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticles3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticles3D.kt index a5a458f116..71be941450 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticles3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticles3D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.AABB import godot.core.Color import godot.core.NodePath @@ -26,7 +27,6 @@ import godot.core.VariantParser.TRANSFORM3D import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -448,195 +448,195 @@ public open class GPUParticles3D : GeometryInstance3D() { public final fun setEmitting(emitting: Boolean): Unit { TransferContext.writeArguments(BOOL to emitting) - TransferContext.callMethod(rawPtr, MethodBindings.setEmittingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmittingPtr, NIL) } public final fun setAmount(amount: Int): Unit { TransferContext.writeArguments(LONG to amount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setAmountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAmountPtr, NIL) } public final fun setLifetime(secs: Double): Unit { TransferContext.writeArguments(DOUBLE to secs) - TransferContext.callMethod(rawPtr, MethodBindings.setLifetimePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLifetimePtr, NIL) } public final fun setOneShot(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setOneShotPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOneShotPtr, NIL) } public final fun setPreProcessTime(secs: Double): Unit { TransferContext.writeArguments(DOUBLE to secs) - TransferContext.callMethod(rawPtr, MethodBindings.setPreProcessTimePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPreProcessTimePtr, NIL) } public final fun setExplosivenessRatio(ratio: Float): Unit { TransferContext.writeArguments(DOUBLE to ratio.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setExplosivenessRatioPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExplosivenessRatioPtr, NIL) } public final fun setRandomnessRatio(ratio: Float): Unit { TransferContext.writeArguments(DOUBLE to ratio.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRandomnessRatioPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRandomnessRatioPtr, NIL) } public final fun setVisibilityAabb(aabb: AABB): Unit { TransferContext.writeArguments(godot.core.VariantParser.AABB to aabb) - TransferContext.callMethod(rawPtr, MethodBindings.setVisibilityAabbPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVisibilityAabbPtr, NIL) } public final fun setUseLocalCoordinates(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setUseLocalCoordinatesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseLocalCoordinatesPtr, NIL) } public final fun setFixedFps(fps: Int): Unit { TransferContext.writeArguments(LONG to fps.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setFixedFpsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFixedFpsPtr, NIL) } public final fun setFractionalDelta(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setFractionalDeltaPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFractionalDeltaPtr, NIL) } public final fun setInterpolate(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setInterpolatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInterpolatePtr, NIL) } public final fun setProcessMaterial(material: Material?): Unit { TransferContext.writeArguments(OBJECT to material) - TransferContext.callMethod(rawPtr, MethodBindings.setProcessMaterialPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setProcessMaterialPtr, NIL) } public final fun setSpeedScale(scale: Double): Unit { TransferContext.writeArguments(DOUBLE to scale) - TransferContext.callMethod(rawPtr, MethodBindings.setSpeedScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSpeedScalePtr, NIL) } public final fun setCollisionBaseSize(size: Float): Unit { TransferContext.writeArguments(DOUBLE to size.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionBaseSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionBaseSizePtr, NIL) } public final fun setInterpToEnd(interp: Float): Unit { TransferContext.writeArguments(DOUBLE to interp.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setInterpToEndPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInterpToEndPtr, NIL) } public final fun isEmitting(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isEmittingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isEmittingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun getAmount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAmountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAmountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun getLifetime(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLifetimePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLifetimePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun getOneShot(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOneShotPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getOneShotPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun getPreProcessTime(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPreProcessTimePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPreProcessTimePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun getExplosivenessRatio(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getExplosivenessRatioPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getExplosivenessRatioPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun getRandomnessRatio(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRandomnessRatioPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRandomnessRatioPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun getVisibilityAabb(): AABB { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVisibilityAabbPtr, + TransferContext.callMethod(ptr, MethodBindings.getVisibilityAabbPtr, godot.core.VariantParser.AABB) return (TransferContext.readReturnValue(godot.core.VariantParser.AABB) as AABB) } public final fun getUseLocalCoordinates(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUseLocalCoordinatesPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getUseLocalCoordinatesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun getFixedFps(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFixedFpsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFixedFpsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun getFractionalDelta(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFractionalDeltaPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getFractionalDeltaPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun getInterpolate(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInterpolatePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getInterpolatePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun getProcessMaterial(): Material? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getProcessMaterialPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getProcessMaterialPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Material?) } public final fun getSpeedScale(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSpeedScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSpeedScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun getCollisionBaseSize(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionBaseSizePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCollisionBaseSizePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun getInterpToEnd(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInterpToEndPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getInterpToEndPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDrawOrder(order: DrawOrder): Unit { TransferContext.writeArguments(LONG to order.id) - TransferContext.callMethod(rawPtr, MethodBindings.setDrawOrderPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDrawOrderPtr, NIL) } public final fun getDrawOrder(): DrawOrder { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDrawOrderPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDrawOrderPtr, LONG) return GPUParticles3D.DrawOrder.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setDrawPasses(passes: Int): Unit { TransferContext.writeArguments(LONG to passes.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setDrawPassesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDrawPassesPtr, NIL) } /** @@ -644,12 +644,12 @@ public open class GPUParticles3D : GeometryInstance3D() { */ public final fun setDrawPassMesh(pass: Int, mesh: Mesh?): Unit { TransferContext.writeArguments(LONG to pass.toLong(), OBJECT to mesh) - TransferContext.callMethod(rawPtr, MethodBindings.setDrawPassMeshPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDrawPassMeshPtr, NIL) } public final fun getDrawPasses(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDrawPassesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDrawPassesPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -658,18 +658,18 @@ public open class GPUParticles3D : GeometryInstance3D() { */ public final fun getDrawPassMesh(pass: Int): Mesh? { TransferContext.writeArguments(LONG to pass.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getDrawPassMeshPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getDrawPassMeshPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Mesh?) } public final fun setSkin(skin: Skin?): Unit { TransferContext.writeArguments(OBJECT to skin) - TransferContext.callMethod(rawPtr, MethodBindings.setSkinPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSkinPtr, NIL) } public final fun getSkin(): Skin? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSkinPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getSkinPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Skin?) } @@ -680,7 +680,7 @@ public open class GPUParticles3D : GeometryInstance3D() { */ public final fun restart(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.restartPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.restartPtr, NIL) } /** @@ -689,18 +689,18 @@ public open class GPUParticles3D : GeometryInstance3D() { */ public final fun captureAabb(): AABB { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.captureAabbPtr, godot.core.VariantParser.AABB) + TransferContext.callMethod(ptr, MethodBindings.captureAabbPtr, godot.core.VariantParser.AABB) return (TransferContext.readReturnValue(godot.core.VariantParser.AABB) as AABB) } public final fun setSubEmitter(path: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to path) - TransferContext.callMethod(rawPtr, MethodBindings.setSubEmitterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSubEmitterPtr, NIL) } public final fun getSubEmitter(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSubEmitterPtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getSubEmitterPtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } @@ -718,39 +718,39 @@ public open class GPUParticles3D : GeometryInstance3D() { flags: Long, ): Unit { TransferContext.writeArguments(TRANSFORM3D to xform, VECTOR3 to velocity, COLOR to color, COLOR to custom, LONG to flags) - TransferContext.callMethod(rawPtr, MethodBindings.emitParticlePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.emitParticlePtr, NIL) } public final fun setTrailEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setTrailEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTrailEnabledPtr, NIL) } public final fun setTrailLifetime(secs: Double): Unit { TransferContext.writeArguments(DOUBLE to secs) - TransferContext.callMethod(rawPtr, MethodBindings.setTrailLifetimePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTrailLifetimePtr, NIL) } public final fun isTrailEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isTrailEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isTrailEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun getTrailLifetime(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTrailLifetimePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTrailLifetimePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun setTransformAlign(align: TransformAlign): Unit { TransferContext.writeArguments(LONG to align.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTransformAlignPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTransformAlignPtr, NIL) } public final fun getTransformAlign(): TransformAlign { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTransformAlignPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTransformAlignPtr, LONG) return GPUParticles3D.TransformAlign.from(TransferContext.readReturnValue(LONG) as Long) } @@ -759,17 +759,17 @@ public open class GPUParticles3D : GeometryInstance3D() { */ public final fun convertFromParticles(particles: Node?): Unit { TransferContext.writeArguments(OBJECT to particles) - TransferContext.callMethod(rawPtr, MethodBindings.convertFromParticlesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.convertFromParticlesPtr, NIL) } public final fun setAmountRatio(ratio: Float): Unit { TransferContext.writeArguments(DOUBLE to ratio.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAmountRatioPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAmountRatioPtr, NIL) } public final fun getAmountRatio(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAmountRatioPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAmountRatioPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesAttractor3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesAttractor3D.kt index b3f898e4ce..dfc7cbf7f3 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesAttractor3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesAttractor3D.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -96,45 +96,45 @@ public open class GPUParticlesAttractor3D internal constructor() : VisualInstanc public final fun setCullMask(mask: Long): Unit { TransferContext.writeArguments(LONG to mask) - TransferContext.callMethod(rawPtr, MethodBindings.setCullMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCullMaskPtr, NIL) } public final fun getCullMask(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCullMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCullMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setStrength(strength: Float): Unit { TransferContext.writeArguments(DOUBLE to strength.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setStrengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStrengthPtr, NIL) } public final fun getStrength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStrengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getStrengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAttenuation(attenuation: Float): Unit { TransferContext.writeArguments(DOUBLE to attenuation.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAttenuationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAttenuationPtr, NIL) } public final fun getAttenuation(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAttenuationPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAttenuationPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDirectionality(amount: Float): Unit { TransferContext.writeArguments(DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDirectionalityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDirectionalityPtr, NIL) } public final fun getDirectionality(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDirectionalityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDirectionalityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesAttractorBox3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesAttractorBox3D.kt index 78536ec2c0..805ca2a141 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesAttractorBox3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesAttractorBox3D.kt @@ -9,12 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -71,12 +71,12 @@ public open class GPUParticlesAttractorBox3D : GPUParticlesAttractor3D() { public final fun setSize(size: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to size) - TransferContext.callMethod(rawPtr, MethodBindings.setSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSizePtr, NIL) } public final fun getSize(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSizePtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getSizePtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesAttractorSphere3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesAttractorSphere3D.kt index 3f9165f625..06c6882c86 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesAttractorSphere3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesAttractorSphere3D.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -47,12 +47,12 @@ public open class GPUParticlesAttractorSphere3D : GPUParticlesAttractor3D() { public final fun setRadius(radius: Float): Unit { TransferContext.writeArguments(DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRadiusPtr, NIL) } public final fun getRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesAttractorVectorField3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesAttractorVectorField3D.kt index 3e8f191003..1da6e9d80e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesAttractorVectorField3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesAttractorVectorField3D.kt @@ -9,13 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -90,23 +90,23 @@ public open class GPUParticlesAttractorVectorField3D : GPUParticlesAttractor3D() public final fun setSize(size: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to size) - TransferContext.callMethod(rawPtr, MethodBindings.setSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSizePtr, NIL) } public final fun getSize(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSizePtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getSizePtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setTexture(texture: Texture3D?): Unit { TransferContext.writeArguments(OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTexturePtr, NIL) } public final fun getTexture(): Texture3D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture3D?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollision3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollision3D.kt index 41e15bb459..205d933126 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollision3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollision3D.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -59,12 +59,12 @@ public open class GPUParticlesCollision3D internal constructor() : VisualInstanc public final fun setCullMask(mask: Long): Unit { TransferContext.writeArguments(LONG to mask) - TransferContext.callMethod(rawPtr, MethodBindings.setCullMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCullMaskPtr, NIL) } public final fun getCullMask(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCullMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCullMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionBox3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionBox3D.kt index a15b330efa..c5f2be9310 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionBox3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionBox3D.kt @@ -9,12 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -73,12 +73,12 @@ public open class GPUParticlesCollisionBox3D : GPUParticlesCollision3D() { public final fun setSize(size: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to size) - TransferContext.callMethod(rawPtr, MethodBindings.setSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSizePtr, NIL) } public final fun getSize(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSizePtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getSizePtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionHeightField3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionHeightField3D.kt index 67f92eb948..f1611e7cb0 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionHeightField3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionHeightField3D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG @@ -16,7 +17,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -123,45 +123,45 @@ public open class GPUParticlesCollisionHeightField3D : GPUParticlesCollision3D() public final fun setSize(size: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to size) - TransferContext.callMethod(rawPtr, MethodBindings.setSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSizePtr, NIL) } public final fun getSize(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSizePtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getSizePtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setResolution(resolution: Resolution): Unit { TransferContext.writeArguments(LONG to resolution.id) - TransferContext.callMethod(rawPtr, MethodBindings.setResolutionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setResolutionPtr, NIL) } public final fun getResolution(): Resolution { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getResolutionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getResolutionPtr, LONG) return GPUParticlesCollisionHeightField3D.Resolution.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setUpdateMode(updateMode: UpdateMode): Unit { TransferContext.writeArguments(LONG to updateMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setUpdateModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUpdateModePtr, NIL) } public final fun getUpdateMode(): UpdateMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUpdateModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getUpdateModePtr, LONG) return GPUParticlesCollisionHeightField3D.UpdateMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setFollowCameraEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setFollowCameraEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFollowCameraEnabledPtr, NIL) } public final fun isFollowCameraEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isFollowCameraEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isFollowCameraEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionSDF3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionSDF3D.kt index 033b706bae..35f732f148 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionSDF3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionSDF3D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE @@ -18,7 +19,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -145,56 +145,56 @@ public open class GPUParticlesCollisionSDF3D : GPUParticlesCollision3D() { public final fun setSize(size: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to size) - TransferContext.callMethod(rawPtr, MethodBindings.setSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSizePtr, NIL) } public final fun getSize(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSizePtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getSizePtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setResolution(resolution: Resolution): Unit { TransferContext.writeArguments(LONG to resolution.id) - TransferContext.callMethod(rawPtr, MethodBindings.setResolutionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setResolutionPtr, NIL) } public final fun getResolution(): Resolution { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getResolutionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getResolutionPtr, LONG) return GPUParticlesCollisionSDF3D.Resolution.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setTexture(texture: Texture3D?): Unit { TransferContext.writeArguments(OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTexturePtr, NIL) } public final fun getTexture(): Texture3D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture3D?) } public final fun setThickness(thickness: Float): Unit { TransferContext.writeArguments(DOUBLE to thickness.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setThicknessPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setThicknessPtr, NIL) } public final fun getThickness(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getThicknessPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getThicknessPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setBakeMask(mask: Long): Unit { TransferContext.writeArguments(LONG to mask) - TransferContext.callMethod(rawPtr, MethodBindings.setBakeMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBakeMaskPtr, NIL) } public final fun getBakeMask(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBakeMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBakeMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -204,7 +204,7 @@ public open class GPUParticlesCollisionSDF3D : GPUParticlesCollision3D() { */ public final fun setBakeMaskValue(layerNumber: Int, `value`: Boolean): Unit { TransferContext.writeArguments(LONG to layerNumber.toLong(), BOOL to value) - TransferContext.callMethod(rawPtr, MethodBindings.setBakeMaskValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBakeMaskValuePtr, NIL) } /** @@ -213,7 +213,7 @@ public open class GPUParticlesCollisionSDF3D : GPUParticlesCollision3D() { */ public final fun getBakeMaskValue(layerNumber: Int): Boolean { TransferContext.writeArguments(LONG to layerNumber.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBakeMaskValuePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getBakeMaskValuePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionSphere3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionSphere3D.kt index b0c595abb0..10691e246a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionSphere3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionSphere3D.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -47,12 +47,12 @@ public open class GPUParticlesCollisionSphere3D : GPUParticlesCollision3D() { public final fun setRadius(radius: Float): Unit { TransferContext.writeArguments(DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRadiusPtr, NIL) } public final fun getRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Generic6DOFJoint3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Generic6DOFJoint3D.kt index cbb3e44219..5cb056ee62 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Generic6DOFJoint3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Generic6DOFJoint3D.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -36,67 +36,67 @@ public open class Generic6DOFJoint3D : Joint3D() { public final fun setParamX(`param`: Param, `value`: Float): Unit { TransferContext.writeArguments(LONG to param.id, DOUBLE to value.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setParamXPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setParamXPtr, NIL) } public final fun getParamX(`param`: Param): Float { TransferContext.writeArguments(LONG to param.id) - TransferContext.callMethod(rawPtr, MethodBindings.getParamXPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getParamXPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setParamY(`param`: Param, `value`: Float): Unit { TransferContext.writeArguments(LONG to param.id, DOUBLE to value.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setParamYPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setParamYPtr, NIL) } public final fun getParamY(`param`: Param): Float { TransferContext.writeArguments(LONG to param.id) - TransferContext.callMethod(rawPtr, MethodBindings.getParamYPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getParamYPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setParamZ(`param`: Param, `value`: Float): Unit { TransferContext.writeArguments(LONG to param.id, DOUBLE to value.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setParamZPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setParamZPtr, NIL) } public final fun getParamZ(`param`: Param): Float { TransferContext.writeArguments(LONG to param.id) - TransferContext.callMethod(rawPtr, MethodBindings.getParamZPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getParamZPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setFlagX(flag: Flag, `value`: Boolean): Unit { TransferContext.writeArguments(LONG to flag.id, BOOL to value) - TransferContext.callMethod(rawPtr, MethodBindings.setFlagXPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFlagXPtr, NIL) } public final fun getFlagX(flag: Flag): Boolean { TransferContext.writeArguments(LONG to flag.id) - TransferContext.callMethod(rawPtr, MethodBindings.getFlagXPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getFlagXPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setFlagY(flag: Flag, `value`: Boolean): Unit { TransferContext.writeArguments(LONG to flag.id, BOOL to value) - TransferContext.callMethod(rawPtr, MethodBindings.setFlagYPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFlagYPtr, NIL) } public final fun getFlagY(flag: Flag): Boolean { TransferContext.writeArguments(LONG to flag.id) - TransferContext.callMethod(rawPtr, MethodBindings.getFlagYPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getFlagYPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setFlagZ(flag: Flag, `value`: Boolean): Unit { TransferContext.writeArguments(LONG to flag.id, BOOL to value) - TransferContext.callMethod(rawPtr, MethodBindings.setFlagZPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFlagZPtr, NIL) } public final fun getFlagZ(flag: Flag): Boolean { TransferContext.writeArguments(LONG to flag.id) - TransferContext.callMethod(rawPtr, MethodBindings.getFlagZPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getFlagZPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Geometry2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Geometry2D.kt index 92c5ffa471..6983e1c477 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Geometry2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Geometry2D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedInt32Array import godot.core.PackedVector2Array @@ -23,7 +24,6 @@ import godot.core.VariantParser.PACKED_VECTOR2_ARRAY import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -56,7 +56,7 @@ public object Geometry2D : Object() { circleRadius: Float, ): Boolean { TransferContext.writeArguments(VECTOR2 to point, VECTOR2 to circlePosition, DOUBLE to circleRadius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.isPointInCirclePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPointInCirclePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -75,7 +75,7 @@ public object Geometry2D : Object() { circleRadius: Float, ): Float { TransferContext.writeArguments(VECTOR2 to segmentFrom, VECTOR2 to segmentTo, VECTOR2 to circlePosition, DOUBLE to circleRadius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.segmentIntersectsCirclePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.segmentIntersectsCirclePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -91,7 +91,7 @@ public object Geometry2D : Object() { toB: Vector2, ): Any? { TransferContext.writeArguments(VECTOR2 to fromA, VECTOR2 to toA, VECTOR2 to fromB, VECTOR2 to toB) - TransferContext.callMethod(rawPtr, MethodBindings.segmentIntersectsSegmentPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.segmentIntersectsSegmentPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -108,7 +108,7 @@ public object Geometry2D : Object() { dirB: Vector2, ): Any? { TransferContext.writeArguments(VECTOR2 to fromA, VECTOR2 to dirA, VECTOR2 to fromB, VECTOR2 to dirB) - TransferContext.callMethod(rawPtr, MethodBindings.lineIntersectsLinePtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.lineIntersectsLinePtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -125,7 +125,7 @@ public object Geometry2D : Object() { q2: Vector2, ): PackedVector2Array { TransferContext.writeArguments(VECTOR2 to p1, VECTOR2 to q1, VECTOR2 to p2, VECTOR2 to q2) - TransferContext.callMethod(rawPtr, MethodBindings.getClosestPointsBetweenSegmentsPtr, + TransferContext.callMethod(ptr, MethodBindings.getClosestPointsBetweenSegmentsPtr, PACKED_VECTOR2_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR2_ARRAY) as PackedVector2Array) } @@ -141,7 +141,7 @@ public object Geometry2D : Object() { s2: Vector2, ): Vector2 { TransferContext.writeArguments(VECTOR2 to point, VECTOR2 to s1, VECTOR2 to s2) - TransferContext.callMethod(rawPtr, MethodBindings.getClosestPointToSegmentPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getClosestPointToSegmentPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -157,7 +157,7 @@ public object Geometry2D : Object() { s2: Vector2, ): Vector2 { TransferContext.writeArguments(VECTOR2 to point, VECTOR2 to s1, VECTOR2 to s2) - TransferContext.callMethod(rawPtr, MethodBindings.getClosestPointToSegmentUncappedPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getClosestPointToSegmentUncappedPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -172,7 +172,7 @@ public object Geometry2D : Object() { c: Vector2, ): Boolean { TransferContext.writeArguments(VECTOR2 to point, VECTOR2 to a, VECTOR2 to b, VECTOR2 to c) - TransferContext.callMethod(rawPtr, MethodBindings.pointIsInsideTrianglePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.pointIsInsideTrianglePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -186,7 +186,7 @@ public object Geometry2D : Object() { @JvmStatic public final fun isPolygonClockwise(polygon: PackedVector2Array): Boolean { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to polygon) - TransferContext.callMethod(rawPtr, MethodBindings.isPolygonClockwisePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPolygonClockwisePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -197,7 +197,7 @@ public object Geometry2D : Object() { @JvmStatic public final fun isPointInPolygon(point: Vector2, polygon: PackedVector2Array): Boolean { TransferContext.writeArguments(VECTOR2 to point, PACKED_VECTOR2_ARRAY to polygon) - TransferContext.callMethod(rawPtr, MethodBindings.isPointInPolygonPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPointInPolygonPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -211,7 +211,7 @@ public object Geometry2D : Object() { @JvmStatic public final fun triangulatePolygon(polygon: PackedVector2Array): PackedInt32Array { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to polygon) - TransferContext.callMethod(rawPtr, MethodBindings.triangulatePolygonPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.triangulatePolygonPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } @@ -225,7 +225,7 @@ public object Geometry2D : Object() { @JvmStatic public final fun triangulateDelaunay(points: PackedVector2Array): PackedInt32Array { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to points) - TransferContext.callMethod(rawPtr, MethodBindings.triangulateDelaunayPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.triangulateDelaunayPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } @@ -236,7 +236,7 @@ public object Geometry2D : Object() { @JvmStatic public final fun convexHull(points: PackedVector2Array): PackedVector2Array { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to points) - TransferContext.callMethod(rawPtr, MethodBindings.convexHullPtr, PACKED_VECTOR2_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.convexHullPtr, PACKED_VECTOR2_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR2_ARRAY) as PackedVector2Array) } @@ -248,7 +248,7 @@ public object Geometry2D : Object() { public final fun decomposePolygonInConvex(polygon: PackedVector2Array): VariantArray { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to polygon) - TransferContext.callMethod(rawPtr, MethodBindings.decomposePolygonInConvexPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.decomposePolygonInConvexPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -262,7 +262,7 @@ public object Geometry2D : Object() { public final fun mergePolygons(polygonA: PackedVector2Array, polygonB: PackedVector2Array): VariantArray { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to polygonA, PACKED_VECTOR2_ARRAY to polygonB) - TransferContext.callMethod(rawPtr, MethodBindings.mergePolygonsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.mergePolygonsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -277,7 +277,7 @@ public object Geometry2D : Object() { public final fun clipPolygons(polygonA: PackedVector2Array, polygonB: PackedVector2Array): VariantArray { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to polygonA, PACKED_VECTOR2_ARRAY to polygonB) - TransferContext.callMethod(rawPtr, MethodBindings.clipPolygonsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.clipPolygonsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -292,7 +292,7 @@ public object Geometry2D : Object() { public final fun intersectPolygons(polygonA: PackedVector2Array, polygonB: PackedVector2Array): VariantArray { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to polygonA, PACKED_VECTOR2_ARRAY to polygonB) - TransferContext.callMethod(rawPtr, MethodBindings.intersectPolygonsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.intersectPolygonsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -307,7 +307,7 @@ public object Geometry2D : Object() { public final fun excludePolygons(polygonA: PackedVector2Array, polygonB: PackedVector2Array): VariantArray { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to polygonA, PACKED_VECTOR2_ARRAY to polygonB) - TransferContext.callMethod(rawPtr, MethodBindings.excludePolygonsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.excludePolygonsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -320,7 +320,7 @@ public object Geometry2D : Object() { public final fun clipPolylineWithPolygon(polyline: PackedVector2Array, polygon: PackedVector2Array): VariantArray { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to polyline, PACKED_VECTOR2_ARRAY to polygon) - TransferContext.callMethod(rawPtr, MethodBindings.clipPolylineWithPolygonPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.clipPolylineWithPolygonPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -333,7 +333,7 @@ public object Geometry2D : Object() { public final fun intersectPolylineWithPolygon(polyline: PackedVector2Array, polygon: PackedVector2Array): VariantArray { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to polyline, PACKED_VECTOR2_ARRAY to polygon) - TransferContext.callMethod(rawPtr, MethodBindings.intersectPolylineWithPolygonPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.intersectPolylineWithPolygonPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -373,7 +373,7 @@ public object Geometry2D : Object() { joinType: PolyJoinType = Geometry2D.PolyJoinType.JOIN_SQUARE, ): VariantArray { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to polygon, DOUBLE to delta.toDouble(), LONG to joinType.id) - TransferContext.callMethod(rawPtr, MethodBindings.offsetPolygonPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.offsetPolygonPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -396,7 +396,7 @@ public object Geometry2D : Object() { endType: PolyEndType = Geometry2D.PolyEndType.END_SQUARE, ): VariantArray { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to polyline, DOUBLE to delta.toDouble(), LONG to joinType.id, LONG to endType.id) - TransferContext.callMethod(rawPtr, MethodBindings.offsetPolylinePtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.offsetPolylinePtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -408,7 +408,7 @@ public object Geometry2D : Object() { @JvmStatic public final fun makeAtlas(sizes: PackedVector2Array): Dictionary { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to sizes) - TransferContext.callMethod(rawPtr, MethodBindings.makeAtlasPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.makeAtlasPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Geometry3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Geometry3D.kt index cd7a75cf67..422985c6aa 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Geometry3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Geometry3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedInt32Array import godot.core.PackedVector3Array import godot.core.Plane @@ -22,7 +23,6 @@ import godot.core.VariantParser.PLANE import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Float import kotlin.Int @@ -47,8 +47,7 @@ public object Geometry3D : Object() { @JvmStatic public final fun computeConvexMeshPoints(planes: VariantArray): PackedVector3Array { TransferContext.writeArguments(ARRAY to planes) - TransferContext.callMethod(rawPtr, MethodBindings.computeConvexMeshPointsPtr, - PACKED_VECTOR3_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.computeConvexMeshPointsPtr, PACKED_VECTOR3_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR3_ARRAY) as PackedVector3Array) } @@ -60,7 +59,7 @@ public object Geometry3D : Object() { @JvmStatic public final fun buildBoxPlanes(extents: Vector3): VariantArray { TransferContext.writeArguments(VECTOR3 to extents) - TransferContext.callMethod(rawPtr, MethodBindings.buildBoxPlanesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.buildBoxPlanesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -79,7 +78,7 @@ public object Geometry3D : Object() { axis: Vector3.Axis = Vector3.Axis.Z, ): VariantArray { TransferContext.writeArguments(DOUBLE to radius.toDouble(), DOUBLE to height.toDouble(), LONG to sides.toLong(), LONG to axis.id) - TransferContext.callMethod(rawPtr, MethodBindings.buildCylinderPlanesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.buildCylinderPlanesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -100,7 +99,7 @@ public object Geometry3D : Object() { axis: Vector3.Axis = Vector3.Axis.Z, ): VariantArray { TransferContext.writeArguments(DOUBLE to radius.toDouble(), DOUBLE to height.toDouble(), LONG to sides.toLong(), LONG to lats.toLong(), LONG to axis.id) - TransferContext.callMethod(rawPtr, MethodBindings.buildCapsulePlanesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.buildCapsulePlanesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -117,7 +116,7 @@ public object Geometry3D : Object() { q2: Vector3, ): PackedVector3Array { TransferContext.writeArguments(VECTOR3 to p1, VECTOR3 to p2, VECTOR3 to q1, VECTOR3 to q2) - TransferContext.callMethod(rawPtr, MethodBindings.getClosestPointsBetweenSegmentsPtr, + TransferContext.callMethod(ptr, MethodBindings.getClosestPointsBetweenSegmentsPtr, PACKED_VECTOR3_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR3_ARRAY) as PackedVector3Array) } @@ -133,7 +132,7 @@ public object Geometry3D : Object() { s2: Vector3, ): Vector3 { TransferContext.writeArguments(VECTOR3 to point, VECTOR3 to s1, VECTOR3 to s2) - TransferContext.callMethod(rawPtr, MethodBindings.getClosestPointToSegmentPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getClosestPointToSegmentPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -149,7 +148,7 @@ public object Geometry3D : Object() { s2: Vector3, ): Vector3 { TransferContext.writeArguments(VECTOR3 to point, VECTOR3 to s1, VECTOR3 to s2) - TransferContext.callMethod(rawPtr, MethodBindings.getClosestPointToSegmentUncappedPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getClosestPointToSegmentUncappedPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -169,7 +168,7 @@ public object Geometry3D : Object() { c: Vector3, ): Vector3 { TransferContext.writeArguments(VECTOR3 to point, VECTOR3 to a, VECTOR3 to b, VECTOR3 to c) - TransferContext.callMethod(rawPtr, MethodBindings.getTriangleBarycentricCoordsPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getTriangleBarycentricCoordsPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -187,7 +186,7 @@ public object Geometry3D : Object() { c: Vector3, ): Any? { TransferContext.writeArguments(VECTOR3 to from, VECTOR3 to dir, VECTOR3 to a, VECTOR3 to b, VECTOR3 to c) - TransferContext.callMethod(rawPtr, MethodBindings.rayIntersectsTrianglePtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.rayIntersectsTrianglePtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -204,7 +203,7 @@ public object Geometry3D : Object() { c: Vector3, ): Any? { TransferContext.writeArguments(VECTOR3 to from, VECTOR3 to to, VECTOR3 to a, VECTOR3 to b, VECTOR3 to c) - TransferContext.callMethod(rawPtr, MethodBindings.segmentIntersectsTrianglePtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.segmentIntersectsTrianglePtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -222,8 +221,7 @@ public object Geometry3D : Object() { sphereRadius: Float, ): PackedVector3Array { TransferContext.writeArguments(VECTOR3 to from, VECTOR3 to to, VECTOR3 to spherePosition, DOUBLE to sphereRadius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.segmentIntersectsSpherePtr, - PACKED_VECTOR3_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.segmentIntersectsSpherePtr, PACKED_VECTOR3_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR3_ARRAY) as PackedVector3Array) } @@ -241,7 +239,7 @@ public object Geometry3D : Object() { radius: Float, ): PackedVector3Array { TransferContext.writeArguments(VECTOR3 to from, VECTOR3 to to, DOUBLE to height.toDouble(), DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.segmentIntersectsCylinderPtr, + TransferContext.callMethod(ptr, MethodBindings.segmentIntersectsCylinderPtr, PACKED_VECTOR3_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR3_ARRAY) as PackedVector3Array) } @@ -259,8 +257,7 @@ public object Geometry3D : Object() { planes: VariantArray, ): PackedVector3Array { TransferContext.writeArguments(VECTOR3 to from, VECTOR3 to to, ARRAY to planes) - TransferContext.callMethod(rawPtr, MethodBindings.segmentIntersectsConvexPtr, - PACKED_VECTOR3_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.segmentIntersectsConvexPtr, PACKED_VECTOR3_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR3_ARRAY) as PackedVector3Array) } @@ -271,7 +268,7 @@ public object Geometry3D : Object() { @JvmStatic public final fun clipPolygon(points: PackedVector3Array, plane: Plane): PackedVector3Array { TransferContext.writeArguments(PACKED_VECTOR3_ARRAY to points, PLANE to plane) - TransferContext.callMethod(rawPtr, MethodBindings.clipPolygonPtr, PACKED_VECTOR3_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.clipPolygonPtr, PACKED_VECTOR3_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR3_ARRAY) as PackedVector3Array) } @@ -285,8 +282,7 @@ public object Geometry3D : Object() { @JvmStatic public final fun tetrahedralizeDelaunay(points: PackedVector3Array): PackedInt32Array { TransferContext.writeArguments(PACKED_VECTOR3_ARRAY to points) - TransferContext.callMethod(rawPtr, MethodBindings.tetrahedralizeDelaunayPtr, - PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.tetrahedralizeDelaunayPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GeometryInstance3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GeometryInstance3D.kt index c2c0b1365e..991d9ec1d0 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GeometryInstance3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GeometryInstance3D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.AABB import godot.core.StringName import godot.core.TypeManager @@ -20,7 +21,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -290,111 +290,111 @@ public open class GeometryInstance3D : VisualInstance3D() { public final fun setMaterialOverride(material: Material?): Unit { TransferContext.writeArguments(OBJECT to material) - TransferContext.callMethod(rawPtr, MethodBindings.setMaterialOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaterialOverridePtr, NIL) } public final fun getMaterialOverride(): Material? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaterialOverridePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getMaterialOverridePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Material?) } public final fun setMaterialOverlay(material: Material?): Unit { TransferContext.writeArguments(OBJECT to material) - TransferContext.callMethod(rawPtr, MethodBindings.setMaterialOverlayPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaterialOverlayPtr, NIL) } public final fun getMaterialOverlay(): Material? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaterialOverlayPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getMaterialOverlayPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Material?) } public final fun setCastShadowsSetting(shadowCastingSetting: ShadowCastingSetting): Unit { TransferContext.writeArguments(LONG to shadowCastingSetting.id) - TransferContext.callMethod(rawPtr, MethodBindings.setCastShadowsSettingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCastShadowsSettingPtr, NIL) } public final fun getCastShadowsSetting(): ShadowCastingSetting { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCastShadowsSettingPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCastShadowsSettingPtr, LONG) return GeometryInstance3D.ShadowCastingSetting.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setLodBias(bias: Float): Unit { TransferContext.writeArguments(DOUBLE to bias.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setLodBiasPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLodBiasPtr, NIL) } public final fun getLodBias(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLodBiasPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLodBiasPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setTransparency(transparency: Float): Unit { TransferContext.writeArguments(DOUBLE to transparency.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTransparencyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTransparencyPtr, NIL) } public final fun getTransparency(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTransparencyPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTransparencyPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVisibilityRangeEndMargin(distance: Float): Unit { TransferContext.writeArguments(DOUBLE to distance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVisibilityRangeEndMarginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVisibilityRangeEndMarginPtr, NIL) } public final fun getVisibilityRangeEndMargin(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVisibilityRangeEndMarginPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVisibilityRangeEndMarginPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVisibilityRangeEnd(distance: Float): Unit { TransferContext.writeArguments(DOUBLE to distance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVisibilityRangeEndPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVisibilityRangeEndPtr, NIL) } public final fun getVisibilityRangeEnd(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVisibilityRangeEndPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVisibilityRangeEndPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVisibilityRangeBeginMargin(distance: Float): Unit { TransferContext.writeArguments(DOUBLE to distance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVisibilityRangeBeginMarginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVisibilityRangeBeginMarginPtr, NIL) } public final fun getVisibilityRangeBeginMargin(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVisibilityRangeBeginMarginPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVisibilityRangeBeginMarginPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVisibilityRangeBegin(distance: Float): Unit { TransferContext.writeArguments(DOUBLE to distance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVisibilityRangeBeginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVisibilityRangeBeginPtr, NIL) } public final fun getVisibilityRangeBegin(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVisibilityRangeBeginPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVisibilityRangeBeginPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVisibilityRangeFadeMode(mode: VisibilityRangeFadeMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setVisibilityRangeFadeModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVisibilityRangeFadeModePtr, NIL) } public final fun getVisibilityRangeFadeMode(): VisibilityRangeFadeMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVisibilityRangeFadeModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVisibilityRangeFadeModePtr, LONG) return GeometryInstance3D.VisibilityRangeFadeMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -412,7 +412,7 @@ public open class GeometryInstance3D : VisualInstance3D() { */ public final fun setInstanceShaderParameter(name: StringName, `value`: Any?): Unit { TransferContext.writeArguments(STRING_NAME to name, ANY to value) - TransferContext.callMethod(rawPtr, MethodBindings.setInstanceShaderParameterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInstanceShaderParameterPtr, NIL) } /** @@ -420,63 +420,62 @@ public open class GeometryInstance3D : VisualInstance3D() { */ public final fun getInstanceShaderParameter(name: StringName): Any? { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.getInstanceShaderParameterPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getInstanceShaderParameterPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } public final fun setExtraCullMargin(margin: Float): Unit { TransferContext.writeArguments(DOUBLE to margin.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setExtraCullMarginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExtraCullMarginPtr, NIL) } public final fun getExtraCullMargin(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getExtraCullMarginPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getExtraCullMarginPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setLightmapScale(scale: LightmapScale): Unit { TransferContext.writeArguments(LONG to scale.id) - TransferContext.callMethod(rawPtr, MethodBindings.setLightmapScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLightmapScalePtr, NIL) } public final fun getLightmapScale(): LightmapScale { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLightmapScalePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLightmapScalePtr, LONG) return GeometryInstance3D.LightmapScale.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setGiMode(mode: GIMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setGiModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGiModePtr, NIL) } public final fun getGiMode(): GIMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGiModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getGiModePtr, LONG) return GeometryInstance3D.GIMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setIgnoreOcclusionCulling(ignoreCulling: Boolean): Unit { TransferContext.writeArguments(BOOL to ignoreCulling) - TransferContext.callMethod(rawPtr, MethodBindings.setIgnoreOcclusionCullingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIgnoreOcclusionCullingPtr, NIL) } public final fun isIgnoringOcclusionCulling(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isIgnoringOcclusionCullingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isIgnoringOcclusionCullingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCustomAabb(aabb: AABB): Unit { TransferContext.writeArguments(godot.core.VariantParser.AABB to aabb) - TransferContext.callMethod(rawPtr, MethodBindings.setCustomAabbPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCustomAabbPtr, NIL) } public final fun getCustomAabb(): AABB { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCustomAabbPtr, - godot.core.VariantParser.AABB) + TransferContext.callMethod(ptr, MethodBindings.getCustomAabbPtr, godot.core.VariantParser.AABB) return (TransferContext.readReturnValue(godot.core.VariantParser.AABB) as AABB) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Gradient.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Gradient.kt index df88e5c5f5..0b581edd5d 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Gradient.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Gradient.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.PackedColorArray import godot.core.PackedFloat32Array @@ -18,7 +19,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_COLOR_ARRAY import godot.core.VariantParser.PACKED_FLOAT_32_ARRAY import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -95,7 +95,7 @@ public open class Gradient : Resource() { */ public final fun addPoint(offset: Float, color: Color): Unit { TransferContext.writeArguments(DOUBLE to offset.toDouble(), COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.addPointPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addPointPtr, NIL) } /** @@ -103,7 +103,7 @@ public open class Gradient : Resource() { */ public final fun removePoint(point: Int): Unit { TransferContext.writeArguments(LONG to point.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removePointPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removePointPtr, NIL) } /** @@ -111,7 +111,7 @@ public open class Gradient : Resource() { */ public final fun setOffset(point: Int, offset: Float): Unit { TransferContext.writeArguments(LONG to point.toLong(), DOUBLE to offset.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOffsetPtr, NIL) } /** @@ -119,7 +119,7 @@ public open class Gradient : Resource() { */ public final fun getOffset(point: Int): Float { TransferContext.writeArguments(LONG to point.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getOffsetPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getOffsetPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -130,7 +130,7 @@ public open class Gradient : Resource() { */ public final fun reverse(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.reversePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.reversePtr, NIL) } /** @@ -138,7 +138,7 @@ public open class Gradient : Resource() { */ public final fun setColor(point: Int, color: Color): Unit { TransferContext.writeArguments(LONG to point.toLong(), COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColorPtr, NIL) } /** @@ -146,7 +146,7 @@ public open class Gradient : Resource() { */ public final fun getColor(point: Int): Color { TransferContext.writeArguments(LONG to point.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } @@ -155,7 +155,7 @@ public open class Gradient : Resource() { */ public final fun sample(offset: Float): Color { TransferContext.writeArguments(DOUBLE to offset.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.samplePtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.samplePtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } @@ -164,51 +164,51 @@ public open class Gradient : Resource() { */ public final fun getPointCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPointCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPointCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setOffsets(offsets: PackedFloat32Array): Unit { TransferContext.writeArguments(PACKED_FLOAT_32_ARRAY to offsets) - TransferContext.callMethod(rawPtr, MethodBindings.setOffsetsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOffsetsPtr, NIL) } public final fun getOffsets(): PackedFloat32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOffsetsPtr, PACKED_FLOAT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getOffsetsPtr, PACKED_FLOAT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_FLOAT_32_ARRAY) as PackedFloat32Array) } public final fun setColors(colors: PackedColorArray): Unit { TransferContext.writeArguments(PACKED_COLOR_ARRAY to colors) - TransferContext.callMethod(rawPtr, MethodBindings.setColorsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColorsPtr, NIL) } public final fun getColors(): PackedColorArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColorsPtr, PACKED_COLOR_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getColorsPtr, PACKED_COLOR_ARRAY) return (TransferContext.readReturnValue(PACKED_COLOR_ARRAY) as PackedColorArray) } public final fun setInterpolationMode(interpolationMode: InterpolationMode): Unit { TransferContext.writeArguments(LONG to interpolationMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setInterpolationModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInterpolationModePtr, NIL) } public final fun getInterpolationMode(): InterpolationMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInterpolationModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getInterpolationModePtr, LONG) return Gradient.InterpolationMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setInterpolationColorSpace(interpolationColorSpace: ColorSpace): Unit { TransferContext.writeArguments(LONG to interpolationColorSpace.id) - TransferContext.callMethod(rawPtr, MethodBindings.setInterpolationColorSpacePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInterpolationColorSpacePtr, NIL) } public final fun getInterpolationColorSpace(): ColorSpace { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInterpolationColorSpacePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getInterpolationColorSpacePtr, LONG) return Gradient.ColorSpace.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GradientTexture1D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GradientTexture1D.kt index 2f54fe33b7..22a5659214 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GradientTexture1D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GradientTexture1D.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -70,28 +70,28 @@ public open class GradientTexture1D : Texture2D() { public final fun setGradient(gradient: Gradient?): Unit { TransferContext.writeArguments(OBJECT to gradient) - TransferContext.callMethod(rawPtr, MethodBindings.setGradientPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGradientPtr, NIL) } public final fun getGradient(): Gradient? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGradientPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getGradientPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Gradient?) } public final fun setWidth(width: Int): Unit { TransferContext.writeArguments(LONG to width.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setWidthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setWidthPtr, NIL) } public final fun setUseHdr(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setUseHdrPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseHdrPtr, NIL) } public final fun isUsingHdr(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUsingHdrPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUsingHdrPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GradientTexture2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GradientTexture2D.kt index 3f1953eb03..6cecedecc8 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GradientTexture2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GradientTexture2D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG @@ -17,7 +18,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -186,77 +186,77 @@ public open class GradientTexture2D : Texture2D() { public final fun setGradient(gradient: Gradient?): Unit { TransferContext.writeArguments(OBJECT to gradient) - TransferContext.callMethod(rawPtr, MethodBindings.setGradientPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGradientPtr, NIL) } public final fun getGradient(): Gradient? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGradientPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getGradientPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Gradient?) } public final fun setWidth(width: Int): Unit { TransferContext.writeArguments(LONG to width.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setWidthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setWidthPtr, NIL) } public final fun setHeight(height: Int): Unit { TransferContext.writeArguments(LONG to height.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setHeightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHeightPtr, NIL) } public final fun setUseHdr(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setUseHdrPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseHdrPtr, NIL) } public final fun isUsingHdr(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUsingHdrPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUsingHdrPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setFill(fill: Fill): Unit { TransferContext.writeArguments(LONG to fill.id) - TransferContext.callMethod(rawPtr, MethodBindings.setFillPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFillPtr, NIL) } public final fun getFill(): Fill { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFillPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFillPtr, LONG) return GradientTexture2D.Fill.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setFillFrom(fillFrom: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to fillFrom) - TransferContext.callMethod(rawPtr, MethodBindings.setFillFromPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFillFromPtr, NIL) } public final fun getFillFrom(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFillFromPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getFillFromPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setFillTo(fillTo: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to fillTo) - TransferContext.callMethod(rawPtr, MethodBindings.setFillToPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFillToPtr, NIL) } public final fun getFillTo(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFillToPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getFillToPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setRepeat(repeat: Repeat): Unit { TransferContext.writeArguments(LONG to repeat.id) - TransferContext.callMethod(rawPtr, MethodBindings.setRepeatPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRepeatPtr, NIL) } public final fun getRepeat(): Repeat { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRepeatPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getRepeatPtr, LONG) return GradientTexture2D.Repeat.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GraphEdit.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GraphEdit.kt index 754ed134dd..b81093fa55 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GraphEdit.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GraphEdit.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedVector2Array import godot.core.Rect2 @@ -33,7 +34,6 @@ import godot.core.VariantParser.STRING_NAME import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -577,7 +577,7 @@ public open class GraphEdit : Control() { toPort: Int, ): Error { TransferContext.writeArguments(STRING_NAME to fromNode, LONG to fromPort.toLong(), STRING_NAME to toNode, LONG to toPort.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.connectNodePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.connectNodePtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -592,7 +592,7 @@ public open class GraphEdit : Control() { toPort: Int, ): Boolean { TransferContext.writeArguments(STRING_NAME to fromNode, LONG to fromPort.toLong(), STRING_NAME to toNode, LONG to toPort.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isNodeConnectedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isNodeConnectedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -607,7 +607,7 @@ public open class GraphEdit : Control() { toPort: Int, ): Unit { TransferContext.writeArguments(STRING_NAME to fromNode, LONG to fromPort.toLong(), STRING_NAME to toNode, LONG to toPort.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.disconnectNodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.disconnectNodePtr, NIL) } /** @@ -623,7 +623,7 @@ public open class GraphEdit : Control() { amount: Float, ): Unit { TransferContext.writeArguments(STRING_NAME to fromNode, LONG to fromPort.toLong(), STRING_NAME to toNode, LONG to toPort.toLong(), DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setConnectionActivityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setConnectionActivityPtr, NIL) } /** @@ -633,7 +633,7 @@ public open class GraphEdit : Control() { */ public final fun getConnectionList(): VariantArray> { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConnectionListPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getConnectionListPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray>) } @@ -653,7 +653,7 @@ public open class GraphEdit : Control() { public final fun getClosestConnectionAtPoint(point: Vector2, maxDistance: Float = 4.0f): Dictionary { TransferContext.writeArguments(VECTOR2 to point, DOUBLE to maxDistance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.getClosestConnectionAtPointPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getClosestConnectionAtPointPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -665,7 +665,7 @@ public open class GraphEdit : Control() { public final fun getConnectionsIntersectingWithRect(rect: Rect2): VariantArray> { TransferContext.writeArguments(RECT2 to rect) - TransferContext.callMethod(rawPtr, MethodBindings.getConnectionsIntersectingWithRectPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getConnectionsIntersectingWithRectPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray>) } @@ -674,7 +674,7 @@ public open class GraphEdit : Control() { */ public final fun clearConnections(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearConnectionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearConnectionsPtr, NIL) } /** @@ -687,18 +687,18 @@ public open class GraphEdit : Control() { */ public final fun forceConnectionDragEnd(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.forceConnectionDragEndPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.forceConnectionDragEndPtr, NIL) } public final fun getScrollOffset(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScrollOffsetPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getScrollOffsetPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setScrollOffset(offset: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.setScrollOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setScrollOffsetPtr, NIL) } /** @@ -707,7 +707,7 @@ public open class GraphEdit : Control() { */ public final fun addValidRightDisconnectType(type: Int): Unit { TransferContext.writeArguments(LONG to type.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addValidRightDisconnectTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addValidRightDisconnectTypePtr, NIL) } /** @@ -717,7 +717,7 @@ public open class GraphEdit : Control() { */ public final fun removeValidRightDisconnectType(type: Int): Unit { TransferContext.writeArguments(LONG to type.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeValidRightDisconnectTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeValidRightDisconnectTypePtr, NIL) } /** @@ -726,7 +726,7 @@ public open class GraphEdit : Control() { */ public final fun addValidLeftDisconnectType(type: Int): Unit { TransferContext.writeArguments(LONG to type.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addValidLeftDisconnectTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addValidLeftDisconnectTypePtr, NIL) } /** @@ -736,7 +736,7 @@ public open class GraphEdit : Control() { */ public final fun removeValidLeftDisconnectType(type: Int): Unit { TransferContext.writeArguments(LONG to type.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeValidLeftDisconnectTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeValidLeftDisconnectTypePtr, NIL) } /** @@ -746,7 +746,7 @@ public open class GraphEdit : Control() { */ public final fun addValidConnectionType(fromType: Int, toType: Int): Unit { TransferContext.writeArguments(LONG to fromType.toLong(), LONG to toType.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addValidConnectionTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addValidConnectionTypePtr, NIL) } /** @@ -757,7 +757,7 @@ public open class GraphEdit : Control() { */ public final fun removeValidConnectionType(fromType: Int, toType: Int): Unit { TransferContext.writeArguments(LONG to fromType.toLong(), LONG to toType.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeValidConnectionTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeValidConnectionTypePtr, NIL) } /** @@ -768,7 +768,7 @@ public open class GraphEdit : Control() { */ public final fun isValidConnectionType(fromType: Int, toType: Int): Boolean { TransferContext.writeArguments(LONG to fromType.toLong(), LONG to toType.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isValidConnectionTypePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isValidConnectionTypePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -777,7 +777,7 @@ public open class GraphEdit : Control() { */ public final fun getConnectionLine(fromNode: Vector2, toNode: Vector2): PackedVector2Array { TransferContext.writeArguments(VECTOR2 to fromNode, VECTOR2 to toNode) - TransferContext.callMethod(rawPtr, MethodBindings.getConnectionLinePtr, PACKED_VECTOR2_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getConnectionLinePtr, PACKED_VECTOR2_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR2_ARRAY) as PackedVector2Array) } @@ -786,7 +786,7 @@ public open class GraphEdit : Control() { */ public final fun attachGraphElementToFrame(element: StringName, frame: StringName): Unit { TransferContext.writeArguments(STRING_NAME to element, STRING_NAME to frame) - TransferContext.callMethod(rawPtr, MethodBindings.attachGraphElementToFramePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.attachGraphElementToFramePtr, NIL) } /** @@ -794,7 +794,7 @@ public open class GraphEdit : Control() { */ public final fun detachGraphElementFromFrame(element: StringName): Unit { TransferContext.writeArguments(STRING_NAME to element) - TransferContext.callMethod(rawPtr, MethodBindings.detachGraphElementFromFramePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.detachGraphElementFromFramePtr, NIL) } /** @@ -802,7 +802,7 @@ public open class GraphEdit : Control() { */ public final fun getElementFrame(element: StringName): GraphFrame? { TransferContext.writeArguments(STRING_NAME to element) - TransferContext.callMethod(rawPtr, MethodBindings.getElementFramePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getElementFramePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as GraphFrame?) } @@ -811,249 +811,249 @@ public open class GraphEdit : Control() { */ public final fun getAttachedNodesOfFrame(frame: StringName): VariantArray { TransferContext.writeArguments(STRING_NAME to frame) - TransferContext.callMethod(rawPtr, MethodBindings.getAttachedNodesOfFramePtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getAttachedNodesOfFramePtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } public final fun setPanningScheme(scheme: PanningScheme): Unit { TransferContext.writeArguments(LONG to scheme.id) - TransferContext.callMethod(rawPtr, MethodBindings.setPanningSchemePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPanningSchemePtr, NIL) } public final fun getPanningScheme(): PanningScheme { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPanningSchemePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPanningSchemePtr, LONG) return GraphEdit.PanningScheme.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setZoom(zoom: Float): Unit { TransferContext.writeArguments(DOUBLE to zoom.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setZoomPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setZoomPtr, NIL) } public final fun getZoom(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getZoomPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getZoomPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setZoomMin(zoomMin: Float): Unit { TransferContext.writeArguments(DOUBLE to zoomMin.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setZoomMinPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setZoomMinPtr, NIL) } public final fun getZoomMin(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getZoomMinPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getZoomMinPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setZoomMax(zoomMax: Float): Unit { TransferContext.writeArguments(DOUBLE to zoomMax.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setZoomMaxPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setZoomMaxPtr, NIL) } public final fun getZoomMax(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getZoomMaxPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getZoomMaxPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setZoomStep(zoomStep: Float): Unit { TransferContext.writeArguments(DOUBLE to zoomStep.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setZoomStepPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setZoomStepPtr, NIL) } public final fun getZoomStep(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getZoomStepPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getZoomStepPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setShowGrid(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setShowGridPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShowGridPtr, NIL) } public final fun isShowingGrid(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isShowingGridPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isShowingGridPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setGridPattern(pattern: GridPattern): Unit { TransferContext.writeArguments(LONG to pattern.id) - TransferContext.callMethod(rawPtr, MethodBindings.setGridPatternPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGridPatternPtr, NIL) } public final fun getGridPattern(): GridPattern { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGridPatternPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getGridPatternPtr, LONG) return GraphEdit.GridPattern.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setSnappingEnabled(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setSnappingEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSnappingEnabledPtr, NIL) } public final fun isSnappingEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSnappingEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSnappingEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSnappingDistance(pixels: Int): Unit { TransferContext.writeArguments(LONG to pixels.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSnappingDistancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSnappingDistancePtr, NIL) } public final fun getSnappingDistance(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSnappingDistancePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSnappingDistancePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setConnectionLinesCurvature(curvature: Float): Unit { TransferContext.writeArguments(DOUBLE to curvature.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setConnectionLinesCurvaturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setConnectionLinesCurvaturePtr, NIL) } public final fun getConnectionLinesCurvature(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConnectionLinesCurvaturePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getConnectionLinesCurvaturePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setConnectionLinesThickness(pixels: Float): Unit { TransferContext.writeArguments(DOUBLE to pixels.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setConnectionLinesThicknessPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setConnectionLinesThicknessPtr, NIL) } public final fun getConnectionLinesThickness(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConnectionLinesThicknessPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getConnectionLinesThicknessPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setConnectionLinesAntialiased(pixels: Boolean): Unit { TransferContext.writeArguments(BOOL to pixels) - TransferContext.callMethod(rawPtr, MethodBindings.setConnectionLinesAntialiasedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setConnectionLinesAntialiasedPtr, NIL) } public final fun isConnectionLinesAntialiased(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isConnectionLinesAntialiasedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isConnectionLinesAntialiasedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setMinimapSize(size: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to size) - TransferContext.callMethod(rawPtr, MethodBindings.setMinimapSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMinimapSizePtr, NIL) } public final fun getMinimapSize(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMinimapSizePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getMinimapSizePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setMinimapOpacity(opacity: Float): Unit { TransferContext.writeArguments(DOUBLE to opacity.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMinimapOpacityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMinimapOpacityPtr, NIL) } public final fun getMinimapOpacity(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMinimapOpacityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMinimapOpacityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setMinimapEnabled(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setMinimapEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMinimapEnabledPtr, NIL) } public final fun isMinimapEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isMinimapEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isMinimapEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setShowMenu(hidden: Boolean): Unit { TransferContext.writeArguments(BOOL to hidden) - TransferContext.callMethod(rawPtr, MethodBindings.setShowMenuPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShowMenuPtr, NIL) } public final fun isShowingMenu(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isShowingMenuPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isShowingMenuPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setShowZoomLabel(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setShowZoomLabelPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShowZoomLabelPtr, NIL) } public final fun isShowingZoomLabel(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isShowingZoomLabelPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isShowingZoomLabelPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setShowGridButtons(hidden: Boolean): Unit { TransferContext.writeArguments(BOOL to hidden) - TransferContext.callMethod(rawPtr, MethodBindings.setShowGridButtonsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShowGridButtonsPtr, NIL) } public final fun isShowingGridButtons(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isShowingGridButtonsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isShowingGridButtonsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setShowZoomButtons(hidden: Boolean): Unit { TransferContext.writeArguments(BOOL to hidden) - TransferContext.callMethod(rawPtr, MethodBindings.setShowZoomButtonsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShowZoomButtonsPtr, NIL) } public final fun isShowingZoomButtons(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isShowingZoomButtonsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isShowingZoomButtonsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setShowMinimapButton(hidden: Boolean): Unit { TransferContext.writeArguments(BOOL to hidden) - TransferContext.callMethod(rawPtr, MethodBindings.setShowMinimapButtonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShowMinimapButtonPtr, NIL) } public final fun isShowingMinimapButton(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isShowingMinimapButtonPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isShowingMinimapButtonPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setShowArrangeButton(hidden: Boolean): Unit { TransferContext.writeArguments(BOOL to hidden) - TransferContext.callMethod(rawPtr, MethodBindings.setShowArrangeButtonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShowArrangeButtonPtr, NIL) } public final fun isShowingArrangeButton(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isShowingArrangeButtonPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isShowingArrangeButtonPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setRightDisconnects(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setRightDisconnectsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRightDisconnectsPtr, NIL) } public final fun isRightDisconnectsEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isRightDisconnectsEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isRightDisconnectsEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1066,7 +1066,7 @@ public open class GraphEdit : Control() { */ public final fun getMenuHbox(): HBoxContainer? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMenuHboxPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getMenuHboxPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as HBoxContainer?) } @@ -1076,7 +1076,7 @@ public open class GraphEdit : Control() { */ public final fun arrangeNodes(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.arrangeNodesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.arrangeNodesPtr, NIL) } /** @@ -1084,7 +1084,7 @@ public open class GraphEdit : Control() { */ public final fun setSelected(node: Node?): Unit { TransferContext.writeArguments(OBJECT to node) - TransferContext.callMethod(rawPtr, MethodBindings.setSelectedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSelectedPtr, NIL) } public enum class PanningScheme( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GraphElement.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GraphElement.kt index dee8ecee07..940df93054 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GraphElement.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GraphElement.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.Signal1 import godot.core.Signal2 @@ -18,7 +19,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -162,56 +162,56 @@ public open class GraphElement : Container() { public final fun setResizable(resizable: Boolean): Unit { TransferContext.writeArguments(BOOL to resizable) - TransferContext.callMethod(rawPtr, MethodBindings.setResizablePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setResizablePtr, NIL) } public final fun isResizable(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isResizablePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isResizablePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDraggable(draggable: Boolean): Unit { TransferContext.writeArguments(BOOL to draggable) - TransferContext.callMethod(rawPtr, MethodBindings.setDraggablePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDraggablePtr, NIL) } public final fun isDraggable(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDraggablePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDraggablePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSelectable(selectable: Boolean): Unit { TransferContext.writeArguments(BOOL to selectable) - TransferContext.callMethod(rawPtr, MethodBindings.setSelectablePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSelectablePtr, NIL) } public final fun isSelectable(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSelectablePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSelectablePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSelected(selected: Boolean): Unit { TransferContext.writeArguments(BOOL to selected) - TransferContext.callMethod(rawPtr, MethodBindings.setSelectedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSelectedPtr, NIL) } public final fun isSelected(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSelectedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSelectedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setPositionOffset(offset: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.setPositionOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPositionOffsetPtr, NIL) } public final fun getPositionOffset(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPositionOffsetPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getPositionOffsetPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GraphFrame.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GraphFrame.kt index 4476fbae9e..8db633955d 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GraphFrame.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GraphFrame.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.Signal0 import godot.core.TypeManager @@ -19,7 +20,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -141,12 +141,12 @@ public open class GraphFrame : GraphElement() { public final fun setTitle(title: String): Unit { TransferContext.writeArguments(STRING to title) - TransferContext.callMethod(rawPtr, MethodBindings.setTitlePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTitlePtr, NIL) } public final fun getTitle(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTitlePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getTitlePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -157,62 +157,62 @@ public open class GraphFrame : GraphElement() { */ public final fun getTitlebarHbox(): HBoxContainer? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTitlebarHboxPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTitlebarHboxPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as HBoxContainer?) } public final fun setAutoshrinkEnabled(shrink: Boolean): Unit { TransferContext.writeArguments(BOOL to shrink) - TransferContext.callMethod(rawPtr, MethodBindings.setAutoshrinkEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutoshrinkEnabledPtr, NIL) } public final fun isAutoshrinkEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isAutoshrinkEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isAutoshrinkEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAutoshrinkMargin(autoshrinkMargin: Int): Unit { TransferContext.writeArguments(LONG to autoshrinkMargin.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setAutoshrinkMarginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutoshrinkMarginPtr, NIL) } public final fun getAutoshrinkMargin(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAutoshrinkMarginPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAutoshrinkMarginPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setDragMargin(dragMargin: Int): Unit { TransferContext.writeArguments(LONG to dragMargin.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setDragMarginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDragMarginPtr, NIL) } public final fun getDragMargin(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDragMarginPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDragMarginPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setTintColorEnabled(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setTintColorEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTintColorEnabledPtr, NIL) } public final fun isTintColorEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isTintColorEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isTintColorEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setTintColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setTintColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTintColorPtr, NIL) } public final fun getTintColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTintColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getTintColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GraphNode.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GraphNode.kt index 609d5724ae..490c4464bd 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GraphNode.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GraphNode.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.Signal1 import godot.core.TypeManager @@ -20,7 +21,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.Vector2i import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -92,12 +92,12 @@ public open class GraphNode : GraphElement() { public final fun setTitle(title: String): Unit { TransferContext.writeArguments(STRING to title) - TransferContext.callMethod(rawPtr, MethodBindings.setTitlePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTitlePtr, NIL) } public final fun getTitle(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTitlePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getTitlePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -108,7 +108,7 @@ public open class GraphNode : GraphElement() { */ public final fun getTitlebarHbox(): HBoxContainer? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTitlebarHboxPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTitlebarHboxPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as HBoxContainer?) } @@ -144,7 +144,7 @@ public open class GraphNode : GraphElement() { drawStylebox: Boolean = true, ): Unit { TransferContext.writeArguments(LONG to slotIndex.toLong(), BOOL to enableLeftPort, LONG to typeLeft.toLong(), COLOR to colorLeft, BOOL to enableRightPort, LONG to typeRight.toLong(), COLOR to colorRight, OBJECT to customIconLeft, OBJECT to customIconRight, BOOL to drawStylebox) - TransferContext.callMethod(rawPtr, MethodBindings.setSlotPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSlotPtr, NIL) } /** @@ -153,7 +153,7 @@ public open class GraphNode : GraphElement() { */ public final fun clearSlot(slotIndex: Int): Unit { TransferContext.writeArguments(LONG to slotIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.clearSlotPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearSlotPtr, NIL) } /** @@ -162,7 +162,7 @@ public open class GraphNode : GraphElement() { */ public final fun clearAllSlots(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearAllSlotsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearAllSlotsPtr, NIL) } /** @@ -170,7 +170,7 @@ public open class GraphNode : GraphElement() { */ public final fun isSlotEnabledLeft(slotIndex: Int): Boolean { TransferContext.writeArguments(LONG to slotIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isSlotEnabledLeftPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSlotEnabledLeftPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -180,7 +180,7 @@ public open class GraphNode : GraphElement() { */ public final fun setSlotEnabledLeft(slotIndex: Int, enable: Boolean): Unit { TransferContext.writeArguments(LONG to slotIndex.toLong(), BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setSlotEnabledLeftPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSlotEnabledLeftPtr, NIL) } /** @@ -189,7 +189,7 @@ public open class GraphNode : GraphElement() { */ public final fun setSlotTypeLeft(slotIndex: Int, type: Int): Unit { TransferContext.writeArguments(LONG to slotIndex.toLong(), LONG to type.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSlotTypeLeftPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSlotTypeLeftPtr, NIL) } /** @@ -197,7 +197,7 @@ public open class GraphNode : GraphElement() { */ public final fun getSlotTypeLeft(slotIndex: Int): Int { TransferContext.writeArguments(LONG to slotIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSlotTypeLeftPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSlotTypeLeftPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -206,7 +206,7 @@ public open class GraphNode : GraphElement() { */ public final fun setSlotColorLeft(slotIndex: Int, color: Color): Unit { TransferContext.writeArguments(LONG to slotIndex.toLong(), COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setSlotColorLeftPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSlotColorLeftPtr, NIL) } /** @@ -214,7 +214,7 @@ public open class GraphNode : GraphElement() { */ public final fun getSlotColorLeft(slotIndex: Int): Color { TransferContext.writeArguments(LONG to slotIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSlotColorLeftPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getSlotColorLeftPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } @@ -224,7 +224,7 @@ public open class GraphNode : GraphElement() { */ public final fun setSlotCustomIconLeft(slotIndex: Int, customIcon: Texture2D?): Unit { TransferContext.writeArguments(LONG to slotIndex.toLong(), OBJECT to customIcon) - TransferContext.callMethod(rawPtr, MethodBindings.setSlotCustomIconLeftPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSlotCustomIconLeftPtr, NIL) } /** @@ -232,7 +232,7 @@ public open class GraphNode : GraphElement() { */ public final fun getSlotCustomIconLeft(slotIndex: Int): Texture2D? { TransferContext.writeArguments(LONG to slotIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSlotCustomIconLeftPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getSlotCustomIconLeftPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } @@ -241,7 +241,7 @@ public open class GraphNode : GraphElement() { */ public final fun isSlotEnabledRight(slotIndex: Int): Boolean { TransferContext.writeArguments(LONG to slotIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isSlotEnabledRightPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSlotEnabledRightPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -251,7 +251,7 @@ public open class GraphNode : GraphElement() { */ public final fun setSlotEnabledRight(slotIndex: Int, enable: Boolean): Unit { TransferContext.writeArguments(LONG to slotIndex.toLong(), BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setSlotEnabledRightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSlotEnabledRightPtr, NIL) } /** @@ -260,7 +260,7 @@ public open class GraphNode : GraphElement() { */ public final fun setSlotTypeRight(slotIndex: Int, type: Int): Unit { TransferContext.writeArguments(LONG to slotIndex.toLong(), LONG to type.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSlotTypeRightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSlotTypeRightPtr, NIL) } /** @@ -268,7 +268,7 @@ public open class GraphNode : GraphElement() { */ public final fun getSlotTypeRight(slotIndex: Int): Int { TransferContext.writeArguments(LONG to slotIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSlotTypeRightPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSlotTypeRightPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -277,7 +277,7 @@ public open class GraphNode : GraphElement() { */ public final fun setSlotColorRight(slotIndex: Int, color: Color): Unit { TransferContext.writeArguments(LONG to slotIndex.toLong(), COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setSlotColorRightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSlotColorRightPtr, NIL) } /** @@ -285,7 +285,7 @@ public open class GraphNode : GraphElement() { */ public final fun getSlotColorRight(slotIndex: Int): Color { TransferContext.writeArguments(LONG to slotIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSlotColorRightPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getSlotColorRightPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } @@ -295,7 +295,7 @@ public open class GraphNode : GraphElement() { */ public final fun setSlotCustomIconRight(slotIndex: Int, customIcon: Texture2D?): Unit { TransferContext.writeArguments(LONG to slotIndex.toLong(), OBJECT to customIcon) - TransferContext.callMethod(rawPtr, MethodBindings.setSlotCustomIconRightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSlotCustomIconRightPtr, NIL) } /** @@ -303,7 +303,7 @@ public open class GraphNode : GraphElement() { */ public final fun getSlotCustomIconRight(slotIndex: Int): Texture2D? { TransferContext.writeArguments(LONG to slotIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSlotCustomIconRightPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getSlotCustomIconRightPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } @@ -312,7 +312,7 @@ public open class GraphNode : GraphElement() { */ public final fun isSlotDrawStylebox(slotIndex: Int): Boolean { TransferContext.writeArguments(LONG to slotIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isSlotDrawStyleboxPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSlotDrawStyleboxPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -321,17 +321,17 @@ public open class GraphNode : GraphElement() { */ public final fun setSlotDrawStylebox(slotIndex: Int, enable: Boolean): Unit { TransferContext.writeArguments(LONG to slotIndex.toLong(), BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setSlotDrawStyleboxPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSlotDrawStyleboxPtr, NIL) } public final fun setIgnoreInvalidConnectionType(ignore: Boolean): Unit { TransferContext.writeArguments(BOOL to ignore) - TransferContext.callMethod(rawPtr, MethodBindings.setIgnoreInvalidConnectionTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIgnoreInvalidConnectionTypePtr, NIL) } public final fun isIgnoringValidConnectionType(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isIgnoringValidConnectionTypePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isIgnoringValidConnectionTypePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -340,7 +340,7 @@ public open class GraphNode : GraphElement() { */ public final fun getInputPortCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInputPortCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getInputPortCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -349,7 +349,7 @@ public open class GraphNode : GraphElement() { */ public final fun getInputPortPosition(portIdx: Int): Vector2 { TransferContext.writeArguments(LONG to portIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getInputPortPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getInputPortPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -358,7 +358,7 @@ public open class GraphNode : GraphElement() { */ public final fun getInputPortType(portIdx: Int): Int { TransferContext.writeArguments(LONG to portIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getInputPortTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getInputPortTypePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -367,7 +367,7 @@ public open class GraphNode : GraphElement() { */ public final fun getInputPortColor(portIdx: Int): Color { TransferContext.writeArguments(LONG to portIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getInputPortColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getInputPortColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } @@ -376,7 +376,7 @@ public open class GraphNode : GraphElement() { */ public final fun getInputPortSlot(portIdx: Int): Int { TransferContext.writeArguments(LONG to portIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getInputPortSlotPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getInputPortSlotPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -385,7 +385,7 @@ public open class GraphNode : GraphElement() { */ public final fun getOutputPortCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOutputPortCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOutputPortCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -394,7 +394,7 @@ public open class GraphNode : GraphElement() { */ public final fun getOutputPortPosition(portIdx: Int): Vector2 { TransferContext.writeArguments(LONG to portIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getOutputPortPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getOutputPortPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -403,7 +403,7 @@ public open class GraphNode : GraphElement() { */ public final fun getOutputPortType(portIdx: Int): Int { TransferContext.writeArguments(LONG to portIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getOutputPortTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOutputPortTypePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -412,7 +412,7 @@ public open class GraphNode : GraphElement() { */ public final fun getOutputPortColor(portIdx: Int): Color { TransferContext.writeArguments(LONG to portIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getOutputPortColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getOutputPortColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } @@ -421,7 +421,7 @@ public open class GraphNode : GraphElement() { */ public final fun getOutputPortSlot(portIdx: Int): Int { TransferContext.writeArguments(LONG to portIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getOutputPortSlotPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOutputPortSlotPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GridContainer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GridContainer.kt index f375ecd73c..707d1f6fac 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GridContainer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GridContainer.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -45,12 +45,12 @@ public open class GridContainer : Container() { public final fun setColumns(columns: Int): Unit { TransferContext.writeArguments(LONG to columns.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setColumnsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColumnsPtr, NIL) } public final fun getColumns(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColumnsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getColumnsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GridMap.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GridMap.kt index 74ebd99ce2..a784c1a197 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GridMap.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GridMap.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Basis import godot.core.RID import godot.core.Signal0 @@ -28,7 +29,6 @@ import godot.core.VariantParser._RID import godot.core.Vector3 import godot.core.Vector3i import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -240,23 +240,23 @@ public open class GridMap : Node3D() { public final fun setCollisionLayer(layer: Long): Unit { TransferContext.writeArguments(LONG to layer) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionLayerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionLayerPtr, NIL) } public final fun getCollisionLayer(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionLayerPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCollisionLayerPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setCollisionMask(mask: Long): Unit { TransferContext.writeArguments(LONG to mask) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionMaskPtr, NIL) } public final fun getCollisionMask(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCollisionMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -266,7 +266,7 @@ public open class GridMap : Node3D() { */ public final fun setCollisionMaskValue(layerNumber: Int, `value`: Boolean): Unit { TransferContext.writeArguments(LONG to layerNumber.toLong(), BOOL to value) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionMaskValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionMaskValuePtr, NIL) } /** @@ -275,7 +275,7 @@ public open class GridMap : Node3D() { */ public final fun getCollisionMaskValue(layerNumber: Int): Boolean { TransferContext.writeArguments(LONG to layerNumber.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionMaskValuePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getCollisionMaskValuePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -285,7 +285,7 @@ public open class GridMap : Node3D() { */ public final fun setCollisionLayerValue(layerNumber: Int, `value`: Boolean): Unit { TransferContext.writeArguments(LONG to layerNumber.toLong(), BOOL to value) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionLayerValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionLayerValuePtr, NIL) } /** @@ -294,40 +294,40 @@ public open class GridMap : Node3D() { */ public final fun getCollisionLayerValue(layerNumber: Int): Boolean { TransferContext.writeArguments(LONG to layerNumber.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionLayerValuePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getCollisionLayerValuePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCollisionPriority(priority: Float): Unit { TransferContext.writeArguments(DOUBLE to priority.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionPriorityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionPriorityPtr, NIL) } public final fun getCollisionPriority(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionPriorityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCollisionPriorityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setPhysicsMaterial(material: PhysicsMaterial?): Unit { TransferContext.writeArguments(OBJECT to material) - TransferContext.callMethod(rawPtr, MethodBindings.setPhysicsMaterialPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPhysicsMaterialPtr, NIL) } public final fun getPhysicsMaterial(): PhysicsMaterial? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPhysicsMaterialPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getPhysicsMaterialPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as PhysicsMaterial?) } public final fun setBakeNavigation(bakeNavigation: Boolean): Unit { TransferContext.writeArguments(BOOL to bakeNavigation) - TransferContext.callMethod(rawPtr, MethodBindings.setBakeNavigationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBakeNavigationPtr, NIL) } public final fun isBakingNavigation(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isBakingNavigationPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isBakingNavigationPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -337,7 +337,7 @@ public open class GridMap : Node3D() { */ public final fun setNavigationMap(navigationMap: RID): Unit { TransferContext.writeArguments(_RID to navigationMap) - TransferContext.callMethod(rawPtr, MethodBindings.setNavigationMapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNavigationMapPtr, NIL) } /** @@ -349,51 +349,51 @@ public open class GridMap : Node3D() { */ public final fun getNavigationMap(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNavigationMapPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getNavigationMapPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } public final fun setMeshLibrary(meshLibrary: MeshLibrary?): Unit { TransferContext.writeArguments(OBJECT to meshLibrary) - TransferContext.callMethod(rawPtr, MethodBindings.setMeshLibraryPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMeshLibraryPtr, NIL) } public final fun getMeshLibrary(): MeshLibrary? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMeshLibraryPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getMeshLibraryPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as MeshLibrary?) } public final fun setCellSize(size: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to size) - TransferContext.callMethod(rawPtr, MethodBindings.setCellSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCellSizePtr, NIL) } public final fun getCellSize(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCellSizePtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getCellSizePtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setCellScale(scale: Float): Unit { TransferContext.writeArguments(DOUBLE to scale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setCellScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCellScalePtr, NIL) } public final fun getCellScale(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCellScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCellScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setOctantSize(size: Int): Unit { TransferContext.writeArguments(LONG to size.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setOctantSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOctantSizePtr, NIL) } public final fun getOctantSize(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOctantSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOctantSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -410,7 +410,7 @@ public open class GridMap : Node3D() { orientation: Int = 0, ): Unit { TransferContext.writeArguments(VECTOR3I to position, LONG to item.toLong(), LONG to orientation.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setCellItemPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCellItemPtr, NIL) } /** @@ -419,7 +419,7 @@ public open class GridMap : Node3D() { */ public final fun getCellItem(position: Vector3i): Int { TransferContext.writeArguments(VECTOR3I to position) - TransferContext.callMethod(rawPtr, MethodBindings.getCellItemPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCellItemPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -429,7 +429,7 @@ public open class GridMap : Node3D() { */ public final fun getCellItemOrientation(position: Vector3i): Int { TransferContext.writeArguments(VECTOR3I to position) - TransferContext.callMethod(rawPtr, MethodBindings.getCellItemOrientationPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCellItemOrientationPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -438,7 +438,7 @@ public open class GridMap : Node3D() { */ public final fun getCellItemBasis(position: Vector3i): Basis { TransferContext.writeArguments(VECTOR3I to position) - TransferContext.callMethod(rawPtr, MethodBindings.getCellItemBasisPtr, BASIS) + TransferContext.callMethod(ptr, MethodBindings.getCellItemBasisPtr, BASIS) return (TransferContext.readReturnValue(BASIS) as Basis) } @@ -448,7 +448,7 @@ public open class GridMap : Node3D() { */ public final fun getBasisWithOrthogonalIndex(index: Int): Basis { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBasisWithOrthogonalIndexPtr, BASIS) + TransferContext.callMethod(ptr, MethodBindings.getBasisWithOrthogonalIndexPtr, BASIS) return (TransferContext.readReturnValue(BASIS) as Basis) } @@ -460,7 +460,7 @@ public open class GridMap : Node3D() { */ public final fun getOrthogonalIndexFromBasis(basis: Basis): Int { TransferContext.writeArguments(BASIS to basis) - TransferContext.callMethod(rawPtr, MethodBindings.getOrthogonalIndexFromBasisPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOrthogonalIndexFromBasisPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -471,7 +471,7 @@ public open class GridMap : Node3D() { */ public final fun localToMap(localPosition: Vector3): Vector3i { TransferContext.writeArguments(VECTOR3 to localPosition) - TransferContext.callMethod(rawPtr, MethodBindings.localToMapPtr, VECTOR3I) + TransferContext.callMethod(ptr, MethodBindings.localToMapPtr, VECTOR3I) return (TransferContext.readReturnValue(VECTOR3I) as Vector3i) } @@ -481,7 +481,7 @@ public open class GridMap : Node3D() { */ public final fun mapToLocal(mapPosition: Vector3i): Vector3 { TransferContext.writeArguments(VECTOR3I to mapPosition) - TransferContext.callMethod(rawPtr, MethodBindings.mapToLocalPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.mapToLocalPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -490,39 +490,39 @@ public open class GridMap : Node3D() { */ public final fun resourceChanged(resource: Resource?): Unit { TransferContext.writeArguments(OBJECT to resource) - TransferContext.callMethod(rawPtr, MethodBindings.resourceChangedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.resourceChangedPtr, NIL) } public final fun setCenterX(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setCenterXPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCenterXPtr, NIL) } public final fun getCenterX(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCenterXPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getCenterXPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCenterY(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setCenterYPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCenterYPtr, NIL) } public final fun getCenterY(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCenterYPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getCenterYPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCenterZ(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setCenterZPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCenterZPtr, NIL) } public final fun getCenterZ(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCenterZPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getCenterZPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -531,7 +531,7 @@ public open class GridMap : Node3D() { */ public final fun clear(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPtr, NIL) } /** @@ -539,7 +539,7 @@ public open class GridMap : Node3D() { */ public final fun getUsedCells(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUsedCellsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getUsedCellsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -548,7 +548,7 @@ public open class GridMap : Node3D() { */ public final fun getUsedCellsByItem(item: Int): VariantArray { TransferContext.writeArguments(LONG to item.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getUsedCellsByItemPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getUsedCellsByItemPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -558,7 +558,7 @@ public open class GridMap : Node3D() { */ public final fun getMeshes(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMeshesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getMeshesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -568,7 +568,7 @@ public open class GridMap : Node3D() { */ public final fun getBakeMeshes(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBakeMeshesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getBakeMeshesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -577,7 +577,7 @@ public open class GridMap : Node3D() { */ public final fun getBakeMeshInstance(idx: Int): RID { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBakeMeshInstancePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getBakeMeshInstancePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -586,7 +586,7 @@ public open class GridMap : Node3D() { */ public final fun clearBakedMeshes(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearBakedMeshesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearBakedMeshesPtr, NIL) } /** @@ -596,7 +596,7 @@ public open class GridMap : Node3D() { public final fun makeBakedMeshes(genLightmapUv: Boolean = false, lightmapUvTexelSize: Float = 0.1f): Unit { TransferContext.writeArguments(BOOL to genLightmapUv, DOUBLE to lightmapUvTexelSize.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.makeBakedMeshesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.makeBakedMeshesPtr, NIL) } public companion object { diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/GrooveJoint2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/GrooveJoint2D.kt index fab67fa09f..ee9ae8f3ae 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/GrooveJoint2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/GrooveJoint2D.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -56,23 +56,23 @@ public open class GrooveJoint2D : Joint2D() { public final fun setLength(length: Float): Unit { TransferContext.writeArguments(DOUBLE to length.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setLengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLengthPtr, NIL) } public final fun getLength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setInitialOffset(offset: Float): Unit { TransferContext.writeArguments(DOUBLE to offset.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setInitialOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInitialOffsetPtr, NIL) } public final fun getInitialOffset(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInitialOffsetPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getInitialOffsetPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/HMACContext.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/HMACContext.kt index 595582dc28..bebf8f8204 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/HMACContext.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/HMACContext.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedByteArray import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -79,7 +79,7 @@ public open class HMACContext : RefCounted() { */ public final fun start(hashType: HashingContext.HashType, key: PackedByteArray): Error { TransferContext.writeArguments(LONG to hashType.id, PACKED_BYTE_ARRAY to key) - TransferContext.callMethod(rawPtr, MethodBindings.startPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.startPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -89,7 +89,7 @@ public open class HMACContext : RefCounted() { */ public final fun update(`data`: PackedByteArray): Error { TransferContext.writeArguments(PACKED_BYTE_ARRAY to data) - TransferContext.callMethod(rawPtr, MethodBindings.updatePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.updatePtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -98,7 +98,7 @@ public open class HMACContext : RefCounted() { */ public final fun finish(): PackedByteArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.finishPtr, PACKED_BYTE_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.finishPtr, PACKED_BYTE_ARRAY) return (TransferContext.readReturnValue(PACKED_BYTE_ARRAY) as PackedByteArray) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/HTTPClient.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/HTTPClient.kt index ecb9acb125..6222f1c40e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/HTTPClient.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/HTTPClient.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedByteArray import godot.core.PackedStringArray @@ -20,7 +21,6 @@ import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -119,18 +119,18 @@ public open class HTTPClient : RefCounted() { tlsOptions: TLSOptions? = null, ): Error { TransferContext.writeArguments(STRING to host, LONG to port.toLong(), OBJECT to tlsOptions) - TransferContext.callMethod(rawPtr, MethodBindings.connectToHostPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.connectToHostPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setConnection(connection: StreamPeer?): Unit { TransferContext.writeArguments(OBJECT to connection) - TransferContext.callMethod(rawPtr, MethodBindings.setConnectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setConnectionPtr, NIL) } public final fun getConnection(): StreamPeer? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConnectionPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getConnectionPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as StreamPeer?) } @@ -151,7 +151,7 @@ public open class HTTPClient : RefCounted() { body: PackedByteArray, ): Error { TransferContext.writeArguments(LONG to method.id, STRING to url, PACKED_STRING_ARRAY to headers, PACKED_BYTE_ARRAY to body) - TransferContext.callMethod(rawPtr, MethodBindings.requestRawPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.requestRawPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -196,7 +196,7 @@ public open class HTTPClient : RefCounted() { body: String = "", ): Error { TransferContext.writeArguments(LONG to method.id, STRING to url, PACKED_STRING_ARRAY to headers, STRING to body) - TransferContext.callMethod(rawPtr, MethodBindings.requestPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.requestPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -205,7 +205,7 @@ public open class HTTPClient : RefCounted() { */ public final fun close(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.closePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.closePtr, NIL) } /** @@ -213,7 +213,7 @@ public open class HTTPClient : RefCounted() { */ public final fun hasResponse(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasResponsePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasResponsePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -222,7 +222,7 @@ public open class HTTPClient : RefCounted() { */ public final fun isResponseChunked(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isResponseChunkedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isResponseChunkedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -231,7 +231,7 @@ public open class HTTPClient : RefCounted() { */ public final fun getResponseCode(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getResponseCodePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getResponseCodePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -240,7 +240,7 @@ public open class HTTPClient : RefCounted() { */ public final fun getResponseHeaders(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getResponseHeadersPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getResponseHeadersPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -258,7 +258,7 @@ public open class HTTPClient : RefCounted() { */ public final fun getResponseHeadersAsDictionary(): Dictionary { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getResponseHeadersAsDictionaryPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getResponseHeadersAsDictionaryPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -270,7 +270,7 @@ public open class HTTPClient : RefCounted() { */ public final fun getResponseBodyLength(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getResponseBodyLengthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getResponseBodyLengthPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -279,29 +279,29 @@ public open class HTTPClient : RefCounted() { */ public final fun readResponseBodyChunk(): PackedByteArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.readResponseBodyChunkPtr, PACKED_BYTE_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.readResponseBodyChunkPtr, PACKED_BYTE_ARRAY) return (TransferContext.readReturnValue(PACKED_BYTE_ARRAY) as PackedByteArray) } public final fun setReadChunkSize(bytes: Int): Unit { TransferContext.writeArguments(LONG to bytes.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setReadChunkSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setReadChunkSizePtr, NIL) } public final fun getReadChunkSize(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getReadChunkSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getReadChunkSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setBlockingMode(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setBlockingModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBlockingModePtr, NIL) } public final fun isBlockingModeEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isBlockingModeEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isBlockingModeEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -310,7 +310,7 @@ public open class HTTPClient : RefCounted() { */ public final fun getStatus(): Status { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStatusPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getStatusPtr, LONG) return HTTPClient.Status.from(TransferContext.readReturnValue(LONG) as Long) } @@ -319,7 +319,7 @@ public open class HTTPClient : RefCounted() { */ public final fun poll(): Error { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.pollPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.pollPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -329,7 +329,7 @@ public open class HTTPClient : RefCounted() { */ public final fun setHttpProxy(host: String, port: Int): Unit { TransferContext.writeArguments(STRING to host, LONG to port.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setHttpProxyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHttpProxyPtr, NIL) } /** @@ -338,7 +338,7 @@ public open class HTTPClient : RefCounted() { */ public final fun setHttpsProxy(host: String, port: Int): Unit { TransferContext.writeArguments(STRING to host, LONG to port.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setHttpsProxyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHttpsProxyPtr, NIL) } /** @@ -382,7 +382,7 @@ public open class HTTPClient : RefCounted() { */ public final fun queryStringFromDict(fields: Dictionary): String { TransferContext.writeArguments(DICTIONARY to fields) - TransferContext.callMethod(rawPtr, MethodBindings.queryStringFromDictPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.queryStringFromDictPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/HTTPRequest.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/HTTPRequest.kt index ba82ebe303..e75f0525a6 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/HTTPRequest.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/HTTPRequest.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedByteArray import godot.core.PackedStringArray import godot.core.Signal4 @@ -20,7 +21,6 @@ import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Int @@ -323,7 +323,7 @@ public open class HTTPRequest : Node() { requestData: String = "", ): Error { TransferContext.writeArguments(STRING to url, PACKED_STRING_ARRAY to customHeaders, LONG to method.id, STRING to requestData) - TransferContext.callMethod(rawPtr, MethodBindings.requestPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.requestPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -344,7 +344,7 @@ public open class HTTPRequest : Node() { requestDataRaw: PackedByteArray = PackedByteArray(), ): Error { TransferContext.writeArguments(STRING to url, PACKED_STRING_ARRAY to customHeaders, LONG to method.id, PACKED_BYTE_ARRAY to requestDataRaw) - TransferContext.callMethod(rawPtr, MethodBindings.requestRawPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.requestRawPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -353,7 +353,7 @@ public open class HTTPRequest : Node() { */ public final fun cancelRequest(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.cancelRequestPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.cancelRequestPtr, NIL) } /** @@ -361,7 +361,7 @@ public open class HTTPRequest : Node() { */ public final fun setTlsOptions(clientOptions: TLSOptions?): Unit { TransferContext.writeArguments(OBJECT to clientOptions) - TransferContext.callMethod(rawPtr, MethodBindings.setTlsOptionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTlsOptionsPtr, NIL) } /** @@ -369,62 +369,62 @@ public open class HTTPRequest : Node() { */ public final fun getHttpClientStatus(): HTTPClient.Status { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHttpClientStatusPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getHttpClientStatusPtr, LONG) return HTTPClient.Status.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setUseThreads(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setUseThreadsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseThreadsPtr, NIL) } public final fun isUsingThreads(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUsingThreadsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUsingThreadsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAcceptGzip(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setAcceptGzipPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAcceptGzipPtr, NIL) } public final fun isAcceptingGzip(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isAcceptingGzipPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isAcceptingGzipPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setBodySizeLimit(bytes: Int): Unit { TransferContext.writeArguments(LONG to bytes.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setBodySizeLimitPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBodySizeLimitPtr, NIL) } public final fun getBodySizeLimit(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBodySizeLimitPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBodySizeLimitPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setMaxRedirects(amount: Int): Unit { TransferContext.writeArguments(LONG to amount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxRedirectsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxRedirectsPtr, NIL) } public final fun getMaxRedirects(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxRedirectsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMaxRedirectsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setDownloadFile(path: String): Unit { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.setDownloadFilePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDownloadFilePtr, NIL) } public final fun getDownloadFile(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDownloadFilePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getDownloadFilePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -433,7 +433,7 @@ public open class HTTPRequest : Node() { */ public final fun getDownloadedBytes(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDownloadedBytesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDownloadedBytesPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -444,29 +444,29 @@ public open class HTTPRequest : Node() { */ public final fun getBodySize(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBodySizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBodySizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setTimeout(timeout: Double): Unit { TransferContext.writeArguments(DOUBLE to timeout) - TransferContext.callMethod(rawPtr, MethodBindings.setTimeoutPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTimeoutPtr, NIL) } public final fun getTimeout(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTimeoutPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTimeoutPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun setDownloadChunkSize(chunkSize: Int): Unit { TransferContext.writeArguments(LONG to chunkSize.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setDownloadChunkSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDownloadChunkSizePtr, NIL) } public final fun getDownloadChunkSize(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDownloadChunkSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDownloadChunkSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -476,7 +476,7 @@ public open class HTTPRequest : Node() { */ public final fun setHttpProxy(host: String, port: Int): Unit { TransferContext.writeArguments(STRING to host, LONG to port.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setHttpProxyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHttpProxyPtr, NIL) } /** @@ -485,7 +485,7 @@ public open class HTTPRequest : Node() { */ public final fun setHttpsProxy(host: String, port: Int): Unit { TransferContext.writeArguments(STRING to host, LONG to port.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setHttpsProxyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHttpsProxyPtr, NIL) } public enum class Result( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/HashingContext.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/HashingContext.kt index 6e5dd23607..07a9d2cbcd 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/HashingContext.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/HashingContext.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedByteArray import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -87,7 +87,7 @@ public open class HashingContext : RefCounted() { */ public final fun start(type: HashType): Error { TransferContext.writeArguments(LONG to type.id) - TransferContext.callMethod(rawPtr, MethodBindings.startPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.startPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -96,7 +96,7 @@ public open class HashingContext : RefCounted() { */ public final fun update(chunk: PackedByteArray): Error { TransferContext.writeArguments(PACKED_BYTE_ARRAY to chunk) - TransferContext.callMethod(rawPtr, MethodBindings.updatePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.updatePtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -105,7 +105,7 @@ public open class HashingContext : RefCounted() { */ public final fun finish(): PackedByteArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.finishPtr, PACKED_BYTE_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.finishPtr, PACKED_BYTE_ARRAY) return (TransferContext.readReturnValue(PACKED_BYTE_ARRAY) as PackedByteArray) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/HeightMapShape3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/HeightMapShape3D.kt index 045e1ed376..05af7cdf78 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/HeightMapShape3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/HeightMapShape3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedFloat32Array import godot.core.TypeManager import godot.core.VariantParser.DOUBLE @@ -15,7 +16,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_FLOAT_32_ARRAY import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -86,34 +86,34 @@ public open class HeightMapShape3D : Shape3D() { public final fun setMapWidth(width: Int): Unit { TransferContext.writeArguments(LONG to width.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMapWidthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMapWidthPtr, NIL) } public final fun getMapWidth(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMapWidthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMapWidthPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setMapDepth(height: Int): Unit { TransferContext.writeArguments(LONG to height.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMapDepthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMapDepthPtr, NIL) } public final fun getMapDepth(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMapDepthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMapDepthPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setMapData(`data`: PackedFloat32Array): Unit { TransferContext.writeArguments(PACKED_FLOAT_32_ARRAY to data) - TransferContext.callMethod(rawPtr, MethodBindings.setMapDataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMapDataPtr, NIL) } public final fun getMapData(): PackedFloat32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMapDataPtr, PACKED_FLOAT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getMapDataPtr, PACKED_FLOAT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_FLOAT_32_ARRAY) as PackedFloat32Array) } @@ -122,7 +122,7 @@ public open class HeightMapShape3D : Shape3D() { */ public final fun getMinHeight(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMinHeightPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMinHeightPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -131,7 +131,7 @@ public open class HeightMapShape3D : Shape3D() { */ public final fun getMaxHeight(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxHeightPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMaxHeightPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -150,7 +150,7 @@ public open class HeightMapShape3D : Shape3D() { heightMax: Float, ): Unit { TransferContext.writeArguments(OBJECT to image, DOUBLE to heightMin.toDouble(), DOUBLE to heightMax.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.updateMapDataFromImagePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.updateMapDataFromImagePtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/HingeJoint3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/HingeJoint3D.kt index 9d112da485..f9518fbbd6 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/HingeJoint3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/HingeJoint3D.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -38,7 +38,7 @@ public open class HingeJoint3D : Joint3D() { */ public final fun setParam(`param`: Param, `value`: Float): Unit { TransferContext.writeArguments(LONG to param.id, DOUBLE to value.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setParamPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setParamPtr, NIL) } /** @@ -46,7 +46,7 @@ public open class HingeJoint3D : Joint3D() { */ public final fun getParam(`param`: Param): Float { TransferContext.writeArguments(LONG to param.id) - TransferContext.callMethod(rawPtr, MethodBindings.getParamPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getParamPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -55,7 +55,7 @@ public open class HingeJoint3D : Joint3D() { */ public final fun setFlag(flag: Flag, enabled: Boolean): Unit { TransferContext.writeArguments(LONG to flag.id, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setFlagPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFlagPtr, NIL) } /** @@ -63,7 +63,7 @@ public open class HingeJoint3D : Joint3D() { */ public final fun getFlag(flag: Flag): Boolean { TransferContext.writeArguments(LONG to flag.id) - TransferContext.callMethod(rawPtr, MethodBindings.getFlagPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getFlagPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/IP.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/IP.kt index 7c2a39cde6..16c1da8397 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/IP.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/IP.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedStringArray import godot.core.TypeManager @@ -17,7 +18,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Int import kotlin.Long @@ -57,7 +57,7 @@ public object IP : Object() { @JvmStatic public final fun resolveHostname(host: String, ipType: Type = IP.Type.TYPE_ANY): String { TransferContext.writeArguments(STRING to host, LONG to ipType.id) - TransferContext.callMethod(rawPtr, MethodBindings.resolveHostnamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.resolveHostnamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -70,8 +70,7 @@ public object IP : Object() { public final fun resolveHostnameAddresses(host: String, ipType: Type = IP.Type.TYPE_ANY): PackedStringArray { TransferContext.writeArguments(STRING to host, LONG to ipType.id) - TransferContext.callMethod(rawPtr, MethodBindings.resolveHostnameAddressesPtr, - PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.resolveHostnameAddressesPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -83,7 +82,7 @@ public object IP : Object() { @JvmStatic public final fun resolveHostnameQueueItem(host: String, ipType: Type = IP.Type.TYPE_ANY): Int { TransferContext.writeArguments(STRING to host, LONG to ipType.id) - TransferContext.callMethod(rawPtr, MethodBindings.resolveHostnameQueueItemPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.resolveHostnameQueueItemPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -93,7 +92,7 @@ public object IP : Object() { @JvmStatic public final fun getResolveItemStatus(id: Int): ResolverStatus { TransferContext.writeArguments(LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getResolveItemStatusPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getResolveItemStatusPtr, LONG) return IP.ResolverStatus.from(TransferContext.readReturnValue(LONG) as Long) } @@ -104,7 +103,7 @@ public object IP : Object() { @JvmStatic public final fun getResolveItemAddress(id: Int): String { TransferContext.writeArguments(LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getResolveItemAddressPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getResolveItemAddressPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -115,7 +114,7 @@ public object IP : Object() { @JvmStatic public final fun getResolveItemAddresses(id: Int): VariantArray { TransferContext.writeArguments(LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getResolveItemAddressesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getResolveItemAddressesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -126,7 +125,7 @@ public object IP : Object() { @JvmStatic public final fun eraseResolveItem(id: Int): Unit { TransferContext.writeArguments(LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.eraseResolveItemPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.eraseResolveItemPtr, NIL) } /** @@ -135,7 +134,7 @@ public object IP : Object() { @JvmStatic public final fun getLocalAddresses(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLocalAddressesPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getLocalAddressesPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -154,7 +153,7 @@ public object IP : Object() { @JvmStatic public final fun getLocalInterfaces(): VariantArray> { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLocalInterfacesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getLocalInterfacesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray>) } @@ -166,7 +165,7 @@ public object IP : Object() { @JvmStatic public final fun clearCache(hostname: String = ""): Unit { TransferContext.writeArguments(STRING to hostname) - TransferContext.callMethod(rawPtr, MethodBindings.clearCachePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearCachePtr, NIL) } public enum class ResolverStatus( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Image.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Image.kt index b7a41f2682..0071080a8c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Image.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Image.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.Dictionary import godot.core.PackedByteArray @@ -25,7 +26,6 @@ import godot.core.VariantParser.STRING import godot.core.VariantParser.VECTOR2I import godot.core.Vector2i import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Float @@ -56,7 +56,7 @@ public open class Image : Resource() { */ public final fun getWidth(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWidthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getWidthPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -65,7 +65,7 @@ public open class Image : Resource() { */ public final fun getHeight(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHeightPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getHeightPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -74,7 +74,7 @@ public open class Image : Resource() { */ public final fun getSize(): Vector2i { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSizePtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getSizePtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -83,7 +83,7 @@ public open class Image : Resource() { */ public final fun hasMipmaps(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasMipmapsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasMipmapsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -92,7 +92,7 @@ public open class Image : Resource() { */ public final fun getFormat(): Format { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFormatPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFormatPtr, LONG) return Image.Format.from(TransferContext.readReturnValue(LONG) as Long) } @@ -101,7 +101,7 @@ public open class Image : Resource() { */ public final fun getData(): PackedByteArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDataPtr, PACKED_BYTE_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getDataPtr, PACKED_BYTE_ARRAY) return (TransferContext.readReturnValue(PACKED_BYTE_ARRAY) as PackedByteArray) } @@ -110,7 +110,7 @@ public open class Image : Resource() { */ public final fun getDataSize(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDataSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDataSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -119,7 +119,7 @@ public open class Image : Resource() { */ public final fun convert(format: Format): Unit { TransferContext.writeArguments(LONG to format.id) - TransferContext.callMethod(rawPtr, MethodBindings.convertPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.convertPtr, NIL) } /** @@ -129,7 +129,7 @@ public open class Image : Resource() { */ public final fun getMipmapCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMipmapCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMipmapCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -139,7 +139,7 @@ public open class Image : Resource() { */ public final fun getMipmapOffset(mipmap: Int): Long { TransferContext.writeArguments(LONG to mipmap.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getMipmapOffsetPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMipmapOffsetPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -152,7 +152,7 @@ public open class Image : Resource() { public final fun resizeToPo2(square: Boolean = false, interpolation: Interpolation = Image.Interpolation.INTERPOLATE_BILINEAR): Unit { TransferContext.writeArguments(BOOL to square, LONG to interpolation.id) - TransferContext.callMethod(rawPtr, MethodBindings.resizeToPo2Ptr, NIL) + TransferContext.callMethod(ptr, MethodBindings.resizeToPo2Ptr, NIL) } /** @@ -166,7 +166,7 @@ public open class Image : Resource() { interpolation: Interpolation = Image.Interpolation.INTERPOLATE_BILINEAR, ): Unit { TransferContext.writeArguments(LONG to width.toLong(), LONG to height.toLong(), LONG to interpolation.id) - TransferContext.callMethod(rawPtr, MethodBindings.resizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.resizePtr, NIL) } /** @@ -174,7 +174,7 @@ public open class Image : Resource() { */ public final fun shrinkX2(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.shrinkX2Ptr, NIL) + TransferContext.callMethod(ptr, MethodBindings.shrinkX2Ptr, NIL) } /** @@ -183,7 +183,7 @@ public open class Image : Resource() { */ public final fun crop(width: Int, height: Int): Unit { TransferContext.writeArguments(LONG to width.toLong(), LONG to height.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.cropPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.cropPtr, NIL) } /** @@ -191,7 +191,7 @@ public open class Image : Resource() { */ public final fun flipX(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.flipXPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.flipXPtr, NIL) } /** @@ -199,7 +199,7 @@ public open class Image : Resource() { */ public final fun flipY(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.flipYPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.flipYPtr, NIL) } /** @@ -216,7 +216,7 @@ public open class Image : Resource() { @JvmOverloads public final fun generateMipmaps(renormalize: Boolean = false): Error { TransferContext.writeArguments(BOOL to renormalize) - TransferContext.callMethod(rawPtr, MethodBindings.generateMipmapsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.generateMipmapsPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -225,7 +225,7 @@ public open class Image : Resource() { */ public final fun clearMipmaps(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearMipmapsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearMipmapsPtr, NIL) } /** @@ -239,7 +239,7 @@ public open class Image : Resource() { `data`: PackedByteArray, ): Unit { TransferContext.writeArguments(LONG to width.toLong(), LONG to height.toLong(), BOOL to useMipmaps, LONG to format.id, PACKED_BYTE_ARRAY to data) - TransferContext.callMethod(rawPtr, MethodBindings.setDataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDataPtr, NIL) } /** @@ -247,7 +247,7 @@ public open class Image : Resource() { */ public final fun isEmpty(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isEmptyPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isEmptyPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -262,7 +262,7 @@ public open class Image : Resource() { */ public final fun load(path: String): Error { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.loadPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.loadPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -271,7 +271,7 @@ public open class Image : Resource() { */ public final fun savePng(path: String): Error { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.savePngPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.savePngPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -280,7 +280,7 @@ public open class Image : Resource() { */ public final fun savePngToBuffer(): PackedByteArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.savePngToBufferPtr, PACKED_BYTE_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.savePngToBufferPtr, PACKED_BYTE_ARRAY) return (TransferContext.readReturnValue(PACKED_BYTE_ARRAY) as PackedByteArray) } @@ -295,7 +295,7 @@ public open class Image : Resource() { @JvmOverloads public final fun saveJpg(path: String, quality: Float = 0.75f): Error { TransferContext.writeArguments(STRING to path, DOUBLE to quality.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.saveJpgPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.saveJpgPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -310,7 +310,7 @@ public open class Image : Resource() { @JvmOverloads public final fun saveJpgToBuffer(quality: Float = 0.75f): PackedByteArray { TransferContext.writeArguments(DOUBLE to quality.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.saveJpgToBufferPtr, PACKED_BYTE_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.saveJpgToBufferPtr, PACKED_BYTE_ARRAY) return (TransferContext.readReturnValue(PACKED_BYTE_ARRAY) as PackedByteArray) } @@ -324,7 +324,7 @@ public open class Image : Resource() { @JvmOverloads public final fun saveExr(path: String, grayscale: Boolean = false): Error { TransferContext.writeArguments(STRING to path, BOOL to grayscale) - TransferContext.callMethod(rawPtr, MethodBindings.saveExrPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.saveExrPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -338,7 +338,7 @@ public open class Image : Resource() { @JvmOverloads public final fun saveExrToBuffer(grayscale: Boolean = false): PackedByteArray { TransferContext.writeArguments(BOOL to grayscale) - TransferContext.callMethod(rawPtr, MethodBindings.saveExrToBufferPtr, PACKED_BYTE_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.saveExrToBufferPtr, PACKED_BYTE_ARRAY) return (TransferContext.readReturnValue(PACKED_BYTE_ARRAY) as PackedByteArray) } @@ -356,7 +356,7 @@ public open class Image : Resource() { quality: Float = 0.75f, ): Error { TransferContext.writeArguments(STRING to path, BOOL to lossy, DOUBLE to quality.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.saveWebpPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.saveWebpPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -371,7 +371,7 @@ public open class Image : Resource() { public final fun saveWebpToBuffer(lossy: Boolean = false, quality: Float = 0.75f): PackedByteArray { TransferContext.writeArguments(BOOL to lossy, DOUBLE to quality.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.saveWebpToBufferPtr, PACKED_BYTE_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.saveWebpToBufferPtr, PACKED_BYTE_ARRAY) return (TransferContext.readReturnValue(PACKED_BYTE_ARRAY) as PackedByteArray) } @@ -382,7 +382,7 @@ public open class Image : Resource() { */ public final fun detectAlpha(): AlphaMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.detectAlphaPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.detectAlphaPtr, LONG) return Image.AlphaMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -392,7 +392,7 @@ public open class Image : Resource() { */ public final fun isInvisible(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isInvisiblePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isInvisiblePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -404,7 +404,7 @@ public open class Image : Resource() { public final fun detectUsedChannels(source: CompressSource = Image.CompressSource.COMPRESS_SOURCE_GENERIC): UsedChannels { TransferContext.writeArguments(LONG to source.id) - TransferContext.callMethod(rawPtr, MethodBindings.detectUsedChannelsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.detectUsedChannelsPtr, LONG) return Image.UsedChannels.from(TransferContext.readReturnValue(LONG) as Long) } @@ -422,7 +422,7 @@ public open class Image : Resource() { astcFormat: ASTCFormat = Image.ASTCFormat.ASTC_FORMAT_4x4, ): Error { TransferContext.writeArguments(LONG to mode.id, LONG to source.id, LONG to astcFormat.id) - TransferContext.callMethod(rawPtr, MethodBindings.compressPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.compressPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -441,7 +441,7 @@ public open class Image : Resource() { astcFormat: ASTCFormat = Image.ASTCFormat.ASTC_FORMAT_4x4, ): Error { TransferContext.writeArguments(LONG to mode.id, LONG to channels.id, LONG to astcFormat.id) - TransferContext.callMethod(rawPtr, MethodBindings.compressFromChannelsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.compressFromChannelsPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -453,7 +453,7 @@ public open class Image : Resource() { */ public final fun decompress(): Error { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.decompressPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.decompressPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -462,7 +462,7 @@ public open class Image : Resource() { */ public final fun isCompressed(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCompressedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCompressedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -472,7 +472,7 @@ public open class Image : Resource() { */ public final fun rotate90(direction: ClockDirection): Unit { TransferContext.writeArguments(LONG to direction.id) - TransferContext.callMethod(rawPtr, MethodBindings.rotate90Ptr, NIL) + TransferContext.callMethod(ptr, MethodBindings.rotate90Ptr, NIL) } /** @@ -480,7 +480,7 @@ public open class Image : Resource() { */ public final fun rotate180(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.rotate180Ptr, NIL) + TransferContext.callMethod(ptr, MethodBindings.rotate180Ptr, NIL) } /** @@ -488,7 +488,7 @@ public open class Image : Resource() { */ public final fun fixAlphaEdges(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.fixAlphaEdgesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fixAlphaEdgesPtr, NIL) } /** @@ -497,7 +497,7 @@ public open class Image : Resource() { */ public final fun premultiplyAlpha(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.premultiplyAlphaPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.premultiplyAlphaPtr, NIL) } /** @@ -505,7 +505,7 @@ public open class Image : Resource() { */ public final fun srgbToLinear(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.srgbToLinearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.srgbToLinearPtr, NIL) } /** @@ -515,7 +515,7 @@ public open class Image : Resource() { */ public final fun normalMapToXy(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.normalMapToXyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.normalMapToXyPtr, NIL) } /** @@ -523,7 +523,7 @@ public open class Image : Resource() { */ public final fun rgbeToSrgb(): Image? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.rgbeToSrgbPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.rgbeToSrgbPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Image?) } @@ -534,7 +534,7 @@ public open class Image : Resource() { @JvmOverloads public final fun bumpMapToNormalMap(bumpScale: Float = 1.0f): Unit { TransferContext.writeArguments(DOUBLE to bumpScale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.bumpMapToNormalMapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bumpMapToNormalMapPtr, NIL) } /** @@ -544,7 +544,7 @@ public open class Image : Resource() { public final fun computeImageMetrics(comparedImage: Image?, useLuma: Boolean): Dictionary { TransferContext.writeArguments(OBJECT to comparedImage, BOOL to useLuma) - TransferContext.callMethod(rawPtr, MethodBindings.computeImageMetricsPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.computeImageMetricsPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -559,7 +559,7 @@ public open class Image : Resource() { dst: Vector2i, ): Unit { TransferContext.writeArguments(OBJECT to src, RECT2I to srcRect, VECTOR2I to dst) - TransferContext.callMethod(rawPtr, MethodBindings.blitRectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.blitRectPtr, NIL) } /** @@ -576,7 +576,7 @@ public open class Image : Resource() { dst: Vector2i, ): Unit { TransferContext.writeArguments(OBJECT to src, OBJECT to mask, RECT2I to srcRect, VECTOR2I to dst) - TransferContext.callMethod(rawPtr, MethodBindings.blitRectMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.blitRectMaskPtr, NIL) } /** @@ -590,7 +590,7 @@ public open class Image : Resource() { dst: Vector2i, ): Unit { TransferContext.writeArguments(OBJECT to src, RECT2I to srcRect, VECTOR2I to dst) - TransferContext.callMethod(rawPtr, MethodBindings.blendRectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.blendRectPtr, NIL) } /** @@ -608,7 +608,7 @@ public open class Image : Resource() { dst: Vector2i, ): Unit { TransferContext.writeArguments(OBJECT to src, OBJECT to mask, RECT2I to srcRect, VECTOR2I to dst) - TransferContext.callMethod(rawPtr, MethodBindings.blendRectMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.blendRectMaskPtr, NIL) } /** @@ -616,7 +616,7 @@ public open class Image : Resource() { */ public final fun fill(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.fillPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fillPtr, NIL) } /** @@ -624,7 +624,7 @@ public open class Image : Resource() { */ public final fun fillRect(rect: Rect2i, color: Color): Unit { TransferContext.writeArguments(RECT2I to rect, COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.fillRectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fillRectPtr, NIL) } /** @@ -633,7 +633,7 @@ public open class Image : Resource() { */ public final fun getUsedRect(): Rect2i { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUsedRectPtr, RECT2I) + TransferContext.callMethod(ptr, MethodBindings.getUsedRectPtr, RECT2I) return (TransferContext.readReturnValue(RECT2I) as Rect2i) } @@ -642,7 +642,7 @@ public open class Image : Resource() { */ public final fun getRegion(region: Rect2i): Image? { TransferContext.writeArguments(RECT2I to region) - TransferContext.callMethod(rawPtr, MethodBindings.getRegionPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getRegionPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Image?) } @@ -651,7 +651,7 @@ public open class Image : Resource() { */ public final fun copyFrom(src: Image?): Unit { TransferContext.writeArguments(OBJECT to src) - TransferContext.callMethod(rawPtr, MethodBindings.copyFromPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.copyFromPtr, NIL) } /** @@ -661,7 +661,7 @@ public open class Image : Resource() { */ public final fun getPixelv(point: Vector2i): Color { TransferContext.writeArguments(VECTOR2I to point) - TransferContext.callMethod(rawPtr, MethodBindings.getPixelvPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getPixelvPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } @@ -672,7 +672,7 @@ public open class Image : Resource() { */ public final fun getPixel(x: Int, y: Int): Color { TransferContext.writeArguments(LONG to x.toLong(), LONG to y.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getPixelPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getPixelPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } @@ -702,7 +702,7 @@ public open class Image : Resource() { */ public final fun setPixelv(point: Vector2i, color: Color): Unit { TransferContext.writeArguments(VECTOR2I to point, COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setPixelvPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPixelvPtr, NIL) } /** @@ -735,7 +735,7 @@ public open class Image : Resource() { color: Color, ): Unit { TransferContext.writeArguments(LONG to x.toLong(), LONG to y.toLong(), COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setPixelPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPixelPtr, NIL) } /** @@ -748,7 +748,7 @@ public open class Image : Resource() { saturation: Float, ): Unit { TransferContext.writeArguments(DOUBLE to brightness.toDouble(), DOUBLE to contrast.toDouble(), DOUBLE to saturation.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.adjustBcsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.adjustBcsPtr, NIL) } /** @@ -756,7 +756,7 @@ public open class Image : Resource() { */ public final fun loadPngFromBuffer(buffer: PackedByteArray): Error { TransferContext.writeArguments(PACKED_BYTE_ARRAY to buffer) - TransferContext.callMethod(rawPtr, MethodBindings.loadPngFromBufferPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.loadPngFromBufferPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -765,7 +765,7 @@ public open class Image : Resource() { */ public final fun loadJpgFromBuffer(buffer: PackedByteArray): Error { TransferContext.writeArguments(PACKED_BYTE_ARRAY to buffer) - TransferContext.callMethod(rawPtr, MethodBindings.loadJpgFromBufferPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.loadJpgFromBufferPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -774,7 +774,7 @@ public open class Image : Resource() { */ public final fun loadWebpFromBuffer(buffer: PackedByteArray): Error { TransferContext.writeArguments(PACKED_BYTE_ARRAY to buffer) - TransferContext.callMethod(rawPtr, MethodBindings.loadWebpFromBufferPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.loadWebpFromBufferPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -786,7 +786,7 @@ public open class Image : Resource() { */ public final fun loadTgaFromBuffer(buffer: PackedByteArray): Error { TransferContext.writeArguments(PACKED_BYTE_ARRAY to buffer) - TransferContext.callMethod(rawPtr, MethodBindings.loadTgaFromBufferPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.loadTgaFromBufferPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -800,7 +800,7 @@ public open class Image : Resource() { */ public final fun loadBmpFromBuffer(buffer: PackedByteArray): Error { TransferContext.writeArguments(PACKED_BYTE_ARRAY to buffer) - TransferContext.callMethod(rawPtr, MethodBindings.loadBmpFromBufferPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.loadBmpFromBufferPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -816,7 +816,7 @@ public open class Image : Resource() { */ public final fun loadKtxFromBuffer(buffer: PackedByteArray): Error { TransferContext.writeArguments(PACKED_BYTE_ARRAY to buffer) - TransferContext.callMethod(rawPtr, MethodBindings.loadKtxFromBufferPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.loadKtxFromBufferPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -831,7 +831,7 @@ public open class Image : Resource() { @JvmOverloads public final fun loadSvgFromBuffer(buffer: PackedByteArray, scale: Float = 1.0f): Error { TransferContext.writeArguments(PACKED_BYTE_ARRAY to buffer, DOUBLE to scale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.loadSvgFromBufferPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.loadSvgFromBufferPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -844,7 +844,7 @@ public open class Image : Resource() { @JvmOverloads public final fun loadSvgFromString(svgStr: String, scale: Float = 1.0f): Error { TransferContext.writeArguments(STRING to svgStr, DOUBLE to scale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.loadSvgFromStringPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.loadSvgFromStringPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ImageFormatLoaderExtension.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ImageFormatLoaderExtension.kt index 4552037639..bc2cd0c7e2 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ImageFormatLoaderExtension.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ImageFormatLoaderExtension.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedStringArray import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Float import kotlin.Int import kotlin.NotImplementedError @@ -56,7 +56,7 @@ public open class ImageFormatLoaderExtension : ImageFormatLoader() { */ public final fun addFormatLoader(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.addFormatLoaderPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addFormatLoaderPtr, NIL) } /** @@ -64,7 +64,7 @@ public open class ImageFormatLoaderExtension : ImageFormatLoader() { */ public final fun removeFormatLoader(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.removeFormatLoaderPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeFormatLoaderPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ImageTexture.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ImageTexture.kt index eafce25040..3257736ea3 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ImageTexture.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ImageTexture.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL @@ -14,7 +15,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR2I import godot.core.Vector2i import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -62,7 +62,7 @@ public open class ImageTexture : Texture2D() { */ public final fun getFormat(): Image.Format { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFormatPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFormatPtr, LONG) return Image.Format.from(TransferContext.readReturnValue(LONG) as Long) } @@ -74,7 +74,7 @@ public open class ImageTexture : Texture2D() { */ public final fun setImage(image: Image?): Unit { TransferContext.writeArguments(OBJECT to image) - TransferContext.callMethod(rawPtr, MethodBindings.setImagePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setImagePtr, NIL) } /** @@ -87,7 +87,7 @@ public open class ImageTexture : Texture2D() { */ public final fun update(image: Image?): Unit { TransferContext.writeArguments(OBJECT to image) - TransferContext.callMethod(rawPtr, MethodBindings.updatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.updatePtr, NIL) } /** @@ -95,7 +95,7 @@ public open class ImageTexture : Texture2D() { */ public final fun setSizeOverride(size: Vector2i): Unit { TransferContext.writeArguments(VECTOR2I to size) - TransferContext.callMethod(rawPtr, MethodBindings.setSizeOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSizeOverridePtr, NIL) } public companion object { diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ImageTexture3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ImageTexture3D.kt index 1a810447ce..962ac17a80 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ImageTexture3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ImageTexture3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY @@ -14,7 +15,6 @@ import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -47,7 +47,7 @@ public open class ImageTexture3D : Texture3D() { `data`: VariantArray, ): Error { TransferContext.writeArguments(LONG to format.id, LONG to width.toLong(), LONG to height.toLong(), LONG to depth.toLong(), BOOL to useMipmaps, ARRAY to data) - TransferContext.callMethod(rawPtr, MethodBindings.createPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.createPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -58,7 +58,7 @@ public open class ImageTexture3D : Texture3D() { */ public final fun update(`data`: VariantArray): Unit { TransferContext.writeArguments(ARRAY to data) - TransferContext.callMethod(rawPtr, MethodBindings.updatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.updatePtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ImageTextureLayered.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ImageTextureLayered.kt index dbe7ef17e5..7b8ade5ccc 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ImageTextureLayered.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ImageTextureLayered.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY @@ -14,7 +15,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -38,7 +38,7 @@ public open class ImageTextureLayered internal constructor() : TextureLayered() */ public final fun createFromImages(images: VariantArray): Error { TransferContext.writeArguments(ARRAY to images) - TransferContext.callMethod(rawPtr, MethodBindings.createFromImagesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.createFromImagesPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -52,7 +52,7 @@ public open class ImageTextureLayered internal constructor() : TextureLayered() */ public final fun updateLayer(image: Image?, layer: Int): Unit { TransferContext.writeArguments(OBJECT to image, LONG to layer.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.updateLayerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.updateLayerPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ImmediateMesh.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ImmediateMesh.kt index cb5da03458..d6cc09f24c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ImmediateMesh.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ImmediateMesh.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.Plane import godot.core.TypeManager @@ -20,7 +21,6 @@ import godot.core.VariantParser.VECTOR3 import godot.core.Vector2 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -64,7 +64,7 @@ public open class ImmediateMesh : Mesh() { @JvmOverloads public final fun surfaceBegin(primitive: Mesh.PrimitiveType, material: Material? = null): Unit { TransferContext.writeArguments(LONG to primitive.id, OBJECT to material) - TransferContext.callMethod(rawPtr, MethodBindings.surfaceBeginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.surfaceBeginPtr, NIL) } /** @@ -72,7 +72,7 @@ public open class ImmediateMesh : Mesh() { */ public final fun surfaceSetColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.surfaceSetColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.surfaceSetColorPtr, NIL) } /** @@ -80,7 +80,7 @@ public open class ImmediateMesh : Mesh() { */ public final fun surfaceSetNormal(normal: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to normal) - TransferContext.callMethod(rawPtr, MethodBindings.surfaceSetNormalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.surfaceSetNormalPtr, NIL) } /** @@ -88,7 +88,7 @@ public open class ImmediateMesh : Mesh() { */ public final fun surfaceSetTangent(tangent: Plane): Unit { TransferContext.writeArguments(PLANE to tangent) - TransferContext.callMethod(rawPtr, MethodBindings.surfaceSetTangentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.surfaceSetTangentPtr, NIL) } /** @@ -96,7 +96,7 @@ public open class ImmediateMesh : Mesh() { */ public final fun surfaceSetUv(uv: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to uv) - TransferContext.callMethod(rawPtr, MethodBindings.surfaceSetUvPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.surfaceSetUvPtr, NIL) } /** @@ -104,7 +104,7 @@ public open class ImmediateMesh : Mesh() { */ public final fun surfaceSetUv2(uv2: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to uv2) - TransferContext.callMethod(rawPtr, MethodBindings.surfaceSetUv2Ptr, NIL) + TransferContext.callMethod(ptr, MethodBindings.surfaceSetUv2Ptr, NIL) } /** @@ -112,7 +112,7 @@ public open class ImmediateMesh : Mesh() { */ public final fun surfaceAddVertex(vertex: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to vertex) - TransferContext.callMethod(rawPtr, MethodBindings.surfaceAddVertexPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.surfaceAddVertexPtr, NIL) } /** @@ -120,7 +120,7 @@ public open class ImmediateMesh : Mesh() { */ public final fun surfaceAddVertex2d(vertex: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to vertex) - TransferContext.callMethod(rawPtr, MethodBindings.surfaceAddVertex2dPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.surfaceAddVertex2dPtr, NIL) } /** @@ -129,7 +129,7 @@ public open class ImmediateMesh : Mesh() { */ public final fun surfaceEnd(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.surfaceEndPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.surfaceEndPtr, NIL) } /** @@ -137,7 +137,7 @@ public open class ImmediateMesh : Mesh() { */ public final fun clearSurfaces(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearSurfacesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearSurfacesPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ImporterMesh.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ImporterMesh.kt index 614b73e245..fd41f06260 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ImporterMesh.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ImporterMesh.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedInt32Array import godot.core.TypeManager @@ -22,7 +23,6 @@ import godot.core.VariantParser.STRING import godot.core.VariantParser.VECTOR2I import godot.core.Vector2i import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Double import kotlin.Float @@ -54,7 +54,7 @@ public open class ImporterMesh : Resource() { */ public final fun addBlendShape(name: String): Unit { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.addBlendShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addBlendShapePtr, NIL) } /** @@ -62,7 +62,7 @@ public open class ImporterMesh : Resource() { */ public final fun getBlendShapeCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBlendShapeCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBlendShapeCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -71,7 +71,7 @@ public open class ImporterMesh : Resource() { */ public final fun getBlendShapeName(blendShapeIdx: Int): String { TransferContext.writeArguments(LONG to blendShapeIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBlendShapeNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getBlendShapeNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -80,7 +80,7 @@ public open class ImporterMesh : Resource() { */ public final fun setBlendShapeMode(mode: Mesh.BlendShapeMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setBlendShapeModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBlendShapeModePtr, NIL) } /** @@ -88,7 +88,7 @@ public open class ImporterMesh : Resource() { */ public final fun getBlendShapeMode(): Mesh.BlendShapeMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBlendShapeModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBlendShapeModePtr, LONG) return Mesh.BlendShapeMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -131,7 +131,7 @@ public open class ImporterMesh : Resource() { flags: Long = 0, ): Unit { TransferContext.writeArguments(LONG to primitive.id, ARRAY to arrays, ARRAY to blendShapes, DICTIONARY to lods, OBJECT to material, STRING to name, LONG to flags) - TransferContext.callMethod(rawPtr, MethodBindings.addSurfacePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addSurfacePtr, NIL) } /** @@ -139,7 +139,7 @@ public open class ImporterMesh : Resource() { */ public final fun getSurfaceCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSurfaceCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSurfaceCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -148,7 +148,7 @@ public open class ImporterMesh : Resource() { */ public final fun getSurfacePrimitiveType(surfaceIdx: Int): Mesh.PrimitiveType { TransferContext.writeArguments(LONG to surfaceIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSurfacePrimitiveTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSurfacePrimitiveTypePtr, LONG) return Mesh.PrimitiveType.from(TransferContext.readReturnValue(LONG) as Long) } @@ -157,7 +157,7 @@ public open class ImporterMesh : Resource() { */ public final fun getSurfaceName(surfaceIdx: Int): String { TransferContext.writeArguments(LONG to surfaceIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSurfaceNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getSurfaceNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -167,7 +167,7 @@ public open class ImporterMesh : Resource() { */ public final fun getSurfaceArrays(surfaceIdx: Int): VariantArray { TransferContext.writeArguments(LONG to surfaceIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSurfaceArraysPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getSurfaceArraysPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -177,7 +177,7 @@ public open class ImporterMesh : Resource() { public final fun getSurfaceBlendShapeArrays(surfaceIdx: Int, blendShapeIdx: Int): VariantArray { TransferContext.writeArguments(LONG to surfaceIdx.toLong(), LONG to blendShapeIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSurfaceBlendShapeArraysPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getSurfaceBlendShapeArraysPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -186,7 +186,7 @@ public open class ImporterMesh : Resource() { */ public final fun getSurfaceLodCount(surfaceIdx: Int): Int { TransferContext.writeArguments(LONG to surfaceIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSurfaceLodCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSurfaceLodCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -195,7 +195,7 @@ public open class ImporterMesh : Resource() { */ public final fun getSurfaceLodSize(surfaceIdx: Int, lodIdx: Int): Float { TransferContext.writeArguments(LONG to surfaceIdx.toLong(), LONG to lodIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSurfaceLodSizePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSurfaceLodSizePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -204,7 +204,7 @@ public open class ImporterMesh : Resource() { */ public final fun getSurfaceLodIndices(surfaceIdx: Int, lodIdx: Int): PackedInt32Array { TransferContext.writeArguments(LONG to surfaceIdx.toLong(), LONG to lodIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSurfaceLodIndicesPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getSurfaceLodIndicesPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } @@ -213,7 +213,7 @@ public open class ImporterMesh : Resource() { */ public final fun getSurfaceMaterial(surfaceIdx: Int): Material? { TransferContext.writeArguments(LONG to surfaceIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSurfaceMaterialPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getSurfaceMaterialPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Material?) } @@ -222,7 +222,7 @@ public open class ImporterMesh : Resource() { */ public final fun getSurfaceFormat(surfaceIdx: Int): Long { TransferContext.writeArguments(LONG to surfaceIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSurfaceFormatPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSurfaceFormatPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -231,7 +231,7 @@ public open class ImporterMesh : Resource() { */ public final fun setSurfaceName(surfaceIdx: Int, name: String): Unit { TransferContext.writeArguments(LONG to surfaceIdx.toLong(), STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.setSurfaceNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSurfaceNamePtr, NIL) } /** @@ -239,7 +239,7 @@ public open class ImporterMesh : Resource() { */ public final fun setSurfaceMaterial(surfaceIdx: Int, material: Material?): Unit { TransferContext.writeArguments(LONG to surfaceIdx.toLong(), OBJECT to material) - TransferContext.callMethod(rawPtr, MethodBindings.setSurfaceMaterialPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSurfaceMaterialPtr, NIL) } /** @@ -259,7 +259,7 @@ public open class ImporterMesh : Resource() { boneTransformArray: VariantArray, ): Unit { TransferContext.writeArguments(DOUBLE to normalMergeAngle.toDouble(), DOUBLE to normalSplitAngle.toDouble(), ARRAY to boneTransformArray) - TransferContext.callMethod(rawPtr, MethodBindings.generateLodsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.generateLodsPtr, NIL) } /** @@ -271,7 +271,7 @@ public open class ImporterMesh : Resource() { @JvmOverloads public final fun getMesh(baseMesh: ArrayMesh? = null): ArrayMesh? { TransferContext.writeArguments(OBJECT to baseMesh) - TransferContext.callMethod(rawPtr, MethodBindings.getMeshPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getMeshPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as ArrayMesh?) } @@ -280,7 +280,7 @@ public open class ImporterMesh : Resource() { */ public final fun clear(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPtr, NIL) } /** @@ -288,7 +288,7 @@ public open class ImporterMesh : Resource() { */ public final fun setLightmapSizeHint(size: Vector2i): Unit { TransferContext.writeArguments(VECTOR2I to size) - TransferContext.callMethod(rawPtr, MethodBindings.setLightmapSizeHintPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLightmapSizeHintPtr, NIL) } /** @@ -296,7 +296,7 @@ public open class ImporterMesh : Resource() { */ public final fun getLightmapSizeHint(): Vector2i { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLightmapSizeHintPtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getLightmapSizeHintPtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ImporterMeshInstance3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ImporterMeshInstance3D.kt index 1cea15107b..d67bb90243 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ImporterMeshInstance3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ImporterMeshInstance3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.TypeManager import godot.core.VariantParser.DOUBLE @@ -15,7 +16,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -112,45 +112,45 @@ public open class ImporterMeshInstance3D : Node3D() { public final fun setMesh(mesh: ImporterMesh?): Unit { TransferContext.writeArguments(OBJECT to mesh) - TransferContext.callMethod(rawPtr, MethodBindings.setMeshPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMeshPtr, NIL) } public final fun getMesh(): ImporterMesh? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMeshPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getMeshPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as ImporterMesh?) } public final fun setSkin(skin: Skin?): Unit { TransferContext.writeArguments(OBJECT to skin) - TransferContext.callMethod(rawPtr, MethodBindings.setSkinPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSkinPtr, NIL) } public final fun getSkin(): Skin? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSkinPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getSkinPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Skin?) } public final fun setSkeletonPath(skeletonPath: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to skeletonPath) - TransferContext.callMethod(rawPtr, MethodBindings.setSkeletonPathPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSkeletonPathPtr, NIL) } public final fun getSkeletonPath(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSkeletonPathPtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getSkeletonPathPtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } public final fun setLayerMask(layerMask: Long): Unit { TransferContext.writeArguments(LONG to layerMask) - TransferContext.callMethod(rawPtr, MethodBindings.setLayerMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLayerMaskPtr, NIL) } public final fun getLayerMask(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLayerMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLayerMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -158,68 +158,68 @@ public open class ImporterMeshInstance3D : Node3D() { fun setCastShadowsSetting(shadowCastingSetting: GeometryInstance3D.ShadowCastingSetting): Unit { TransferContext.writeArguments(LONG to shadowCastingSetting.id) - TransferContext.callMethod(rawPtr, MethodBindings.setCastShadowsSettingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCastShadowsSettingPtr, NIL) } public final fun getCastShadowsSetting(): GeometryInstance3D.ShadowCastingSetting { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCastShadowsSettingPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCastShadowsSettingPtr, LONG) return GeometryInstance3D.ShadowCastingSetting.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setVisibilityRangeEndMargin(distance: Float): Unit { TransferContext.writeArguments(DOUBLE to distance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVisibilityRangeEndMarginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVisibilityRangeEndMarginPtr, NIL) } public final fun getVisibilityRangeEndMargin(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVisibilityRangeEndMarginPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVisibilityRangeEndMarginPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVisibilityRangeEnd(distance: Float): Unit { TransferContext.writeArguments(DOUBLE to distance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVisibilityRangeEndPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVisibilityRangeEndPtr, NIL) } public final fun getVisibilityRangeEnd(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVisibilityRangeEndPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVisibilityRangeEndPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVisibilityRangeBeginMargin(distance: Float): Unit { TransferContext.writeArguments(DOUBLE to distance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVisibilityRangeBeginMarginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVisibilityRangeBeginMarginPtr, NIL) } public final fun getVisibilityRangeBeginMargin(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVisibilityRangeBeginMarginPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVisibilityRangeBeginMarginPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVisibilityRangeBegin(distance: Float): Unit { TransferContext.writeArguments(DOUBLE to distance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVisibilityRangeBeginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVisibilityRangeBeginPtr, NIL) } public final fun getVisibilityRangeBegin(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVisibilityRangeBeginPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVisibilityRangeBeginPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVisibilityRangeFadeMode(mode: GeometryInstance3D.VisibilityRangeFadeMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setVisibilityRangeFadeModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVisibilityRangeFadeModePtr, NIL) } public final fun getVisibilityRangeFadeMode(): GeometryInstance3D.VisibilityRangeFadeMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVisibilityRangeFadeModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVisibilityRangeFadeModePtr, LONG) return GeometryInstance3D.VisibilityRangeFadeMode.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Input.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Input.kt index be9060c916..6ab17008cf 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Input.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Input.kt @@ -8,6 +8,7 @@ package godot import godot.MouseButtonMaskValue import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.Signal2 import godot.core.StringName @@ -27,7 +28,6 @@ import godot.core.VariantParser.VECTOR3 import godot.core.Vector2 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -67,7 +67,7 @@ public object Input : Object() { @JvmStatic public final fun isAnythingPressed(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isAnythingPressedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isAnythingPressedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -86,7 +86,7 @@ public object Input : Object() { @JvmStatic public final fun isKeyPressed(keycode: Key): Boolean { TransferContext.writeArguments(LONG to keycode.id) - TransferContext.callMethod(rawPtr, MethodBindings.isKeyPressedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isKeyPressedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -105,7 +105,7 @@ public object Input : Object() { @JvmStatic public final fun isPhysicalKeyPressed(keycode: Key): Boolean { TransferContext.writeArguments(LONG to keycode.id) - TransferContext.callMethod(rawPtr, MethodBindings.isPhysicalKeyPressedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPhysicalKeyPressedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -116,7 +116,7 @@ public object Input : Object() { @JvmStatic public final fun isKeyLabelPressed(keycode: Key): Boolean { TransferContext.writeArguments(LONG to keycode.id) - TransferContext.callMethod(rawPtr, MethodBindings.isKeyLabelPressedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isKeyLabelPressedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -126,7 +126,7 @@ public object Input : Object() { @JvmStatic public final fun isMouseButtonPressed(button: MouseButton): Boolean { TransferContext.writeArguments(LONG to button.id) - TransferContext.callMethod(rawPtr, MethodBindings.isMouseButtonPressedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isMouseButtonPressedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -136,7 +136,7 @@ public object Input : Object() { @JvmStatic public final fun isJoyButtonPressed(device: Int, button: JoyButton): Boolean { TransferContext.writeArguments(LONG to device.toLong(), LONG to button.id) - TransferContext.callMethod(rawPtr, MethodBindings.isJoyButtonPressedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isJoyButtonPressedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -153,7 +153,7 @@ public object Input : Object() { @JvmStatic public final fun isActionPressed(action: StringName, exactMatch: Boolean = false): Boolean { TransferContext.writeArguments(STRING_NAME to action, BOOL to exactMatch) - TransferContext.callMethod(rawPtr, MethodBindings.isActionPressedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isActionPressedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -178,7 +178,7 @@ public object Input : Object() { @JvmStatic public final fun isActionJustPressed(action: StringName, exactMatch: Boolean = false): Boolean { TransferContext.writeArguments(STRING_NAME to action, BOOL to exactMatch) - TransferContext.callMethod(rawPtr, MethodBindings.isActionJustPressedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isActionJustPressedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -196,7 +196,7 @@ public object Input : Object() { @JvmStatic public final fun isActionJustReleased(action: StringName, exactMatch: Boolean = false): Boolean { TransferContext.writeArguments(STRING_NAME to action, BOOL to exactMatch) - TransferContext.callMethod(rawPtr, MethodBindings.isActionJustReleasedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isActionJustReleasedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -212,7 +212,7 @@ public object Input : Object() { @JvmStatic public final fun getActionStrength(action: StringName, exactMatch: Boolean = false): Float { TransferContext.writeArguments(STRING_NAME to action, BOOL to exactMatch) - TransferContext.callMethod(rawPtr, MethodBindings.getActionStrengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getActionStrengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -226,7 +226,7 @@ public object Input : Object() { @JvmStatic public final fun getActionRawStrength(action: StringName, exactMatch: Boolean = false): Float { TransferContext.writeArguments(STRING_NAME to action, BOOL to exactMatch) - TransferContext.callMethod(rawPtr, MethodBindings.getActionRawStrengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getActionRawStrengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -238,7 +238,7 @@ public object Input : Object() { @JvmStatic public final fun getAxis(negativeAction: StringName, positiveAction: StringName): Float { TransferContext.writeArguments(STRING_NAME to negativeAction, STRING_NAME to positiveAction) - TransferContext.callMethod(rawPtr, MethodBindings.getAxisPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAxisPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -260,7 +260,7 @@ public object Input : Object() { deadzone: Float = -1.0f, ): Vector2 { TransferContext.writeArguments(STRING_NAME to negativeX, STRING_NAME to positiveX, STRING_NAME to negativeY, STRING_NAME to positiveY, DOUBLE to deadzone.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.getVectorPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getVectorPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -272,7 +272,7 @@ public object Input : Object() { @JvmStatic public final fun addJoyMapping(mapping: String, updateExisting: Boolean = false): Unit { TransferContext.writeArguments(STRING to mapping, BOOL to updateExisting) - TransferContext.callMethod(rawPtr, MethodBindings.addJoyMappingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addJoyMappingPtr, NIL) } /** @@ -281,7 +281,7 @@ public object Input : Object() { @JvmStatic public final fun removeJoyMapping(guid: String): Unit { TransferContext.writeArguments(STRING to guid) - TransferContext.callMethod(rawPtr, MethodBindings.removeJoyMappingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeJoyMappingPtr, NIL) } /** @@ -292,7 +292,7 @@ public object Input : Object() { @JvmStatic public final fun isJoyKnown(device: Int): Boolean { TransferContext.writeArguments(LONG to device.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isJoyKnownPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isJoyKnownPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -302,7 +302,7 @@ public object Input : Object() { @JvmStatic public final fun getJoyAxis(device: Int, axis: JoyAxis): Float { TransferContext.writeArguments(LONG to device.toLong(), LONG to axis.id) - TransferContext.callMethod(rawPtr, MethodBindings.getJoyAxisPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getJoyAxisPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -314,7 +314,7 @@ public object Input : Object() { @JvmStatic public final fun getJoyName(device: Int): String { TransferContext.writeArguments(LONG to device.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getJoyNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getJoyNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -327,7 +327,7 @@ public object Input : Object() { @JvmStatic public final fun getJoyGuid(device: Int): String { TransferContext.writeArguments(LONG to device.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getJoyGuidPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getJoyGuidPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -347,7 +347,7 @@ public object Input : Object() { @JvmStatic public final fun getJoyInfo(device: Int): Dictionary { TransferContext.writeArguments(LONG to device.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getJoyInfoPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getJoyInfoPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -362,7 +362,7 @@ public object Input : Object() { @JvmStatic public final fun shouldIgnoreDevice(vendorId: Int, productId: Int): Boolean { TransferContext.writeArguments(LONG to vendorId.toLong(), LONG to productId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.shouldIgnoreDevicePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.shouldIgnoreDevicePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -372,7 +372,7 @@ public object Input : Object() { @JvmStatic public final fun getConnectedJoypads(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConnectedJoypadsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getConnectedJoypadsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -383,7 +383,7 @@ public object Input : Object() { @JvmStatic public final fun getJoyVibrationStrength(device: Int): Vector2 { TransferContext.writeArguments(LONG to device.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getJoyVibrationStrengthPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getJoyVibrationStrengthPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -393,7 +393,7 @@ public object Input : Object() { @JvmStatic public final fun getJoyVibrationDuration(device: Int): Float { TransferContext.writeArguments(LONG to device.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getJoyVibrationDurationPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getJoyVibrationDurationPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -416,7 +416,7 @@ public object Input : Object() { duration: Float = 0.0f, ): Unit { TransferContext.writeArguments(LONG to device.toLong(), DOUBLE to weakMagnitude.toDouble(), DOUBLE to strongMagnitude.toDouble(), DOUBLE to duration.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.startJoyVibrationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.startJoyVibrationPtr, NIL) } /** @@ -425,7 +425,7 @@ public object Input : Object() { @JvmStatic public final fun stopJoyVibration(device: Int): Unit { TransferContext.writeArguments(LONG to device.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.stopJoyVibrationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.stopJoyVibrationPtr, NIL) } /** @@ -445,7 +445,7 @@ public object Input : Object() { @JvmStatic public final fun vibrateHandheld(durationMs: Int = 500, amplitude: Float = -1.0f): Unit { TransferContext.writeArguments(LONG to durationMs.toLong(), DOUBLE to amplitude.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.vibrateHandheldPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.vibrateHandheldPtr, NIL) } /** @@ -457,7 +457,7 @@ public object Input : Object() { @JvmStatic public final fun getGravity(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGravityPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getGravityPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -473,7 +473,7 @@ public object Input : Object() { @JvmStatic public final fun getAccelerometer(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAccelerometerPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getAccelerometerPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -486,7 +486,7 @@ public object Input : Object() { @JvmStatic public final fun getMagnetometer(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMagnetometerPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getMagnetometerPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -499,7 +499,7 @@ public object Input : Object() { @JvmStatic public final fun getGyroscope(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGyroscopePtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getGyroscopePtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -512,7 +512,7 @@ public object Input : Object() { @JvmStatic public final fun setGravity(`value`: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to value) - TransferContext.callMethod(rawPtr, MethodBindings.setGravityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGravityPtr, NIL) } /** @@ -524,7 +524,7 @@ public object Input : Object() { @JvmStatic public final fun setAccelerometer(`value`: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to value) - TransferContext.callMethod(rawPtr, MethodBindings.setAccelerometerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAccelerometerPtr, NIL) } /** @@ -536,7 +536,7 @@ public object Input : Object() { @JvmStatic public final fun setMagnetometer(`value`: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to value) - TransferContext.callMethod(rawPtr, MethodBindings.setMagnetometerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMagnetometerPtr, NIL) } /** @@ -548,7 +548,7 @@ public object Input : Object() { @JvmStatic public final fun setGyroscope(`value`: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to value) - TransferContext.callMethod(rawPtr, MethodBindings.setGyroscopePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGyroscopePtr, NIL) } /** @@ -558,7 +558,7 @@ public object Input : Object() { @JvmStatic public final fun getLastMouseVelocity(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLastMouseVelocityPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getLastMouseVelocityPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -570,7 +570,7 @@ public object Input : Object() { @JvmStatic public final fun getLastMouseScreenVelocity(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLastMouseScreenVelocityPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getLastMouseScreenVelocityPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -581,20 +581,20 @@ public object Input : Object() { @JvmStatic public final fun getMouseButtonMask(): MouseButtonMask { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMouseButtonMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMouseButtonMaskPtr, LONG) return MouseButtonMaskValue(TransferContext.readReturnValue(LONG) as Long) } @JvmStatic public final fun setMouseMode(mode: MouseMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setMouseModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMouseModePtr, NIL) } @JvmStatic public final fun getMouseMode(): MouseMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMouseModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMouseModePtr, LONG) return Input.MouseMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -609,7 +609,7 @@ public object Input : Object() { @JvmStatic public final fun warpMouse(position: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.warpMousePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.warpMousePtr, NIL) } /** @@ -624,7 +624,7 @@ public object Input : Object() { @JvmStatic public final fun actionPress(action: StringName, strength: Float = 1.0f): Unit { TransferContext.writeArguments(STRING_NAME to action, DOUBLE to strength.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.actionPressPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.actionPressPtr, NIL) } /** @@ -633,7 +633,7 @@ public object Input : Object() { @JvmStatic public final fun actionRelease(action: StringName): Unit { TransferContext.writeArguments(STRING_NAME to action) - TransferContext.callMethod(rawPtr, MethodBindings.actionReleasePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.actionReleasePtr, NIL) } /** @@ -647,7 +647,7 @@ public object Input : Object() { public final fun setDefaultCursorShape(shape: CursorShape = Input.CursorShape.CURSOR_ARROW): Unit { TransferContext.writeArguments(LONG to shape.id) - TransferContext.callMethod(rawPtr, MethodBindings.setDefaultCursorShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDefaultCursorShapePtr, NIL) } /** @@ -656,7 +656,7 @@ public object Input : Object() { @JvmStatic public final fun getCurrentCursorShape(): CursorShape { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCurrentCursorShapePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCurrentCursorShapePtr, LONG) return Input.CursorShape.from(TransferContext.readReturnValue(LONG) as Long) } @@ -684,7 +684,7 @@ public object Input : Object() { hotspot: Vector2 = Vector2(0, 0), ): Unit { TransferContext.writeArguments(OBJECT to image, LONG to shape.id, VECTOR2 to hotspot) - TransferContext.callMethod(rawPtr, MethodBindings.setCustomMouseCursorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCustomMouseCursorPtr, NIL) } /** @@ -715,19 +715,19 @@ public object Input : Object() { @JvmStatic public final fun parseInputEvent(event: InputEvent?): Unit { TransferContext.writeArguments(OBJECT to event) - TransferContext.callMethod(rawPtr, MethodBindings.parseInputEventPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.parseInputEventPtr, NIL) } @JvmStatic public final fun setUseAccumulatedInput(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setUseAccumulatedInputPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseAccumulatedInputPtr, NIL) } @JvmStatic public final fun isUsingAccumulatedInput(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUsingAccumulatedInputPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUsingAccumulatedInputPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -742,32 +742,32 @@ public object Input : Object() { @JvmStatic public final fun flushBufferedEvents(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.flushBufferedEventsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.flushBufferedEventsPtr, NIL) } @JvmStatic public final fun setEmulateMouseFromTouch(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setEmulateMouseFromTouchPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmulateMouseFromTouchPtr, NIL) } @JvmStatic public final fun isEmulatingMouseFromTouch(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isEmulatingMouseFromTouchPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isEmulatingMouseFromTouchPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @JvmStatic public final fun setEmulateTouchFromMouse(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setEmulateTouchFromMousePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmulateTouchFromMousePtr, NIL) } @JvmStatic public final fun isEmulatingTouchFromMouse(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isEmulatingTouchFromMousePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isEmulatingTouchFromMousePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEvent.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEvent.kt index e4fa08787a..44582992bf 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEvent.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEvent.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.StringName import godot.core.Transform2D import godot.core.TypeManager @@ -21,7 +22,6 @@ import godot.core.VariantParser.TRANSFORM2D import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -57,12 +57,12 @@ public open class InputEvent internal constructor() : Resource() { public final fun setDevice(device: Int): Unit { TransferContext.writeArguments(LONG to device.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setDevicePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDevicePtr, NIL) } public final fun getDevice(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDevicePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDevicePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -74,7 +74,7 @@ public open class InputEvent internal constructor() : Resource() { @JvmOverloads public final fun isAction(action: StringName, exactMatch: Boolean = false): Boolean { TransferContext.writeArguments(STRING_NAME to action, BOOL to exactMatch) - TransferContext.callMethod(rawPtr, MethodBindings.isActionPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isActionPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -96,7 +96,7 @@ public open class InputEvent internal constructor() : Resource() { exactMatch: Boolean = false, ): Boolean { TransferContext.writeArguments(STRING_NAME to action, BOOL to allowEcho, BOOL to exactMatch) - TransferContext.callMethod(rawPtr, MethodBindings.isActionPressedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isActionPressedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -109,7 +109,7 @@ public open class InputEvent internal constructor() : Resource() { @JvmOverloads public final fun isActionReleased(action: StringName, exactMatch: Boolean = false): Boolean { TransferContext.writeArguments(STRING_NAME to action, BOOL to exactMatch) - TransferContext.callMethod(rawPtr, MethodBindings.isActionReleasedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isActionReleasedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -122,7 +122,7 @@ public open class InputEvent internal constructor() : Resource() { @JvmOverloads public final fun getActionStrength(action: StringName, exactMatch: Boolean = false): Float { TransferContext.writeArguments(STRING_NAME to action, BOOL to exactMatch) - TransferContext.callMethod(rawPtr, MethodBindings.getActionStrengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getActionStrengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -131,7 +131,7 @@ public open class InputEvent internal constructor() : Resource() { */ public final fun isCanceled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCanceledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCanceledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -144,7 +144,7 @@ public open class InputEvent internal constructor() : Resource() { */ public final fun isPressed(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isPressedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPressedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -154,7 +154,7 @@ public open class InputEvent internal constructor() : Resource() { */ public final fun isReleased(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isReleasedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isReleasedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -170,7 +170,7 @@ public open class InputEvent internal constructor() : Resource() { */ public final fun isEcho(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isEchoPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isEchoPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -179,7 +179,7 @@ public open class InputEvent internal constructor() : Resource() { */ public final fun asText(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.asTextPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.asTextPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -193,7 +193,7 @@ public open class InputEvent internal constructor() : Resource() { @JvmOverloads public final fun isMatch(event: InputEvent?, exactMatch: Boolean = true): Boolean { TransferContext.writeArguments(OBJECT to event, BOOL to exactMatch) - TransferContext.callMethod(rawPtr, MethodBindings.isMatchPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isMatchPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -202,7 +202,7 @@ public open class InputEvent internal constructor() : Resource() { */ public final fun isActionType(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isActionTypePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isActionTypePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -214,7 +214,7 @@ public open class InputEvent internal constructor() : Resource() { */ public final fun accumulate(withEvent: InputEvent?): Boolean { TransferContext.writeArguments(OBJECT to withEvent) - TransferContext.callMethod(rawPtr, MethodBindings.accumulatePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.accumulatePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -227,7 +227,7 @@ public open class InputEvent internal constructor() : Resource() { @JvmOverloads public final fun xformedBy(xform: Transform2D, localOfs: Vector2 = Vector2(0, 0)): InputEvent? { TransferContext.writeArguments(TRANSFORM2D to xform, VECTOR2 to localOfs) - TransferContext.callMethod(rawPtr, MethodBindings.xformedByPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.xformedByPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as InputEvent?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventAction.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventAction.kt index 2effed917e..67f2c7bd9e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventAction.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventAction.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.StringName import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -15,7 +16,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -90,39 +90,39 @@ public open class InputEventAction : InputEvent() { public final fun setAction(action: StringName): Unit { TransferContext.writeArguments(STRING_NAME to action) - TransferContext.callMethod(rawPtr, MethodBindings.setActionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setActionPtr, NIL) } public final fun getAction(): StringName { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getActionPtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getActionPtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } public final fun setPressed(pressed: Boolean): Unit { TransferContext.writeArguments(BOOL to pressed) - TransferContext.callMethod(rawPtr, MethodBindings.setPressedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPressedPtr, NIL) } public final fun setStrength(strength: Float): Unit { TransferContext.writeArguments(DOUBLE to strength.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setStrengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStrengthPtr, NIL) } public final fun getStrength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStrengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getStrengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setEventIndex(index: Int): Unit { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setEventIndexPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEventIndexPtr, NIL) } public final fun getEventIndex(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEventIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getEventIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventFromWindow.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventFromWindow.kt index 169f5a2bad..330f30aadb 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventFromWindow.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventFromWindow.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -41,12 +41,12 @@ public open class InputEventFromWindow internal constructor() : InputEvent() { public final fun setWindowId(id: Long): Unit { TransferContext.writeArguments(LONG to id) - TransferContext.callMethod(rawPtr, MethodBindings.setWindowIdPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setWindowIdPtr, NIL) } public final fun getWindowId(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWindowIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getWindowIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventGesture.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventGesture.kt index 7b2065d09d..c5ca976c5a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventGesture.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventGesture.kt @@ -9,12 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -70,12 +70,12 @@ public open class InputEventGesture internal constructor() : InputEventWithModif public final fun setPosition(position: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.setPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPositionPtr, NIL) } public final fun getPosition(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventJoypadButton.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventJoypadButton.kt index cf27ad8860..b00eed42a6 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventJoypadButton.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventJoypadButton.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -65,29 +65,29 @@ public open class InputEventJoypadButton : InputEvent() { public final fun setButtonIndex(buttonIndex: JoyButton): Unit { TransferContext.writeArguments(LONG to buttonIndex.id) - TransferContext.callMethod(rawPtr, MethodBindings.setButtonIndexPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setButtonIndexPtr, NIL) } public final fun getButtonIndex(): JoyButton { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getButtonIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getButtonIndexPtr, LONG) return JoyButton.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setPressure(pressure: Float): Unit { TransferContext.writeArguments(DOUBLE to pressure.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPressurePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPressurePtr, NIL) } public final fun getPressure(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPressurePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPressurePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setPressed(pressed: Boolean): Unit { TransferContext.writeArguments(BOOL to pressed) - TransferContext.callMethod(rawPtr, MethodBindings.setPressedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPressedPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventJoypadMotion.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventJoypadMotion.kt index 02f332a517..27d6d4ebdd 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventJoypadMotion.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventJoypadMotion.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -56,23 +56,23 @@ public open class InputEventJoypadMotion : InputEvent() { public final fun setAxis(axis: JoyAxis): Unit { TransferContext.writeArguments(LONG to axis.id) - TransferContext.callMethod(rawPtr, MethodBindings.setAxisPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAxisPtr, NIL) } public final fun getAxis(): JoyAxis { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAxisPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAxisPtr, LONG) return JoyAxis.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setAxisValue(axisValue: Float): Unit { TransferContext.writeArguments(DOUBLE to axisValue.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAxisValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAxisValuePtr, NIL) } public final fun getAxisValue(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAxisValuePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAxisValuePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventKey.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventKey.kt index dc4a372bb7..2273856d81 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventKey.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventKey.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -166,67 +166,67 @@ public open class InputEventKey : InputEventWithModifiers() { public final fun setPressed(pressed: Boolean): Unit { TransferContext.writeArguments(BOOL to pressed) - TransferContext.callMethod(rawPtr, MethodBindings.setPressedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPressedPtr, NIL) } public final fun setKeycode(keycode: Key): Unit { TransferContext.writeArguments(LONG to keycode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setKeycodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setKeycodePtr, NIL) } public final fun getKeycode(): Key { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getKeycodePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getKeycodePtr, LONG) return Key.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setPhysicalKeycode(physicalKeycode: Key): Unit { TransferContext.writeArguments(LONG to physicalKeycode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setPhysicalKeycodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPhysicalKeycodePtr, NIL) } public final fun getPhysicalKeycode(): Key { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPhysicalKeycodePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPhysicalKeycodePtr, LONG) return Key.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setKeyLabel(keyLabel: Key): Unit { TransferContext.writeArguments(LONG to keyLabel.id) - TransferContext.callMethod(rawPtr, MethodBindings.setKeyLabelPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setKeyLabelPtr, NIL) } public final fun getKeyLabel(): Key { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getKeyLabelPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getKeyLabelPtr, LONG) return Key.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setUnicode(unicode: Long): Unit { TransferContext.writeArguments(LONG to unicode) - TransferContext.callMethod(rawPtr, MethodBindings.setUnicodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUnicodePtr, NIL) } public final fun getUnicode(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUnicodePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getUnicodePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setLocation(location: KeyLocation): Unit { TransferContext.writeArguments(LONG to location.id) - TransferContext.callMethod(rawPtr, MethodBindings.setLocationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLocationPtr, NIL) } public final fun getLocation(): KeyLocation { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLocationPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLocationPtr, LONG) return KeyLocation.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setEcho(echo: Boolean): Unit { TransferContext.writeArguments(BOOL to echo) - TransferContext.callMethod(rawPtr, MethodBindings.setEchoPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEchoPtr, NIL) } /** @@ -237,7 +237,7 @@ public open class InputEventKey : InputEventWithModifiers() { */ public final fun getKeycodeWithModifiers(): Key { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getKeycodeWithModifiersPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getKeycodeWithModifiersPtr, LONG) return Key.from(TransferContext.readReturnValue(LONG) as Long) } @@ -250,7 +250,7 @@ public open class InputEventKey : InputEventWithModifiers() { */ public final fun getPhysicalKeycodeWithModifiers(): Key { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPhysicalKeycodeWithModifiersPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPhysicalKeycodeWithModifiersPtr, LONG) return Key.from(TransferContext.readReturnValue(LONG) as Long) } @@ -263,7 +263,7 @@ public open class InputEventKey : InputEventWithModifiers() { */ public final fun getKeyLabelWithModifiers(): Key { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getKeyLabelWithModifiersPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getKeyLabelWithModifiersPtr, LONG) return Key.from(TransferContext.readReturnValue(LONG) as Long) } @@ -272,7 +272,7 @@ public open class InputEventKey : InputEventWithModifiers() { */ public final fun asTextKeycode(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.asTextKeycodePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.asTextKeycodePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -281,7 +281,7 @@ public open class InputEventKey : InputEventWithModifiers() { */ public final fun asTextPhysicalKeycode(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.asTextPhysicalKeycodePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.asTextPhysicalKeycodePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -290,7 +290,7 @@ public open class InputEventKey : InputEventWithModifiers() { */ public final fun asTextKeyLabel(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.asTextKeyLabelPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.asTextKeyLabelPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -300,7 +300,7 @@ public open class InputEventKey : InputEventWithModifiers() { */ public final fun asTextLocation(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.asTextLocationPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.asTextLocationPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventMIDI.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventMIDI.kt index 26985ccc9d..b8cb099ae8 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventMIDI.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventMIDI.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -208,89 +208,89 @@ public open class InputEventMIDI : InputEvent() { public final fun setChannel(channel: Int): Unit { TransferContext.writeArguments(LONG to channel.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setChannelPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setChannelPtr, NIL) } public final fun getChannel(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getChannelPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getChannelPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setMessage(message: MIDIMessage): Unit { TransferContext.writeArguments(LONG to message.id) - TransferContext.callMethod(rawPtr, MethodBindings.setMessagePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMessagePtr, NIL) } public final fun getMessage(): MIDIMessage { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMessagePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMessagePtr, LONG) return MIDIMessage.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setPitch(pitch: Int): Unit { TransferContext.writeArguments(LONG to pitch.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setPitchPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPitchPtr, NIL) } public final fun getPitch(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPitchPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPitchPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setVelocity(velocity: Int): Unit { TransferContext.writeArguments(LONG to velocity.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVelocityPtr, NIL) } public final fun getVelocity(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVelocityPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVelocityPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setInstrument(instrument: Int): Unit { TransferContext.writeArguments(LONG to instrument.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setInstrumentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInstrumentPtr, NIL) } public final fun getInstrument(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInstrumentPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getInstrumentPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setPressure(pressure: Int): Unit { TransferContext.writeArguments(LONG to pressure.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setPressurePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPressurePtr, NIL) } public final fun getPressure(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPressurePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPressurePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setControllerNumber(controllerNumber: Int): Unit { TransferContext.writeArguments(LONG to controllerNumber.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setControllerNumberPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setControllerNumberPtr, NIL) } public final fun getControllerNumber(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getControllerNumberPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getControllerNumberPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setControllerValue(controllerValue: Int): Unit { TransferContext.writeArguments(LONG to controllerValue.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setControllerValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setControllerValuePtr, NIL) } public final fun getControllerValue(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getControllerValuePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getControllerValuePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventMagnifyGesture.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventMagnifyGesture.kt index fdd2776f18..c666c4c538 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventMagnifyGesture.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventMagnifyGesture.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -46,12 +46,12 @@ public open class InputEventMagnifyGesture : InputEventGesture() { public final fun setFactor(factor: Float): Unit { TransferContext.writeArguments(DOUBLE to factor.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFactorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFactorPtr, NIL) } public final fun getFactor(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFactorPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFactorPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventMouse.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventMouse.kt index f3d06d051e..b8b98e16b9 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventMouse.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventMouse.kt @@ -10,13 +10,13 @@ import godot.MouseButtonMaskValue import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -130,34 +130,34 @@ public open class InputEventMouse internal constructor() : InputEventWithModifie public final fun setButtonMask(buttonMask: MouseButtonMask): Unit { TransferContext.writeArguments(LONG to buttonMask.flag) - TransferContext.callMethod(rawPtr, MethodBindings.setButtonMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setButtonMaskPtr, NIL) } public final fun getButtonMask(): MouseButtonMask { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getButtonMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getButtonMaskPtr, LONG) return MouseButtonMaskValue(TransferContext.readReturnValue(LONG) as Long) } public final fun setPosition(position: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.setPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPositionPtr, NIL) } public final fun getPosition(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setGlobalPosition(globalPosition: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to globalPosition) - TransferContext.callMethod(rawPtr, MethodBindings.setGlobalPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlobalPositionPtr, NIL) } public final fun getGlobalPosition(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGlobalPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getGlobalPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventMouseButton.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventMouseButton.kt index 0354789101..55805fc8fa 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventMouseButton.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventMouseButton.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -96,44 +96,44 @@ public open class InputEventMouseButton : InputEventMouse() { public final fun setFactor(factor: Float): Unit { TransferContext.writeArguments(DOUBLE to factor.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFactorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFactorPtr, NIL) } public final fun getFactor(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFactorPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFactorPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setButtonIndex(buttonIndex: MouseButton): Unit { TransferContext.writeArguments(LONG to buttonIndex.id) - TransferContext.callMethod(rawPtr, MethodBindings.setButtonIndexPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setButtonIndexPtr, NIL) } public final fun getButtonIndex(): MouseButton { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getButtonIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getButtonIndexPtr, LONG) return MouseButton.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setPressed(pressed: Boolean): Unit { TransferContext.writeArguments(BOOL to pressed) - TransferContext.callMethod(rawPtr, MethodBindings.setPressedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPressedPtr, NIL) } public final fun setCanceled(canceled: Boolean): Unit { TransferContext.writeArguments(BOOL to canceled) - TransferContext.callMethod(rawPtr, MethodBindings.setCanceledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCanceledPtr, NIL) } public final fun setDoubleClick(doubleClick: Boolean): Unit { TransferContext.writeArguments(BOOL to doubleClick) - TransferContext.callMethod(rawPtr, MethodBindings.setDoubleClickPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDoubleClickPtr, NIL) } public final fun isDoubleClick(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDoubleClickPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDoubleClickPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventMouseMotion.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventMouseMotion.kt index 5c48b79fa6..90177cd081 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventMouseMotion.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventMouseMotion.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE @@ -16,7 +17,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -287,78 +287,78 @@ public open class InputEventMouseMotion : InputEventMouse() { public final fun setTilt(tilt: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to tilt) - TransferContext.callMethod(rawPtr, MethodBindings.setTiltPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTiltPtr, NIL) } public final fun getTilt(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTiltPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getTiltPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setPressure(pressure: Float): Unit { TransferContext.writeArguments(DOUBLE to pressure.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPressurePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPressurePtr, NIL) } public final fun getPressure(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPressurePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPressurePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setPenInverted(penInverted: Boolean): Unit { TransferContext.writeArguments(BOOL to penInverted) - TransferContext.callMethod(rawPtr, MethodBindings.setPenInvertedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPenInvertedPtr, NIL) } public final fun getPenInverted(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPenInvertedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getPenInvertedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setRelative(relative: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to relative) - TransferContext.callMethod(rawPtr, MethodBindings.setRelativePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRelativePtr, NIL) } public final fun getRelative(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRelativePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getRelativePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setScreenRelative(relative: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to relative) - TransferContext.callMethod(rawPtr, MethodBindings.setScreenRelativePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setScreenRelativePtr, NIL) } public final fun getScreenRelative(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScreenRelativePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getScreenRelativePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setVelocity(velocity: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to velocity) - TransferContext.callMethod(rawPtr, MethodBindings.setVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVelocityPtr, NIL) } public final fun getVelocity(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVelocityPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getVelocityPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setScreenVelocity(velocity: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to velocity) - TransferContext.callMethod(rawPtr, MethodBindings.setScreenVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setScreenVelocityPtr, NIL) } public final fun getScreenVelocity(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScreenVelocityPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getScreenVelocityPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventPanGesture.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventPanGesture.kt index 21d173ee48..dfdfc9e8c4 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventPanGesture.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventPanGesture.kt @@ -9,12 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -71,12 +71,12 @@ public open class InputEventPanGesture : InputEventGesture() { public final fun setDelta(delta: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to delta) - TransferContext.callMethod(rawPtr, MethodBindings.setDeltaPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDeltaPtr, NIL) } public final fun getDelta(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDeltaPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getDeltaPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventScreenDrag.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventScreenDrag.kt index 622c05d4aa..cce919657b 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventScreenDrag.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventScreenDrag.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE @@ -17,7 +18,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -317,100 +317,100 @@ public open class InputEventScreenDrag : InputEventFromWindow() { public final fun setIndex(index: Int): Unit { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setIndexPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIndexPtr, NIL) } public final fun getIndex(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setTilt(tilt: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to tilt) - TransferContext.callMethod(rawPtr, MethodBindings.setTiltPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTiltPtr, NIL) } public final fun getTilt(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTiltPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getTiltPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setPressure(pressure: Float): Unit { TransferContext.writeArguments(DOUBLE to pressure.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPressurePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPressurePtr, NIL) } public final fun getPressure(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPressurePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPressurePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setPenInverted(penInverted: Boolean): Unit { TransferContext.writeArguments(BOOL to penInverted) - TransferContext.callMethod(rawPtr, MethodBindings.setPenInvertedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPenInvertedPtr, NIL) } public final fun getPenInverted(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPenInvertedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getPenInvertedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setPosition(position: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.setPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPositionPtr, NIL) } public final fun getPosition(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setRelative(relative: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to relative) - TransferContext.callMethod(rawPtr, MethodBindings.setRelativePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRelativePtr, NIL) } public final fun getRelative(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRelativePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getRelativePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setScreenRelative(relative: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to relative) - TransferContext.callMethod(rawPtr, MethodBindings.setScreenRelativePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setScreenRelativePtr, NIL) } public final fun getScreenRelative(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScreenRelativePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getScreenRelativePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setVelocity(velocity: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to velocity) - TransferContext.callMethod(rawPtr, MethodBindings.setVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVelocityPtr, NIL) } public final fun getVelocity(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVelocityPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getVelocityPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setScreenVelocity(velocity: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to velocity) - TransferContext.callMethod(rawPtr, MethodBindings.setScreenVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setScreenVelocityPtr, NIL) } public final fun getScreenVelocity(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScreenVelocityPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getScreenVelocityPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventScreenTouch.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventScreenTouch.kt index edd083b54e..943117d9ad 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventScreenTouch.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventScreenTouch.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG @@ -16,7 +17,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -118,44 +118,44 @@ public open class InputEventScreenTouch : InputEventFromWindow() { public final fun setIndex(index: Int): Unit { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setIndexPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIndexPtr, NIL) } public final fun getIndex(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setPosition(position: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.setPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPositionPtr, NIL) } public final fun getPosition(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setPressed(pressed: Boolean): Unit { TransferContext.writeArguments(BOOL to pressed) - TransferContext.callMethod(rawPtr, MethodBindings.setPressedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPressedPtr, NIL) } public final fun setCanceled(canceled: Boolean): Unit { TransferContext.writeArguments(BOOL to canceled) - TransferContext.callMethod(rawPtr, MethodBindings.setCanceledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCanceledPtr, NIL) } public final fun setDoubleTap(doubleTap: Boolean): Unit { TransferContext.writeArguments(BOOL to doubleTap) - TransferContext.callMethod(rawPtr, MethodBindings.setDoubleTapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDoubleTapPtr, NIL) } public final fun isDoubleTap(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDoubleTapPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDoubleTapPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventShortcut.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventShortcut.kt index 3925573dd6..3e447341c5 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventShortcut.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventShortcut.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -42,12 +42,12 @@ public open class InputEventShortcut : InputEvent() { public final fun setShortcut(shortcut: Shortcut?): Unit { TransferContext.writeArguments(OBJECT to shortcut) - TransferContext.callMethod(rawPtr, MethodBindings.setShortcutPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShortcutPtr, NIL) } public final fun getShortcut(): Shortcut? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getShortcutPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getShortcutPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Shortcut?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventWithModifiers.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventWithModifiers.kt index bb091b463b..6931fdb0bc 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventWithModifiers.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/InputEventWithModifiers.kt @@ -8,12 +8,12 @@ package godot import godot.KeyModifierMaskValue import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -91,12 +91,12 @@ public open class InputEventWithModifiers internal constructor() : InputEventFro public final fun setCommandOrControlAutoremap(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setCommandOrControlAutoremapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCommandOrControlAutoremapPtr, NIL) } public final fun isCommandOrControlAutoremap(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCommandOrControlAutoremapPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCommandOrControlAutoremapPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -106,51 +106,51 @@ public open class InputEventWithModifiers internal constructor() : InputEventFro */ public final fun isCommandOrControlPressed(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCommandOrControlPressedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCommandOrControlPressedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAltPressed(pressed: Boolean): Unit { TransferContext.writeArguments(BOOL to pressed) - TransferContext.callMethod(rawPtr, MethodBindings.setAltPressedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAltPressedPtr, NIL) } public final fun isAltPressed(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isAltPressedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isAltPressedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setShiftPressed(pressed: Boolean): Unit { TransferContext.writeArguments(BOOL to pressed) - TransferContext.callMethod(rawPtr, MethodBindings.setShiftPressedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShiftPressedPtr, NIL) } public final fun isShiftPressed(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isShiftPressedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isShiftPressedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCtrlPressed(pressed: Boolean): Unit { TransferContext.writeArguments(BOOL to pressed) - TransferContext.callMethod(rawPtr, MethodBindings.setCtrlPressedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCtrlPressedPtr, NIL) } public final fun isCtrlPressed(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCtrlPressedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCtrlPressedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setMetaPressed(pressed: Boolean): Unit { TransferContext.writeArguments(BOOL to pressed) - TransferContext.callMethod(rawPtr, MethodBindings.setMetaPressedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMetaPressedPtr, NIL) } public final fun isMetaPressed(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isMetaPressedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isMetaPressedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -159,7 +159,7 @@ public open class InputEventWithModifiers internal constructor() : InputEventFro */ public final fun getModifiersMask(): KeyModifierMask { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getModifiersMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getModifiersMaskPtr, LONG) return KeyModifierMaskValue(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/InputMap.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/InputMap.kt index 6bde4f84fe..2b2c05231b 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/InputMap.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/InputMap.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.StringName import godot.core.TypeManager import godot.core.VariantArray @@ -17,7 +18,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -44,7 +44,7 @@ public object InputMap : Object() { @JvmStatic public final fun hasAction(action: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to action) - TransferContext.callMethod(rawPtr, MethodBindings.hasActionPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasActionPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -54,7 +54,7 @@ public object InputMap : Object() { @JvmStatic public final fun getActions(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getActionsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getActionsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -66,7 +66,7 @@ public object InputMap : Object() { @JvmStatic public final fun addAction(action: StringName, deadzone: Float = 0.5f): Unit { TransferContext.writeArguments(STRING_NAME to action, DOUBLE to deadzone.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.addActionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addActionPtr, NIL) } /** @@ -75,7 +75,7 @@ public object InputMap : Object() { @JvmStatic public final fun eraseAction(action: StringName): Unit { TransferContext.writeArguments(STRING_NAME to action) - TransferContext.callMethod(rawPtr, MethodBindings.eraseActionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.eraseActionPtr, NIL) } /** @@ -84,7 +84,7 @@ public object InputMap : Object() { @JvmStatic public final fun actionSetDeadzone(action: StringName, deadzone: Float): Unit { TransferContext.writeArguments(STRING_NAME to action, DOUBLE to deadzone.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.actionSetDeadzonePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.actionSetDeadzonePtr, NIL) } /** @@ -93,7 +93,7 @@ public object InputMap : Object() { @JvmStatic public final fun actionGetDeadzone(action: StringName): Float { TransferContext.writeArguments(STRING_NAME to action) - TransferContext.callMethod(rawPtr, MethodBindings.actionGetDeadzonePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.actionGetDeadzonePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -103,7 +103,7 @@ public object InputMap : Object() { @JvmStatic public final fun actionAddEvent(action: StringName, event: InputEvent?): Unit { TransferContext.writeArguments(STRING_NAME to action, OBJECT to event) - TransferContext.callMethod(rawPtr, MethodBindings.actionAddEventPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.actionAddEventPtr, NIL) } /** @@ -112,7 +112,7 @@ public object InputMap : Object() { @JvmStatic public final fun actionHasEvent(action: StringName, event: InputEvent?): Boolean { TransferContext.writeArguments(STRING_NAME to action, OBJECT to event) - TransferContext.callMethod(rawPtr, MethodBindings.actionHasEventPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.actionHasEventPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -122,7 +122,7 @@ public object InputMap : Object() { @JvmStatic public final fun actionEraseEvent(action: StringName, event: InputEvent?): Unit { TransferContext.writeArguments(STRING_NAME to action, OBJECT to event) - TransferContext.callMethod(rawPtr, MethodBindings.actionEraseEventPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.actionEraseEventPtr, NIL) } /** @@ -131,7 +131,7 @@ public object InputMap : Object() { @JvmStatic public final fun actionEraseEvents(action: StringName): Unit { TransferContext.writeArguments(STRING_NAME to action) - TransferContext.callMethod(rawPtr, MethodBindings.actionEraseEventsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.actionEraseEventsPtr, NIL) } /** @@ -143,7 +143,7 @@ public object InputMap : Object() { @JvmStatic public final fun actionGetEvents(action: StringName): VariantArray { TransferContext.writeArguments(STRING_NAME to action) - TransferContext.callMethod(rawPtr, MethodBindings.actionGetEventsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.actionGetEventsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -162,7 +162,7 @@ public object InputMap : Object() { exactMatch: Boolean = false, ): Boolean { TransferContext.writeArguments(OBJECT to event, STRING_NAME to action, BOOL to exactMatch) - TransferContext.callMethod(rawPtr, MethodBindings.eventIsActionPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.eventIsActionPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -172,7 +172,7 @@ public object InputMap : Object() { @JvmStatic public final fun loadFromProjectSettings(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.loadFromProjectSettingsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.loadFromProjectSettingsPtr, NIL) } internal object MethodBindings { diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/InstancePlaceholder.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/InstancePlaceholder.kt index 577dfdf845..d8af263804 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/InstancePlaceholder.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/InstancePlaceholder.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -14,7 +15,6 @@ import godot.core.VariantParser.DICTIONARY import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -50,7 +50,7 @@ public open class InstancePlaceholder internal constructor() : Node() { @JvmOverloads public final fun getStoredValues(withOrder: Boolean = false): Dictionary { TransferContext.writeArguments(BOOL to withOrder) - TransferContext.callMethod(rawPtr, MethodBindings.getStoredValuesPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getStoredValuesPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -65,7 +65,7 @@ public open class InstancePlaceholder internal constructor() : Node() { public final fun createInstance(replace: Boolean = false, customScene: PackedScene? = null): Node? { TransferContext.writeArguments(BOOL to replace, OBJECT to customScene) - TransferContext.callMethod(rawPtr, MethodBindings.createInstancePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.createInstancePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Node?) } @@ -75,7 +75,7 @@ public open class InstancePlaceholder internal constructor() : Node() { */ public final fun getInstancePath(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInstancePathPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getInstancePathPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ItemList.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ItemList.kt index 406b01119d..5bb9ed33c1 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ItemList.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ItemList.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.PackedInt32Array import godot.core.Rect2 @@ -31,7 +32,6 @@ import godot.core.VariantParser.VECTOR2I import godot.core.Vector2 import godot.core.Vector2i import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -304,7 +304,7 @@ public open class ItemList : Control() { selectable: Boolean = true, ): Int { TransferContext.writeArguments(STRING to text, OBJECT to icon, BOOL to selectable) - TransferContext.callMethod(rawPtr, MethodBindings.addItemPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.addItemPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -314,7 +314,7 @@ public open class ItemList : Control() { @JvmOverloads public final fun addIconItem(icon: Texture2D?, selectable: Boolean = true): Int { TransferContext.writeArguments(OBJECT to icon, BOOL to selectable) - TransferContext.callMethod(rawPtr, MethodBindings.addIconItemPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.addIconItemPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -323,7 +323,7 @@ public open class ItemList : Control() { */ public final fun setItemText(idx: Int, text: String): Unit { TransferContext.writeArguments(LONG to idx.toLong(), STRING to text) - TransferContext.callMethod(rawPtr, MethodBindings.setItemTextPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemTextPtr, NIL) } /** @@ -331,7 +331,7 @@ public open class ItemList : Control() { */ public final fun getItemText(idx: Int): String { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemTextPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getItemTextPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -340,7 +340,7 @@ public open class ItemList : Control() { */ public final fun setItemIcon(idx: Int, icon: Texture2D?): Unit { TransferContext.writeArguments(LONG to idx.toLong(), OBJECT to icon) - TransferContext.callMethod(rawPtr, MethodBindings.setItemIconPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemIconPtr, NIL) } /** @@ -348,7 +348,7 @@ public open class ItemList : Control() { */ public final fun getItemIcon(idx: Int): Texture2D? { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemIconPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getItemIconPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } @@ -357,7 +357,7 @@ public open class ItemList : Control() { */ public final fun setItemTextDirection(idx: Int, direction: Control.TextDirection): Unit { TransferContext.writeArguments(LONG to idx.toLong(), LONG to direction.id) - TransferContext.callMethod(rawPtr, MethodBindings.setItemTextDirectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemTextDirectionPtr, NIL) } /** @@ -365,7 +365,7 @@ public open class ItemList : Control() { */ public final fun getItemTextDirection(idx: Int): Control.TextDirection { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemTextDirectionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getItemTextDirectionPtr, LONG) return Control.TextDirection.from(TransferContext.readReturnValue(LONG) as Long) } @@ -375,7 +375,7 @@ public open class ItemList : Control() { */ public final fun setItemLanguage(idx: Int, language: String): Unit { TransferContext.writeArguments(LONG to idx.toLong(), STRING to language) - TransferContext.callMethod(rawPtr, MethodBindings.setItemLanguagePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemLanguagePtr, NIL) } /** @@ -383,7 +383,7 @@ public open class ItemList : Control() { */ public final fun getItemLanguage(idx: Int): String { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemLanguagePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getItemLanguagePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -392,7 +392,7 @@ public open class ItemList : Control() { */ public final fun setItemIconTransposed(idx: Int, transposed: Boolean): Unit { TransferContext.writeArguments(LONG to idx.toLong(), BOOL to transposed) - TransferContext.callMethod(rawPtr, MethodBindings.setItemIconTransposedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemIconTransposedPtr, NIL) } /** @@ -400,7 +400,7 @@ public open class ItemList : Control() { */ public final fun isItemIconTransposed(idx: Int): Boolean { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isItemIconTransposedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isItemIconTransposedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -409,7 +409,7 @@ public open class ItemList : Control() { */ public final fun setItemIconRegion(idx: Int, rect: Rect2): Unit { TransferContext.writeArguments(LONG to idx.toLong(), RECT2 to rect) - TransferContext.callMethod(rawPtr, MethodBindings.setItemIconRegionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemIconRegionPtr, NIL) } /** @@ -417,7 +417,7 @@ public open class ItemList : Control() { */ public final fun getItemIconRegion(idx: Int): Rect2 { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemIconRegionPtr, RECT2) + TransferContext.callMethod(ptr, MethodBindings.getItemIconRegionPtr, RECT2) return (TransferContext.readReturnValue(RECT2) as Rect2) } @@ -426,7 +426,7 @@ public open class ItemList : Control() { */ public final fun setItemIconModulate(idx: Int, modulate: Color): Unit { TransferContext.writeArguments(LONG to idx.toLong(), COLOR to modulate) - TransferContext.callMethod(rawPtr, MethodBindings.setItemIconModulatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemIconModulatePtr, NIL) } /** @@ -434,7 +434,7 @@ public open class ItemList : Control() { */ public final fun getItemIconModulate(idx: Int): Color { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemIconModulatePtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getItemIconModulatePtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } @@ -443,7 +443,7 @@ public open class ItemList : Control() { */ public final fun setItemSelectable(idx: Int, selectable: Boolean): Unit { TransferContext.writeArguments(LONG to idx.toLong(), BOOL to selectable) - TransferContext.callMethod(rawPtr, MethodBindings.setItemSelectablePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemSelectablePtr, NIL) } /** @@ -451,7 +451,7 @@ public open class ItemList : Control() { */ public final fun isItemSelectable(idx: Int): Boolean { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isItemSelectablePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isItemSelectablePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -462,7 +462,7 @@ public open class ItemList : Control() { */ public final fun setItemDisabled(idx: Int, disabled: Boolean): Unit { TransferContext.writeArguments(LONG to idx.toLong(), BOOL to disabled) - TransferContext.callMethod(rawPtr, MethodBindings.setItemDisabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemDisabledPtr, NIL) } /** @@ -470,7 +470,7 @@ public open class ItemList : Control() { */ public final fun isItemDisabled(idx: Int): Boolean { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isItemDisabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isItemDisabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -479,7 +479,7 @@ public open class ItemList : Control() { */ public final fun setItemMetadata(idx: Int, metadata: Any?): Unit { TransferContext.writeArguments(LONG to idx.toLong(), ANY to metadata) - TransferContext.callMethod(rawPtr, MethodBindings.setItemMetadataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemMetadataPtr, NIL) } /** @@ -487,7 +487,7 @@ public open class ItemList : Control() { */ public final fun getItemMetadata(idx: Int): Any? { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemMetadataPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getItemMetadataPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -496,7 +496,7 @@ public open class ItemList : Control() { */ public final fun setItemCustomBgColor(idx: Int, customBgColor: Color): Unit { TransferContext.writeArguments(LONG to idx.toLong(), COLOR to customBgColor) - TransferContext.callMethod(rawPtr, MethodBindings.setItemCustomBgColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemCustomBgColorPtr, NIL) } /** @@ -504,7 +504,7 @@ public open class ItemList : Control() { */ public final fun getItemCustomBgColor(idx: Int): Color { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemCustomBgColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getItemCustomBgColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } @@ -513,7 +513,7 @@ public open class ItemList : Control() { */ public final fun setItemCustomFgColor(idx: Int, customFgColor: Color): Unit { TransferContext.writeArguments(LONG to idx.toLong(), COLOR to customFgColor) - TransferContext.callMethod(rawPtr, MethodBindings.setItemCustomFgColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemCustomFgColorPtr, NIL) } /** @@ -521,7 +521,7 @@ public open class ItemList : Control() { */ public final fun getItemCustomFgColor(idx: Int): Color { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemCustomFgColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getItemCustomFgColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } @@ -534,7 +534,7 @@ public open class ItemList : Control() { @JvmOverloads public final fun getItemRect(idx: Int, expand: Boolean = true): Rect2 { TransferContext.writeArguments(LONG to idx.toLong(), BOOL to expand) - TransferContext.callMethod(rawPtr, MethodBindings.getItemRectPtr, RECT2) + TransferContext.callMethod(ptr, MethodBindings.getItemRectPtr, RECT2) return (TransferContext.readReturnValue(RECT2) as Rect2) } @@ -543,7 +543,7 @@ public open class ItemList : Control() { */ public final fun setItemTooltipEnabled(idx: Int, enable: Boolean): Unit { TransferContext.writeArguments(LONG to idx.toLong(), BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setItemTooltipEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemTooltipEnabledPtr, NIL) } /** @@ -551,7 +551,7 @@ public open class ItemList : Control() { */ public final fun isItemTooltipEnabled(idx: Int): Boolean { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isItemTooltipEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isItemTooltipEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -560,7 +560,7 @@ public open class ItemList : Control() { */ public final fun setItemTooltip(idx: Int, tooltip: String): Unit { TransferContext.writeArguments(LONG to idx.toLong(), STRING to tooltip) - TransferContext.callMethod(rawPtr, MethodBindings.setItemTooltipPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemTooltipPtr, NIL) } /** @@ -568,7 +568,7 @@ public open class ItemList : Control() { */ public final fun getItemTooltip(idx: Int): String { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemTooltipPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getItemTooltipPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -579,7 +579,7 @@ public open class ItemList : Control() { @JvmOverloads public final fun select(idx: Int, single: Boolean = true): Unit { TransferContext.writeArguments(LONG to idx.toLong(), BOOL to single) - TransferContext.callMethod(rawPtr, MethodBindings.selectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.selectPtr, NIL) } /** @@ -587,7 +587,7 @@ public open class ItemList : Control() { */ public final fun deselect(idx: Int): Unit { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.deselectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.deselectPtr, NIL) } /** @@ -595,7 +595,7 @@ public open class ItemList : Control() { */ public final fun deselectAll(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.deselectAllPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.deselectAllPtr, NIL) } /** @@ -603,7 +603,7 @@ public open class ItemList : Control() { */ public final fun isSelected(idx: Int): Boolean { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isSelectedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSelectedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -612,7 +612,7 @@ public open class ItemList : Control() { */ public final fun getSelectedItems(): PackedInt32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSelectedItemsPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getSelectedItemsPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } @@ -621,17 +621,17 @@ public open class ItemList : Control() { */ public final fun moveItem(fromIdx: Int, toIdx: Int): Unit { TransferContext.writeArguments(LONG to fromIdx.toLong(), LONG to toIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.moveItemPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.moveItemPtr, NIL) } public final fun setItemCount(count: Int): Unit { TransferContext.writeArguments(LONG to count.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setItemCountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemCountPtr, NIL) } public final fun getItemCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getItemCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getItemCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -640,7 +640,7 @@ public open class ItemList : Control() { */ public final fun removeItem(idx: Int): Unit { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeItemPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeItemPtr, NIL) } /** @@ -648,7 +648,7 @@ public open class ItemList : Control() { */ public final fun clear(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPtr, NIL) } /** @@ -656,138 +656,138 @@ public open class ItemList : Control() { */ public final fun sortItemsByText(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.sortItemsByTextPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.sortItemsByTextPtr, NIL) } public final fun setFixedColumnWidth(width: Int): Unit { TransferContext.writeArguments(LONG to width.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setFixedColumnWidthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFixedColumnWidthPtr, NIL) } public final fun getFixedColumnWidth(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFixedColumnWidthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFixedColumnWidthPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setSameColumnWidth(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setSameColumnWidthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSameColumnWidthPtr, NIL) } public final fun isSameColumnWidth(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSameColumnWidthPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSameColumnWidthPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setMaxTextLines(lines: Int): Unit { TransferContext.writeArguments(LONG to lines.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxTextLinesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxTextLinesPtr, NIL) } public final fun getMaxTextLines(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxTextLinesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMaxTextLinesPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setMaxColumns(amount: Int): Unit { TransferContext.writeArguments(LONG to amount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxColumnsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxColumnsPtr, NIL) } public final fun getMaxColumns(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxColumnsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMaxColumnsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setSelectMode(mode: SelectMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setSelectModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSelectModePtr, NIL) } public final fun getSelectMode(): SelectMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSelectModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSelectModePtr, LONG) return ItemList.SelectMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setIconMode(mode: IconMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setIconModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIconModePtr, NIL) } public final fun getIconMode(): IconMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getIconModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getIconModePtr, LONG) return ItemList.IconMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setFixedIconSize(size: Vector2i): Unit { TransferContext.writeArguments(VECTOR2I to size) - TransferContext.callMethod(rawPtr, MethodBindings.setFixedIconSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFixedIconSizePtr, NIL) } public final fun getFixedIconSize(): Vector2i { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFixedIconSizePtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getFixedIconSizePtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } public final fun setIconScale(scale: Float): Unit { TransferContext.writeArguments(DOUBLE to scale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setIconScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIconScalePtr, NIL) } public final fun getIconScale(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getIconScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getIconScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAllowRmbSelect(allow: Boolean): Unit { TransferContext.writeArguments(BOOL to allow) - TransferContext.callMethod(rawPtr, MethodBindings.setAllowRmbSelectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAllowRmbSelectPtr, NIL) } public final fun getAllowRmbSelect(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAllowRmbSelectPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getAllowRmbSelectPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAllowReselect(allow: Boolean): Unit { TransferContext.writeArguments(BOOL to allow) - TransferContext.callMethod(rawPtr, MethodBindings.setAllowReselectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAllowReselectPtr, NIL) } public final fun getAllowReselect(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAllowReselectPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getAllowReselectPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAllowSearch(allow: Boolean): Unit { TransferContext.writeArguments(BOOL to allow) - TransferContext.callMethod(rawPtr, MethodBindings.setAllowSearchPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAllowSearchPtr, NIL) } public final fun getAllowSearch(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAllowSearchPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getAllowSearchPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAutoHeight(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setAutoHeightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutoHeightPtr, NIL) } public final fun hasAutoHeight(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasAutoHeightPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasAutoHeightPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -796,7 +796,7 @@ public open class ItemList : Control() { */ public final fun isAnythingSelected(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isAnythingSelectedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isAnythingSelectedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -810,7 +810,7 @@ public open class ItemList : Control() { @JvmOverloads public final fun getItemAtPosition(position: Vector2, exact: Boolean = false): Int { TransferContext.writeArguments(VECTOR2 to position, BOOL to exact) - TransferContext.callMethod(rawPtr, MethodBindings.getItemAtPositionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getItemAtPositionPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -819,7 +819,7 @@ public open class ItemList : Control() { */ public final fun ensureCurrentIsVisible(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.ensureCurrentIsVisiblePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.ensureCurrentIsVisiblePtr, NIL) } /** @@ -829,18 +829,18 @@ public open class ItemList : Control() { */ public final fun getVScrollBar(): VScrollBar? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVScrollBarPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getVScrollBarPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as VScrollBar?) } public final fun setTextOverrunBehavior(overrunBehavior: TextServer.OverrunBehavior): Unit { TransferContext.writeArguments(LONG to overrunBehavior.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTextOverrunBehaviorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextOverrunBehaviorPtr, NIL) } public final fun getTextOverrunBehavior(): TextServer.OverrunBehavior { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextOverrunBehaviorPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTextOverrunBehaviorPtr, LONG) return TextServer.OverrunBehavior.from(TransferContext.readReturnValue(LONG) as Long) } @@ -851,7 +851,7 @@ public open class ItemList : Control() { */ public final fun forceUpdateListSize(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.forceUpdateListSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.forceUpdateListSizePtr, NIL) } public enum class IconMode( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/JSON.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/JSON.kt index 8d17bde99d..a46be09d4e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/JSON.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/JSON.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantCaster.ANY import godot.core.VariantParser.BOOL @@ -14,7 +15,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -96,19 +96,19 @@ public open class JSON : Resource() { @JvmOverloads public final fun parse(jsonText: String, keepText: Boolean = false): Error { TransferContext.writeArguments(STRING to jsonText, BOOL to keepText) - TransferContext.callMethod(rawPtr, MethodBindings.parsePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.parsePtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } public final fun getData(): Any? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDataPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getDataPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } public final fun setData(`data`: Any?): Unit { TransferContext.writeArguments(ANY to data) - TransferContext.callMethod(rawPtr, MethodBindings.setDataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDataPtr, NIL) } /** @@ -116,7 +116,7 @@ public open class JSON : Resource() { */ public final fun getParsedText(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getParsedTextPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getParsedTextPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -126,7 +126,7 @@ public open class JSON : Resource() { */ public final fun getErrorLine(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getErrorLinePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getErrorLinePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -136,7 +136,7 @@ public open class JSON : Resource() { */ public final fun getErrorMessage(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getErrorMessagePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getErrorMessagePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/JSONRPC.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/JSONRPC.kt index 6d3c162c3b..9e24551f54 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/JSONRPC.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/JSONRPC.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.TypeManager import godot.core.VariantCaster.ANY @@ -17,7 +18,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -42,7 +42,7 @@ public open class JSONRPC : Object() { public final fun setScope(scope: String, target: Object?): Unit { TransferContext.writeArguments(STRING to scope, OBJECT to target) - TransferContext.callMethod(rawPtr, MethodBindings.setScopePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setScopePtr, NIL) } /** @@ -57,13 +57,13 @@ public open class JSONRPC : Object() { @JvmOverloads public final fun processAction(action: Any?, recurse: Boolean = false): Any? { TransferContext.writeArguments(ANY to action, BOOL to recurse) - TransferContext.callMethod(rawPtr, MethodBindings.processActionPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.processActionPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } public final fun processString(action: String): String { TransferContext.writeArguments(STRING to action) - TransferContext.callMethod(rawPtr, MethodBindings.processStringPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.processStringPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -82,7 +82,7 @@ public open class JSONRPC : Object() { id: Any?, ): Dictionary { TransferContext.writeArguments(STRING to method, ANY to params, ANY to id) - TransferContext.callMethod(rawPtr, MethodBindings.makeRequestPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.makeRequestPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -94,7 +94,7 @@ public open class JSONRPC : Object() { */ public final fun makeResponse(result: Any?, id: Any?): Dictionary { TransferContext.writeArguments(ANY to result, ANY to id) - TransferContext.callMethod(rawPtr, MethodBindings.makeResponsePtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.makeResponsePtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -106,7 +106,7 @@ public open class JSONRPC : Object() { */ public final fun makeNotification(method: String, params: Any?): Dictionary { TransferContext.writeArguments(STRING to method, ANY to params) - TransferContext.callMethod(rawPtr, MethodBindings.makeNotificationPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.makeNotificationPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -124,7 +124,7 @@ public open class JSONRPC : Object() { id: Any? = null, ): Dictionary { TransferContext.writeArguments(LONG to code.toLong(), STRING to message, ANY to id) - TransferContext.callMethod(rawPtr, MethodBindings.makeResponseErrorPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.makeResponseErrorPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/JavaClassWrapper.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/JavaClassWrapper.kt index 8140297795..1100dfb255 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/JavaClassWrapper.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/JavaClassWrapper.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.String import kotlin.Suppress @@ -39,7 +39,7 @@ public object JavaClassWrapper : Object() { @JvmStatic public final fun wrap(name: String): JavaClass? { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.wrapPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.wrapPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as JavaClass?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/JavaScriptBridge.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/JavaScriptBridge.kt index 6ddb3bb24e..c9c54235d0 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/JavaScriptBridge.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/JavaScriptBridge.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.PackedByteArray import godot.core.Signal0 @@ -20,7 +21,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -66,7 +66,7 @@ public object JavaScriptBridge : Object() { @JvmStatic public final fun eval(code: String, useGlobalExecutionContext: Boolean = false): Any? { TransferContext.writeArguments(STRING to code, BOOL to useGlobalExecutionContext) - TransferContext.callMethod(rawPtr, MethodBindings.evalPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.evalPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -78,7 +78,7 @@ public object JavaScriptBridge : Object() { @JvmStatic public final fun getInterface(`interface`: String): JavaScriptObject? { TransferContext.writeArguments(STRING to `interface`) - TransferContext.callMethod(rawPtr, MethodBindings.getInterfacePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getInterfacePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as JavaScriptObject?) } @@ -90,7 +90,7 @@ public object JavaScriptBridge : Object() { @JvmStatic public final fun createCallback(callable: Callable): JavaScriptObject? { TransferContext.writeArguments(CALLABLE to callable) - TransferContext.callMethod(rawPtr, MethodBindings.createCallbackPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.createCallbackPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as JavaScriptObject?) } @@ -101,7 +101,7 @@ public object JavaScriptBridge : Object() { @JvmStatic public final fun createObject(`object`: String, vararg __var_args: Any?): Any? { TransferContext.writeArguments(STRING to `object`, *__var_args.map { ANY to it }.toTypedArray()) - TransferContext.callMethod(rawPtr, MethodBindings.createObjectPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.createObjectPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -123,7 +123,7 @@ public object JavaScriptBridge : Object() { mime: String = "application/octet-stream", ): Unit { TransferContext.writeArguments(PACKED_BYTE_ARRAY to buffer, STRING to name, STRING to mime) - TransferContext.callMethod(rawPtr, MethodBindings.downloadBufferPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.downloadBufferPtr, NIL) } /** @@ -133,7 +133,7 @@ public object JavaScriptBridge : Object() { @JvmStatic public final fun pwaNeedsUpdate(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.pwaNeedsUpdatePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.pwaNeedsUpdatePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -147,7 +147,7 @@ public object JavaScriptBridge : Object() { @JvmStatic public final fun pwaUpdate(): Error { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.pwaUpdatePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.pwaUpdatePtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -159,7 +159,7 @@ public object JavaScriptBridge : Object() { @JvmStatic public final fun forceFsSync(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.forceFsSyncPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.forceFsSyncPtr, NIL) } internal object MethodBindings { diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Joint2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Joint2D.kt index 5b2ef919d0..3e0dcf216d 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Joint2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Joint2D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.RID import godot.core.TypeManager @@ -16,7 +17,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.VariantParser._RID import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -85,45 +85,45 @@ public open class Joint2D internal constructor() : Node2D() { public final fun setNodeA(node: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to node) - TransferContext.callMethod(rawPtr, MethodBindings.setNodeAPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNodeAPtr, NIL) } public final fun getNodeA(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNodeAPtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getNodeAPtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } public final fun setNodeB(node: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to node) - TransferContext.callMethod(rawPtr, MethodBindings.setNodeBPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNodeBPtr, NIL) } public final fun getNodeB(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNodeBPtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getNodeBPtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } public final fun setBias(bias: Float): Unit { TransferContext.writeArguments(DOUBLE to bias.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setBiasPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBiasPtr, NIL) } public final fun getBias(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBiasPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getBiasPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setExcludeNodesFromCollision(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setExcludeNodesFromCollisionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExcludeNodesFromCollisionPtr, NIL) } public final fun getExcludeNodesFromCollision(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getExcludeNodesFromCollisionPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getExcludeNodesFromCollisionPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -132,7 +132,7 @@ public open class Joint2D internal constructor() : Node2D() { */ public final fun getRid(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRidPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getRidPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Joint3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Joint3D.kt index 6a1745f5e1..f4a91fd03e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Joint3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Joint3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.RID import godot.core.TypeManager @@ -16,7 +17,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.VariantParser._RID import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -86,45 +86,45 @@ public open class Joint3D internal constructor() : Node3D() { public final fun setNodeA(node: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to node) - TransferContext.callMethod(rawPtr, MethodBindings.setNodeAPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNodeAPtr, NIL) } public final fun getNodeA(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNodeAPtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getNodeAPtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } public final fun setNodeB(node: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to node) - TransferContext.callMethod(rawPtr, MethodBindings.setNodeBPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNodeBPtr, NIL) } public final fun getNodeB(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNodeBPtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getNodeBPtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } public final fun setSolverPriority(priority: Int): Unit { TransferContext.writeArguments(LONG to priority.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSolverPriorityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSolverPriorityPtr, NIL) } public final fun getSolverPriority(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSolverPriorityPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSolverPriorityPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setExcludeNodesFromCollision(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setExcludeNodesFromCollisionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExcludeNodesFromCollisionPtr, NIL) } public final fun getExcludeNodesFromCollision(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getExcludeNodesFromCollisionPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getExcludeNodesFromCollisionPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -133,7 +133,7 @@ public open class Joint3D internal constructor() : Node3D() { */ public final fun getRid(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRidPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getRidPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/JvmScript.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/JvmScript.kt index 4db425d005..f1f6d8ae9c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/JvmScript.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/JvmScript.kt @@ -7,10 +7,10 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantCaster.ANY import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Int import kotlin.Suppress @@ -24,7 +24,7 @@ public open class JvmScript internal constructor() : Script() { public final fun new(vararg __var_args: Any?): Any? { TransferContext.writeArguments( *__var_args.map { ANY to it }.toTypedArray()) - TransferContext.callMethod(rawPtr, MethodBindings.newPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.newPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/KinematicCollision2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/KinematicCollision2D.kt index 1300404719..b3791b9c6a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/KinematicCollision2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/KinematicCollision2D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.TypeManager import godot.core.VariantParser.DOUBLE @@ -16,7 +17,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -43,7 +43,7 @@ public open class KinematicCollision2D : RefCounted() { */ public final fun getPosition(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -52,7 +52,7 @@ public open class KinematicCollision2D : RefCounted() { */ public final fun getNormal(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNormalPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getNormalPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -61,7 +61,7 @@ public open class KinematicCollision2D : RefCounted() { */ public final fun getTravel(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTravelPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getTravelPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -70,7 +70,7 @@ public open class KinematicCollision2D : RefCounted() { */ public final fun getRemainder(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRemainderPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getRemainderPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -81,7 +81,7 @@ public open class KinematicCollision2D : RefCounted() { @JvmOverloads public final fun getAngle(upDirection: Vector2 = Vector2(0, -1)): Float { TransferContext.writeArguments(VECTOR2 to upDirection) - TransferContext.callMethod(rawPtr, MethodBindings.getAnglePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAnglePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -90,7 +90,7 @@ public open class KinematicCollision2D : RefCounted() { */ public final fun getDepth(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDepthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDepthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -99,7 +99,7 @@ public open class KinematicCollision2D : RefCounted() { */ public final fun getLocalShape(): Object? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLocalShapePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getLocalShapePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Object?) } @@ -108,7 +108,7 @@ public open class KinematicCollision2D : RefCounted() { */ public final fun getCollider(): Object? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColliderPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getColliderPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Object?) } @@ -118,7 +118,7 @@ public open class KinematicCollision2D : RefCounted() { */ public final fun getColliderId(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColliderIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getColliderIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -127,7 +127,7 @@ public open class KinematicCollision2D : RefCounted() { */ public final fun getColliderRid(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColliderRidPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getColliderRidPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -136,7 +136,7 @@ public open class KinematicCollision2D : RefCounted() { */ public final fun getColliderShape(): Object? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColliderShapePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getColliderShapePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Object?) } @@ -145,7 +145,7 @@ public open class KinematicCollision2D : RefCounted() { */ public final fun getColliderShapeIndex(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColliderShapeIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getColliderShapeIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -154,7 +154,7 @@ public open class KinematicCollision2D : RefCounted() { */ public final fun getColliderVelocity(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColliderVelocityPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getColliderVelocityPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/KinematicCollision3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/KinematicCollision3D.kt index 132d29a518..4a0bfa9eb7 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/KinematicCollision3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/KinematicCollision3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.TypeManager import godot.core.VariantParser.DOUBLE @@ -16,7 +17,6 @@ import godot.core.VariantParser.VECTOR3 import godot.core.VariantParser._RID import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -43,7 +43,7 @@ public open class KinematicCollision3D : RefCounted() { */ public final fun getTravel(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTravelPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getTravelPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -52,7 +52,7 @@ public open class KinematicCollision3D : RefCounted() { */ public final fun getRemainder(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRemainderPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getRemainderPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -61,7 +61,7 @@ public open class KinematicCollision3D : RefCounted() { */ public final fun getDepth(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDepthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDepthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -70,7 +70,7 @@ public open class KinematicCollision3D : RefCounted() { */ public final fun getCollisionCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCollisionCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -81,7 +81,7 @@ public open class KinematicCollision3D : RefCounted() { @JvmOverloads public final fun getPosition(collisionIndex: Int = 0): Vector3 { TransferContext.writeArguments(LONG to collisionIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getPositionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getPositionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -92,7 +92,7 @@ public open class KinematicCollision3D : RefCounted() { @JvmOverloads public final fun getNormal(collisionIndex: Int = 0): Vector3 { TransferContext.writeArguments(LONG to collisionIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getNormalPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getNormalPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -104,7 +104,7 @@ public open class KinematicCollision3D : RefCounted() { public final fun getAngle(collisionIndex: Int = 0, upDirection: Vector3 = Vector3(0, 1, 0)): Float { TransferContext.writeArguments(LONG to collisionIndex.toLong(), VECTOR3 to upDirection) - TransferContext.callMethod(rawPtr, MethodBindings.getAnglePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAnglePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -115,7 +115,7 @@ public open class KinematicCollision3D : RefCounted() { @JvmOverloads public final fun getLocalShape(collisionIndex: Int = 0): Object? { TransferContext.writeArguments(LONG to collisionIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getLocalShapePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getLocalShapePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Object?) } @@ -126,7 +126,7 @@ public open class KinematicCollision3D : RefCounted() { @JvmOverloads public final fun getCollider(collisionIndex: Int = 0): Object? { TransferContext.writeArguments(LONG to collisionIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getColliderPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getColliderPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Object?) } @@ -137,7 +137,7 @@ public open class KinematicCollision3D : RefCounted() { @JvmOverloads public final fun getColliderId(collisionIndex: Int = 0): Long { TransferContext.writeArguments(LONG to collisionIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getColliderIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getColliderIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -148,7 +148,7 @@ public open class KinematicCollision3D : RefCounted() { @JvmOverloads public final fun getColliderRid(collisionIndex: Int = 0): RID { TransferContext.writeArguments(LONG to collisionIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getColliderRidPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getColliderRidPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -158,7 +158,7 @@ public open class KinematicCollision3D : RefCounted() { @JvmOverloads public final fun getColliderShape(collisionIndex: Int = 0): Object? { TransferContext.writeArguments(LONG to collisionIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getColliderShapePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getColliderShapePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Object?) } @@ -169,7 +169,7 @@ public open class KinematicCollision3D : RefCounted() { @JvmOverloads public final fun getColliderShapeIndex(collisionIndex: Int = 0): Int { TransferContext.writeArguments(LONG to collisionIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getColliderShapeIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getColliderShapeIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -180,7 +180,7 @@ public open class KinematicCollision3D : RefCounted() { @JvmOverloads public final fun getColliderVelocity(collisionIndex: Int = 0): Vector3 { TransferContext.writeArguments(LONG to collisionIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getColliderVelocityPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getColliderVelocityPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Label.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Label.kt index fe3c91c407..cbc98284e1 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Label.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Label.kt @@ -8,6 +8,7 @@ package godot import godot.TextServer.JustificationFlagValue import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedFloat32Array import godot.core.Rect2 import godot.core.TypeManager @@ -22,7 +23,6 @@ import godot.core.VariantParser.PACKED_FLOAT_32_ARRAY import godot.core.VariantParser.RECT2 import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -283,144 +283,144 @@ public open class Label : Control() { public final fun setHorizontalAlignment(alignment: HorizontalAlignment): Unit { TransferContext.writeArguments(LONG to alignment.id) - TransferContext.callMethod(rawPtr, MethodBindings.setHorizontalAlignmentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHorizontalAlignmentPtr, NIL) } public final fun getHorizontalAlignment(): HorizontalAlignment { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHorizontalAlignmentPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getHorizontalAlignmentPtr, LONG) return HorizontalAlignment.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setVerticalAlignment(alignment: VerticalAlignment): Unit { TransferContext.writeArguments(LONG to alignment.id) - TransferContext.callMethod(rawPtr, MethodBindings.setVerticalAlignmentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVerticalAlignmentPtr, NIL) } public final fun getVerticalAlignment(): VerticalAlignment { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVerticalAlignmentPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVerticalAlignmentPtr, LONG) return VerticalAlignment.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setText(text: String): Unit { TransferContext.writeArguments(STRING to text) - TransferContext.callMethod(rawPtr, MethodBindings.setTextPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextPtr, NIL) } public final fun getText(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getTextPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setLabelSettings(settings: LabelSettings?): Unit { TransferContext.writeArguments(OBJECT to settings) - TransferContext.callMethod(rawPtr, MethodBindings.setLabelSettingsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLabelSettingsPtr, NIL) } public final fun getLabelSettings(): LabelSettings? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLabelSettingsPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getLabelSettingsPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as LabelSettings?) } public final fun setTextDirection(direction: Control.TextDirection): Unit { TransferContext.writeArguments(LONG to direction.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTextDirectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextDirectionPtr, NIL) } public final fun getTextDirection(): Control.TextDirection { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextDirectionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTextDirectionPtr, LONG) return Control.TextDirection.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setLanguage(language: String): Unit { TransferContext.writeArguments(STRING to language) - TransferContext.callMethod(rawPtr, MethodBindings.setLanguagePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLanguagePtr, NIL) } public final fun getLanguage(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLanguagePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getLanguagePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setAutowrapMode(autowrapMode: TextServer.AutowrapMode): Unit { TransferContext.writeArguments(LONG to autowrapMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setAutowrapModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutowrapModePtr, NIL) } public final fun getAutowrapMode(): TextServer.AutowrapMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAutowrapModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAutowrapModePtr, LONG) return TextServer.AutowrapMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setJustificationFlags(justificationFlags: TextServer.JustificationFlag): Unit { TransferContext.writeArguments(LONG to justificationFlags.flag) - TransferContext.callMethod(rawPtr, MethodBindings.setJustificationFlagsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setJustificationFlagsPtr, NIL) } public final fun getJustificationFlags(): TextServer.JustificationFlag { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getJustificationFlagsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getJustificationFlagsPtr, LONG) return JustificationFlagValue(TransferContext.readReturnValue(LONG) as Long) } public final fun setClipText(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setClipTextPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setClipTextPtr, NIL) } public final fun isClippingText(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isClippingTextPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isClippingTextPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setTabStops(tabStops: PackedFloat32Array): Unit { TransferContext.writeArguments(PACKED_FLOAT_32_ARRAY to tabStops) - TransferContext.callMethod(rawPtr, MethodBindings.setTabStopsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTabStopsPtr, NIL) } public final fun getTabStops(): PackedFloat32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTabStopsPtr, PACKED_FLOAT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getTabStopsPtr, PACKED_FLOAT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_FLOAT_32_ARRAY) as PackedFloat32Array) } public final fun setTextOverrunBehavior(overrunBehavior: TextServer.OverrunBehavior): Unit { TransferContext.writeArguments(LONG to overrunBehavior.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTextOverrunBehaviorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextOverrunBehaviorPtr, NIL) } public final fun getTextOverrunBehavior(): TextServer.OverrunBehavior { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextOverrunBehaviorPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTextOverrunBehaviorPtr, LONG) return TextServer.OverrunBehavior.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setEllipsisChar(char: String): Unit { TransferContext.writeArguments(STRING to char) - TransferContext.callMethod(rawPtr, MethodBindings.setEllipsisCharPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEllipsisCharPtr, NIL) } public final fun getEllipsisChar(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEllipsisCharPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getEllipsisCharPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setUppercase(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setUppercasePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUppercasePtr, NIL) } public final fun isUppercase(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUppercasePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUppercasePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -432,7 +432,7 @@ public open class Label : Control() { @JvmOverloads public final fun getLineHeight(line: Int = -1): Int { TransferContext.writeArguments(LONG to line.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getLineHeightPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLineHeightPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -441,7 +441,7 @@ public open class Label : Control() { */ public final fun getLineCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLineCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLineCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -451,7 +451,7 @@ public open class Label : Control() { */ public final fun getVisibleLineCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVisibleLineCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVisibleLineCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -460,86 +460,85 @@ public open class Label : Control() { */ public final fun getTotalCharacterCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTotalCharacterCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTotalCharacterCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setVisibleCharacters(amount: Int): Unit { TransferContext.writeArguments(LONG to amount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setVisibleCharactersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVisibleCharactersPtr, NIL) } public final fun getVisibleCharacters(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVisibleCharactersPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVisibleCharactersPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun getVisibleCharactersBehavior(): TextServer.VisibleCharactersBehavior { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVisibleCharactersBehaviorPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVisibleCharactersBehaviorPtr, LONG) return TextServer.VisibleCharactersBehavior.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setVisibleCharactersBehavior(behavior: TextServer.VisibleCharactersBehavior): Unit { TransferContext.writeArguments(LONG to behavior.id) - TransferContext.callMethod(rawPtr, MethodBindings.setVisibleCharactersBehaviorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVisibleCharactersBehaviorPtr, NIL) } public final fun setVisibleRatio(ratio: Float): Unit { TransferContext.writeArguments(DOUBLE to ratio.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVisibleRatioPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVisibleRatioPtr, NIL) } public final fun getVisibleRatio(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVisibleRatioPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVisibleRatioPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setLinesSkipped(linesSkipped: Int): Unit { TransferContext.writeArguments(LONG to linesSkipped.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setLinesSkippedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLinesSkippedPtr, NIL) } public final fun getLinesSkipped(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLinesSkippedPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLinesSkippedPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setMaxLinesVisible(linesVisible: Int): Unit { TransferContext.writeArguments(LONG to linesVisible.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxLinesVisiblePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxLinesVisiblePtr, NIL) } public final fun getMaxLinesVisible(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxLinesVisiblePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMaxLinesVisiblePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setStructuredTextBidiOverride(parser: TextServer.StructuredTextParser): Unit { TransferContext.writeArguments(LONG to parser.id) - TransferContext.callMethod(rawPtr, MethodBindings.setStructuredTextBidiOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStructuredTextBidiOverridePtr, NIL) } public final fun getStructuredTextBidiOverride(): TextServer.StructuredTextParser { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStructuredTextBidiOverridePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getStructuredTextBidiOverridePtr, LONG) return TextServer.StructuredTextParser.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setStructuredTextBidiOverrideOptions(args: VariantArray): Unit { TransferContext.writeArguments(ARRAY to args) - TransferContext.callMethod(rawPtr, MethodBindings.setStructuredTextBidiOverrideOptionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStructuredTextBidiOverrideOptionsPtr, NIL) } public final fun getStructuredTextBidiOverrideOptions(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStructuredTextBidiOverrideOptionsPtr, - ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getStructuredTextBidiOverrideOptionsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -551,7 +550,7 @@ public open class Label : Control() { */ public final fun getCharacterBounds(pos: Int): Rect2 { TransferContext.writeArguments(LONG to pos.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCharacterBoundsPtr, RECT2) + TransferContext.callMethod(ptr, MethodBindings.getCharacterBoundsPtr, RECT2) return (TransferContext.readReturnValue(RECT2) as Rect2) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Label3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Label3D.kt index 26065e3917..744c1e5a5d 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Label3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Label3D.kt @@ -10,6 +10,7 @@ import godot.TextServer.JustificationFlagValue import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.TypeManager import godot.core.VariantArray @@ -24,7 +25,6 @@ import godot.core.VariantParser.STRING import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -496,233 +496,232 @@ public open class Label3D : GeometryInstance3D() { public final fun setHorizontalAlignment(alignment: HorizontalAlignment): Unit { TransferContext.writeArguments(LONG to alignment.id) - TransferContext.callMethod(rawPtr, MethodBindings.setHorizontalAlignmentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHorizontalAlignmentPtr, NIL) } public final fun getHorizontalAlignment(): HorizontalAlignment { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHorizontalAlignmentPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getHorizontalAlignmentPtr, LONG) return HorizontalAlignment.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setVerticalAlignment(alignment: VerticalAlignment): Unit { TransferContext.writeArguments(LONG to alignment.id) - TransferContext.callMethod(rawPtr, MethodBindings.setVerticalAlignmentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVerticalAlignmentPtr, NIL) } public final fun getVerticalAlignment(): VerticalAlignment { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVerticalAlignmentPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVerticalAlignmentPtr, LONG) return VerticalAlignment.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setModulate(modulate: Color): Unit { TransferContext.writeArguments(COLOR to modulate) - TransferContext.callMethod(rawPtr, MethodBindings.setModulatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setModulatePtr, NIL) } public final fun getModulate(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getModulatePtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getModulatePtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setOutlineModulate(modulate: Color): Unit { TransferContext.writeArguments(COLOR to modulate) - TransferContext.callMethod(rawPtr, MethodBindings.setOutlineModulatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOutlineModulatePtr, NIL) } public final fun getOutlineModulate(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOutlineModulatePtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getOutlineModulatePtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setText(text: String): Unit { TransferContext.writeArguments(STRING to text) - TransferContext.callMethod(rawPtr, MethodBindings.setTextPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextPtr, NIL) } public final fun getText(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getTextPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setTextDirection(direction: TextServer.Direction): Unit { TransferContext.writeArguments(LONG to direction.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTextDirectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextDirectionPtr, NIL) } public final fun getTextDirection(): TextServer.Direction { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextDirectionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTextDirectionPtr, LONG) return TextServer.Direction.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setLanguage(language: String): Unit { TransferContext.writeArguments(STRING to language) - TransferContext.callMethod(rawPtr, MethodBindings.setLanguagePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLanguagePtr, NIL) } public final fun getLanguage(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLanguagePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getLanguagePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setStructuredTextBidiOverride(parser: TextServer.StructuredTextParser): Unit { TransferContext.writeArguments(LONG to parser.id) - TransferContext.callMethod(rawPtr, MethodBindings.setStructuredTextBidiOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStructuredTextBidiOverridePtr, NIL) } public final fun getStructuredTextBidiOverride(): TextServer.StructuredTextParser { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStructuredTextBidiOverridePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getStructuredTextBidiOverridePtr, LONG) return TextServer.StructuredTextParser.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setStructuredTextBidiOverrideOptions(args: VariantArray): Unit { TransferContext.writeArguments(ARRAY to args) - TransferContext.callMethod(rawPtr, MethodBindings.setStructuredTextBidiOverrideOptionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStructuredTextBidiOverrideOptionsPtr, NIL) } public final fun getStructuredTextBidiOverrideOptions(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStructuredTextBidiOverrideOptionsPtr, - ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getStructuredTextBidiOverrideOptionsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } public final fun setUppercase(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setUppercasePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUppercasePtr, NIL) } public final fun isUppercase(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUppercasePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUppercasePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setRenderPriority(priority: Int): Unit { TransferContext.writeArguments(LONG to priority.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setRenderPriorityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRenderPriorityPtr, NIL) } public final fun getRenderPriority(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRenderPriorityPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getRenderPriorityPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setOutlineRenderPriority(priority: Int): Unit { TransferContext.writeArguments(LONG to priority.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setOutlineRenderPriorityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOutlineRenderPriorityPtr, NIL) } public final fun getOutlineRenderPriority(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOutlineRenderPriorityPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOutlineRenderPriorityPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setFont(font: Font?): Unit { TransferContext.writeArguments(OBJECT to font) - TransferContext.callMethod(rawPtr, MethodBindings.setFontPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFontPtr, NIL) } public final fun getFont(): Font? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFontPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getFontPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Font?) } public final fun setFontSize(size: Int): Unit { TransferContext.writeArguments(LONG to size.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setFontSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFontSizePtr, NIL) } public final fun getFontSize(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFontSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFontSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setOutlineSize(outlineSize: Int): Unit { TransferContext.writeArguments(LONG to outlineSize.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setOutlineSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOutlineSizePtr, NIL) } public final fun getOutlineSize(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOutlineSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOutlineSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setLineSpacing(lineSpacing: Float): Unit { TransferContext.writeArguments(DOUBLE to lineSpacing.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setLineSpacingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLineSpacingPtr, NIL) } public final fun getLineSpacing(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLineSpacingPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLineSpacingPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAutowrapMode(autowrapMode: TextServer.AutowrapMode): Unit { TransferContext.writeArguments(LONG to autowrapMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setAutowrapModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutowrapModePtr, NIL) } public final fun getAutowrapMode(): TextServer.AutowrapMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAutowrapModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAutowrapModePtr, LONG) return TextServer.AutowrapMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setJustificationFlags(justificationFlags: TextServer.JustificationFlag): Unit { TransferContext.writeArguments(LONG to justificationFlags.flag) - TransferContext.callMethod(rawPtr, MethodBindings.setJustificationFlagsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setJustificationFlagsPtr, NIL) } public final fun getJustificationFlags(): TextServer.JustificationFlag { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getJustificationFlagsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getJustificationFlagsPtr, LONG) return JustificationFlagValue(TransferContext.readReturnValue(LONG) as Long) } public final fun setWidth(width: Float): Unit { TransferContext.writeArguments(DOUBLE to width.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setWidthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setWidthPtr, NIL) } public final fun getWidth(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWidthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getWidthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setPixelSize(pixelSize: Float): Unit { TransferContext.writeArguments(DOUBLE to pixelSize.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPixelSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPixelSizePtr, NIL) } public final fun getPixelSize(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPixelSizePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPixelSizePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setOffset(offset: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.setOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOffsetPtr, NIL) } public final fun getOffset(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOffsetPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getOffsetPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -731,7 +730,7 @@ public open class Label3D : GeometryInstance3D() { */ public final fun setDrawFlag(flag: DrawFlags, enabled: Boolean): Unit { TransferContext.writeArguments(LONG to flag.id, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDrawFlagPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDrawFlagPtr, NIL) } /** @@ -739,84 +738,84 @@ public open class Label3D : GeometryInstance3D() { */ public final fun getDrawFlag(flag: DrawFlags): Boolean { TransferContext.writeArguments(LONG to flag.id) - TransferContext.callMethod(rawPtr, MethodBindings.getDrawFlagPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getDrawFlagPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setBillboardMode(mode: BaseMaterial3D.BillboardMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setBillboardModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBillboardModePtr, NIL) } public final fun getBillboardMode(): BaseMaterial3D.BillboardMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBillboardModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBillboardModePtr, LONG) return BaseMaterial3D.BillboardMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setAlphaCutMode(mode: AlphaCutMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setAlphaCutModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAlphaCutModePtr, NIL) } public final fun getAlphaCutMode(): AlphaCutMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAlphaCutModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAlphaCutModePtr, LONG) return Label3D.AlphaCutMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setAlphaScissorThreshold(threshold: Float): Unit { TransferContext.writeArguments(DOUBLE to threshold.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAlphaScissorThresholdPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAlphaScissorThresholdPtr, NIL) } public final fun getAlphaScissorThreshold(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAlphaScissorThresholdPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAlphaScissorThresholdPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAlphaHashScale(threshold: Float): Unit { TransferContext.writeArguments(DOUBLE to threshold.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAlphaHashScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAlphaHashScalePtr, NIL) } public final fun getAlphaHashScale(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAlphaHashScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAlphaHashScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAlphaAntialiasing(alphaAa: BaseMaterial3D.AlphaAntiAliasing): Unit { TransferContext.writeArguments(LONG to alphaAa.id) - TransferContext.callMethod(rawPtr, MethodBindings.setAlphaAntialiasingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAlphaAntialiasingPtr, NIL) } public final fun getAlphaAntialiasing(): BaseMaterial3D.AlphaAntiAliasing { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAlphaAntialiasingPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAlphaAntialiasingPtr, LONG) return BaseMaterial3D.AlphaAntiAliasing.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setAlphaAntialiasingEdge(edge: Float): Unit { TransferContext.writeArguments(DOUBLE to edge.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAlphaAntialiasingEdgePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAlphaAntialiasingEdgePtr, NIL) } public final fun getAlphaAntialiasingEdge(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAlphaAntialiasingEdgePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAlphaAntialiasingEdgePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setTextureFilter(mode: BaseMaterial3D.TextureFilter): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureFilterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureFilterPtr, NIL) } public final fun getTextureFilter(): BaseMaterial3D.TextureFilter { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextureFilterPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTextureFilterPtr, LONG) return BaseMaterial3D.TextureFilter.from(TransferContext.readReturnValue(LONG) as Long) } @@ -826,7 +825,7 @@ public open class Label3D : GeometryInstance3D() { */ public final fun generateTriangleMesh(): TriangleMesh? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.generateTriangleMeshPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.generateTriangleMeshPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as TriangleMesh?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/LabelSettings.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/LabelSettings.kt index c949b966a0..946e941585 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/LabelSettings.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/LabelSettings.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.TypeManager import godot.core.VariantParser.COLOR @@ -19,7 +20,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -241,100 +241,100 @@ public open class LabelSettings : Resource() { public final fun setLineSpacing(spacing: Float): Unit { TransferContext.writeArguments(DOUBLE to spacing.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setLineSpacingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLineSpacingPtr, NIL) } public final fun getLineSpacing(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLineSpacingPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLineSpacingPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setFont(font: Font?): Unit { TransferContext.writeArguments(OBJECT to font) - TransferContext.callMethod(rawPtr, MethodBindings.setFontPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFontPtr, NIL) } public final fun getFont(): Font? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFontPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getFontPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Font?) } public final fun setFontSize(size: Int): Unit { TransferContext.writeArguments(LONG to size.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setFontSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFontSizePtr, NIL) } public final fun getFontSize(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFontSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFontSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setFontColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setFontColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFontColorPtr, NIL) } public final fun getFontColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFontColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getFontColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setOutlineSize(size: Int): Unit { TransferContext.writeArguments(LONG to size.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setOutlineSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOutlineSizePtr, NIL) } public final fun getOutlineSize(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOutlineSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOutlineSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setOutlineColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setOutlineColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOutlineColorPtr, NIL) } public final fun getOutlineColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOutlineColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getOutlineColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setShadowSize(size: Int): Unit { TransferContext.writeArguments(LONG to size.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setShadowSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShadowSizePtr, NIL) } public final fun getShadowSize(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getShadowSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getShadowSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setShadowColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setShadowColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShadowColorPtr, NIL) } public final fun getShadowColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getShadowColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getShadowColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setShadowOffset(offset: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.setShadowOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShadowOffsetPtr, NIL) } public final fun getShadowOffset(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getShadowOffsetPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getShadowOffsetPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Light2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Light2D.kt index aa8ae39c70..add89854f5 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Light2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Light2D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -17,7 +18,6 @@ import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -261,166 +261,166 @@ public open class Light2D internal constructor() : Node2D() { public final fun setEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnabledPtr, NIL) } public final fun isEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setEditorOnly(editorOnly: Boolean): Unit { TransferContext.writeArguments(BOOL to editorOnly) - TransferContext.callMethod(rawPtr, MethodBindings.setEditorOnlyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEditorOnlyPtr, NIL) } public final fun isEditorOnly(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isEditorOnlyPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isEditorOnlyPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColorPtr, NIL) } public final fun getColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setEnergy(energy: Float): Unit { TransferContext.writeArguments(DOUBLE to energy.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setEnergyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnergyPtr, NIL) } public final fun getEnergy(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnergyPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getEnergyPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setZRangeMin(z: Int): Unit { TransferContext.writeArguments(LONG to z.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setZRangeMinPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setZRangeMinPtr, NIL) } public final fun getZRangeMin(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getZRangeMinPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getZRangeMinPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setZRangeMax(z: Int): Unit { TransferContext.writeArguments(LONG to z.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setZRangeMaxPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setZRangeMaxPtr, NIL) } public final fun getZRangeMax(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getZRangeMaxPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getZRangeMaxPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setLayerRangeMin(layer: Int): Unit { TransferContext.writeArguments(LONG to layer.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setLayerRangeMinPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLayerRangeMinPtr, NIL) } public final fun getLayerRangeMin(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLayerRangeMinPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLayerRangeMinPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setLayerRangeMax(layer: Int): Unit { TransferContext.writeArguments(LONG to layer.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setLayerRangeMaxPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLayerRangeMaxPtr, NIL) } public final fun getLayerRangeMax(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLayerRangeMaxPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLayerRangeMaxPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setItemCullMask(itemCullMask: Int): Unit { TransferContext.writeArguments(LONG to itemCullMask.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setItemCullMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemCullMaskPtr, NIL) } public final fun getItemCullMask(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getItemCullMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getItemCullMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setItemShadowCullMask(itemShadowCullMask: Int): Unit { TransferContext.writeArguments(LONG to itemShadowCullMask.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setItemShadowCullMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemShadowCullMaskPtr, NIL) } public final fun getItemShadowCullMask(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getItemShadowCullMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getItemShadowCullMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setShadowEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setShadowEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShadowEnabledPtr, NIL) } public final fun isShadowEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isShadowEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isShadowEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setShadowSmooth(smooth: Float): Unit { TransferContext.writeArguments(DOUBLE to smooth.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setShadowSmoothPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShadowSmoothPtr, NIL) } public final fun getShadowSmooth(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getShadowSmoothPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getShadowSmoothPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setShadowFilter(filter: ShadowFilter): Unit { TransferContext.writeArguments(LONG to filter.id) - TransferContext.callMethod(rawPtr, MethodBindings.setShadowFilterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShadowFilterPtr, NIL) } public final fun getShadowFilter(): ShadowFilter { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getShadowFilterPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getShadowFilterPtr, LONG) return Light2D.ShadowFilter.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setShadowColor(shadowColor: Color): Unit { TransferContext.writeArguments(COLOR to shadowColor) - TransferContext.callMethod(rawPtr, MethodBindings.setShadowColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShadowColorPtr, NIL) } public final fun getShadowColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getShadowColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getShadowColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setBlendMode(mode: BlendMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setBlendModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBlendModePtr, NIL) } public final fun getBlendMode(): BlendMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBlendModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBlendModePtr, LONG) return Light2D.BlendMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -430,7 +430,7 @@ public open class Light2D internal constructor() : Node2D() { */ public final fun setHeight(height: Float): Unit { TransferContext.writeArguments(DOUBLE to height.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setHeightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHeightPtr, NIL) } /** @@ -439,7 +439,7 @@ public open class Light2D internal constructor() : Node2D() { */ public final fun getHeight(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHeightPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getHeightPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Light3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Light3D.kt index 0646c7cb6e..59930a76dd 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Light3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Light3D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -18,7 +19,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -432,12 +432,12 @@ public open class Light3D internal constructor() : VisualInstance3D() { public final fun setEditorOnly(editorOnly: Boolean): Unit { TransferContext.writeArguments(BOOL to editorOnly) - TransferContext.callMethod(rawPtr, MethodBindings.setEditorOnlyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEditorOnlyPtr, NIL) } public final fun isEditorOnly(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isEditorOnlyPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isEditorOnlyPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -446,7 +446,7 @@ public open class Light3D internal constructor() : VisualInstance3D() { */ public final fun setParam(`param`: Param, `value`: Float): Unit { TransferContext.writeArguments(LONG to param.id, DOUBLE to value.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setParamPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setParamPtr, NIL) } /** @@ -454,139 +454,139 @@ public open class Light3D internal constructor() : VisualInstance3D() { */ public final fun getParam(`param`: Param): Float { TransferContext.writeArguments(LONG to param.id) - TransferContext.callMethod(rawPtr, MethodBindings.getParamPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getParamPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setShadow(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setShadowPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShadowPtr, NIL) } public final fun hasShadow(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasShadowPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasShadowPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setNegative(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setNegativePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNegativePtr, NIL) } public final fun isNegative(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isNegativePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isNegativePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCullMask(cullMask: Long): Unit { TransferContext.writeArguments(LONG to cullMask) - TransferContext.callMethod(rawPtr, MethodBindings.setCullMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCullMaskPtr, NIL) } public final fun getCullMask(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCullMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCullMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setEnableDistanceFade(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setEnableDistanceFadePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnableDistanceFadePtr, NIL) } public final fun isDistanceFadeEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDistanceFadeEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDistanceFadeEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDistanceFadeBegin(distance: Float): Unit { TransferContext.writeArguments(DOUBLE to distance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDistanceFadeBeginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDistanceFadeBeginPtr, NIL) } public final fun getDistanceFadeBegin(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDistanceFadeBeginPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDistanceFadeBeginPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDistanceFadeShadow(distance: Float): Unit { TransferContext.writeArguments(DOUBLE to distance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDistanceFadeShadowPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDistanceFadeShadowPtr, NIL) } public final fun getDistanceFadeShadow(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDistanceFadeShadowPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDistanceFadeShadowPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDistanceFadeLength(distance: Float): Unit { TransferContext.writeArguments(DOUBLE to distance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDistanceFadeLengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDistanceFadeLengthPtr, NIL) } public final fun getDistanceFadeLength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDistanceFadeLengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDistanceFadeLengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColorPtr, NIL) } public final fun getColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setShadowReverseCullFace(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setShadowReverseCullFacePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShadowReverseCullFacePtr, NIL) } public final fun getShadowReverseCullFace(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getShadowReverseCullFacePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getShadowReverseCullFacePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setBakeMode(bakeMode: BakeMode): Unit { TransferContext.writeArguments(LONG to bakeMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setBakeModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBakeModePtr, NIL) } public final fun getBakeMode(): BakeMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBakeModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBakeModePtr, LONG) return Light3D.BakeMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setProjector(projector: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to projector) - TransferContext.callMethod(rawPtr, MethodBindings.setProjectorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setProjectorPtr, NIL) } public final fun getProjector(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getProjectorPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getProjectorPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } public final fun setTemperature(temperature: Float): Unit { TransferContext.writeArguments(DOUBLE to temperature.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTemperaturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTemperaturePtr, NIL) } public final fun getTemperature(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTemperaturePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTemperaturePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -597,7 +597,7 @@ public open class Light3D internal constructor() : VisualInstance3D() { */ public final fun getCorrelatedColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCorrelatedColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getCorrelatedColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/LightOccluder2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/LightOccluder2D.kt index f4270a8bd1..17c738f807 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/LightOccluder2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/LightOccluder2D.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -68,34 +68,34 @@ public open class LightOccluder2D : Node2D() { public final fun setOccluderPolygon(polygon: OccluderPolygon2D?): Unit { TransferContext.writeArguments(OBJECT to polygon) - TransferContext.callMethod(rawPtr, MethodBindings.setOccluderPolygonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOccluderPolygonPtr, NIL) } public final fun getOccluderPolygon(): OccluderPolygon2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOccluderPolygonPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getOccluderPolygonPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as OccluderPolygon2D?) } public final fun setOccluderLightMask(mask: Int): Unit { TransferContext.writeArguments(LONG to mask.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setOccluderLightMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOccluderLightMaskPtr, NIL) } public final fun getOccluderLightMask(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOccluderLightMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOccluderLightMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setAsSdfCollision(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setAsSdfCollisionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAsSdfCollisionPtr, NIL) } public final fun isSetAsSdfCollision(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSetAsSdfCollisionPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSetAsSdfCollisionPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/LightmapGI.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/LightmapGI.kt index 80eade92aa..605208910f 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/LightmapGI.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/LightmapGI.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -18,7 +19,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -344,210 +344,210 @@ public open class LightmapGI : VisualInstance3D() { public final fun setLightData(`data`: LightmapGIData?): Unit { TransferContext.writeArguments(OBJECT to data) - TransferContext.callMethod(rawPtr, MethodBindings.setLightDataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLightDataPtr, NIL) } public final fun getLightData(): LightmapGIData? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLightDataPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getLightDataPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as LightmapGIData?) } public final fun setBakeQuality(bakeQuality: BakeQuality): Unit { TransferContext.writeArguments(LONG to bakeQuality.id) - TransferContext.callMethod(rawPtr, MethodBindings.setBakeQualityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBakeQualityPtr, NIL) } public final fun getBakeQuality(): BakeQuality { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBakeQualityPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBakeQualityPtr, LONG) return LightmapGI.BakeQuality.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setBounces(bounces: Int): Unit { TransferContext.writeArguments(LONG to bounces.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setBouncesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBouncesPtr, NIL) } public final fun getBounces(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBouncesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBouncesPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setBounceIndirectEnergy(bounceIndirectEnergy: Float): Unit { TransferContext.writeArguments(DOUBLE to bounceIndirectEnergy.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setBounceIndirectEnergyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBounceIndirectEnergyPtr, NIL) } public final fun getBounceIndirectEnergy(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBounceIndirectEnergyPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getBounceIndirectEnergyPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setGenerateProbes(subdivision: GenerateProbes): Unit { TransferContext.writeArguments(LONG to subdivision.id) - TransferContext.callMethod(rawPtr, MethodBindings.setGenerateProbesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGenerateProbesPtr, NIL) } public final fun getGenerateProbes(): GenerateProbes { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGenerateProbesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getGenerateProbesPtr, LONG) return LightmapGI.GenerateProbes.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setBias(bias: Float): Unit { TransferContext.writeArguments(DOUBLE to bias.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setBiasPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBiasPtr, NIL) } public final fun getBias(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBiasPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getBiasPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setEnvironmentMode(mode: EnvironmentMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setEnvironmentModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnvironmentModePtr, NIL) } public final fun getEnvironmentMode(): EnvironmentMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnvironmentModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getEnvironmentModePtr, LONG) return LightmapGI.EnvironmentMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setEnvironmentCustomSky(sky: Sky?): Unit { TransferContext.writeArguments(OBJECT to sky) - TransferContext.callMethod(rawPtr, MethodBindings.setEnvironmentCustomSkyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnvironmentCustomSkyPtr, NIL) } public final fun getEnvironmentCustomSky(): Sky? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnvironmentCustomSkyPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getEnvironmentCustomSkyPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Sky?) } public final fun setEnvironmentCustomColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setEnvironmentCustomColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnvironmentCustomColorPtr, NIL) } public final fun getEnvironmentCustomColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnvironmentCustomColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getEnvironmentCustomColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setEnvironmentCustomEnergy(energy: Float): Unit { TransferContext.writeArguments(DOUBLE to energy.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setEnvironmentCustomEnergyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnvironmentCustomEnergyPtr, NIL) } public final fun getEnvironmentCustomEnergy(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnvironmentCustomEnergyPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getEnvironmentCustomEnergyPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setTexelScale(texelScale: Float): Unit { TransferContext.writeArguments(DOUBLE to texelScale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTexelScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTexelScalePtr, NIL) } public final fun getTexelScale(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTexelScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTexelScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setMaxTextureSize(maxTextureSize: Int): Unit { TransferContext.writeArguments(LONG to maxTextureSize.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxTextureSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxTextureSizePtr, NIL) } public final fun getMaxTextureSize(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxTextureSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMaxTextureSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setUseDenoiser(useDenoiser: Boolean): Unit { TransferContext.writeArguments(BOOL to useDenoiser) - TransferContext.callMethod(rawPtr, MethodBindings.setUseDenoiserPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseDenoiserPtr, NIL) } public final fun isUsingDenoiser(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUsingDenoiserPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUsingDenoiserPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDenoiserStrength(denoiserStrength: Float): Unit { TransferContext.writeArguments(DOUBLE to denoiserStrength.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDenoiserStrengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDenoiserStrengthPtr, NIL) } public final fun getDenoiserStrength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDenoiserStrengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDenoiserStrengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDenoiserRange(denoiserRange: Int): Unit { TransferContext.writeArguments(LONG to denoiserRange.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setDenoiserRangePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDenoiserRangePtr, NIL) } public final fun getDenoiserRange(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDenoiserRangePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDenoiserRangePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setInterior(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setInteriorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInteriorPtr, NIL) } public final fun isInterior(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isInteriorPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isInteriorPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDirectional(directional: Boolean): Unit { TransferContext.writeArguments(BOOL to directional) - TransferContext.callMethod(rawPtr, MethodBindings.setDirectionalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDirectionalPtr, NIL) } public final fun isDirectional(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDirectionalPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDirectionalPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setUseTextureForBounces(useTextureForBounces: Boolean): Unit { TransferContext.writeArguments(BOOL to useTextureForBounces) - TransferContext.callMethod(rawPtr, MethodBindings.setUseTextureForBouncesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseTextureForBouncesPtr, NIL) } public final fun isUsingTextureForBounces(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUsingTextureForBouncesPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUsingTextureForBouncesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCameraAttributes(cameraAttributes: CameraAttributes?): Unit { TransferContext.writeArguments(OBJECT to cameraAttributes) - TransferContext.callMethod(rawPtr, MethodBindings.setCameraAttributesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCameraAttributesPtr, NIL) } public final fun getCameraAttributes(): CameraAttributes? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCameraAttributesPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getCameraAttributesPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as CameraAttributes?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/LightmapGIData.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/LightmapGIData.kt index d4fdccb9b5..202528d4b2 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/LightmapGIData.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/LightmapGIData.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.Rect2 import godot.core.TypeManager @@ -19,7 +20,6 @@ import godot.core.VariantParser.NODE_PATH import godot.core.VariantParser.OBJECT import godot.core.VariantParser.RECT2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -69,12 +69,12 @@ public open class LightmapGIData : Resource() { public final fun setLightmapTextures(lightTextures: VariantArray): Unit { TransferContext.writeArguments(ARRAY to lightTextures) - TransferContext.callMethod(rawPtr, MethodBindings.setLightmapTexturesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLightmapTexturesPtr, NIL) } public final fun getLightmapTextures(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLightmapTexturesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getLightmapTexturesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -88,7 +88,7 @@ public open class LightmapGIData : Resource() { */ public final fun setUsesSphericalHarmonics(usesSphericalHarmonics: Boolean): Unit { TransferContext.writeArguments(BOOL to usesSphericalHarmonics) - TransferContext.callMethod(rawPtr, MethodBindings.setUsesSphericalHarmonicsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUsesSphericalHarmonicsPtr, NIL) } /** @@ -97,7 +97,7 @@ public open class LightmapGIData : Resource() { */ public final fun isUsingSphericalHarmonics(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUsingSphericalHarmonicsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUsingSphericalHarmonicsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -111,7 +111,7 @@ public open class LightmapGIData : Resource() { subInstance: Int, ): Unit { TransferContext.writeArguments(NODE_PATH to path, RECT2 to uvScale, LONG to sliceIndex.toLong(), LONG to subInstance.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addUserPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addUserPtr, NIL) } /** @@ -119,7 +119,7 @@ public open class LightmapGIData : Resource() { */ public final fun getUserCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUserCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getUserCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -128,7 +128,7 @@ public open class LightmapGIData : Resource() { */ public final fun getUserPath(userIdx: Int): NodePath { TransferContext.writeArguments(LONG to userIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getUserPathPtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getUserPathPtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } @@ -137,17 +137,17 @@ public open class LightmapGIData : Resource() { */ public final fun clearUsers(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearUsersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearUsersPtr, NIL) } public final fun setLightTexture(lightTexture: TextureLayered?): Unit { TransferContext.writeArguments(OBJECT to lightTexture) - TransferContext.callMethod(rawPtr, MethodBindings.setLightTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLightTexturePtr, NIL) } public final fun getLightTexture(): TextureLayered? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLightTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getLightTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as TextureLayered?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Line2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Line2D.kt index 346353701e..14058739c3 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Line2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Line2D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.PackedVector2Array import godot.core.TypeManager @@ -22,7 +23,6 @@ import godot.core.VariantParser.PACKED_VECTOR2_ARRAY import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -243,12 +243,12 @@ public open class Line2D : Node2D() { public final fun setPoints(points: PackedVector2Array): Unit { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to points) - TransferContext.callMethod(rawPtr, MethodBindings.setPointsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPointsPtr, NIL) } public final fun getPoints(): PackedVector2Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPointsPtr, PACKED_VECTOR2_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getPointsPtr, PACKED_VECTOR2_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR2_ARRAY) as PackedVector2Array) } @@ -257,7 +257,7 @@ public open class Line2D : Node2D() { */ public final fun setPointPosition(index: Int, position: Vector2): Unit { TransferContext.writeArguments(LONG to index.toLong(), VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.setPointPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPointPositionPtr, NIL) } /** @@ -265,7 +265,7 @@ public open class Line2D : Node2D() { */ public final fun getPointPosition(index: Int): Vector2 { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getPointPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getPointPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -274,7 +274,7 @@ public open class Line2D : Node2D() { */ public final fun getPointCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPointCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPointCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -288,7 +288,7 @@ public open class Line2D : Node2D() { @JvmOverloads public final fun addPoint(position: Vector2, index: Int = -1): Unit { TransferContext.writeArguments(VECTOR2 to position, LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addPointPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addPointPtr, NIL) } /** @@ -296,7 +296,7 @@ public open class Line2D : Node2D() { */ public final fun removePoint(index: Int): Unit { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removePointPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removePointPtr, NIL) } /** @@ -304,149 +304,149 @@ public open class Line2D : Node2D() { */ public final fun clearPoints(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearPointsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPointsPtr, NIL) } public final fun setClosed(closed: Boolean): Unit { TransferContext.writeArguments(BOOL to closed) - TransferContext.callMethod(rawPtr, MethodBindings.setClosedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setClosedPtr, NIL) } public final fun isClosed(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isClosedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isClosedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setWidth(width: Float): Unit { TransferContext.writeArguments(DOUBLE to width.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setWidthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setWidthPtr, NIL) } public final fun getWidth(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWidthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getWidthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setCurve(curve: Curve?): Unit { TransferContext.writeArguments(OBJECT to curve) - TransferContext.callMethod(rawPtr, MethodBindings.setCurvePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCurvePtr, NIL) } public final fun getCurve(): Curve? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCurvePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getCurvePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Curve?) } public final fun setDefaultColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setDefaultColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDefaultColorPtr, NIL) } public final fun getDefaultColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDefaultColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getDefaultColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setGradient(color: Gradient?): Unit { TransferContext.writeArguments(OBJECT to color) - TransferContext.callMethod(rawPtr, MethodBindings.setGradientPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGradientPtr, NIL) } public final fun getGradient(): Gradient? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGradientPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getGradientPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Gradient?) } public final fun setTexture(texture: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTexturePtr, NIL) } public final fun getTexture(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } public final fun setTextureMode(mode: LineTextureMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureModePtr, NIL) } public final fun getTextureMode(): LineTextureMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextureModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTextureModePtr, LONG) return Line2D.LineTextureMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setJointMode(mode: LineJointMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setJointModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setJointModePtr, NIL) } public final fun getJointMode(): LineJointMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getJointModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getJointModePtr, LONG) return Line2D.LineJointMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setBeginCapMode(mode: LineCapMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setBeginCapModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBeginCapModePtr, NIL) } public final fun getBeginCapMode(): LineCapMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBeginCapModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBeginCapModePtr, LONG) return Line2D.LineCapMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setEndCapMode(mode: LineCapMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setEndCapModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEndCapModePtr, NIL) } public final fun getEndCapMode(): LineCapMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEndCapModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getEndCapModePtr, LONG) return Line2D.LineCapMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setSharpLimit(limit: Float): Unit { TransferContext.writeArguments(DOUBLE to limit.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSharpLimitPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSharpLimitPtr, NIL) } public final fun getSharpLimit(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSharpLimitPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSharpLimitPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setRoundPrecision(precision: Int): Unit { TransferContext.writeArguments(LONG to precision.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setRoundPrecisionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRoundPrecisionPtr, NIL) } public final fun getRoundPrecision(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRoundPrecisionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getRoundPrecisionPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setAntialiased(antialiased: Boolean): Unit { TransferContext.writeArguments(BOOL to antialiased) - TransferContext.callMethod(rawPtr, MethodBindings.setAntialiasedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAntialiasedPtr, NIL) } public final fun getAntialiased(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAntialiasedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getAntialiasedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/LineEdit.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/LineEdit.kt index 5af10a3753..e73c2cf829 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/LineEdit.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/LineEdit.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal1 import godot.core.TypeManager import godot.core.VariantArray @@ -18,7 +19,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -450,12 +450,12 @@ public open class LineEdit : Control() { public final fun setHorizontalAlignment(alignment: HorizontalAlignment): Unit { TransferContext.writeArguments(LONG to alignment.id) - TransferContext.callMethod(rawPtr, MethodBindings.setHorizontalAlignmentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHorizontalAlignmentPtr, NIL) } public final fun getHorizontalAlignment(): HorizontalAlignment { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHorizontalAlignmentPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getHorizontalAlignmentPtr, LONG) return HorizontalAlignment.from(TransferContext.readReturnValue(LONG) as Long) } @@ -464,7 +464,7 @@ public open class LineEdit : Control() { */ public final fun clear(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPtr, NIL) } /** @@ -489,7 +489,7 @@ public open class LineEdit : Control() { @JvmOverloads public final fun select(from: Int = 0, to: Int = -1): Unit { TransferContext.writeArguments(LONG to from.toLong(), LONG to to.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.selectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.selectPtr, NIL) } /** @@ -497,7 +497,7 @@ public open class LineEdit : Control() { */ public final fun selectAll(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.selectAllPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.selectAllPtr, NIL) } /** @@ -505,7 +505,7 @@ public open class LineEdit : Control() { */ public final fun deselect(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.deselectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.deselectPtr, NIL) } /** @@ -513,7 +513,7 @@ public open class LineEdit : Control() { */ public final fun hasSelection(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasSelectionPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasSelectionPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -522,7 +522,7 @@ public open class LineEdit : Control() { */ public final fun getSelectedText(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSelectedTextPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getSelectedTextPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -531,7 +531,7 @@ public open class LineEdit : Control() { */ public final fun getSelectionFromColumn(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSelectionFromColumnPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSelectionFromColumnPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -540,96 +540,95 @@ public open class LineEdit : Control() { */ public final fun getSelectionToColumn(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSelectionToColumnPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSelectionToColumnPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setText(text: String): Unit { TransferContext.writeArguments(STRING to text) - TransferContext.callMethod(rawPtr, MethodBindings.setTextPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextPtr, NIL) } public final fun getText(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getTextPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun getDrawControlChars(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDrawControlCharsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getDrawControlCharsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDrawControlChars(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setDrawControlCharsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDrawControlCharsPtr, NIL) } public final fun setTextDirection(direction: Control.TextDirection): Unit { TransferContext.writeArguments(LONG to direction.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTextDirectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextDirectionPtr, NIL) } public final fun getTextDirection(): Control.TextDirection { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextDirectionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTextDirectionPtr, LONG) return Control.TextDirection.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setLanguage(language: String): Unit { TransferContext.writeArguments(STRING to language) - TransferContext.callMethod(rawPtr, MethodBindings.setLanguagePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLanguagePtr, NIL) } public final fun getLanguage(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLanguagePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getLanguagePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setStructuredTextBidiOverride(parser: TextServer.StructuredTextParser): Unit { TransferContext.writeArguments(LONG to parser.id) - TransferContext.callMethod(rawPtr, MethodBindings.setStructuredTextBidiOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStructuredTextBidiOverridePtr, NIL) } public final fun getStructuredTextBidiOverride(): TextServer.StructuredTextParser { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStructuredTextBidiOverridePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getStructuredTextBidiOverridePtr, LONG) return TextServer.StructuredTextParser.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setStructuredTextBidiOverrideOptions(args: VariantArray): Unit { TransferContext.writeArguments(ARRAY to args) - TransferContext.callMethod(rawPtr, MethodBindings.setStructuredTextBidiOverrideOptionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStructuredTextBidiOverrideOptionsPtr, NIL) } public final fun getStructuredTextBidiOverrideOptions(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStructuredTextBidiOverrideOptionsPtr, - ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getStructuredTextBidiOverrideOptionsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } public final fun setPlaceholder(text: String): Unit { TransferContext.writeArguments(STRING to text) - TransferContext.callMethod(rawPtr, MethodBindings.setPlaceholderPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPlaceholderPtr, NIL) } public final fun getPlaceholder(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPlaceholderPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getPlaceholderPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setCaretColumn(position: Int): Unit { TransferContext.writeArguments(LONG to position.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setCaretColumnPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCaretColumnPtr, NIL) } public final fun getCaretColumn(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCaretColumnPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCaretColumnPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -638,73 +637,73 @@ public open class LineEdit : Control() { */ public final fun getScrollOffset(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScrollOffsetPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getScrollOffsetPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setExpandToTextLengthEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setExpandToTextLengthEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExpandToTextLengthEnabledPtr, NIL) } public final fun isExpandToTextLengthEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isExpandToTextLengthEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isExpandToTextLengthEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCaretBlinkEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setCaretBlinkEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCaretBlinkEnabledPtr, NIL) } public final fun isCaretBlinkEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCaretBlinkEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCaretBlinkEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCaretMidGraphemeEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setCaretMidGraphemeEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCaretMidGraphemeEnabledPtr, NIL) } public final fun isCaretMidGraphemeEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCaretMidGraphemeEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCaretMidGraphemeEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCaretForceDisplayed(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setCaretForceDisplayedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCaretForceDisplayedPtr, NIL) } public final fun isCaretForceDisplayed(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCaretForceDisplayedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCaretForceDisplayedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCaretBlinkInterval(interval: Float): Unit { TransferContext.writeArguments(DOUBLE to interval.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setCaretBlinkIntervalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCaretBlinkIntervalPtr, NIL) } public final fun getCaretBlinkInterval(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCaretBlinkIntervalPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCaretBlinkIntervalPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setMaxLength(chars: Int): Unit { TransferContext.writeArguments(LONG to chars.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxLengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxLengthPtr, NIL) } public final fun getMaxLength(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxLengthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMaxLengthPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -714,7 +713,7 @@ public open class LineEdit : Control() { */ public final fun insertTextAtCaret(text: String): Unit { TransferContext.writeArguments(STRING to text) - TransferContext.callMethod(rawPtr, MethodBindings.insertTextAtCaretPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.insertTextAtCaretPtr, NIL) } /** @@ -723,7 +722,7 @@ public open class LineEdit : Control() { */ public final fun deleteCharAtCaret(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.deleteCharAtCaretPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.deleteCharAtCaretPtr, NIL) } /** @@ -732,39 +731,39 @@ public open class LineEdit : Control() { */ public final fun deleteText(fromColumn: Int, toColumn: Int): Unit { TransferContext.writeArguments(LONG to fromColumn.toLong(), LONG to toColumn.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.deleteTextPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.deleteTextPtr, NIL) } public final fun setEditable(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setEditablePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEditablePtr, NIL) } public final fun isEditable(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isEditablePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isEditablePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSecret(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setSecretPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSecretPtr, NIL) } public final fun isSecret(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSecretPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSecretPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSecretCharacter(character: String): Unit { TransferContext.writeArguments(STRING to character) - TransferContext.callMethod(rawPtr, MethodBindings.setSecretCharacterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSecretCharacterPtr, NIL) } public final fun getSecretCharacter(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSecretCharacterPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getSecretCharacterPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -773,7 +772,7 @@ public open class LineEdit : Control() { */ public final fun menuOption(option: Int): Unit { TransferContext.writeArguments(LONG to option.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.menuOptionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.menuOptionPtr, NIL) } /** @@ -826,7 +825,7 @@ public open class LineEdit : Control() { */ public final fun getMenu(): PopupMenu? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMenuPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getMenuPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as PopupMenu?) } @@ -836,139 +835,139 @@ public open class LineEdit : Control() { */ public final fun isMenuVisible(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isMenuVisiblePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isMenuVisiblePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setContextMenuEnabled(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setContextMenuEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setContextMenuEnabledPtr, NIL) } public final fun isContextMenuEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isContextMenuEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isContextMenuEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setVirtualKeyboardEnabled(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setVirtualKeyboardEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVirtualKeyboardEnabledPtr, NIL) } public final fun isVirtualKeyboardEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isVirtualKeyboardEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isVirtualKeyboardEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setVirtualKeyboardType(type: VirtualKeyboardType): Unit { TransferContext.writeArguments(LONG to type.id) - TransferContext.callMethod(rawPtr, MethodBindings.setVirtualKeyboardTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVirtualKeyboardTypePtr, NIL) } public final fun getVirtualKeyboardType(): VirtualKeyboardType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVirtualKeyboardTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVirtualKeyboardTypePtr, LONG) return LineEdit.VirtualKeyboardType.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setClearButtonEnabled(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setClearButtonEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setClearButtonEnabledPtr, NIL) } public final fun isClearButtonEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isClearButtonEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isClearButtonEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setShortcutKeysEnabled(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setShortcutKeysEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShortcutKeysEnabledPtr, NIL) } public final fun isShortcutKeysEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isShortcutKeysEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isShortcutKeysEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setMiddleMousePasteEnabled(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setMiddleMousePasteEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMiddleMousePasteEnabledPtr, NIL) } public final fun isMiddleMousePasteEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isMiddleMousePasteEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isMiddleMousePasteEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSelectingEnabled(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setSelectingEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSelectingEnabledPtr, NIL) } public final fun isSelectingEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSelectingEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSelectingEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDeselectOnFocusLossEnabled(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setDeselectOnFocusLossEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDeselectOnFocusLossEnabledPtr, NIL) } public final fun isDeselectOnFocusLossEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDeselectOnFocusLossEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDeselectOnFocusLossEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDragAndDropSelectionEnabled(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setDragAndDropSelectionEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDragAndDropSelectionEnabledPtr, NIL) } public final fun isDragAndDropSelectionEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDragAndDropSelectionEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDragAndDropSelectionEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setRightIcon(icon: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to icon) - TransferContext.callMethod(rawPtr, MethodBindings.setRightIconPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRightIconPtr, NIL) } public final fun getRightIcon(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRightIconPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getRightIconPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } public final fun setFlat(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setFlatPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFlatPtr, NIL) } public final fun isFlat(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isFlatPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isFlatPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSelectAllOnFocus(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setSelectAllOnFocusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSelectAllOnFocusPtr, NIL) } public final fun isSelectAllOnFocus(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSelectAllOnFocusPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSelectAllOnFocusPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/LinkButton.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/LinkButton.kt index d8d7e8c87a..b25634f072 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/LinkButton.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/LinkButton.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY @@ -14,7 +15,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Int import kotlin.Long @@ -131,79 +131,78 @@ public open class LinkButton : BaseButton() { public final fun setText(text: String): Unit { TransferContext.writeArguments(STRING to text) - TransferContext.callMethod(rawPtr, MethodBindings.setTextPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextPtr, NIL) } public final fun getText(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getTextPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setTextDirection(direction: Control.TextDirection): Unit { TransferContext.writeArguments(LONG to direction.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTextDirectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextDirectionPtr, NIL) } public final fun getTextDirection(): Control.TextDirection { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextDirectionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTextDirectionPtr, LONG) return Control.TextDirection.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setLanguage(language: String): Unit { TransferContext.writeArguments(STRING to language) - TransferContext.callMethod(rawPtr, MethodBindings.setLanguagePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLanguagePtr, NIL) } public final fun getLanguage(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLanguagePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getLanguagePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setUri(uri: String): Unit { TransferContext.writeArguments(STRING to uri) - TransferContext.callMethod(rawPtr, MethodBindings.setUriPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUriPtr, NIL) } public final fun getUri(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUriPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getUriPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setUnderlineMode(underlineMode: UnderlineMode): Unit { TransferContext.writeArguments(LONG to underlineMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setUnderlineModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUnderlineModePtr, NIL) } public final fun getUnderlineMode(): UnderlineMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUnderlineModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getUnderlineModePtr, LONG) return LinkButton.UnderlineMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setStructuredTextBidiOverride(parser: TextServer.StructuredTextParser): Unit { TransferContext.writeArguments(LONG to parser.id) - TransferContext.callMethod(rawPtr, MethodBindings.setStructuredTextBidiOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStructuredTextBidiOverridePtr, NIL) } public final fun getStructuredTextBidiOverride(): TextServer.StructuredTextParser { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStructuredTextBidiOverridePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getStructuredTextBidiOverridePtr, LONG) return TextServer.StructuredTextParser.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setStructuredTextBidiOverrideOptions(args: VariantArray): Unit { TransferContext.writeArguments(ARRAY to args) - TransferContext.callMethod(rawPtr, MethodBindings.setStructuredTextBidiOverrideOptionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStructuredTextBidiOverrideOptionsPtr, NIL) } public final fun getStructuredTextBidiOverrideOptions(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStructuredTextBidiOverrideOptionsPtr, - ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getStructuredTextBidiOverrideOptionsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Marker2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Marker2D.kt index 0b00994159..b44a9d345c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Marker2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Marker2D.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -43,12 +43,12 @@ public open class Marker2D : Node2D() { public final fun setGizmoExtents(extents: Float): Unit { TransferContext.writeArguments(DOUBLE to extents.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setGizmoExtentsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGizmoExtentsPtr, NIL) } public final fun getGizmoExtents(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGizmoExtentsPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getGizmoExtentsPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Marker3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Marker3D.kt index 40d6a1a784..7d6222e9ee 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Marker3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Marker3D.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -42,12 +42,12 @@ public open class Marker3D : Node3D() { public final fun setGizmoExtents(extents: Float): Unit { TransferContext.writeArguments(DOUBLE to extents.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setGizmoExtentsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGizmoExtentsPtr, NIL) } public final fun getGizmoExtents(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGizmoExtentsPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getGizmoExtentsPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Marshalls.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Marshalls.kt index aa7f3e2ead..e8d50903fa 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Marshalls.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Marshalls.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedByteArray import godot.core.TypeManager import godot.core.VariantCaster.ANY @@ -14,7 +15,6 @@ import godot.core.VariantParser.BOOL import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -42,7 +42,7 @@ public object Marshalls : Object() { @JvmStatic public final fun variantToBase64(variant: Any?, fullObjects: Boolean = false): String { TransferContext.writeArguments(ANY to variant, BOOL to fullObjects) - TransferContext.callMethod(rawPtr, MethodBindings.variantToBase64Ptr, STRING) + TransferContext.callMethod(ptr, MethodBindings.variantToBase64Ptr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -58,7 +58,7 @@ public object Marshalls : Object() { @JvmStatic public final fun base64ToVariant(base64Str: String, allowObjects: Boolean = false): Any? { TransferContext.writeArguments(STRING to base64Str, BOOL to allowObjects) - TransferContext.callMethod(rawPtr, MethodBindings.base64ToVariantPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.base64ToVariantPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -68,7 +68,7 @@ public object Marshalls : Object() { @JvmStatic public final fun rawToBase64(array: PackedByteArray): String { TransferContext.writeArguments(PACKED_BYTE_ARRAY to array) - TransferContext.callMethod(rawPtr, MethodBindings.rawToBase64Ptr, STRING) + TransferContext.callMethod(ptr, MethodBindings.rawToBase64Ptr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -78,7 +78,7 @@ public object Marshalls : Object() { @JvmStatic public final fun base64ToRaw(base64Str: String): PackedByteArray { TransferContext.writeArguments(STRING to base64Str) - TransferContext.callMethod(rawPtr, MethodBindings.base64ToRawPtr, PACKED_BYTE_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.base64ToRawPtr, PACKED_BYTE_ARRAY) return (TransferContext.readReturnValue(PACKED_BYTE_ARRAY) as PackedByteArray) } @@ -88,7 +88,7 @@ public object Marshalls : Object() { @JvmStatic public final fun utf8ToBase64(utf8Str: String): String { TransferContext.writeArguments(STRING to utf8Str) - TransferContext.callMethod(rawPtr, MethodBindings.utf8ToBase64Ptr, STRING) + TransferContext.callMethod(ptr, MethodBindings.utf8ToBase64Ptr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -98,7 +98,7 @@ public object Marshalls : Object() { @JvmStatic public final fun base64ToUtf8(base64Str: String): String { TransferContext.writeArguments(STRING to base64Str) - TransferContext.callMethod(rawPtr, MethodBindings.base64ToUtf8Ptr, STRING) + TransferContext.callMethod(ptr, MethodBindings.base64ToUtf8Ptr, STRING) return (TransferContext.readReturnValue(STRING) as String) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Material.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Material.kt index 80d9ea32c0..3214e3c2cc 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Material.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Material.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -103,23 +103,23 @@ public open class Material : Resource() { public final fun setNextPass(nextPass: Material?): Unit { TransferContext.writeArguments(OBJECT to nextPass) - TransferContext.callMethod(rawPtr, MethodBindings.setNextPassPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNextPassPtr, NIL) } public final fun getNextPass(): Material? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNextPassPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getNextPassPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Material?) } public final fun setRenderPriority(priority: Int): Unit { TransferContext.writeArguments(LONG to priority.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setRenderPriorityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRenderPriorityPtr, NIL) } public final fun getRenderPriority(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRenderPriorityPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getRenderPriorityPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -129,7 +129,7 @@ public open class Material : Resource() { */ public final fun inspectNativeShaderCode(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.inspectNativeShaderCodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.inspectNativeShaderCodePtr, NIL) } /** @@ -137,7 +137,7 @@ public open class Material : Resource() { */ public final fun createPlaceholder(): Resource? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.createPlaceholderPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.createPlaceholderPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Resource?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/MenuBar.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/MenuBar.kt index d8e1e53232..1c9c24e551 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/MenuBar.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/MenuBar.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG @@ -14,7 +15,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -103,12 +103,12 @@ public open class MenuBar : Control() { public final fun setSwitchOnHover(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setSwitchOnHoverPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSwitchOnHoverPtr, NIL) } public final fun isSwitchOnHover(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSwitchOnHoverPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSwitchOnHoverPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -117,17 +117,17 @@ public open class MenuBar : Control() { */ public final fun setDisableShortcuts(disabled: Boolean): Unit { TransferContext.writeArguments(BOOL to disabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDisableShortcutsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDisableShortcutsPtr, NIL) } public final fun setPreferGlobalMenu(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setPreferGlobalMenuPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPreferGlobalMenuPtr, NIL) } public final fun isPreferGlobalMenu(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isPreferGlobalMenuPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPreferGlobalMenuPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -136,7 +136,7 @@ public open class MenuBar : Control() { */ public final fun isNativeMenu(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isNativeMenuPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isNativeMenuPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -145,51 +145,51 @@ public open class MenuBar : Control() { */ public final fun getMenuCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMenuCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMenuCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setTextDirection(direction: Control.TextDirection): Unit { TransferContext.writeArguments(LONG to direction.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTextDirectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextDirectionPtr, NIL) } public final fun getTextDirection(): Control.TextDirection { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextDirectionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTextDirectionPtr, LONG) return Control.TextDirection.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setLanguage(language: String): Unit { TransferContext.writeArguments(STRING to language) - TransferContext.callMethod(rawPtr, MethodBindings.setLanguagePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLanguagePtr, NIL) } public final fun getLanguage(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLanguagePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getLanguagePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setFlat(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setFlatPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFlatPtr, NIL) } public final fun isFlat(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isFlatPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isFlatPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setStartIndex(enabled: Int): Unit { TransferContext.writeArguments(LONG to enabled.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setStartIndexPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStartIndexPtr, NIL) } public final fun getStartIndex(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStartIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getStartIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -198,7 +198,7 @@ public open class MenuBar : Control() { */ public final fun setMenuTitle(menu: Int, title: String): Unit { TransferContext.writeArguments(LONG to menu.toLong(), STRING to title) - TransferContext.callMethod(rawPtr, MethodBindings.setMenuTitlePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMenuTitlePtr, NIL) } /** @@ -206,7 +206,7 @@ public open class MenuBar : Control() { */ public final fun getMenuTitle(menu: Int): String { TransferContext.writeArguments(LONG to menu.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getMenuTitlePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getMenuTitlePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -215,7 +215,7 @@ public open class MenuBar : Control() { */ public final fun setMenuTooltip(menu: Int, tooltip: String): Unit { TransferContext.writeArguments(LONG to menu.toLong(), STRING to tooltip) - TransferContext.callMethod(rawPtr, MethodBindings.setMenuTooltipPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMenuTooltipPtr, NIL) } /** @@ -223,7 +223,7 @@ public open class MenuBar : Control() { */ public final fun getMenuTooltip(menu: Int): String { TransferContext.writeArguments(LONG to menu.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getMenuTooltipPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getMenuTooltipPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -232,7 +232,7 @@ public open class MenuBar : Control() { */ public final fun setMenuDisabled(menu: Int, disabled: Boolean): Unit { TransferContext.writeArguments(LONG to menu.toLong(), BOOL to disabled) - TransferContext.callMethod(rawPtr, MethodBindings.setMenuDisabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMenuDisabledPtr, NIL) } /** @@ -240,7 +240,7 @@ public open class MenuBar : Control() { */ public final fun isMenuDisabled(menu: Int): Boolean { TransferContext.writeArguments(LONG to menu.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isMenuDisabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isMenuDisabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -249,7 +249,7 @@ public open class MenuBar : Control() { */ public final fun setMenuHidden(menu: Int, hidden: Boolean): Unit { TransferContext.writeArguments(LONG to menu.toLong(), BOOL to hidden) - TransferContext.callMethod(rawPtr, MethodBindings.setMenuHiddenPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMenuHiddenPtr, NIL) } /** @@ -257,7 +257,7 @@ public open class MenuBar : Control() { */ public final fun isMenuHidden(menu: Int): Boolean { TransferContext.writeArguments(LONG to menu.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isMenuHiddenPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isMenuHiddenPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -266,7 +266,7 @@ public open class MenuBar : Control() { */ public final fun getMenuPopup(menu: Int): PopupMenu? { TransferContext.writeArguments(LONG to menu.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getMenuPopupPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getMenuPopupPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as PopupMenu?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/MenuButton.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/MenuButton.kt index c42dcc9399..8e78a5fca4 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/MenuButton.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/MenuButton.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -14,7 +15,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -69,7 +69,7 @@ public open class MenuButton : Button() { */ public final fun getPopup(): PopupMenu? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPopupPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getPopupPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as PopupMenu?) } @@ -79,17 +79,17 @@ public open class MenuButton : Button() { */ public final fun showPopup(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.showPopupPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.showPopupPtr, NIL) } public final fun setSwitchOnHover(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setSwitchOnHoverPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSwitchOnHoverPtr, NIL) } public final fun isSwitchOnHover(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSwitchOnHoverPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSwitchOnHoverPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -98,17 +98,17 @@ public open class MenuButton : Button() { */ public final fun setDisableShortcuts(disabled: Boolean): Unit { TransferContext.writeArguments(BOOL to disabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDisableShortcutsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDisableShortcutsPtr, NIL) } public final fun setItemCount(count: Int): Unit { TransferContext.writeArguments(LONG to count.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setItemCountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemCountPtr, NIL) } public final fun getItemCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getItemCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getItemCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Mesh.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Mesh.kt index 3c9275511c..777e3c03c4 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Mesh.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Mesh.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.AABB import godot.core.Dictionary import godot.core.PackedVector3Array @@ -25,7 +26,6 @@ import godot.core.VariantParser.PACKED_VECTOR3_ARRAY import godot.core.VariantParser.VECTOR2I import godot.core.Vector2i import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Float @@ -188,12 +188,12 @@ public open class Mesh : Resource() { public final fun setLightmapSizeHint(size: Vector2i): Unit { TransferContext.writeArguments(VECTOR2I to size) - TransferContext.callMethod(rawPtr, MethodBindings.setLightmapSizeHintPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLightmapSizeHintPtr, NIL) } public final fun getLightmapSizeHint(): Vector2i { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLightmapSizeHintPtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getLightmapSizeHintPtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -203,7 +203,7 @@ public open class Mesh : Resource() { */ public final fun getAabb(): AABB { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAabbPtr, godot.core.VariantParser.AABB) + TransferContext.callMethod(ptr, MethodBindings.getAabbPtr, godot.core.VariantParser.AABB) return (TransferContext.readReturnValue(godot.core.VariantParser.AABB) as AABB) } @@ -213,7 +213,7 @@ public open class Mesh : Resource() { */ public final fun getFaces(): PackedVector3Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFacesPtr, PACKED_VECTOR3_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getFacesPtr, PACKED_VECTOR3_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR3_ARRAY) as PackedVector3Array) } @@ -223,7 +223,7 @@ public open class Mesh : Resource() { */ public final fun getSurfaceCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSurfaceCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSurfaceCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -233,7 +233,7 @@ public open class Mesh : Resource() { */ public final fun surfaceGetArrays(surfIdx: Int): VariantArray { TransferContext.writeArguments(LONG to surfIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.surfaceGetArraysPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.surfaceGetArraysPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -242,7 +242,7 @@ public open class Mesh : Resource() { */ public final fun surfaceGetBlendShapeArrays(surfIdx: Int): VariantArray> { TransferContext.writeArguments(LONG to surfIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.surfaceGetBlendShapeArraysPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.surfaceGetBlendShapeArraysPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray>) } @@ -255,7 +255,7 @@ public open class Mesh : Resource() { */ public final fun surfaceSetMaterial(surfIdx: Int, material: Material?): Unit { TransferContext.writeArguments(LONG to surfIdx.toLong(), OBJECT to material) - TransferContext.callMethod(rawPtr, MethodBindings.surfaceSetMaterialPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.surfaceSetMaterialPtr, NIL) } /** @@ -267,7 +267,7 @@ public open class Mesh : Resource() { */ public final fun surfaceGetMaterial(surfIdx: Int): Material? { TransferContext.writeArguments(LONG to surfIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.surfaceGetMaterialPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.surfaceGetMaterialPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Material?) } @@ -276,7 +276,7 @@ public open class Mesh : Resource() { */ public final fun createPlaceholder(): Resource? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.createPlaceholderPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.createPlaceholderPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Resource?) } @@ -285,7 +285,7 @@ public open class Mesh : Resource() { */ public final fun createTrimeshShape(): ConcavePolygonShape3D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.createTrimeshShapePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.createTrimeshShapePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as ConcavePolygonShape3D?) } @@ -300,7 +300,7 @@ public open class Mesh : Resource() { public final fun createConvexShape(clean: Boolean = true, simplify: Boolean = false): ConvexPolygonShape3D? { TransferContext.writeArguments(BOOL to clean, BOOL to simplify) - TransferContext.callMethod(rawPtr, MethodBindings.createConvexShapePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.createConvexShapePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as ConvexPolygonShape3D?) } @@ -311,7 +311,7 @@ public open class Mesh : Resource() { */ public final fun createOutline(margin: Float): Mesh? { TransferContext.writeArguments(DOUBLE to margin.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.createOutlinePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.createOutlinePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Mesh?) } @@ -321,7 +321,7 @@ public open class Mesh : Resource() { */ public final fun generateTriangleMesh(): TriangleMesh? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.generateTriangleMeshPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.generateTriangleMeshPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as TriangleMesh?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/MeshConvexDecompositionSettings.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/MeshConvexDecompositionSettings.kt index bd7ae53f4e..374d5910f1 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/MeshConvexDecompositionSettings.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/MeshConvexDecompositionSettings.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -179,144 +179,144 @@ public open class MeshConvexDecompositionSettings : RefCounted() { public final fun setMaxConcavity(maxConcavity: Float): Unit { TransferContext.writeArguments(DOUBLE to maxConcavity.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxConcavityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxConcavityPtr, NIL) } public final fun getMaxConcavity(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxConcavityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMaxConcavityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSymmetryPlanesClippingBias(symmetryPlanesClippingBias: Float): Unit { TransferContext.writeArguments(DOUBLE to symmetryPlanesClippingBias.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSymmetryPlanesClippingBiasPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSymmetryPlanesClippingBiasPtr, NIL) } public final fun getSymmetryPlanesClippingBias(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSymmetryPlanesClippingBiasPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSymmetryPlanesClippingBiasPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setRevolutionAxesClippingBias(revolutionAxesClippingBias: Float): Unit { TransferContext.writeArguments(DOUBLE to revolutionAxesClippingBias.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRevolutionAxesClippingBiasPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRevolutionAxesClippingBiasPtr, NIL) } public final fun getRevolutionAxesClippingBias(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRevolutionAxesClippingBiasPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRevolutionAxesClippingBiasPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setMinVolumePerConvexHull(minVolumePerConvexHull: Float): Unit { TransferContext.writeArguments(DOUBLE to minVolumePerConvexHull.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMinVolumePerConvexHullPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMinVolumePerConvexHullPtr, NIL) } public final fun getMinVolumePerConvexHull(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMinVolumePerConvexHullPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMinVolumePerConvexHullPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setResolution(minVolumePerConvexHull: Long): Unit { TransferContext.writeArguments(LONG to minVolumePerConvexHull) - TransferContext.callMethod(rawPtr, MethodBindings.setResolutionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setResolutionPtr, NIL) } public final fun getResolution(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getResolutionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getResolutionPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setMaxNumVerticesPerConvexHull(maxNumVerticesPerConvexHull: Long): Unit { TransferContext.writeArguments(LONG to maxNumVerticesPerConvexHull) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxNumVerticesPerConvexHullPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxNumVerticesPerConvexHullPtr, NIL) } public final fun getMaxNumVerticesPerConvexHull(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxNumVerticesPerConvexHullPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMaxNumVerticesPerConvexHullPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setPlaneDownsampling(planeDownsampling: Long): Unit { TransferContext.writeArguments(LONG to planeDownsampling) - TransferContext.callMethod(rawPtr, MethodBindings.setPlaneDownsamplingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPlaneDownsamplingPtr, NIL) } public final fun getPlaneDownsampling(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPlaneDownsamplingPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPlaneDownsamplingPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setConvexHullDownsampling(convexHullDownsampling: Long): Unit { TransferContext.writeArguments(LONG to convexHullDownsampling) - TransferContext.callMethod(rawPtr, MethodBindings.setConvexHullDownsamplingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setConvexHullDownsamplingPtr, NIL) } public final fun getConvexHullDownsampling(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConvexHullDownsamplingPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getConvexHullDownsamplingPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setNormalizeMesh(normalizeMesh: Boolean): Unit { TransferContext.writeArguments(BOOL to normalizeMesh) - TransferContext.callMethod(rawPtr, MethodBindings.setNormalizeMeshPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNormalizeMeshPtr, NIL) } public final fun getNormalizeMesh(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNormalizeMeshPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getNormalizeMeshPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setMode(mode: Mode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setModePtr, NIL) } public final fun getMode(): Mode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getModePtr, LONG) return MeshConvexDecompositionSettings.Mode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setConvexHullApproximation(convexHullApproximation: Boolean): Unit { TransferContext.writeArguments(BOOL to convexHullApproximation) - TransferContext.callMethod(rawPtr, MethodBindings.setConvexHullApproximationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setConvexHullApproximationPtr, NIL) } public final fun getConvexHullApproximation(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConvexHullApproximationPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getConvexHullApproximationPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setMaxConvexHulls(maxConvexHulls: Long): Unit { TransferContext.writeArguments(LONG to maxConvexHulls) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxConvexHullsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxConvexHullsPtr, NIL) } public final fun getMaxConvexHulls(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxConvexHullsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMaxConvexHullsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setProjectHullVertices(projectHullVertices: Boolean): Unit { TransferContext.writeArguments(BOOL to projectHullVertices) - TransferContext.callMethod(rawPtr, MethodBindings.setProjectHullVerticesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setProjectHullVerticesPtr, NIL) } public final fun getProjectHullVertices(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getProjectHullVerticesPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getProjectHullVerticesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/MeshDataTool.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/MeshDataTool.kt index bb929c82f8..9a3fc072c0 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/MeshDataTool.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/MeshDataTool.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.PackedFloat32Array import godot.core.PackedInt32Array @@ -25,7 +26,6 @@ import godot.core.VariantParser.VECTOR3 import godot.core.Vector2 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Int import kotlin.Long @@ -96,7 +96,7 @@ public open class MeshDataTool : RefCounted() { */ public final fun clear(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPtr, NIL) } /** @@ -105,7 +105,7 @@ public open class MeshDataTool : RefCounted() { */ public final fun createFromSurface(mesh: ArrayMesh?, surface: Int): Error { TransferContext.writeArguments(OBJECT to mesh, LONG to surface.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.createFromSurfacePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.createFromSurfacePtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -115,7 +115,7 @@ public open class MeshDataTool : RefCounted() { @JvmOverloads public final fun commitToSurface(mesh: ArrayMesh?, compressionFlags: Long = 0): Error { TransferContext.writeArguments(OBJECT to mesh, LONG to compressionFlags) - TransferContext.callMethod(rawPtr, MethodBindings.commitToSurfacePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.commitToSurfacePtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -126,7 +126,7 @@ public open class MeshDataTool : RefCounted() { */ public final fun getFormat(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFormatPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFormatPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -135,7 +135,7 @@ public open class MeshDataTool : RefCounted() { */ public final fun getVertexCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVertexCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVertexCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -144,7 +144,7 @@ public open class MeshDataTool : RefCounted() { */ public final fun getEdgeCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEdgeCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getEdgeCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -153,7 +153,7 @@ public open class MeshDataTool : RefCounted() { */ public final fun getFaceCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFaceCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFaceCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -162,7 +162,7 @@ public open class MeshDataTool : RefCounted() { */ public final fun setVertex(idx: Int, vertex: Vector3): Unit { TransferContext.writeArguments(LONG to idx.toLong(), VECTOR3 to vertex) - TransferContext.callMethod(rawPtr, MethodBindings.setVertexPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVertexPtr, NIL) } /** @@ -170,7 +170,7 @@ public open class MeshDataTool : RefCounted() { */ public final fun getVertex(idx: Int): Vector3 { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getVertexPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getVertexPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -179,7 +179,7 @@ public open class MeshDataTool : RefCounted() { */ public final fun setVertexNormal(idx: Int, normal: Vector3): Unit { TransferContext.writeArguments(LONG to idx.toLong(), VECTOR3 to normal) - TransferContext.callMethod(rawPtr, MethodBindings.setVertexNormalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVertexNormalPtr, NIL) } /** @@ -187,7 +187,7 @@ public open class MeshDataTool : RefCounted() { */ public final fun getVertexNormal(idx: Int): Vector3 { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getVertexNormalPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getVertexNormalPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -196,7 +196,7 @@ public open class MeshDataTool : RefCounted() { */ public final fun setVertexTangent(idx: Int, tangent: Plane): Unit { TransferContext.writeArguments(LONG to idx.toLong(), PLANE to tangent) - TransferContext.callMethod(rawPtr, MethodBindings.setVertexTangentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVertexTangentPtr, NIL) } /** @@ -204,7 +204,7 @@ public open class MeshDataTool : RefCounted() { */ public final fun getVertexTangent(idx: Int): Plane { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getVertexTangentPtr, PLANE) + TransferContext.callMethod(ptr, MethodBindings.getVertexTangentPtr, PLANE) return (TransferContext.readReturnValue(PLANE) as Plane) } @@ -213,7 +213,7 @@ public open class MeshDataTool : RefCounted() { */ public final fun setVertexUv(idx: Int, uv: Vector2): Unit { TransferContext.writeArguments(LONG to idx.toLong(), VECTOR2 to uv) - TransferContext.callMethod(rawPtr, MethodBindings.setVertexUvPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVertexUvPtr, NIL) } /** @@ -221,7 +221,7 @@ public open class MeshDataTool : RefCounted() { */ public final fun getVertexUv(idx: Int): Vector2 { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getVertexUvPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getVertexUvPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -230,7 +230,7 @@ public open class MeshDataTool : RefCounted() { */ public final fun setVertexUv2(idx: Int, uv2: Vector2): Unit { TransferContext.writeArguments(LONG to idx.toLong(), VECTOR2 to uv2) - TransferContext.callMethod(rawPtr, MethodBindings.setVertexUv2Ptr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVertexUv2Ptr, NIL) } /** @@ -238,7 +238,7 @@ public open class MeshDataTool : RefCounted() { */ public final fun getVertexUv2(idx: Int): Vector2 { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getVertexUv2Ptr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getVertexUv2Ptr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -247,7 +247,7 @@ public open class MeshDataTool : RefCounted() { */ public final fun setVertexColor(idx: Int, color: Color): Unit { TransferContext.writeArguments(LONG to idx.toLong(), COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setVertexColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVertexColorPtr, NIL) } /** @@ -255,7 +255,7 @@ public open class MeshDataTool : RefCounted() { */ public final fun getVertexColor(idx: Int): Color { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getVertexColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getVertexColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } @@ -264,7 +264,7 @@ public open class MeshDataTool : RefCounted() { */ public final fun setVertexBones(idx: Int, bones: PackedInt32Array): Unit { TransferContext.writeArguments(LONG to idx.toLong(), PACKED_INT_32_ARRAY to bones) - TransferContext.callMethod(rawPtr, MethodBindings.setVertexBonesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVertexBonesPtr, NIL) } /** @@ -272,7 +272,7 @@ public open class MeshDataTool : RefCounted() { */ public final fun getVertexBones(idx: Int): PackedInt32Array { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getVertexBonesPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getVertexBonesPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } @@ -281,7 +281,7 @@ public open class MeshDataTool : RefCounted() { */ public final fun setVertexWeights(idx: Int, weights: PackedFloat32Array): Unit { TransferContext.writeArguments(LONG to idx.toLong(), PACKED_FLOAT_32_ARRAY to weights) - TransferContext.callMethod(rawPtr, MethodBindings.setVertexWeightsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVertexWeightsPtr, NIL) } /** @@ -289,7 +289,7 @@ public open class MeshDataTool : RefCounted() { */ public final fun getVertexWeights(idx: Int): PackedFloat32Array { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getVertexWeightsPtr, PACKED_FLOAT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getVertexWeightsPtr, PACKED_FLOAT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_FLOAT_32_ARRAY) as PackedFloat32Array) } @@ -298,7 +298,7 @@ public open class MeshDataTool : RefCounted() { */ public final fun setVertexMeta(idx: Int, meta: Any?): Unit { TransferContext.writeArguments(LONG to idx.toLong(), ANY to meta) - TransferContext.callMethod(rawPtr, MethodBindings.setVertexMetaPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVertexMetaPtr, NIL) } /** @@ -306,7 +306,7 @@ public open class MeshDataTool : RefCounted() { */ public final fun getVertexMeta(idx: Int): Any? { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getVertexMetaPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getVertexMetaPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -315,7 +315,7 @@ public open class MeshDataTool : RefCounted() { */ public final fun getVertexEdges(idx: Int): PackedInt32Array { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getVertexEdgesPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getVertexEdgesPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } @@ -324,7 +324,7 @@ public open class MeshDataTool : RefCounted() { */ public final fun getVertexFaces(idx: Int): PackedInt32Array { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getVertexFacesPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getVertexFacesPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } @@ -334,7 +334,7 @@ public open class MeshDataTool : RefCounted() { */ public final fun getEdgeVertex(idx: Int, vertex: Int): Int { TransferContext.writeArguments(LONG to idx.toLong(), LONG to vertex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getEdgeVertexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getEdgeVertexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -343,7 +343,7 @@ public open class MeshDataTool : RefCounted() { */ public final fun getEdgeFaces(idx: Int): PackedInt32Array { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getEdgeFacesPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getEdgeFacesPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } @@ -352,7 +352,7 @@ public open class MeshDataTool : RefCounted() { */ public final fun setEdgeMeta(idx: Int, meta: Any?): Unit { TransferContext.writeArguments(LONG to idx.toLong(), ANY to meta) - TransferContext.callMethod(rawPtr, MethodBindings.setEdgeMetaPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEdgeMetaPtr, NIL) } /** @@ -360,7 +360,7 @@ public open class MeshDataTool : RefCounted() { */ public final fun getEdgeMeta(idx: Int): Any? { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getEdgeMetaPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getEdgeMetaPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -386,7 +386,7 @@ public open class MeshDataTool : RefCounted() { */ public final fun getFaceVertex(idx: Int, vertex: Int): Int { TransferContext.writeArguments(LONG to idx.toLong(), LONG to vertex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getFaceVertexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFaceVertexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -396,7 +396,7 @@ public open class MeshDataTool : RefCounted() { */ public final fun getFaceEdge(idx: Int, edge: Int): Int { TransferContext.writeArguments(LONG to idx.toLong(), LONG to edge.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getFaceEdgePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFaceEdgePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -405,7 +405,7 @@ public open class MeshDataTool : RefCounted() { */ public final fun setFaceMeta(idx: Int, meta: Any?): Unit { TransferContext.writeArguments(LONG to idx.toLong(), ANY to meta) - TransferContext.callMethod(rawPtr, MethodBindings.setFaceMetaPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFaceMetaPtr, NIL) } /** @@ -413,7 +413,7 @@ public open class MeshDataTool : RefCounted() { */ public final fun getFaceMeta(idx: Int): Any? { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getFaceMetaPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getFaceMetaPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -422,7 +422,7 @@ public open class MeshDataTool : RefCounted() { */ public final fun getFaceNormal(idx: Int): Vector3 { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getFaceNormalPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getFaceNormalPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -431,7 +431,7 @@ public open class MeshDataTool : RefCounted() { */ public final fun setMaterial(material: Material?): Unit { TransferContext.writeArguments(OBJECT to material) - TransferContext.callMethod(rawPtr, MethodBindings.setMaterialPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaterialPtr, NIL) } /** @@ -439,7 +439,7 @@ public open class MeshDataTool : RefCounted() { */ public final fun getMaterial(): Material? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaterialPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getMaterialPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Material?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/MeshInstance2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/MeshInstance2D.kt index 2876fcfdf5..b7a2be44c8 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/MeshInstance2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/MeshInstance2D.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -59,23 +59,23 @@ public open class MeshInstance2D : Node2D() { public final fun setMesh(mesh: Mesh?): Unit { TransferContext.writeArguments(OBJECT to mesh) - TransferContext.callMethod(rawPtr, MethodBindings.setMeshPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMeshPtr, NIL) } public final fun getMesh(): Mesh? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMeshPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getMeshPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Mesh?) } public final fun setTexture(texture: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTexturePtr, NIL) } public final fun getTexture(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/MeshInstance3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/MeshInstance3D.kt index 6a038c3810..0bc05db252 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/MeshInstance3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/MeshInstance3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.StringName import godot.core.TypeManager @@ -18,7 +19,6 @@ import godot.core.VariantParser.NODE_PATH import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -77,34 +77,34 @@ public open class MeshInstance3D : GeometryInstance3D() { public final fun setMesh(mesh: Mesh?): Unit { TransferContext.writeArguments(OBJECT to mesh) - TransferContext.callMethod(rawPtr, MethodBindings.setMeshPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMeshPtr, NIL) } public final fun getMesh(): Mesh? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMeshPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getMeshPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Mesh?) } public final fun setSkeletonPath(skeletonPath: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to skeletonPath) - TransferContext.callMethod(rawPtr, MethodBindings.setSkeletonPathPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSkeletonPathPtr, NIL) } public final fun getSkeletonPath(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSkeletonPathPtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getSkeletonPathPtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } public final fun setSkin(skin: Skin?): Unit { TransferContext.writeArguments(OBJECT to skin) - TransferContext.callMethod(rawPtr, MethodBindings.setSkinPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSkinPtr, NIL) } public final fun getSkin(): Skin? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSkinPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getSkinPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Skin?) } @@ -114,7 +114,7 @@ public open class MeshInstance3D : GeometryInstance3D() { */ public final fun getSkinReference(): SkinReference? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSkinReferencePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getSkinReferencePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as SkinReference?) } @@ -124,7 +124,7 @@ public open class MeshInstance3D : GeometryInstance3D() { */ public final fun getSurfaceOverrideMaterialCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSurfaceOverrideMaterialCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSurfaceOverrideMaterialCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -137,7 +137,7 @@ public open class MeshInstance3D : GeometryInstance3D() { */ public final fun setSurfaceOverrideMaterial(surface: Int, material: Material?): Unit { TransferContext.writeArguments(LONG to surface.toLong(), OBJECT to material) - TransferContext.callMethod(rawPtr, MethodBindings.setSurfaceOverrideMaterialPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSurfaceOverrideMaterialPtr, NIL) } /** @@ -149,7 +149,7 @@ public open class MeshInstance3D : GeometryInstance3D() { */ public final fun getSurfaceOverrideMaterial(surface: Int): Material? { TransferContext.writeArguments(LONG to surface.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSurfaceOverrideMaterialPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getSurfaceOverrideMaterialPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Material?) } @@ -162,7 +162,7 @@ public open class MeshInstance3D : GeometryInstance3D() { */ public final fun getActiveMaterial(surface: Int): Material? { TransferContext.writeArguments(LONG to surface.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getActiveMaterialPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getActiveMaterialPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Material?) } @@ -172,7 +172,7 @@ public open class MeshInstance3D : GeometryInstance3D() { */ public final fun createTrimeshCollision(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.createTrimeshCollisionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.createTrimeshCollisionPtr, NIL) } /** @@ -186,7 +186,7 @@ public open class MeshInstance3D : GeometryInstance3D() { @JvmOverloads public final fun createConvexCollision(clean: Boolean = true, simplify: Boolean = false): Unit { TransferContext.writeArguments(BOOL to clean, BOOL to simplify) - TransferContext.callMethod(rawPtr, MethodBindings.createConvexCollisionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.createConvexCollisionPtr, NIL) } /** @@ -198,7 +198,7 @@ public open class MeshInstance3D : GeometryInstance3D() { public final fun createMultipleConvexCollisions(settings: MeshConvexDecompositionSettings? = null): Unit { TransferContext.writeArguments(OBJECT to settings) - TransferContext.callMethod(rawPtr, MethodBindings.createMultipleConvexCollisionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.createMultipleConvexCollisionsPtr, NIL) } /** @@ -206,7 +206,7 @@ public open class MeshInstance3D : GeometryInstance3D() { */ public final fun getBlendShapeCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBlendShapeCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBlendShapeCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -216,7 +216,7 @@ public open class MeshInstance3D : GeometryInstance3D() { */ public final fun findBlendShapeByName(name: StringName): Int { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.findBlendShapeByNamePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.findBlendShapeByNamePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -226,7 +226,7 @@ public open class MeshInstance3D : GeometryInstance3D() { */ public final fun getBlendShapeValue(blendShapeIdx: Int): Float { TransferContext.writeArguments(LONG to blendShapeIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBlendShapeValuePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getBlendShapeValuePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -236,7 +236,7 @@ public open class MeshInstance3D : GeometryInstance3D() { */ public final fun setBlendShapeValue(blendShapeIdx: Int, `value`: Float): Unit { TransferContext.writeArguments(LONG to blendShapeIdx.toLong(), DOUBLE to value.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setBlendShapeValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBlendShapeValuePtr, NIL) } /** @@ -245,7 +245,7 @@ public open class MeshInstance3D : GeometryInstance3D() { */ public final fun createDebugTangents(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.createDebugTangentsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.createDebugTangentsPtr, NIL) } /** @@ -258,7 +258,7 @@ public open class MeshInstance3D : GeometryInstance3D() { @JvmOverloads public final fun bakeMeshFromCurrentBlendShapeMix(existing: ArrayMesh? = null): ArrayMesh? { TransferContext.writeArguments(OBJECT to existing) - TransferContext.callMethod(rawPtr, MethodBindings.bakeMeshFromCurrentBlendShapeMixPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.bakeMeshFromCurrentBlendShapeMixPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as ArrayMesh?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/MeshLibrary.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/MeshLibrary.kt index 5ccce68ec8..a59d0eca91 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/MeshLibrary.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/MeshLibrary.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedInt32Array import godot.core.Transform3D import godot.core.TypeManager @@ -19,7 +20,6 @@ import godot.core.VariantParser.PACKED_INT_32_ARRAY import godot.core.VariantParser.STRING import godot.core.VariantParser.TRANSFORM3D import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Int import kotlin.Long @@ -43,7 +43,7 @@ public open class MeshLibrary : Resource() { */ public final fun createItem(id: Int): Unit { TransferContext.writeArguments(LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.createItemPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.createItemPtr, NIL) } /** @@ -53,7 +53,7 @@ public open class MeshLibrary : Resource() { */ public final fun setItemName(id: Int, name: String): Unit { TransferContext.writeArguments(LONG to id.toLong(), STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.setItemNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemNamePtr, NIL) } /** @@ -61,7 +61,7 @@ public open class MeshLibrary : Resource() { */ public final fun setItemMesh(id: Int, mesh: Mesh?): Unit { TransferContext.writeArguments(LONG to id.toLong(), OBJECT to mesh) - TransferContext.callMethod(rawPtr, MethodBindings.setItemMeshPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemMeshPtr, NIL) } /** @@ -69,7 +69,7 @@ public open class MeshLibrary : Resource() { */ public final fun setItemMeshTransform(id: Int, meshTransform: Transform3D): Unit { TransferContext.writeArguments(LONG to id.toLong(), TRANSFORM3D to meshTransform) - TransferContext.callMethod(rawPtr, MethodBindings.setItemMeshTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemMeshTransformPtr, NIL) } /** @@ -77,7 +77,7 @@ public open class MeshLibrary : Resource() { */ public final fun setItemNavigationMesh(id: Int, navigationMesh: NavigationMesh?): Unit { TransferContext.writeArguments(LONG to id.toLong(), OBJECT to navigationMesh) - TransferContext.callMethod(rawPtr, MethodBindings.setItemNavigationMeshPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemNavigationMeshPtr, NIL) } /** @@ -85,7 +85,7 @@ public open class MeshLibrary : Resource() { */ public final fun setItemNavigationMeshTransform(id: Int, navigationMesh: Transform3D): Unit { TransferContext.writeArguments(LONG to id.toLong(), TRANSFORM3D to navigationMesh) - TransferContext.callMethod(rawPtr, MethodBindings.setItemNavigationMeshTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemNavigationMeshTransformPtr, NIL) } /** @@ -93,7 +93,7 @@ public open class MeshLibrary : Resource() { */ public final fun setItemNavigationLayers(id: Int, navigationLayers: Long): Unit { TransferContext.writeArguments(LONG to id.toLong(), LONG to navigationLayers) - TransferContext.callMethod(rawPtr, MethodBindings.setItemNavigationLayersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemNavigationLayersPtr, NIL) } /** @@ -103,7 +103,7 @@ public open class MeshLibrary : Resource() { */ public final fun setItemShapes(id: Int, shapes: VariantArray): Unit { TransferContext.writeArguments(LONG to id.toLong(), ARRAY to shapes) - TransferContext.callMethod(rawPtr, MethodBindings.setItemShapesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemShapesPtr, NIL) } /** @@ -111,7 +111,7 @@ public open class MeshLibrary : Resource() { */ public final fun setItemPreview(id: Int, texture: Texture2D?): Unit { TransferContext.writeArguments(LONG to id.toLong(), OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setItemPreviewPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemPreviewPtr, NIL) } /** @@ -119,7 +119,7 @@ public open class MeshLibrary : Resource() { */ public final fun getItemName(id: Int): String { TransferContext.writeArguments(LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getItemNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -128,7 +128,7 @@ public open class MeshLibrary : Resource() { */ public final fun getItemMesh(id: Int): Mesh? { TransferContext.writeArguments(LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemMeshPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getItemMeshPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Mesh?) } @@ -137,7 +137,7 @@ public open class MeshLibrary : Resource() { */ public final fun getItemMeshTransform(id: Int): Transform3D { TransferContext.writeArguments(LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemMeshTransformPtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.getItemMeshTransformPtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } @@ -146,7 +146,7 @@ public open class MeshLibrary : Resource() { */ public final fun getItemNavigationMesh(id: Int): NavigationMesh? { TransferContext.writeArguments(LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemNavigationMeshPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getItemNavigationMeshPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as NavigationMesh?) } @@ -155,8 +155,7 @@ public open class MeshLibrary : Resource() { */ public final fun getItemNavigationMeshTransform(id: Int): Transform3D { TransferContext.writeArguments(LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemNavigationMeshTransformPtr, - TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.getItemNavigationMeshTransformPtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } @@ -165,7 +164,7 @@ public open class MeshLibrary : Resource() { */ public final fun getItemNavigationLayers(id: Int): Long { TransferContext.writeArguments(LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemNavigationLayersPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getItemNavigationLayersPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -175,7 +174,7 @@ public open class MeshLibrary : Resource() { */ public final fun getItemShapes(id: Int): VariantArray { TransferContext.writeArguments(LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemShapesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getItemShapesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -187,7 +186,7 @@ public open class MeshLibrary : Resource() { */ public final fun getItemPreview(id: Int): Texture2D? { TransferContext.writeArguments(LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemPreviewPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getItemPreviewPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } @@ -196,7 +195,7 @@ public open class MeshLibrary : Resource() { */ public final fun removeItem(id: Int): Unit { TransferContext.writeArguments(LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeItemPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeItemPtr, NIL) } /** @@ -204,7 +203,7 @@ public open class MeshLibrary : Resource() { */ public final fun findItemByName(name: String): Int { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.findItemByNamePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.findItemByNamePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -213,7 +212,7 @@ public open class MeshLibrary : Resource() { */ public final fun clear(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPtr, NIL) } /** @@ -221,7 +220,7 @@ public open class MeshLibrary : Resource() { */ public final fun getItemList(): PackedInt32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getItemListPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getItemListPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } @@ -230,7 +229,7 @@ public open class MeshLibrary : Resource() { */ public final fun getLastUnusedItemId(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLastUnusedItemIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLastUnusedItemIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/MeshTexture.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/MeshTexture.kt index ba61f3466c..f7343662c2 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/MeshTexture.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/MeshTexture.kt @@ -9,13 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -91,34 +91,34 @@ public open class MeshTexture : Texture2D() { public final fun setMesh(mesh: Mesh?): Unit { TransferContext.writeArguments(OBJECT to mesh) - TransferContext.callMethod(rawPtr, MethodBindings.setMeshPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMeshPtr, NIL) } public final fun getMesh(): Mesh? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMeshPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getMeshPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Mesh?) } public final fun setImageSize(size: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to size) - TransferContext.callMethod(rawPtr, MethodBindings.setImageSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setImageSizePtr, NIL) } public final fun getImageSize(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getImageSizePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getImageSizePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setBaseTexture(texture: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setBaseTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBaseTexturePtr, NIL) } public final fun getBaseTexture(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBaseTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getBaseTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/MethodTweener.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/MethodTweener.kt index 5ba40bb29d..6ae1d6bdaa 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/MethodTweener.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/MethodTweener.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Int import kotlin.Suppress @@ -38,7 +38,7 @@ public open class MethodTweener : Tweener() { */ public final fun setDelay(delay: Double): MethodTweener? { TransferContext.writeArguments(DOUBLE to delay) - TransferContext.callMethod(rawPtr, MethodBindings.setDelayPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.setDelayPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as MethodTweener?) } @@ -48,7 +48,7 @@ public open class MethodTweener : Tweener() { */ public final fun setTrans(trans: Tween.TransitionType): MethodTweener? { TransferContext.writeArguments(LONG to trans.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTransPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.setTransPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as MethodTweener?) } @@ -58,7 +58,7 @@ public open class MethodTweener : Tweener() { */ public final fun setEase(ease: Tween.EaseType): MethodTweener? { TransferContext.writeArguments(LONG to ease.id) - TransferContext.callMethod(rawPtr, MethodBindings.setEasePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.setEasePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as MethodTweener?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/MissingNode.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/MissingNode.kt index fc07a1825c..a9244faeaa 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/MissingNode.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/MissingNode.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.String @@ -69,34 +69,34 @@ public open class MissingNode : Node() { public final fun setOriginalClass(name: String): Unit { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.setOriginalClassPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOriginalClassPtr, NIL) } public final fun getOriginalClass(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOriginalClassPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getOriginalClassPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setOriginalScene(name: String): Unit { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.setOriginalScenePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOriginalScenePtr, NIL) } public final fun getOriginalScene(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOriginalScenePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getOriginalScenePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setRecordingProperties(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setRecordingPropertiesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRecordingPropertiesPtr, NIL) } public final fun isRecordingProperties(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isRecordingPropertiesPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isRecordingPropertiesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/MissingResource.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/MissingResource.kt index 74badad588..37b0f10152 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/MissingResource.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/MissingResource.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.String @@ -58,23 +58,23 @@ public open class MissingResource : Resource() { public final fun setOriginalClass(name: String): Unit { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.setOriginalClassPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOriginalClassPtr, NIL) } public final fun getOriginalClass(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOriginalClassPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getOriginalClassPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setRecordingProperties(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setRecordingPropertiesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRecordingPropertiesPtr, NIL) } public final fun isRecordingProperties(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isRecordingPropertiesPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isRecordingPropertiesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/MobileVRInterface.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/MobileVRInterface.kt index 949b79b3c8..034f93c7bf 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/MobileVRInterface.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/MobileVRInterface.kt @@ -9,13 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Rect2 import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.RECT2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -191,112 +191,112 @@ public open class MobileVRInterface : XRInterface() { public final fun setEyeHeight(eyeHeight: Double): Unit { TransferContext.writeArguments(DOUBLE to eyeHeight) - TransferContext.callMethod(rawPtr, MethodBindings.setEyeHeightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEyeHeightPtr, NIL) } public final fun getEyeHeight(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEyeHeightPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getEyeHeightPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun setIod(iod: Double): Unit { TransferContext.writeArguments(DOUBLE to iod) - TransferContext.callMethod(rawPtr, MethodBindings.setIodPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIodPtr, NIL) } public final fun getIod(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getIodPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getIodPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun setDisplayWidth(displayWidth: Double): Unit { TransferContext.writeArguments(DOUBLE to displayWidth) - TransferContext.callMethod(rawPtr, MethodBindings.setDisplayWidthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDisplayWidthPtr, NIL) } public final fun getDisplayWidth(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDisplayWidthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDisplayWidthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun setDisplayToLens(displayToLens: Double): Unit { TransferContext.writeArguments(DOUBLE to displayToLens) - TransferContext.callMethod(rawPtr, MethodBindings.setDisplayToLensPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDisplayToLensPtr, NIL) } public final fun getDisplayToLens(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDisplayToLensPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDisplayToLensPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun setOffsetRect(offsetRect: Rect2): Unit { TransferContext.writeArguments(RECT2 to offsetRect) - TransferContext.callMethod(rawPtr, MethodBindings.setOffsetRectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOffsetRectPtr, NIL) } public final fun getOffsetRect(): Rect2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOffsetRectPtr, RECT2) + TransferContext.callMethod(ptr, MethodBindings.getOffsetRectPtr, RECT2) return (TransferContext.readReturnValue(RECT2) as Rect2) } public final fun setOversample(oversample: Double): Unit { TransferContext.writeArguments(DOUBLE to oversample) - TransferContext.callMethod(rawPtr, MethodBindings.setOversamplePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOversamplePtr, NIL) } public final fun getOversample(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOversamplePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getOversamplePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun setK1(k: Double): Unit { TransferContext.writeArguments(DOUBLE to k) - TransferContext.callMethod(rawPtr, MethodBindings.setK1Ptr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setK1Ptr, NIL) } public final fun getK1(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getK1Ptr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getK1Ptr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun setK2(k: Double): Unit { TransferContext.writeArguments(DOUBLE to k) - TransferContext.callMethod(rawPtr, MethodBindings.setK2Ptr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setK2Ptr, NIL) } public final fun getK2(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getK2Ptr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getK2Ptr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun getVrsMinRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVrsMinRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVrsMinRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVrsMinRadius(radius: Float): Unit { TransferContext.writeArguments(DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVrsMinRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVrsMinRadiusPtr, NIL) } public final fun getVrsStrength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVrsStrengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVrsStrengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVrsStrength(strength: Float): Unit { TransferContext.writeArguments(DOUBLE to strength.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVrsStrengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVrsStrengthPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/MovieWriter.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/MovieWriter.kt index 203ebf395e..8c945ea0c9 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/MovieWriter.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/MovieWriter.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.Vector2i import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiMesh.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiMesh.kt index 8e2bb1f0ec..1cda1bf6ad 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiMesh.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiMesh.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.AABB import godot.core.Color import godot.core.PackedFloat32Array @@ -24,7 +25,6 @@ import godot.core.VariantParser.PACKED_FLOAT_32_ARRAY import godot.core.VariantParser.TRANSFORM2D import godot.core.VariantParser.TRANSFORM3D import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -174,67 +174,67 @@ public open class MultiMesh : Resource() { public final fun setMesh(mesh: Mesh?): Unit { TransferContext.writeArguments(OBJECT to mesh) - TransferContext.callMethod(rawPtr, MethodBindings.setMeshPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMeshPtr, NIL) } public final fun getMesh(): Mesh? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMeshPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getMeshPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Mesh?) } public final fun setUseColors(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setUseColorsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseColorsPtr, NIL) } public final fun isUsingColors(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUsingColorsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUsingColorsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setUseCustomData(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setUseCustomDataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseCustomDataPtr, NIL) } public final fun isUsingCustomData(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUsingCustomDataPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUsingCustomDataPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setTransformFormat(format: TransformFormat): Unit { TransferContext.writeArguments(LONG to format.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTransformFormatPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTransformFormatPtr, NIL) } public final fun getTransformFormat(): TransformFormat { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTransformFormatPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTransformFormatPtr, LONG) return MultiMesh.TransformFormat.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setInstanceCount(count: Int): Unit { TransferContext.writeArguments(LONG to count.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setInstanceCountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInstanceCountPtr, NIL) } public final fun getInstanceCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInstanceCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getInstanceCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setVisibleInstanceCount(count: Int): Unit { TransferContext.writeArguments(LONG to count.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setVisibleInstanceCountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVisibleInstanceCountPtr, NIL) } public final fun getVisibleInstanceCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVisibleInstanceCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVisibleInstanceCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -243,7 +243,7 @@ public open class MultiMesh : Resource() { */ public final fun setInstanceTransform(instance: Int, transform: Transform3D): Unit { TransferContext.writeArguments(LONG to instance.toLong(), TRANSFORM3D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.setInstanceTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInstanceTransformPtr, NIL) } /** @@ -251,7 +251,7 @@ public open class MultiMesh : Resource() { */ public final fun setInstanceTransform2d(instance: Int, transform: Transform2D): Unit { TransferContext.writeArguments(LONG to instance.toLong(), TRANSFORM2D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.setInstanceTransform2dPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInstanceTransform2dPtr, NIL) } /** @@ -259,7 +259,7 @@ public open class MultiMesh : Resource() { */ public final fun getInstanceTransform(instance: Int): Transform3D { TransferContext.writeArguments(LONG to instance.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getInstanceTransformPtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.getInstanceTransformPtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } @@ -268,7 +268,7 @@ public open class MultiMesh : Resource() { */ public final fun getInstanceTransform2d(instance: Int): Transform2D { TransferContext.writeArguments(LONG to instance.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getInstanceTransform2dPtr, TRANSFORM2D) + TransferContext.callMethod(ptr, MethodBindings.getInstanceTransform2dPtr, TRANSFORM2D) return (TransferContext.readReturnValue(TRANSFORM2D) as Transform2D) } @@ -284,7 +284,7 @@ public open class MultiMesh : Resource() { */ public final fun setInstanceColor(instance: Int, color: Color): Unit { TransferContext.writeArguments(LONG to instance.toLong(), COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setInstanceColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInstanceColorPtr, NIL) } /** @@ -292,7 +292,7 @@ public open class MultiMesh : Resource() { */ public final fun getInstanceColor(instance: Int): Color { TransferContext.writeArguments(LONG to instance.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getInstanceColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getInstanceColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } @@ -307,7 +307,7 @@ public open class MultiMesh : Resource() { */ public final fun setInstanceCustomData(instance: Int, customData: Color): Unit { TransferContext.writeArguments(LONG to instance.toLong(), COLOR to customData) - TransferContext.callMethod(rawPtr, MethodBindings.setInstanceCustomDataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInstanceCustomDataPtr, NIL) } /** @@ -315,19 +315,18 @@ public open class MultiMesh : Resource() { */ public final fun getInstanceCustomData(instance: Int): Color { TransferContext.writeArguments(LONG to instance.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getInstanceCustomDataPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getInstanceCustomDataPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setCustomAabb(aabb: AABB): Unit { TransferContext.writeArguments(godot.core.VariantParser.AABB to aabb) - TransferContext.callMethod(rawPtr, MethodBindings.setCustomAabbPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCustomAabbPtr, NIL) } public final fun getCustomAabb(): AABB { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCustomAabbPtr, - godot.core.VariantParser.AABB) + TransferContext.callMethod(ptr, MethodBindings.getCustomAabbPtr, godot.core.VariantParser.AABB) return (TransferContext.readReturnValue(godot.core.VariantParser.AABB) as AABB) } @@ -336,19 +335,19 @@ public open class MultiMesh : Resource() { */ public final fun getAabb(): AABB { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAabbPtr, godot.core.VariantParser.AABB) + TransferContext.callMethod(ptr, MethodBindings.getAabbPtr, godot.core.VariantParser.AABB) return (TransferContext.readReturnValue(godot.core.VariantParser.AABB) as AABB) } public final fun getBuffer(): PackedFloat32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBufferPtr, PACKED_FLOAT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getBufferPtr, PACKED_FLOAT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_FLOAT_32_ARRAY) as PackedFloat32Array) } public final fun setBuffer(buffer: PackedFloat32Array): Unit { TransferContext.writeArguments(PACKED_FLOAT_32_ARRAY to buffer) - TransferContext.callMethod(rawPtr, MethodBindings.setBufferPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBufferPtr, NIL) } public enum class TransformFormat( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiMeshInstance2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiMeshInstance2D.kt index 3db0ad5e4c..8fb2ee85d7 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiMeshInstance2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiMeshInstance2D.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -58,23 +58,23 @@ public open class MultiMeshInstance2D : Node2D() { public final fun setMultimesh(multimesh: MultiMesh?): Unit { TransferContext.writeArguments(OBJECT to multimesh) - TransferContext.callMethod(rawPtr, MethodBindings.setMultimeshPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMultimeshPtr, NIL) } public final fun getMultimesh(): MultiMesh? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMultimeshPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getMultimeshPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as MultiMesh?) } public final fun setTexture(texture: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTexturePtr, NIL) } public final fun getTexture(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiMeshInstance3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiMeshInstance3D.kt index 85d442dc05..6cc111a221 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiMeshInstance3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiMeshInstance3D.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -43,12 +43,12 @@ public open class MultiMeshInstance3D : GeometryInstance3D() { public final fun setMultimesh(multimesh: MultiMesh?): Unit { TransferContext.writeArguments(OBJECT to multimesh) - TransferContext.callMethod(rawPtr, MethodBindings.setMultimeshPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMultimeshPtr, NIL) } public final fun getMultimesh(): MultiMesh? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMultimeshPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getMultimeshPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as MultiMesh?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerAPI.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerAPI.kt index b18a09b15e..643a858c49 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerAPI.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerAPI.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedInt32Array import godot.core.Signal0 import godot.core.Signal1 @@ -22,7 +23,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_INT_32_ARRAY import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -100,19 +100,19 @@ public open class MultiplayerAPI internal constructor() : RefCounted() { */ public final fun hasMultiplayerPeer(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasMultiplayerPeerPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasMultiplayerPeerPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun getMultiplayerPeer(): MultiplayerPeer? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMultiplayerPeerPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getMultiplayerPeerPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as MultiplayerPeer?) } public final fun setMultiplayerPeer(peer: MultiplayerPeer?): Unit { TransferContext.writeArguments(OBJECT to peer) - TransferContext.callMethod(rawPtr, MethodBindings.setMultiplayerPeerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMultiplayerPeerPtr, NIL) } /** @@ -120,7 +120,7 @@ public open class MultiplayerAPI internal constructor() : RefCounted() { */ public final fun getUniqueId(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUniqueIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getUniqueIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -130,7 +130,7 @@ public open class MultiplayerAPI internal constructor() : RefCounted() { */ public final fun isServer(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isServerPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isServerPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -141,7 +141,7 @@ public open class MultiplayerAPI internal constructor() : RefCounted() { */ public final fun getRemoteSenderId(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRemoteSenderIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getRemoteSenderIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -154,7 +154,7 @@ public open class MultiplayerAPI internal constructor() : RefCounted() { */ public final fun poll(): Error { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.pollPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.pollPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -174,7 +174,7 @@ public open class MultiplayerAPI internal constructor() : RefCounted() { arguments: VariantArray = godot.core.variantArrayOf(), ): Error { TransferContext.writeArguments(LONG to peer.toLong(), OBJECT to `object`, STRING_NAME to method, ARRAY to arguments) - TransferContext.callMethod(rawPtr, MethodBindings.rpcPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.rpcPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -189,7 +189,7 @@ public open class MultiplayerAPI internal constructor() : RefCounted() { */ public final fun objectConfigurationAdd(`object`: Object?, configuration: Any?): Error { TransferContext.writeArguments(OBJECT to `object`, ANY to configuration) - TransferContext.callMethod(rawPtr, MethodBindings.objectConfigurationAddPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.objectConfigurationAddPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -204,7 +204,7 @@ public open class MultiplayerAPI internal constructor() : RefCounted() { */ public final fun objectConfigurationRemove(`object`: Object?, configuration: Any?): Error { TransferContext.writeArguments(OBJECT to `object`, ANY to configuration) - TransferContext.callMethod(rawPtr, MethodBindings.objectConfigurationRemovePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.objectConfigurationRemovePtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -213,7 +213,7 @@ public open class MultiplayerAPI internal constructor() : RefCounted() { */ public final fun getPeers(): PackedInt32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPeersPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getPeersPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerPeer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerPeer.kt index 88c411de24..c3b7646c84 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerPeer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerPeer.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal1 import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -92,23 +92,23 @@ public open class MultiplayerPeer internal constructor() : PacketPeer() { public final fun setTransferChannel(channel: Int): Unit { TransferContext.writeArguments(LONG to channel.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setTransferChannelPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTransferChannelPtr, NIL) } public final fun getTransferChannel(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTransferChannelPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTransferChannelPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setTransferMode(mode: TransferMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTransferModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTransferModePtr, NIL) } public final fun getTransferMode(): TransferMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTransferModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTransferModePtr, LONG) return MultiplayerPeer.TransferMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -121,7 +121,7 @@ public open class MultiplayerPeer internal constructor() : PacketPeer() { */ public final fun setTargetPeer(id: Int): Unit { TransferContext.writeArguments(LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setTargetPeerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTargetPeerPtr, NIL) } /** @@ -130,7 +130,7 @@ public open class MultiplayerPeer internal constructor() : PacketPeer() { */ public final fun getPacketPeer(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPacketPeerPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPacketPeerPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -140,7 +140,7 @@ public open class MultiplayerPeer internal constructor() : PacketPeer() { */ public final fun getPacketChannel(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPacketChannelPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPacketChannelPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -150,7 +150,7 @@ public open class MultiplayerPeer internal constructor() : PacketPeer() { */ public final fun getPacketMode(): TransferMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPacketModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPacketModePtr, LONG) return MultiplayerPeer.TransferMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -159,7 +159,7 @@ public open class MultiplayerPeer internal constructor() : PacketPeer() { */ public final fun poll(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.pollPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pollPtr, NIL) } /** @@ -168,7 +168,7 @@ public open class MultiplayerPeer internal constructor() : PacketPeer() { */ public final fun close(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.closePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.closePtr, NIL) } /** @@ -178,7 +178,7 @@ public open class MultiplayerPeer internal constructor() : PacketPeer() { @JvmOverloads public final fun disconnectPeer(peer: Int, force: Boolean = false): Unit { TransferContext.writeArguments(LONG to peer.toLong(), BOOL to force) - TransferContext.callMethod(rawPtr, MethodBindings.disconnectPeerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.disconnectPeerPtr, NIL) } /** @@ -186,7 +186,7 @@ public open class MultiplayerPeer internal constructor() : PacketPeer() { */ public final fun getConnectionStatus(): ConnectionStatus { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConnectionStatusPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getConnectionStatusPtr, LONG) return MultiplayerPeer.ConnectionStatus.from(TransferContext.readReturnValue(LONG) as Long) } @@ -195,7 +195,7 @@ public open class MultiplayerPeer internal constructor() : PacketPeer() { */ public final fun getUniqueId(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUniqueIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getUniqueIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -204,18 +204,18 @@ public open class MultiplayerPeer internal constructor() : PacketPeer() { */ public final fun generateUniqueId(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.generateUniqueIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.generateUniqueIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setRefuseNewConnections(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setRefuseNewConnectionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRefuseNewConnectionsPtr, NIL) } public final fun isRefusingNewConnections(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isRefusingNewConnectionsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isRefusingNewConnectionsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -226,7 +226,7 @@ public open class MultiplayerPeer internal constructor() : PacketPeer() { */ public final fun isServerRelaySupported(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isServerRelaySupportedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isServerRelaySupportedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerSpawner.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerSpawner.kt index ecb112cb3a..6e1d0de8a7 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerSpawner.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerSpawner.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.NodePath import godot.core.Signal1 @@ -19,7 +20,6 @@ import godot.core.VariantParser.NODE_PATH import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Int import kotlin.Long @@ -99,7 +99,7 @@ public open class MultiplayerSpawner : Node() { */ public final fun addSpawnableScene(path: String): Unit { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.addSpawnableScenePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addSpawnableScenePtr, NIL) } /** @@ -107,7 +107,7 @@ public open class MultiplayerSpawner : Node() { */ public final fun getSpawnableSceneCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSpawnableSceneCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSpawnableSceneCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -116,7 +116,7 @@ public open class MultiplayerSpawner : Node() { */ public final fun getSpawnableScene(index: Int): String { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSpawnableScenePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getSpawnableScenePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -125,7 +125,7 @@ public open class MultiplayerSpawner : Node() { */ public final fun clearSpawnableScenes(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearSpawnableScenesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearSpawnableScenesPtr, NIL) } /** @@ -137,41 +137,41 @@ public open class MultiplayerSpawner : Node() { @JvmOverloads public final fun spawn(`data`: Any? = null): Node? { TransferContext.writeArguments(ANY to data) - TransferContext.callMethod(rawPtr, MethodBindings.spawnPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.spawnPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Node?) } public final fun getSpawnPath(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSpawnPathPtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getSpawnPathPtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } public final fun setSpawnPath(path: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to path) - TransferContext.callMethod(rawPtr, MethodBindings.setSpawnPathPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSpawnPathPtr, NIL) } public final fun getSpawnLimit(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSpawnLimitPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSpawnLimitPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setSpawnLimit(limit: Long): Unit { TransferContext.writeArguments(LONG to limit) - TransferContext.callMethod(rawPtr, MethodBindings.setSpawnLimitPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSpawnLimitPtr, NIL) } public final fun getSpawnFunction(): Callable { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSpawnFunctionPtr, CALLABLE) + TransferContext.callMethod(ptr, MethodBindings.getSpawnFunctionPtr, CALLABLE) return (TransferContext.readReturnValue(CALLABLE) as Callable) } public final fun setSpawnFunction(spawnFunction: Callable): Unit { TransferContext.writeArguments(CALLABLE to spawnFunction) - TransferContext.callMethod(rawPtr, MethodBindings.setSpawnFunctionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSpawnFunctionPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerSynchronizer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerSynchronizer.kt index f50067f2fc..6c54e6039f 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerSynchronizer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/MultiplayerSynchronizer.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.NodePath import godot.core.Signal0 @@ -20,7 +21,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Int @@ -140,56 +140,56 @@ public open class MultiplayerSynchronizer : Node() { public final fun setRootPath(path: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to path) - TransferContext.callMethod(rawPtr, MethodBindings.setRootPathPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRootPathPtr, NIL) } public final fun getRootPath(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRootPathPtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getRootPathPtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } public final fun setReplicationInterval(milliseconds: Double): Unit { TransferContext.writeArguments(DOUBLE to milliseconds) - TransferContext.callMethod(rawPtr, MethodBindings.setReplicationIntervalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setReplicationIntervalPtr, NIL) } public final fun getReplicationInterval(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getReplicationIntervalPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getReplicationIntervalPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun setDeltaInterval(milliseconds: Double): Unit { TransferContext.writeArguments(DOUBLE to milliseconds) - TransferContext.callMethod(rawPtr, MethodBindings.setDeltaIntervalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDeltaIntervalPtr, NIL) } public final fun getDeltaInterval(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDeltaIntervalPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDeltaIntervalPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun setReplicationConfig(config: SceneReplicationConfig?): Unit { TransferContext.writeArguments(OBJECT to config) - TransferContext.callMethod(rawPtr, MethodBindings.setReplicationConfigPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setReplicationConfigPtr, NIL) } public final fun getReplicationConfig(): SceneReplicationConfig? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getReplicationConfigPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getReplicationConfigPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as SceneReplicationConfig?) } public final fun setVisibilityUpdateMode(mode: VisibilityUpdateMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setVisibilityUpdateModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVisibilityUpdateModePtr, NIL) } public final fun getVisibilityUpdateMode(): VisibilityUpdateMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVisibilityUpdateModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVisibilityUpdateModePtr, LONG) return MultiplayerSynchronizer.VisibilityUpdateMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -200,17 +200,17 @@ public open class MultiplayerSynchronizer : Node() { @JvmOverloads public final fun updateVisibility(forPeer: Int = 0): Unit { TransferContext.writeArguments(LONG to forPeer.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.updateVisibilityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.updateVisibilityPtr, NIL) } public final fun setVisibilityPublic(visible: Boolean): Unit { TransferContext.writeArguments(BOOL to visible) - TransferContext.callMethod(rawPtr, MethodBindings.setVisibilityPublicPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVisibilityPublicPtr, NIL) } public final fun isVisibilityPublic(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isVisibilityPublicPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isVisibilityPublicPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -220,7 +220,7 @@ public open class MultiplayerSynchronizer : Node() { */ public final fun addVisibilityFilter(filter: Callable): Unit { TransferContext.writeArguments(CALLABLE to filter) - TransferContext.callMethod(rawPtr, MethodBindings.addVisibilityFilterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addVisibilityFilterPtr, NIL) } /** @@ -228,7 +228,7 @@ public open class MultiplayerSynchronizer : Node() { */ public final fun removeVisibilityFilter(filter: Callable): Unit { TransferContext.writeArguments(CALLABLE to filter) - TransferContext.callMethod(rawPtr, MethodBindings.removeVisibilityFilterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeVisibilityFilterPtr, NIL) } /** @@ -237,7 +237,7 @@ public open class MultiplayerSynchronizer : Node() { */ public final fun setVisibilityFor(peer: Int, visible: Boolean): Unit { TransferContext.writeArguments(LONG to peer.toLong(), BOOL to visible) - TransferContext.callMethod(rawPtr, MethodBindings.setVisibilityForPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVisibilityForPtr, NIL) } /** @@ -245,7 +245,7 @@ public open class MultiplayerSynchronizer : Node() { */ public final fun getVisibilityFor(peer: Int): Boolean { TransferContext.writeArguments(LONG to peer.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getVisibilityForPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getVisibilityForPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Mutex.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Mutex.kt index 815b8e7034..064ed95b69 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Mutex.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Mutex.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -44,7 +44,7 @@ public open class Mutex : RefCounted() { */ public final fun lock(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.lockPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.lockPtr, NIL) } /** @@ -53,7 +53,7 @@ public open class Mutex : RefCounted() { */ public final fun tryLock(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.tryLockPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.tryLockPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -66,7 +66,7 @@ public open class Mutex : RefCounted() { */ public final fun unlock(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.unlockPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.unlockPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/NativeMenu.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/NativeMenu.kt index 132f0970e8..05dc5c0c16 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/NativeMenu.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/NativeMenu.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.RID import godot.core.TypeManager @@ -24,7 +25,6 @@ import godot.core.VariantParser._RID import godot.core.Vector2 import godot.core.Vector2i import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -85,7 +85,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun hasFeature(feature: Feature): Boolean { TransferContext.writeArguments(LONG to feature.id) - TransferContext.callMethod(rawPtr, MethodBindings.hasFeaturePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasFeaturePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -96,7 +96,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun hasSystemMenu(menuId: SystemMenus): Boolean { TransferContext.writeArguments(LONG to menuId.id) - TransferContext.callMethod(rawPtr, MethodBindings.hasSystemMenuPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasSystemMenuPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -107,7 +107,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun getSystemMenu(menuId: SystemMenus): RID { TransferContext.writeArguments(LONG to menuId.id) - TransferContext.callMethod(rawPtr, MethodBindings.getSystemMenuPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getSystemMenuPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -118,7 +118,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun getSystemMenuName(menuId: SystemMenus): String { TransferContext.writeArguments(LONG to menuId.id) - TransferContext.callMethod(rawPtr, MethodBindings.getSystemMenuNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getSystemMenuNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -129,7 +129,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun createMenu(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.createMenuPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.createMenuPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -140,7 +140,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun hasMenu(rid: RID): Boolean { TransferContext.writeArguments(_RID to rid) - TransferContext.callMethod(rawPtr, MethodBindings.hasMenuPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasMenuPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -151,7 +151,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun freeMenu(rid: RID): Unit { TransferContext.writeArguments(_RID to rid) - TransferContext.callMethod(rawPtr, MethodBindings.freeMenuPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.freeMenuPtr, NIL) } /** @@ -161,7 +161,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun getSize(rid: RID): Vector2 { TransferContext.writeArguments(_RID to rid) - TransferContext.callMethod(rawPtr, MethodBindings.getSizePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getSizePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -172,7 +172,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun popup(rid: RID, position: Vector2i): Unit { TransferContext.writeArguments(_RID to rid, VECTOR2I to position) - TransferContext.callMethod(rawPtr, MethodBindings.popupPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.popupPtr, NIL) } /** @@ -182,7 +182,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun setInterfaceDirection(rid: RID, isRtl: Boolean): Unit { TransferContext.writeArguments(_RID to rid, BOOL to isRtl) - TransferContext.callMethod(rawPtr, MethodBindings.setInterfaceDirectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInterfaceDirectionPtr, NIL) } /** @@ -192,7 +192,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun setPopupOpenCallback(rid: RID, callback: Callable): Unit { TransferContext.writeArguments(_RID to rid, CALLABLE to callback) - TransferContext.callMethod(rawPtr, MethodBindings.setPopupOpenCallbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPopupOpenCallbackPtr, NIL) } /** @@ -202,7 +202,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun getPopupOpenCallback(rid: RID): Callable { TransferContext.writeArguments(_RID to rid) - TransferContext.callMethod(rawPtr, MethodBindings.getPopupOpenCallbackPtr, CALLABLE) + TransferContext.callMethod(ptr, MethodBindings.getPopupOpenCallbackPtr, CALLABLE) return (TransferContext.readReturnValue(CALLABLE) as Callable) } @@ -216,7 +216,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun setPopupCloseCallback(rid: RID, callback: Callable): Unit { TransferContext.writeArguments(_RID to rid, CALLABLE to callback) - TransferContext.callMethod(rawPtr, MethodBindings.setPopupCloseCallbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPopupCloseCallbackPtr, NIL) } /** @@ -226,7 +226,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun getPopupCloseCallback(rid: RID): Callable { TransferContext.writeArguments(_RID to rid) - TransferContext.callMethod(rawPtr, MethodBindings.getPopupCloseCallbackPtr, CALLABLE) + TransferContext.callMethod(ptr, MethodBindings.getPopupCloseCallbackPtr, CALLABLE) return (TransferContext.readReturnValue(CALLABLE) as Callable) } @@ -237,7 +237,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun setMinimumWidth(rid: RID, width: Float): Unit { TransferContext.writeArguments(_RID to rid, DOUBLE to width.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMinimumWidthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMinimumWidthPtr, NIL) } /** @@ -247,7 +247,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun getMinimumWidth(rid: RID): Float { TransferContext.writeArguments(_RID to rid) - TransferContext.callMethod(rawPtr, MethodBindings.getMinimumWidthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMinimumWidthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -258,7 +258,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun isOpened(rid: RID): Boolean { TransferContext.writeArguments(_RID to rid) - TransferContext.callMethod(rawPtr, MethodBindings.isOpenedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isOpenedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -278,7 +278,7 @@ public object NativeMenu : Object() { index: Int = -1, ): Int { TransferContext.writeArguments(_RID to rid, STRING to label, _RID to submenuRid, ANY to tag, LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addSubmenuItemPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.addSubmenuItemPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -306,7 +306,7 @@ public object NativeMenu : Object() { index: Int = -1, ): Int { TransferContext.writeArguments(_RID to rid, STRING to label, CALLABLE to callback, CALLABLE to keyCallback, ANY to tag, LONG to accelerator.id, LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addItemPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.addItemPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -334,7 +334,7 @@ public object NativeMenu : Object() { index: Int = -1, ): Int { TransferContext.writeArguments(_RID to rid, STRING to label, CALLABLE to callback, CALLABLE to keyCallback, ANY to tag, LONG to accelerator.id, LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addCheckItemPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.addCheckItemPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -363,7 +363,7 @@ public object NativeMenu : Object() { index: Int = -1, ): Int { TransferContext.writeArguments(_RID to rid, OBJECT to icon, STRING to label, CALLABLE to callback, CALLABLE to keyCallback, ANY to tag, LONG to accelerator.id, LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addIconItemPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.addIconItemPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -392,7 +392,7 @@ public object NativeMenu : Object() { index: Int = -1, ): Int { TransferContext.writeArguments(_RID to rid, OBJECT to icon, STRING to label, CALLABLE to callback, CALLABLE to keyCallback, ANY to tag, LONG to accelerator.id, LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addIconCheckItemPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.addIconCheckItemPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -423,7 +423,7 @@ public object NativeMenu : Object() { index: Int = -1, ): Int { TransferContext.writeArguments(_RID to rid, STRING to label, CALLABLE to callback, CALLABLE to keyCallback, ANY to tag, LONG to accelerator.id, LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addRadioCheckItemPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.addRadioCheckItemPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -455,7 +455,7 @@ public object NativeMenu : Object() { index: Int = -1, ): Int { TransferContext.writeArguments(_RID to rid, OBJECT to icon, STRING to label, CALLABLE to callback, CALLABLE to keyCallback, ANY to tag, LONG to accelerator.id, LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addIconRadioCheckItemPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.addIconRadioCheckItemPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -490,7 +490,7 @@ public object NativeMenu : Object() { index: Int = -1, ): Int { TransferContext.writeArguments(_RID to rid, STRING to label, LONG to maxStates.toLong(), LONG to defaultState.toLong(), CALLABLE to callback, CALLABLE to keyCallback, ANY to tag, LONG to accelerator.id, LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addMultistateItemPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.addMultistateItemPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -503,7 +503,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun addSeparator(rid: RID, index: Int = -1): Int { TransferContext.writeArguments(_RID to rid, LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addSeparatorPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.addSeparatorPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -515,7 +515,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun findItemIndexWithText(rid: RID, text: String): Int { TransferContext.writeArguments(_RID to rid, STRING to text) - TransferContext.callMethod(rawPtr, MethodBindings.findItemIndexWithTextPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.findItemIndexWithTextPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -527,7 +527,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun findItemIndexWithTag(rid: RID, tag: Any?): Int { TransferContext.writeArguments(_RID to rid, ANY to tag) - TransferContext.callMethod(rawPtr, MethodBindings.findItemIndexWithTagPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.findItemIndexWithTagPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -539,7 +539,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun findItemIndexWithSubmenu(rid: RID, submenuRid: RID): Int { TransferContext.writeArguments(_RID to rid, _RID to submenuRid) - TransferContext.callMethod(rawPtr, MethodBindings.findItemIndexWithSubmenuPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.findItemIndexWithSubmenuPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -550,7 +550,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun isItemChecked(rid: RID, idx: Int): Boolean { TransferContext.writeArguments(_RID to rid, LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isItemCheckedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isItemCheckedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -562,7 +562,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun isItemCheckable(rid: RID, idx: Int): Boolean { TransferContext.writeArguments(_RID to rid, LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isItemCheckablePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isItemCheckablePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -575,7 +575,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun isItemRadioCheckable(rid: RID, idx: Int): Boolean { TransferContext.writeArguments(_RID to rid, LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isItemRadioCheckablePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isItemRadioCheckablePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -586,7 +586,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun getItemCallback(rid: RID, idx: Int): Callable { TransferContext.writeArguments(_RID to rid, LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemCallbackPtr, CALLABLE) + TransferContext.callMethod(ptr, MethodBindings.getItemCallbackPtr, CALLABLE) return (TransferContext.readReturnValue(CALLABLE) as Callable) } @@ -597,7 +597,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun getItemKeyCallback(rid: RID, idx: Int): Callable { TransferContext.writeArguments(_RID to rid, LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemKeyCallbackPtr, CALLABLE) + TransferContext.callMethod(ptr, MethodBindings.getItemKeyCallbackPtr, CALLABLE) return (TransferContext.readReturnValue(CALLABLE) as Callable) } @@ -609,7 +609,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun getItemTag(rid: RID, idx: Int): Any? { TransferContext.writeArguments(_RID to rid, LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemTagPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getItemTagPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -620,7 +620,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun getItemText(rid: RID, idx: Int): String { TransferContext.writeArguments(_RID to rid, LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemTextPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getItemTextPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -632,7 +632,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun getItemSubmenu(rid: RID, idx: Int): RID { TransferContext.writeArguments(_RID to rid, LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemSubmenuPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getItemSubmenuPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -644,7 +644,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun getItemAccelerator(rid: RID, idx: Int): Key { TransferContext.writeArguments(_RID to rid, LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemAcceleratorPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getItemAcceleratorPtr, LONG) return Key.from(TransferContext.readReturnValue(LONG) as Long) } @@ -657,7 +657,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun isItemDisabled(rid: RID, idx: Int): Boolean { TransferContext.writeArguments(_RID to rid, LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isItemDisabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isItemDisabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -669,7 +669,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun isItemHidden(rid: RID, idx: Int): Boolean { TransferContext.writeArguments(_RID to rid, LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isItemHiddenPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isItemHiddenPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -680,7 +680,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun getItemTooltip(rid: RID, idx: Int): String { TransferContext.writeArguments(_RID to rid, LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemTooltipPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getItemTooltipPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -691,7 +691,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun getItemState(rid: RID, idx: Int): Int { TransferContext.writeArguments(_RID to rid, LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemStatePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getItemStatePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -702,7 +702,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun getItemMaxStates(rid: RID, idx: Int): Int { TransferContext.writeArguments(_RID to rid, LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemMaxStatesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getItemMaxStatesPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -713,7 +713,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun getItemIcon(rid: RID, idx: Int): Texture2D? { TransferContext.writeArguments(_RID to rid, LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemIconPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getItemIconPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } @@ -724,7 +724,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun getItemIndentationLevel(rid: RID, idx: Int): Int { TransferContext.writeArguments(_RID to rid, LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemIndentationLevelPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getItemIndentationLevelPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -739,7 +739,7 @@ public object NativeMenu : Object() { checked: Boolean, ): Unit { TransferContext.writeArguments(_RID to rid, LONG to idx.toLong(), BOOL to checked) - TransferContext.callMethod(rawPtr, MethodBindings.setItemCheckedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemCheckedPtr, NIL) } /** @@ -754,7 +754,7 @@ public object NativeMenu : Object() { checkable: Boolean, ): Unit { TransferContext.writeArguments(_RID to rid, LONG to idx.toLong(), BOOL to checkable) - TransferContext.callMethod(rawPtr, MethodBindings.setItemCheckablePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemCheckablePtr, NIL) } /** @@ -771,7 +771,7 @@ public object NativeMenu : Object() { checkable: Boolean, ): Unit { TransferContext.writeArguments(_RID to rid, LONG to idx.toLong(), BOOL to checkable) - TransferContext.callMethod(rawPtr, MethodBindings.setItemRadioCheckablePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemRadioCheckablePtr, NIL) } /** @@ -788,7 +788,7 @@ public object NativeMenu : Object() { callback: Callable, ): Unit { TransferContext.writeArguments(_RID to rid, LONG to idx.toLong(), CALLABLE to callback) - TransferContext.callMethod(rawPtr, MethodBindings.setItemCallbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemCallbackPtr, NIL) } /** @@ -805,7 +805,7 @@ public object NativeMenu : Object() { callback: Callable, ): Unit { TransferContext.writeArguments(_RID to rid, LONG to idx.toLong(), CALLABLE to callback) - TransferContext.callMethod(rawPtr, MethodBindings.setItemHoverCallbacksPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemHoverCallbacksPtr, NIL) } /** @@ -823,7 +823,7 @@ public object NativeMenu : Object() { keyCallback: Callable, ): Unit { TransferContext.writeArguments(_RID to rid, LONG to idx.toLong(), CALLABLE to keyCallback) - TransferContext.callMethod(rawPtr, MethodBindings.setItemKeyCallbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemKeyCallbackPtr, NIL) } /** @@ -838,7 +838,7 @@ public object NativeMenu : Object() { tag: Any?, ): Unit { TransferContext.writeArguments(_RID to rid, LONG to idx.toLong(), ANY to tag) - TransferContext.callMethod(rawPtr, MethodBindings.setItemTagPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemTagPtr, NIL) } /** @@ -852,7 +852,7 @@ public object NativeMenu : Object() { text: String, ): Unit { TransferContext.writeArguments(_RID to rid, LONG to idx.toLong(), STRING to text) - TransferContext.callMethod(rawPtr, MethodBindings.setItemTextPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemTextPtr, NIL) } /** @@ -867,7 +867,7 @@ public object NativeMenu : Object() { submenuRid: RID, ): Unit { TransferContext.writeArguments(_RID to rid, LONG to idx.toLong(), _RID to submenuRid) - TransferContext.callMethod(rawPtr, MethodBindings.setItemSubmenuPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemSubmenuPtr, NIL) } /** @@ -883,7 +883,7 @@ public object NativeMenu : Object() { keycode: Key, ): Unit { TransferContext.writeArguments(_RID to rid, LONG to idx.toLong(), LONG to keycode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setItemAcceleratorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemAcceleratorPtr, NIL) } /** @@ -898,7 +898,7 @@ public object NativeMenu : Object() { disabled: Boolean, ): Unit { TransferContext.writeArguments(_RID to rid, LONG to idx.toLong(), BOOL to disabled) - TransferContext.callMethod(rawPtr, MethodBindings.setItemDisabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemDisabledPtr, NIL) } /** @@ -913,7 +913,7 @@ public object NativeMenu : Object() { hidden: Boolean, ): Unit { TransferContext.writeArguments(_RID to rid, LONG to idx.toLong(), BOOL to hidden) - TransferContext.callMethod(rawPtr, MethodBindings.setItemHiddenPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemHiddenPtr, NIL) } /** @@ -927,7 +927,7 @@ public object NativeMenu : Object() { tooltip: String, ): Unit { TransferContext.writeArguments(_RID to rid, LONG to idx.toLong(), STRING to tooltip) - TransferContext.callMethod(rawPtr, MethodBindings.setItemTooltipPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemTooltipPtr, NIL) } /** @@ -941,7 +941,7 @@ public object NativeMenu : Object() { state: Int, ): Unit { TransferContext.writeArguments(_RID to rid, LONG to idx.toLong(), LONG to state.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setItemStatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemStatePtr, NIL) } /** @@ -955,7 +955,7 @@ public object NativeMenu : Object() { maxStates: Int, ): Unit { TransferContext.writeArguments(_RID to rid, LONG to idx.toLong(), LONG to maxStates.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setItemMaxStatesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemMaxStatesPtr, NIL) } /** @@ -970,7 +970,7 @@ public object NativeMenu : Object() { icon: Texture2D?, ): Unit { TransferContext.writeArguments(_RID to rid, LONG to idx.toLong(), OBJECT to icon) - TransferContext.callMethod(rawPtr, MethodBindings.setItemIconPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemIconPtr, NIL) } /** @@ -984,7 +984,7 @@ public object NativeMenu : Object() { level: Int, ): Unit { TransferContext.writeArguments(_RID to rid, LONG to idx.toLong(), LONG to level.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setItemIndentationLevelPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemIndentationLevelPtr, NIL) } /** @@ -994,7 +994,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun getItemCount(rid: RID): Int { TransferContext.writeArguments(_RID to rid) - TransferContext.callMethod(rawPtr, MethodBindings.getItemCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getItemCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1005,7 +1005,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun isSystemMenu(rid: RID): Boolean { TransferContext.writeArguments(_RID to rid) - TransferContext.callMethod(rawPtr, MethodBindings.isSystemMenuPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSystemMenuPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1017,7 +1017,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun removeItem(rid: RID, idx: Int): Unit { TransferContext.writeArguments(_RID to rid, LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeItemPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeItemPtr, NIL) } /** @@ -1027,7 +1027,7 @@ public object NativeMenu : Object() { @JvmStatic public final fun clear(rid: RID): Unit { TransferContext.writeArguments(_RID to rid) - TransferContext.callMethod(rawPtr, MethodBindings.clearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPtr, NIL) } public enum class Feature( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationAgent2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationAgent2D.kt index 981020e665..0423b496d3 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationAgent2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationAgent2D.kt @@ -10,6 +10,7 @@ import godot.NavigationPathQueryParameters2D.PathMetadataFlagsValue import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.Dictionary import godot.core.PackedVector2Array @@ -28,7 +29,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -534,128 +534,128 @@ public open class NavigationAgent2D : Node() { */ public final fun getRid(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRidPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getRidPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } public final fun setAvoidanceEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setAvoidanceEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAvoidanceEnabledPtr, NIL) } public final fun getAvoidanceEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAvoidanceEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getAvoidanceEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setPathDesiredDistance(desiredDistance: Float): Unit { TransferContext.writeArguments(DOUBLE to desiredDistance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPathDesiredDistancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPathDesiredDistancePtr, NIL) } public final fun getPathDesiredDistance(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPathDesiredDistancePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPathDesiredDistancePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setTargetDesiredDistance(desiredDistance: Float): Unit { TransferContext.writeArguments(DOUBLE to desiredDistance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTargetDesiredDistancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTargetDesiredDistancePtr, NIL) } public final fun getTargetDesiredDistance(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTargetDesiredDistancePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTargetDesiredDistancePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setRadius(radius: Float): Unit { TransferContext.writeArguments(DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRadiusPtr, NIL) } public final fun getRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setNeighborDistance(neighborDistance: Float): Unit { TransferContext.writeArguments(DOUBLE to neighborDistance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setNeighborDistancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNeighborDistancePtr, NIL) } public final fun getNeighborDistance(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNeighborDistancePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getNeighborDistancePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setMaxNeighbors(maxNeighbors: Int): Unit { TransferContext.writeArguments(LONG to maxNeighbors.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxNeighborsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxNeighborsPtr, NIL) } public final fun getMaxNeighbors(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxNeighborsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMaxNeighborsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setTimeHorizonAgents(timeHorizon: Float): Unit { TransferContext.writeArguments(DOUBLE to timeHorizon.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTimeHorizonAgentsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTimeHorizonAgentsPtr, NIL) } public final fun getTimeHorizonAgents(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTimeHorizonAgentsPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTimeHorizonAgentsPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setTimeHorizonObstacles(timeHorizon: Float): Unit { TransferContext.writeArguments(DOUBLE to timeHorizon.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTimeHorizonObstaclesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTimeHorizonObstaclesPtr, NIL) } public final fun getTimeHorizonObstacles(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTimeHorizonObstaclesPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTimeHorizonObstaclesPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setMaxSpeed(maxSpeed: Float): Unit { TransferContext.writeArguments(DOUBLE to maxSpeed.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxSpeedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxSpeedPtr, NIL) } public final fun getMaxSpeed(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxSpeedPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMaxSpeedPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setPathMaxDistance(maxSpeed: Float): Unit { TransferContext.writeArguments(DOUBLE to maxSpeed.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPathMaxDistancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPathMaxDistancePtr, NIL) } public final fun getPathMaxDistance(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPathMaxDistancePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPathMaxDistancePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setNavigationLayers(navigationLayers: Long): Unit { TransferContext.writeArguments(LONG to navigationLayers) - TransferContext.callMethod(rawPtr, MethodBindings.setNavigationLayersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNavigationLayersPtr, NIL) } public final fun getNavigationLayers(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNavigationLayersPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getNavigationLayersPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -665,7 +665,7 @@ public open class NavigationAgent2D : Node() { */ public final fun setNavigationLayerValue(layerNumber: Int, `value`: Boolean): Unit { TransferContext.writeArguments(LONG to layerNumber.toLong(), BOOL to value) - TransferContext.callMethod(rawPtr, MethodBindings.setNavigationLayerValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNavigationLayerValuePtr, NIL) } /** @@ -674,7 +674,7 @@ public open class NavigationAgent2D : Node() { */ public final fun getNavigationLayerValue(layerNumber: Int): Boolean { TransferContext.writeArguments(LONG to layerNumber.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getNavigationLayerValuePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getNavigationLayerValuePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -682,12 +682,12 @@ public open class NavigationAgent2D : Node() { fun setPathfindingAlgorithm(pathfindingAlgorithm: NavigationPathQueryParameters2D.PathfindingAlgorithm): Unit { TransferContext.writeArguments(LONG to pathfindingAlgorithm.id) - TransferContext.callMethod(rawPtr, MethodBindings.setPathfindingAlgorithmPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPathfindingAlgorithmPtr, NIL) } public final fun getPathfindingAlgorithm(): NavigationPathQueryParameters2D.PathfindingAlgorithm { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPathfindingAlgorithmPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPathfindingAlgorithmPtr, LONG) return NavigationPathQueryParameters2D.PathfindingAlgorithm.from(TransferContext.readReturnValue(LONG) as Long) } @@ -695,24 +695,24 @@ public open class NavigationAgent2D : Node() { fun setPathPostprocessing(pathPostprocessing: NavigationPathQueryParameters2D.PathPostProcessing): Unit { TransferContext.writeArguments(LONG to pathPostprocessing.id) - TransferContext.callMethod(rawPtr, MethodBindings.setPathPostprocessingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPathPostprocessingPtr, NIL) } public final fun getPathPostprocessing(): NavigationPathQueryParameters2D.PathPostProcessing { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPathPostprocessingPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPathPostprocessingPtr, LONG) return NavigationPathQueryParameters2D.PathPostProcessing.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setPathMetadataFlags(flags: NavigationPathQueryParameters2D.PathMetadataFlags): Unit { TransferContext.writeArguments(LONG to flags.flag) - TransferContext.callMethod(rawPtr, MethodBindings.setPathMetadataFlagsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPathMetadataFlagsPtr, NIL) } public final fun getPathMetadataFlags(): NavigationPathQueryParameters2D.PathMetadataFlags { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPathMetadataFlagsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPathMetadataFlagsPtr, LONG) return PathMetadataFlagsValue(TransferContext.readReturnValue(LONG) as Long) } @@ -722,7 +722,7 @@ public open class NavigationAgent2D : Node() { */ public final fun setNavigationMap(navigationMap: RID): Unit { TransferContext.writeArguments(_RID to navigationMap) - TransferContext.callMethod(rawPtr, MethodBindings.setNavigationMapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNavigationMapPtr, NIL) } /** @@ -734,40 +734,40 @@ public open class NavigationAgent2D : Node() { */ public final fun getNavigationMap(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNavigationMapPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getNavigationMapPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } public final fun setTargetPosition(position: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.setTargetPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTargetPositionPtr, NIL) } public final fun getTargetPosition(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTargetPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getTargetPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setSimplifyPath(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setSimplifyPathPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSimplifyPathPtr, NIL) } public final fun getSimplifyPath(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSimplifyPathPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getSimplifyPathPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSimplifyEpsilon(epsilon: Float): Unit { TransferContext.writeArguments(DOUBLE to epsilon.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSimplifyEpsilonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSimplifyEpsilonPtr, NIL) } public final fun getSimplifyEpsilon(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSimplifyEpsilonPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSimplifyEpsilonPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -779,7 +779,7 @@ public open class NavigationAgent2D : Node() { */ public final fun getNextPathPosition(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNextPathPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getNextPathPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -790,17 +790,17 @@ public open class NavigationAgent2D : Node() { */ public final fun setVelocityForced(velocity: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to velocity) - TransferContext.callMethod(rawPtr, MethodBindings.setVelocityForcedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVelocityForcedPtr, NIL) } public final fun setVelocity(velocity: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to velocity) - TransferContext.callMethod(rawPtr, MethodBindings.setVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVelocityPtr, NIL) } public final fun getVelocity(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVelocityPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getVelocityPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -810,7 +810,7 @@ public open class NavigationAgent2D : Node() { */ public final fun distanceToTarget(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.distanceToTargetPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.distanceToTargetPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -819,7 +819,7 @@ public open class NavigationAgent2D : Node() { */ public final fun getCurrentNavigationResult(): NavigationPathQueryResult2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCurrentNavigationResultPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getCurrentNavigationResultPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as NavigationPathQueryResult2D?) } @@ -833,7 +833,7 @@ public open class NavigationAgent2D : Node() { */ public final fun getCurrentNavigationPath(): PackedVector2Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCurrentNavigationPathPtr, + TransferContext.callMethod(ptr, MethodBindings.getCurrentNavigationPathPtr, PACKED_VECTOR2_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR2_ARRAY) as PackedVector2Array) } @@ -843,7 +843,7 @@ public open class NavigationAgent2D : Node() { */ public final fun getCurrentNavigationPathIndex(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCurrentNavigationPathIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCurrentNavigationPathIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -854,7 +854,7 @@ public open class NavigationAgent2D : Node() { */ public final fun isTargetReached(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isTargetReachedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isTargetReachedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -863,7 +863,7 @@ public open class NavigationAgent2D : Node() { */ public final fun isTargetReachable(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isTargetReachablePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isTargetReachablePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -876,7 +876,7 @@ public open class NavigationAgent2D : Node() { */ public final fun isNavigationFinished(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isNavigationFinishedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isNavigationFinishedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -887,29 +887,29 @@ public open class NavigationAgent2D : Node() { */ public final fun getFinalPosition(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFinalPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getFinalPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setAvoidanceLayers(layers: Long): Unit { TransferContext.writeArguments(LONG to layers) - TransferContext.callMethod(rawPtr, MethodBindings.setAvoidanceLayersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAvoidanceLayersPtr, NIL) } public final fun getAvoidanceLayers(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAvoidanceLayersPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAvoidanceLayersPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setAvoidanceMask(mask: Long): Unit { TransferContext.writeArguments(LONG to mask) - TransferContext.callMethod(rawPtr, MethodBindings.setAvoidanceMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAvoidanceMaskPtr, NIL) } public final fun getAvoidanceMask(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAvoidanceMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAvoidanceMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -919,7 +919,7 @@ public open class NavigationAgent2D : Node() { */ public final fun setAvoidanceLayerValue(layerNumber: Int, `value`: Boolean): Unit { TransferContext.writeArguments(LONG to layerNumber.toLong(), BOOL to value) - TransferContext.callMethod(rawPtr, MethodBindings.setAvoidanceLayerValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAvoidanceLayerValuePtr, NIL) } /** @@ -928,7 +928,7 @@ public open class NavigationAgent2D : Node() { */ public final fun getAvoidanceLayerValue(layerNumber: Int): Boolean { TransferContext.writeArguments(LONG to layerNumber.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getAvoidanceLayerValuePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getAvoidanceLayerValuePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -938,7 +938,7 @@ public open class NavigationAgent2D : Node() { */ public final fun setAvoidanceMaskValue(maskNumber: Int, `value`: Boolean): Unit { TransferContext.writeArguments(LONG to maskNumber.toLong(), BOOL to value) - TransferContext.callMethod(rawPtr, MethodBindings.setAvoidanceMaskValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAvoidanceMaskValuePtr, NIL) } /** @@ -947,73 +947,73 @@ public open class NavigationAgent2D : Node() { */ public final fun getAvoidanceMaskValue(maskNumber: Int): Boolean { TransferContext.writeArguments(LONG to maskNumber.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getAvoidanceMaskValuePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getAvoidanceMaskValuePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAvoidancePriority(priority: Float): Unit { TransferContext.writeArguments(DOUBLE to priority.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAvoidancePriorityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAvoidancePriorityPtr, NIL) } public final fun getAvoidancePriority(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAvoidancePriorityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAvoidancePriorityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDebugEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDebugEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDebugEnabledPtr, NIL) } public final fun getDebugEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDebugEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getDebugEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDebugUseCustom(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDebugUseCustomPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDebugUseCustomPtr, NIL) } public final fun getDebugUseCustom(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDebugUseCustomPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getDebugUseCustomPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDebugPathCustomColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setDebugPathCustomColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDebugPathCustomColorPtr, NIL) } public final fun getDebugPathCustomColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDebugPathCustomColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getDebugPathCustomColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setDebugPathCustomPointSize(pointSize: Float): Unit { TransferContext.writeArguments(DOUBLE to pointSize.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDebugPathCustomPointSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDebugPathCustomPointSizePtr, NIL) } public final fun getDebugPathCustomPointSize(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDebugPathCustomPointSizePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDebugPathCustomPointSizePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDebugPathCustomLineWidth(lineWidth: Float): Unit { TransferContext.writeArguments(DOUBLE to lineWidth.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDebugPathCustomLineWidthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDebugPathCustomLineWidthPtr, NIL) } public final fun getDebugPathCustomLineWidth(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDebugPathCustomLineWidthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDebugPathCustomLineWidthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationAgent3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationAgent3D.kt index 24f2345745..4ee242913d 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationAgent3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationAgent3D.kt @@ -10,6 +10,7 @@ import godot.NavigationPathQueryParameters3D.PathMetadataFlagsValue import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.Dictionary import godot.core.PackedVector3Array @@ -28,7 +29,6 @@ import godot.core.VariantParser.VECTOR3 import godot.core.VariantParser._RID import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -581,172 +581,172 @@ public open class NavigationAgent3D : Node() { */ public final fun getRid(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRidPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getRidPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } public final fun setAvoidanceEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setAvoidanceEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAvoidanceEnabledPtr, NIL) } public final fun getAvoidanceEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAvoidanceEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getAvoidanceEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setPathDesiredDistance(desiredDistance: Float): Unit { TransferContext.writeArguments(DOUBLE to desiredDistance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPathDesiredDistancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPathDesiredDistancePtr, NIL) } public final fun getPathDesiredDistance(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPathDesiredDistancePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPathDesiredDistancePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setTargetDesiredDistance(desiredDistance: Float): Unit { TransferContext.writeArguments(DOUBLE to desiredDistance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTargetDesiredDistancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTargetDesiredDistancePtr, NIL) } public final fun getTargetDesiredDistance(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTargetDesiredDistancePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTargetDesiredDistancePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setRadius(radius: Float): Unit { TransferContext.writeArguments(DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRadiusPtr, NIL) } public final fun getRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setHeight(height: Float): Unit { TransferContext.writeArguments(DOUBLE to height.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setHeightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHeightPtr, NIL) } public final fun getHeight(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHeightPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getHeightPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setPathHeightOffset(pathHeightOffset: Float): Unit { TransferContext.writeArguments(DOUBLE to pathHeightOffset.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPathHeightOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPathHeightOffsetPtr, NIL) } public final fun getPathHeightOffset(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPathHeightOffsetPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPathHeightOffsetPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setUse3dAvoidance(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setUse3dAvoidancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUse3dAvoidancePtr, NIL) } public final fun getUse3dAvoidance(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUse3dAvoidancePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getUse3dAvoidancePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setKeepYVelocity(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setKeepYVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setKeepYVelocityPtr, NIL) } public final fun getKeepYVelocity(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getKeepYVelocityPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getKeepYVelocityPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setNeighborDistance(neighborDistance: Float): Unit { TransferContext.writeArguments(DOUBLE to neighborDistance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setNeighborDistancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNeighborDistancePtr, NIL) } public final fun getNeighborDistance(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNeighborDistancePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getNeighborDistancePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setMaxNeighbors(maxNeighbors: Int): Unit { TransferContext.writeArguments(LONG to maxNeighbors.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxNeighborsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxNeighborsPtr, NIL) } public final fun getMaxNeighbors(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxNeighborsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMaxNeighborsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setTimeHorizonAgents(timeHorizon: Float): Unit { TransferContext.writeArguments(DOUBLE to timeHorizon.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTimeHorizonAgentsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTimeHorizonAgentsPtr, NIL) } public final fun getTimeHorizonAgents(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTimeHorizonAgentsPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTimeHorizonAgentsPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setTimeHorizonObstacles(timeHorizon: Float): Unit { TransferContext.writeArguments(DOUBLE to timeHorizon.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTimeHorizonObstaclesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTimeHorizonObstaclesPtr, NIL) } public final fun getTimeHorizonObstacles(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTimeHorizonObstaclesPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTimeHorizonObstaclesPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setMaxSpeed(maxSpeed: Float): Unit { TransferContext.writeArguments(DOUBLE to maxSpeed.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxSpeedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxSpeedPtr, NIL) } public final fun getMaxSpeed(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxSpeedPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMaxSpeedPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setPathMaxDistance(maxSpeed: Float): Unit { TransferContext.writeArguments(DOUBLE to maxSpeed.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPathMaxDistancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPathMaxDistancePtr, NIL) } public final fun getPathMaxDistance(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPathMaxDistancePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPathMaxDistancePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setNavigationLayers(navigationLayers: Long): Unit { TransferContext.writeArguments(LONG to navigationLayers) - TransferContext.callMethod(rawPtr, MethodBindings.setNavigationLayersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNavigationLayersPtr, NIL) } public final fun getNavigationLayers(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNavigationLayersPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getNavigationLayersPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -756,7 +756,7 @@ public open class NavigationAgent3D : Node() { */ public final fun setNavigationLayerValue(layerNumber: Int, `value`: Boolean): Unit { TransferContext.writeArguments(LONG to layerNumber.toLong(), BOOL to value) - TransferContext.callMethod(rawPtr, MethodBindings.setNavigationLayerValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNavigationLayerValuePtr, NIL) } /** @@ -765,7 +765,7 @@ public open class NavigationAgent3D : Node() { */ public final fun getNavigationLayerValue(layerNumber: Int): Boolean { TransferContext.writeArguments(LONG to layerNumber.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getNavigationLayerValuePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getNavigationLayerValuePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -773,12 +773,12 @@ public open class NavigationAgent3D : Node() { fun setPathfindingAlgorithm(pathfindingAlgorithm: NavigationPathQueryParameters3D.PathfindingAlgorithm): Unit { TransferContext.writeArguments(LONG to pathfindingAlgorithm.id) - TransferContext.callMethod(rawPtr, MethodBindings.setPathfindingAlgorithmPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPathfindingAlgorithmPtr, NIL) } public final fun getPathfindingAlgorithm(): NavigationPathQueryParameters3D.PathfindingAlgorithm { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPathfindingAlgorithmPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPathfindingAlgorithmPtr, LONG) return NavigationPathQueryParameters3D.PathfindingAlgorithm.from(TransferContext.readReturnValue(LONG) as Long) } @@ -786,24 +786,24 @@ public open class NavigationAgent3D : Node() { fun setPathPostprocessing(pathPostprocessing: NavigationPathQueryParameters3D.PathPostProcessing): Unit { TransferContext.writeArguments(LONG to pathPostprocessing.id) - TransferContext.callMethod(rawPtr, MethodBindings.setPathPostprocessingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPathPostprocessingPtr, NIL) } public final fun getPathPostprocessing(): NavigationPathQueryParameters3D.PathPostProcessing { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPathPostprocessingPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPathPostprocessingPtr, LONG) return NavigationPathQueryParameters3D.PathPostProcessing.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setPathMetadataFlags(flags: NavigationPathQueryParameters3D.PathMetadataFlags): Unit { TransferContext.writeArguments(LONG to flags.flag) - TransferContext.callMethod(rawPtr, MethodBindings.setPathMetadataFlagsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPathMetadataFlagsPtr, NIL) } public final fun getPathMetadataFlags(): NavigationPathQueryParameters3D.PathMetadataFlags { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPathMetadataFlagsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPathMetadataFlagsPtr, LONG) return PathMetadataFlagsValue(TransferContext.readReturnValue(LONG) as Long) } @@ -813,7 +813,7 @@ public open class NavigationAgent3D : Node() { */ public final fun setNavigationMap(navigationMap: RID): Unit { TransferContext.writeArguments(_RID to navigationMap) - TransferContext.callMethod(rawPtr, MethodBindings.setNavigationMapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNavigationMapPtr, NIL) } /** @@ -825,40 +825,40 @@ public open class NavigationAgent3D : Node() { */ public final fun getNavigationMap(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNavigationMapPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getNavigationMapPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } public final fun setTargetPosition(position: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to position) - TransferContext.callMethod(rawPtr, MethodBindings.setTargetPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTargetPositionPtr, NIL) } public final fun getTargetPosition(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTargetPositionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getTargetPositionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setSimplifyPath(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setSimplifyPathPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSimplifyPathPtr, NIL) } public final fun getSimplifyPath(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSimplifyPathPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getSimplifyPathPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSimplifyEpsilon(epsilon: Float): Unit { TransferContext.writeArguments(DOUBLE to epsilon.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSimplifyEpsilonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSimplifyEpsilonPtr, NIL) } public final fun getSimplifyEpsilon(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSimplifyEpsilonPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSimplifyEpsilonPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -870,7 +870,7 @@ public open class NavigationAgent3D : Node() { */ public final fun getNextPathPosition(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNextPathPositionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getNextPathPositionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -881,17 +881,17 @@ public open class NavigationAgent3D : Node() { */ public final fun setVelocityForced(velocity: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to velocity) - TransferContext.callMethod(rawPtr, MethodBindings.setVelocityForcedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVelocityForcedPtr, NIL) } public final fun setVelocity(velocity: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to velocity) - TransferContext.callMethod(rawPtr, MethodBindings.setVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVelocityPtr, NIL) } public final fun getVelocity(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVelocityPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getVelocityPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -901,7 +901,7 @@ public open class NavigationAgent3D : Node() { */ public final fun distanceToTarget(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.distanceToTargetPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.distanceToTargetPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -910,7 +910,7 @@ public open class NavigationAgent3D : Node() { */ public final fun getCurrentNavigationResult(): NavigationPathQueryResult3D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCurrentNavigationResultPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getCurrentNavigationResultPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as NavigationPathQueryResult3D?) } @@ -924,7 +924,7 @@ public open class NavigationAgent3D : Node() { */ public final fun getCurrentNavigationPath(): PackedVector3Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCurrentNavigationPathPtr, + TransferContext.callMethod(ptr, MethodBindings.getCurrentNavigationPathPtr, PACKED_VECTOR3_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR3_ARRAY) as PackedVector3Array) } @@ -934,7 +934,7 @@ public open class NavigationAgent3D : Node() { */ public final fun getCurrentNavigationPathIndex(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCurrentNavigationPathIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCurrentNavigationPathIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -945,7 +945,7 @@ public open class NavigationAgent3D : Node() { */ public final fun isTargetReached(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isTargetReachedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isTargetReachedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -954,7 +954,7 @@ public open class NavigationAgent3D : Node() { */ public final fun isTargetReachable(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isTargetReachablePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isTargetReachablePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -967,7 +967,7 @@ public open class NavigationAgent3D : Node() { */ public final fun isNavigationFinished(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isNavigationFinishedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isNavigationFinishedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -978,29 +978,29 @@ public open class NavigationAgent3D : Node() { */ public final fun getFinalPosition(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFinalPositionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getFinalPositionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setAvoidanceLayers(layers: Long): Unit { TransferContext.writeArguments(LONG to layers) - TransferContext.callMethod(rawPtr, MethodBindings.setAvoidanceLayersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAvoidanceLayersPtr, NIL) } public final fun getAvoidanceLayers(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAvoidanceLayersPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAvoidanceLayersPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setAvoidanceMask(mask: Long): Unit { TransferContext.writeArguments(LONG to mask) - TransferContext.callMethod(rawPtr, MethodBindings.setAvoidanceMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAvoidanceMaskPtr, NIL) } public final fun getAvoidanceMask(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAvoidanceMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAvoidanceMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -1010,7 +1010,7 @@ public open class NavigationAgent3D : Node() { */ public final fun setAvoidanceLayerValue(layerNumber: Int, `value`: Boolean): Unit { TransferContext.writeArguments(LONG to layerNumber.toLong(), BOOL to value) - TransferContext.callMethod(rawPtr, MethodBindings.setAvoidanceLayerValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAvoidanceLayerValuePtr, NIL) } /** @@ -1019,7 +1019,7 @@ public open class NavigationAgent3D : Node() { */ public final fun getAvoidanceLayerValue(layerNumber: Int): Boolean { TransferContext.writeArguments(LONG to layerNumber.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getAvoidanceLayerValuePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getAvoidanceLayerValuePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1029,7 +1029,7 @@ public open class NavigationAgent3D : Node() { */ public final fun setAvoidanceMaskValue(maskNumber: Int, `value`: Boolean): Unit { TransferContext.writeArguments(LONG to maskNumber.toLong(), BOOL to value) - TransferContext.callMethod(rawPtr, MethodBindings.setAvoidanceMaskValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAvoidanceMaskValuePtr, NIL) } /** @@ -1038,62 +1038,62 @@ public open class NavigationAgent3D : Node() { */ public final fun getAvoidanceMaskValue(maskNumber: Int): Boolean { TransferContext.writeArguments(LONG to maskNumber.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getAvoidanceMaskValuePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getAvoidanceMaskValuePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAvoidancePriority(priority: Float): Unit { TransferContext.writeArguments(DOUBLE to priority.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAvoidancePriorityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAvoidancePriorityPtr, NIL) } public final fun getAvoidancePriority(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAvoidancePriorityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAvoidancePriorityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDebugEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDebugEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDebugEnabledPtr, NIL) } public final fun getDebugEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDebugEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getDebugEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDebugUseCustom(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDebugUseCustomPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDebugUseCustomPtr, NIL) } public final fun getDebugUseCustom(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDebugUseCustomPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getDebugUseCustomPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDebugPathCustomColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setDebugPathCustomColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDebugPathCustomColorPtr, NIL) } public final fun getDebugPathCustomColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDebugPathCustomColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getDebugPathCustomColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setDebugPathCustomPointSize(pointSize: Float): Unit { TransferContext.writeArguments(DOUBLE to pointSize.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDebugPathCustomPointSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDebugPathCustomPointSizePtr, NIL) } public final fun getDebugPathCustomPointSize(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDebugPathCustomPointSizePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDebugPathCustomPointSizePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationLink2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationLink2D.kt index 9e91514e6d..fd7d8fec3e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationLink2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationLink2D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -19,7 +20,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -190,40 +190,40 @@ public open class NavigationLink2D : Node2D() { */ public final fun getRid(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRidPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getRidPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } public final fun setEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnabledPtr, NIL) } public final fun isEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setBidirectional(bidirectional: Boolean): Unit { TransferContext.writeArguments(BOOL to bidirectional) - TransferContext.callMethod(rawPtr, MethodBindings.setBidirectionalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBidirectionalPtr, NIL) } public final fun isBidirectional(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isBidirectionalPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isBidirectionalPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setNavigationLayers(navigationLayers: Long): Unit { TransferContext.writeArguments(LONG to navigationLayers) - TransferContext.callMethod(rawPtr, MethodBindings.setNavigationLayersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNavigationLayersPtr, NIL) } public final fun getNavigationLayers(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNavigationLayersPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getNavigationLayersPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -233,7 +233,7 @@ public open class NavigationLink2D : Node2D() { */ public final fun setNavigationLayerValue(layerNumber: Int, `value`: Boolean): Unit { TransferContext.writeArguments(LONG to layerNumber.toLong(), BOOL to value) - TransferContext.callMethod(rawPtr, MethodBindings.setNavigationLayerValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNavigationLayerValuePtr, NIL) } /** @@ -242,29 +242,29 @@ public open class NavigationLink2D : Node2D() { */ public final fun getNavigationLayerValue(layerNumber: Int): Boolean { TransferContext.writeArguments(LONG to layerNumber.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getNavigationLayerValuePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getNavigationLayerValuePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setStartPosition(position: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.setStartPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStartPositionPtr, NIL) } public final fun getStartPosition(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStartPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getStartPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setEndPosition(position: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.setEndPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEndPositionPtr, NIL) } public final fun getEndPosition(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEndPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getEndPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -273,7 +273,7 @@ public open class NavigationLink2D : Node2D() { */ public final fun setGlobalStartPosition(position: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.setGlobalStartPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlobalStartPositionPtr, NIL) } /** @@ -281,7 +281,7 @@ public open class NavigationLink2D : Node2D() { */ public final fun getGlobalStartPosition(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGlobalStartPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getGlobalStartPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -290,7 +290,7 @@ public open class NavigationLink2D : Node2D() { */ public final fun setGlobalEndPosition(position: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.setGlobalEndPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlobalEndPositionPtr, NIL) } /** @@ -298,29 +298,29 @@ public open class NavigationLink2D : Node2D() { */ public final fun getGlobalEndPosition(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGlobalEndPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getGlobalEndPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setEnterCost(enterCost: Float): Unit { TransferContext.writeArguments(DOUBLE to enterCost.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setEnterCostPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnterCostPtr, NIL) } public final fun getEnterCost(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnterCostPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getEnterCostPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setTravelCost(travelCost: Float): Unit { TransferContext.writeArguments(DOUBLE to travelCost.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTravelCostPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTravelCostPtr, NIL) } public final fun getTravelCost(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTravelCostPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTravelCostPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationLink3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationLink3D.kt index 721acc5d23..11b021f8c6 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationLink3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationLink3D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -19,7 +20,6 @@ import godot.core.VariantParser.VECTOR3 import godot.core.VariantParser._RID import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -190,40 +190,40 @@ public open class NavigationLink3D : Node3D() { */ public final fun getRid(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRidPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getRidPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } public final fun setEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnabledPtr, NIL) } public final fun isEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setBidirectional(bidirectional: Boolean): Unit { TransferContext.writeArguments(BOOL to bidirectional) - TransferContext.callMethod(rawPtr, MethodBindings.setBidirectionalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBidirectionalPtr, NIL) } public final fun isBidirectional(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isBidirectionalPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isBidirectionalPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setNavigationLayers(navigationLayers: Long): Unit { TransferContext.writeArguments(LONG to navigationLayers) - TransferContext.callMethod(rawPtr, MethodBindings.setNavigationLayersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNavigationLayersPtr, NIL) } public final fun getNavigationLayers(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNavigationLayersPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getNavigationLayersPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -233,7 +233,7 @@ public open class NavigationLink3D : Node3D() { */ public final fun setNavigationLayerValue(layerNumber: Int, `value`: Boolean): Unit { TransferContext.writeArguments(LONG to layerNumber.toLong(), BOOL to value) - TransferContext.callMethod(rawPtr, MethodBindings.setNavigationLayerValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNavigationLayerValuePtr, NIL) } /** @@ -242,29 +242,29 @@ public open class NavigationLink3D : Node3D() { */ public final fun getNavigationLayerValue(layerNumber: Int): Boolean { TransferContext.writeArguments(LONG to layerNumber.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getNavigationLayerValuePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getNavigationLayerValuePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setStartPosition(position: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to position) - TransferContext.callMethod(rawPtr, MethodBindings.setStartPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStartPositionPtr, NIL) } public final fun getStartPosition(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStartPositionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getStartPositionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setEndPosition(position: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to position) - TransferContext.callMethod(rawPtr, MethodBindings.setEndPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEndPositionPtr, NIL) } public final fun getEndPosition(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEndPositionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getEndPositionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -273,7 +273,7 @@ public open class NavigationLink3D : Node3D() { */ public final fun setGlobalStartPosition(position: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to position) - TransferContext.callMethod(rawPtr, MethodBindings.setGlobalStartPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlobalStartPositionPtr, NIL) } /** @@ -281,7 +281,7 @@ public open class NavigationLink3D : Node3D() { */ public final fun getGlobalStartPosition(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGlobalStartPositionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getGlobalStartPositionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -290,7 +290,7 @@ public open class NavigationLink3D : Node3D() { */ public final fun setGlobalEndPosition(position: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to position) - TransferContext.callMethod(rawPtr, MethodBindings.setGlobalEndPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlobalEndPositionPtr, NIL) } /** @@ -298,29 +298,29 @@ public open class NavigationLink3D : Node3D() { */ public final fun getGlobalEndPosition(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGlobalEndPositionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getGlobalEndPositionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setEnterCost(enterCost: Float): Unit { TransferContext.writeArguments(DOUBLE to enterCost.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setEnterCostPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnterCostPtr, NIL) } public final fun getEnterCost(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnterCostPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getEnterCostPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setTravelCost(travelCost: Float): Unit { TransferContext.writeArguments(DOUBLE to travelCost.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTravelCostPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTravelCostPtr, NIL) } public final fun getTravelCost(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTravelCostPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTravelCostPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationMesh.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationMesh.kt index 39293f56df..78ebd233b0 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationMesh.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationMesh.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.AABB import godot.core.PackedInt32Array import godot.core.PackedVector3Array @@ -25,7 +26,6 @@ import godot.core.VariantParser.STRING_NAME import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -400,34 +400,34 @@ public open class NavigationMesh : Resource() { public final fun setSamplePartitionType(samplePartitionType: SamplePartitionType): Unit { TransferContext.writeArguments(LONG to samplePartitionType.id) - TransferContext.callMethod(rawPtr, MethodBindings.setSamplePartitionTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSamplePartitionTypePtr, NIL) } public final fun getSamplePartitionType(): SamplePartitionType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSamplePartitionTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSamplePartitionTypePtr, LONG) return NavigationMesh.SamplePartitionType.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setParsedGeometryType(geometryType: ParsedGeometryType): Unit { TransferContext.writeArguments(LONG to geometryType.id) - TransferContext.callMethod(rawPtr, MethodBindings.setParsedGeometryTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setParsedGeometryTypePtr, NIL) } public final fun getParsedGeometryType(): ParsedGeometryType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getParsedGeometryTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getParsedGeometryTypePtr, LONG) return NavigationMesh.ParsedGeometryType.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setCollisionMask(mask: Long): Unit { TransferContext.writeArguments(LONG to mask) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionMaskPtr, NIL) } public final fun getCollisionMask(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCollisionMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -437,7 +437,7 @@ public open class NavigationMesh : Resource() { */ public final fun setCollisionMaskValue(layerNumber: Int, `value`: Boolean): Unit { TransferContext.writeArguments(LONG to layerNumber.toLong(), BOOL to value) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionMaskValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionMaskValuePtr, NIL) } /** @@ -446,239 +446,239 @@ public open class NavigationMesh : Resource() { */ public final fun getCollisionMaskValue(layerNumber: Int): Boolean { TransferContext.writeArguments(LONG to layerNumber.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionMaskValuePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getCollisionMaskValuePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSourceGeometryMode(mask: SourceGeometryMode): Unit { TransferContext.writeArguments(LONG to mask.id) - TransferContext.callMethod(rawPtr, MethodBindings.setSourceGeometryModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSourceGeometryModePtr, NIL) } public final fun getSourceGeometryMode(): SourceGeometryMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSourceGeometryModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSourceGeometryModePtr, LONG) return NavigationMesh.SourceGeometryMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setSourceGroupName(mask: StringName): Unit { TransferContext.writeArguments(STRING_NAME to mask) - TransferContext.callMethod(rawPtr, MethodBindings.setSourceGroupNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSourceGroupNamePtr, NIL) } public final fun getSourceGroupName(): StringName { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSourceGroupNamePtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getSourceGroupNamePtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } public final fun setCellSize(cellSize: Float): Unit { TransferContext.writeArguments(DOUBLE to cellSize.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setCellSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCellSizePtr, NIL) } public final fun getCellSize(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCellSizePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCellSizePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setCellHeight(cellHeight: Float): Unit { TransferContext.writeArguments(DOUBLE to cellHeight.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setCellHeightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCellHeightPtr, NIL) } public final fun getCellHeight(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCellHeightPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCellHeightPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setBorderSize(borderSize: Float): Unit { TransferContext.writeArguments(DOUBLE to borderSize.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setBorderSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBorderSizePtr, NIL) } public final fun getBorderSize(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBorderSizePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getBorderSizePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAgentHeight(agentHeight: Float): Unit { TransferContext.writeArguments(DOUBLE to agentHeight.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAgentHeightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAgentHeightPtr, NIL) } public final fun getAgentHeight(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAgentHeightPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAgentHeightPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAgentRadius(agentRadius: Float): Unit { TransferContext.writeArguments(DOUBLE to agentRadius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAgentRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAgentRadiusPtr, NIL) } public final fun getAgentRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAgentRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAgentRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAgentMaxClimb(agentMaxClimb: Float): Unit { TransferContext.writeArguments(DOUBLE to agentMaxClimb.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAgentMaxClimbPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAgentMaxClimbPtr, NIL) } public final fun getAgentMaxClimb(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAgentMaxClimbPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAgentMaxClimbPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAgentMaxSlope(agentMaxSlope: Float): Unit { TransferContext.writeArguments(DOUBLE to agentMaxSlope.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAgentMaxSlopePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAgentMaxSlopePtr, NIL) } public final fun getAgentMaxSlope(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAgentMaxSlopePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAgentMaxSlopePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setRegionMinSize(regionMinSize: Float): Unit { TransferContext.writeArguments(DOUBLE to regionMinSize.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRegionMinSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRegionMinSizePtr, NIL) } public final fun getRegionMinSize(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRegionMinSizePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRegionMinSizePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setRegionMergeSize(regionMergeSize: Float): Unit { TransferContext.writeArguments(DOUBLE to regionMergeSize.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRegionMergeSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRegionMergeSizePtr, NIL) } public final fun getRegionMergeSize(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRegionMergeSizePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRegionMergeSizePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setEdgeMaxLength(edgeMaxLength: Float): Unit { TransferContext.writeArguments(DOUBLE to edgeMaxLength.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setEdgeMaxLengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEdgeMaxLengthPtr, NIL) } public final fun getEdgeMaxLength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEdgeMaxLengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getEdgeMaxLengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setEdgeMaxError(edgeMaxError: Float): Unit { TransferContext.writeArguments(DOUBLE to edgeMaxError.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setEdgeMaxErrorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEdgeMaxErrorPtr, NIL) } public final fun getEdgeMaxError(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEdgeMaxErrorPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getEdgeMaxErrorPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVerticesPerPolygon(verticesPerPolygon: Float): Unit { TransferContext.writeArguments(DOUBLE to verticesPerPolygon.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVerticesPerPolygonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVerticesPerPolygonPtr, NIL) } public final fun getVerticesPerPolygon(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVerticesPerPolygonPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVerticesPerPolygonPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDetailSampleDistance(detailSampleDist: Float): Unit { TransferContext.writeArguments(DOUBLE to detailSampleDist.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDetailSampleDistancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDetailSampleDistancePtr, NIL) } public final fun getDetailSampleDistance(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDetailSampleDistancePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDetailSampleDistancePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDetailSampleMaxError(detailSampleMaxError: Float): Unit { TransferContext.writeArguments(DOUBLE to detailSampleMaxError.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDetailSampleMaxErrorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDetailSampleMaxErrorPtr, NIL) } public final fun getDetailSampleMaxError(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDetailSampleMaxErrorPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDetailSampleMaxErrorPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setFilterLowHangingObstacles(filterLowHangingObstacles: Boolean): Unit { TransferContext.writeArguments(BOOL to filterLowHangingObstacles) - TransferContext.callMethod(rawPtr, MethodBindings.setFilterLowHangingObstaclesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFilterLowHangingObstaclesPtr, NIL) } public final fun getFilterLowHangingObstacles(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFilterLowHangingObstaclesPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getFilterLowHangingObstaclesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setFilterLedgeSpans(filterLedgeSpans: Boolean): Unit { TransferContext.writeArguments(BOOL to filterLedgeSpans) - TransferContext.callMethod(rawPtr, MethodBindings.setFilterLedgeSpansPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFilterLedgeSpansPtr, NIL) } public final fun getFilterLedgeSpans(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFilterLedgeSpansPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getFilterLedgeSpansPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setFilterWalkableLowHeightSpans(filterWalkableLowHeightSpans: Boolean): Unit { TransferContext.writeArguments(BOOL to filterWalkableLowHeightSpans) - TransferContext.callMethod(rawPtr, MethodBindings.setFilterWalkableLowHeightSpansPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFilterWalkableLowHeightSpansPtr, NIL) } public final fun getFilterWalkableLowHeightSpans(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFilterWalkableLowHeightSpansPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getFilterWalkableLowHeightSpansPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setFilterBakingAabb(bakingAabb: AABB): Unit { TransferContext.writeArguments(godot.core.VariantParser.AABB to bakingAabb) - TransferContext.callMethod(rawPtr, MethodBindings.setFilterBakingAabbPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFilterBakingAabbPtr, NIL) } public final fun getFilterBakingAabb(): AABB { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFilterBakingAabbPtr, + TransferContext.callMethod(ptr, MethodBindings.getFilterBakingAabbPtr, godot.core.VariantParser.AABB) return (TransferContext.readReturnValue(godot.core.VariantParser.AABB) as AABB) } public final fun setFilterBakingAabbOffset(bakingAabbOffset: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to bakingAabbOffset) - TransferContext.callMethod(rawPtr, MethodBindings.setFilterBakingAabbOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFilterBakingAabbOffsetPtr, NIL) } public final fun getFilterBakingAabbOffset(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFilterBakingAabbOffsetPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getFilterBakingAabbOffsetPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -687,7 +687,7 @@ public open class NavigationMesh : Resource() { */ public final fun setVertices(vertices: PackedVector3Array): Unit { TransferContext.writeArguments(PACKED_VECTOR3_ARRAY to vertices) - TransferContext.callMethod(rawPtr, MethodBindings.setVerticesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVerticesPtr, NIL) } /** @@ -695,7 +695,7 @@ public open class NavigationMesh : Resource() { */ public final fun getVertices(): PackedVector3Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVerticesPtr, PACKED_VECTOR3_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getVerticesPtr, PACKED_VECTOR3_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR3_ARRAY) as PackedVector3Array) } @@ -704,7 +704,7 @@ public open class NavigationMesh : Resource() { */ public final fun addPolygon(polygon: PackedInt32Array): Unit { TransferContext.writeArguments(PACKED_INT_32_ARRAY to polygon) - TransferContext.callMethod(rawPtr, MethodBindings.addPolygonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addPolygonPtr, NIL) } /** @@ -712,7 +712,7 @@ public open class NavigationMesh : Resource() { */ public final fun getPolygonCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPolygonCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPolygonCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -721,7 +721,7 @@ public open class NavigationMesh : Resource() { */ public final fun getPolygon(idx: Int): PackedInt32Array { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getPolygonPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getPolygonPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } @@ -730,7 +730,7 @@ public open class NavigationMesh : Resource() { */ public final fun clearPolygons(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearPolygonsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPolygonsPtr, NIL) } /** @@ -739,7 +739,7 @@ public open class NavigationMesh : Resource() { */ public final fun createFromMesh(mesh: Mesh?): Unit { TransferContext.writeArguments(OBJECT to mesh) - TransferContext.callMethod(rawPtr, MethodBindings.createFromMeshPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.createFromMeshPtr, NIL) } /** @@ -747,7 +747,7 @@ public open class NavigationMesh : Resource() { */ public final fun clear(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPtr, NIL) } public enum class SamplePartitionType( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationMeshGenerator.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationMeshGenerator.kt index 6d08a3589a..5825c7c7df 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationMeshGenerator.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationMeshGenerator.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.TypeManager import godot.core.VariantParser.CALLABLE import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -63,7 +63,7 @@ public object NavigationMeshGenerator : Object() { @JvmStatic public final fun bake(navigationMesh: NavigationMesh?, rootNode: Node?): Unit { TransferContext.writeArguments(OBJECT to navigationMesh, OBJECT to rootNode) - TransferContext.callMethod(rawPtr, MethodBindings.bakePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bakePtr, NIL) } /** @@ -72,7 +72,7 @@ public object NavigationMeshGenerator : Object() { @JvmStatic public final fun clear(navigationMesh: NavigationMesh?): Unit { TransferContext.writeArguments(OBJECT to navigationMesh) - TransferContext.callMethod(rawPtr, MethodBindings.clearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPtr, NIL) } /** @@ -96,7 +96,7 @@ public object NavigationMeshGenerator : Object() { callback: Callable = Callable(), ): Unit { TransferContext.writeArguments(OBJECT to navigationMesh, OBJECT to sourceGeometryData, OBJECT to rootNode, CALLABLE to callback) - TransferContext.callMethod(rawPtr, MethodBindings.parseSourceGeometryDataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.parseSourceGeometryDataPtr, NIL) } /** @@ -111,7 +111,7 @@ public object NavigationMeshGenerator : Object() { callback: Callable = Callable(), ): Unit { TransferContext.writeArguments(OBJECT to navigationMesh, OBJECT to sourceGeometryData, CALLABLE to callback) - TransferContext.callMethod(rawPtr, MethodBindings.bakeFromSourceGeometryDataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bakeFromSourceGeometryDataPtr, NIL) } internal object MethodBindings { diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationMeshSourceGeometryData2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationMeshSourceGeometryData2D.kt index 1cd4483ab3..4f20394eef 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationMeshSourceGeometryData2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationMeshSourceGeometryData2D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedVector2Array import godot.core.TypeManager import godot.core.VariantArray @@ -16,7 +17,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_VECTOR2_ARRAY import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -62,7 +62,7 @@ public open class NavigationMeshSourceGeometryData2D : Resource() { */ public final fun clear(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPtr, NIL) } /** @@ -70,7 +70,7 @@ public open class NavigationMeshSourceGeometryData2D : Resource() { */ public final fun hasData(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasDataPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasDataPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -80,7 +80,7 @@ public open class NavigationMeshSourceGeometryData2D : Resource() { public final fun setTraversableOutlines(traversableOutlines: VariantArray): Unit { TransferContext.writeArguments(ARRAY to traversableOutlines) - TransferContext.callMethod(rawPtr, MethodBindings.setTraversableOutlinesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTraversableOutlinesPtr, NIL) } /** @@ -88,7 +88,7 @@ public open class NavigationMeshSourceGeometryData2D : Resource() { */ public final fun getTraversableOutlines(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTraversableOutlinesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getTraversableOutlinesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -98,7 +98,7 @@ public open class NavigationMeshSourceGeometryData2D : Resource() { public final fun setObstructionOutlines(obstructionOutlines: VariantArray): Unit { TransferContext.writeArguments(ARRAY to obstructionOutlines) - TransferContext.callMethod(rawPtr, MethodBindings.setObstructionOutlinesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setObstructionOutlinesPtr, NIL) } /** @@ -106,7 +106,7 @@ public open class NavigationMeshSourceGeometryData2D : Resource() { */ public final fun getObstructionOutlines(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getObstructionOutlinesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getObstructionOutlinesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -117,7 +117,7 @@ public open class NavigationMeshSourceGeometryData2D : Resource() { public final fun appendTraversableOutlines(traversableOutlines: VariantArray): Unit { TransferContext.writeArguments(ARRAY to traversableOutlines) - TransferContext.callMethod(rawPtr, MethodBindings.appendTraversableOutlinesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.appendTraversableOutlinesPtr, NIL) } /** @@ -127,7 +127,7 @@ public open class NavigationMeshSourceGeometryData2D : Resource() { public final fun appendObstructionOutlines(obstructionOutlines: VariantArray): Unit { TransferContext.writeArguments(ARRAY to obstructionOutlines) - TransferContext.callMethod(rawPtr, MethodBindings.appendObstructionOutlinesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.appendObstructionOutlinesPtr, NIL) } /** @@ -135,7 +135,7 @@ public open class NavigationMeshSourceGeometryData2D : Resource() { */ public final fun addTraversableOutline(shapeOutline: PackedVector2Array): Unit { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to shapeOutline) - TransferContext.callMethod(rawPtr, MethodBindings.addTraversableOutlinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addTraversableOutlinePtr, NIL) } /** @@ -143,7 +143,7 @@ public open class NavigationMeshSourceGeometryData2D : Resource() { */ public final fun addObstructionOutline(shapeOutline: PackedVector2Array): Unit { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to shapeOutline) - TransferContext.callMethod(rawPtr, MethodBindings.addObstructionOutlinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addObstructionOutlinePtr, NIL) } /** @@ -152,7 +152,7 @@ public open class NavigationMeshSourceGeometryData2D : Resource() { */ public final fun merge(otherGeometry: NavigationMeshSourceGeometryData2D?): Unit { TransferContext.writeArguments(OBJECT to otherGeometry) - TransferContext.callMethod(rawPtr, MethodBindings.mergePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.mergePtr, NIL) } /** @@ -162,7 +162,7 @@ public open class NavigationMeshSourceGeometryData2D : Resource() { */ public final fun addProjectedObstruction(vertices: PackedVector2Array, carve: Boolean): Unit { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to vertices, BOOL to carve) - TransferContext.callMethod(rawPtr, MethodBindings.addProjectedObstructionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addProjectedObstructionPtr, NIL) } /** @@ -170,7 +170,7 @@ public open class NavigationMeshSourceGeometryData2D : Resource() { */ public final fun clearProjectedObstructions(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearProjectedObstructionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearProjectedObstructionsPtr, NIL) } /** @@ -185,7 +185,7 @@ public open class NavigationMeshSourceGeometryData2D : Resource() { */ public final fun setProjectedObstructions(projectedObstructions: VariantArray): Unit { TransferContext.writeArguments(ARRAY to projectedObstructions) - TransferContext.callMethod(rawPtr, MethodBindings.setProjectedObstructionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setProjectedObstructionsPtr, NIL) } /** @@ -197,7 +197,7 @@ public open class NavigationMeshSourceGeometryData2D : Resource() { */ public final fun getProjectedObstructions(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getProjectedObstructionsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getProjectedObstructionsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationMeshSourceGeometryData3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationMeshSourceGeometryData3D.kt index 9373aa23a2..3f9f7234ba 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationMeshSourceGeometryData3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationMeshSourceGeometryData3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedFloat32Array import godot.core.PackedInt32Array import godot.core.PackedVector3Array @@ -23,7 +24,6 @@ import godot.core.VariantParser.PACKED_INT_32_ARRAY import godot.core.VariantParser.PACKED_VECTOR3_ARRAY import godot.core.VariantParser.TRANSFORM3D import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Float @@ -73,7 +73,7 @@ public open class NavigationMeshSourceGeometryData3D : Resource() { */ public final fun setVertices(vertices: PackedFloat32Array): Unit { TransferContext.writeArguments(PACKED_FLOAT_32_ARRAY to vertices) - TransferContext.callMethod(rawPtr, MethodBindings.setVerticesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVerticesPtr, NIL) } /** @@ -81,7 +81,7 @@ public open class NavigationMeshSourceGeometryData3D : Resource() { */ public final fun getVertices(): PackedFloat32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVerticesPtr, PACKED_FLOAT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getVerticesPtr, PACKED_FLOAT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_FLOAT_32_ARRAY) as PackedFloat32Array) } @@ -93,7 +93,7 @@ public open class NavigationMeshSourceGeometryData3D : Resource() { */ public final fun setIndices(indices: PackedInt32Array): Unit { TransferContext.writeArguments(PACKED_INT_32_ARRAY to indices) - TransferContext.callMethod(rawPtr, MethodBindings.setIndicesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIndicesPtr, NIL) } /** @@ -101,7 +101,7 @@ public open class NavigationMeshSourceGeometryData3D : Resource() { */ public final fun getIndices(): PackedInt32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getIndicesPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getIndicesPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } @@ -111,7 +111,7 @@ public open class NavigationMeshSourceGeometryData3D : Resource() { */ public final fun appendArrays(vertices: PackedFloat32Array, indices: PackedInt32Array): Unit { TransferContext.writeArguments(PACKED_FLOAT_32_ARRAY to vertices, PACKED_INT_32_ARRAY to indices) - TransferContext.callMethod(rawPtr, MethodBindings.appendArraysPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.appendArraysPtr, NIL) } /** @@ -119,7 +119,7 @@ public open class NavigationMeshSourceGeometryData3D : Resource() { */ public final fun clear(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPtr, NIL) } /** @@ -127,7 +127,7 @@ public open class NavigationMeshSourceGeometryData3D : Resource() { */ public final fun hasData(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasDataPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasDataPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -138,7 +138,7 @@ public open class NavigationMeshSourceGeometryData3D : Resource() { */ public final fun addMesh(mesh: Mesh?, xform: Transform3D): Unit { TransferContext.writeArguments(OBJECT to mesh, TRANSFORM3D to xform) - TransferContext.callMethod(rawPtr, MethodBindings.addMeshPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addMeshPtr, NIL) } /** @@ -149,7 +149,7 @@ public open class NavigationMeshSourceGeometryData3D : Resource() { */ public final fun addMeshArray(meshArray: VariantArray, xform: Transform3D): Unit { TransferContext.writeArguments(ARRAY to meshArray, TRANSFORM3D to xform) - TransferContext.callMethod(rawPtr, MethodBindings.addMeshArrayPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addMeshArrayPtr, NIL) } /** @@ -160,7 +160,7 @@ public open class NavigationMeshSourceGeometryData3D : Resource() { */ public final fun addFaces(faces: PackedVector3Array, xform: Transform3D): Unit { TransferContext.writeArguments(PACKED_VECTOR3_ARRAY to faces, TRANSFORM3D to xform) - TransferContext.callMethod(rawPtr, MethodBindings.addFacesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addFacesPtr, NIL) } /** @@ -169,7 +169,7 @@ public open class NavigationMeshSourceGeometryData3D : Resource() { */ public final fun merge(otherGeometry: NavigationMeshSourceGeometryData3D?): Unit { TransferContext.writeArguments(OBJECT to otherGeometry) - TransferContext.callMethod(rawPtr, MethodBindings.mergePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.mergePtr, NIL) } /** @@ -185,7 +185,7 @@ public open class NavigationMeshSourceGeometryData3D : Resource() { carve: Boolean, ): Unit { TransferContext.writeArguments(PACKED_VECTOR3_ARRAY to vertices, DOUBLE to elevation.toDouble(), DOUBLE to height.toDouble(), BOOL to carve) - TransferContext.callMethod(rawPtr, MethodBindings.addProjectedObstructionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addProjectedObstructionPtr, NIL) } /** @@ -193,7 +193,7 @@ public open class NavigationMeshSourceGeometryData3D : Resource() { */ public final fun clearProjectedObstructions(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearProjectedObstructionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearProjectedObstructionsPtr, NIL) } /** @@ -210,7 +210,7 @@ public open class NavigationMeshSourceGeometryData3D : Resource() { */ public final fun setProjectedObstructions(projectedObstructions: VariantArray): Unit { TransferContext.writeArguments(ARRAY to projectedObstructions) - TransferContext.callMethod(rawPtr, MethodBindings.setProjectedObstructionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setProjectedObstructionsPtr, NIL) } /** @@ -224,7 +224,7 @@ public open class NavigationMeshSourceGeometryData3D : Resource() { */ public final fun getProjectedObstructions(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getProjectedObstructionsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getProjectedObstructionsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationObstacle2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationObstacle2D.kt index eeb3066048..423f1ed56b 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationObstacle2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationObstacle2D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedVector2Array import godot.core.RID import godot.core.TypeManager @@ -21,7 +22,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -171,18 +171,18 @@ public open class NavigationObstacle2D : Node2D() { */ public final fun getRid(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRidPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getRidPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } public final fun setAvoidanceEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setAvoidanceEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAvoidanceEnabledPtr, NIL) } public final fun getAvoidanceEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAvoidanceEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getAvoidanceEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -192,7 +192,7 @@ public open class NavigationObstacle2D : Node2D() { */ public final fun setNavigationMap(navigationMap: RID): Unit { TransferContext.writeArguments(_RID to navigationMap) - TransferContext.callMethod(rawPtr, MethodBindings.setNavigationMapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNavigationMapPtr, NIL) } /** @@ -204,51 +204,51 @@ public open class NavigationObstacle2D : Node2D() { */ public final fun getNavigationMap(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNavigationMapPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getNavigationMapPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } public final fun setRadius(radius: Float): Unit { TransferContext.writeArguments(DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRadiusPtr, NIL) } public final fun getRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVelocity(velocity: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to velocity) - TransferContext.callMethod(rawPtr, MethodBindings.setVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVelocityPtr, NIL) } public final fun getVelocity(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVelocityPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getVelocityPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setVertices(vertices: PackedVector2Array): Unit { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to vertices) - TransferContext.callMethod(rawPtr, MethodBindings.setVerticesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVerticesPtr, NIL) } public final fun getVertices(): PackedVector2Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVerticesPtr, PACKED_VECTOR2_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getVerticesPtr, PACKED_VECTOR2_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR2_ARRAY) as PackedVector2Array) } public final fun setAvoidanceLayers(layers: Long): Unit { TransferContext.writeArguments(LONG to layers) - TransferContext.callMethod(rawPtr, MethodBindings.setAvoidanceLayersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAvoidanceLayersPtr, NIL) } public final fun getAvoidanceLayers(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAvoidanceLayersPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAvoidanceLayersPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -258,7 +258,7 @@ public open class NavigationObstacle2D : Node2D() { */ public final fun setAvoidanceLayerValue(layerNumber: Int, `value`: Boolean): Unit { TransferContext.writeArguments(LONG to layerNumber.toLong(), BOOL to value) - TransferContext.callMethod(rawPtr, MethodBindings.setAvoidanceLayerValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAvoidanceLayerValuePtr, NIL) } /** @@ -267,29 +267,29 @@ public open class NavigationObstacle2D : Node2D() { */ public final fun getAvoidanceLayerValue(layerNumber: Int): Boolean { TransferContext.writeArguments(LONG to layerNumber.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getAvoidanceLayerValuePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getAvoidanceLayerValuePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAffectNavigationMesh(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setAffectNavigationMeshPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAffectNavigationMeshPtr, NIL) } public final fun getAffectNavigationMesh(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAffectNavigationMeshPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getAffectNavigationMeshPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCarveNavigationMesh(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setCarveNavigationMeshPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCarveNavigationMeshPtr, NIL) } public final fun getCarveNavigationMesh(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCarveNavigationMeshPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getCarveNavigationMeshPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationObstacle3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationObstacle3D.kt index fb74fad13b..a1eed56a27 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationObstacle3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationObstacle3D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedVector3Array import godot.core.RID import godot.core.TypeManager @@ -21,7 +22,6 @@ import godot.core.VariantParser.VECTOR3 import godot.core.VariantParser._RID import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -198,18 +198,18 @@ public open class NavigationObstacle3D : Node3D() { */ public final fun getRid(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRidPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getRidPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } public final fun setAvoidanceEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setAvoidanceEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAvoidanceEnabledPtr, NIL) } public final fun getAvoidanceEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAvoidanceEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getAvoidanceEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -219,7 +219,7 @@ public open class NavigationObstacle3D : Node3D() { */ public final fun setNavigationMap(navigationMap: RID): Unit { TransferContext.writeArguments(_RID to navigationMap) - TransferContext.callMethod(rawPtr, MethodBindings.setNavigationMapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNavigationMapPtr, NIL) } /** @@ -231,62 +231,62 @@ public open class NavigationObstacle3D : Node3D() { */ public final fun getNavigationMap(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNavigationMapPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getNavigationMapPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } public final fun setRadius(radius: Float): Unit { TransferContext.writeArguments(DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRadiusPtr, NIL) } public final fun getRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setHeight(height: Float): Unit { TransferContext.writeArguments(DOUBLE to height.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setHeightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHeightPtr, NIL) } public final fun getHeight(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHeightPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getHeightPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVelocity(velocity: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to velocity) - TransferContext.callMethod(rawPtr, MethodBindings.setVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVelocityPtr, NIL) } public final fun getVelocity(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVelocityPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getVelocityPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setVertices(vertices: PackedVector3Array): Unit { TransferContext.writeArguments(PACKED_VECTOR3_ARRAY to vertices) - TransferContext.callMethod(rawPtr, MethodBindings.setVerticesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVerticesPtr, NIL) } public final fun getVertices(): PackedVector3Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVerticesPtr, PACKED_VECTOR3_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getVerticesPtr, PACKED_VECTOR3_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR3_ARRAY) as PackedVector3Array) } public final fun setAvoidanceLayers(layers: Long): Unit { TransferContext.writeArguments(LONG to layers) - TransferContext.callMethod(rawPtr, MethodBindings.setAvoidanceLayersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAvoidanceLayersPtr, NIL) } public final fun getAvoidanceLayers(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAvoidanceLayersPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAvoidanceLayersPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -296,7 +296,7 @@ public open class NavigationObstacle3D : Node3D() { */ public final fun setAvoidanceLayerValue(layerNumber: Int, `value`: Boolean): Unit { TransferContext.writeArguments(LONG to layerNumber.toLong(), BOOL to value) - TransferContext.callMethod(rawPtr, MethodBindings.setAvoidanceLayerValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAvoidanceLayerValuePtr, NIL) } /** @@ -305,40 +305,40 @@ public open class NavigationObstacle3D : Node3D() { */ public final fun getAvoidanceLayerValue(layerNumber: Int): Boolean { TransferContext.writeArguments(LONG to layerNumber.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getAvoidanceLayerValuePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getAvoidanceLayerValuePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setUse3dAvoidance(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setUse3dAvoidancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUse3dAvoidancePtr, NIL) } public final fun getUse3dAvoidance(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUse3dAvoidancePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getUse3dAvoidancePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAffectNavigationMesh(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setAffectNavigationMeshPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAffectNavigationMeshPtr, NIL) } public final fun getAffectNavigationMesh(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAffectNavigationMeshPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getAffectNavigationMeshPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCarveNavigationMesh(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setCarveNavigationMeshPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCarveNavigationMeshPtr, NIL) } public final fun getCarveNavigationMesh(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCarveNavigationMeshPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getCarveNavigationMeshPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryParameters2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryParameters2D.kt index 16a664adc9..c0ca1594e0 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryParameters2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryParameters2D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -19,7 +20,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -196,100 +196,100 @@ public open class NavigationPathQueryParameters2D : RefCounted() { public final fun setPathfindingAlgorithm(pathfindingAlgorithm: PathfindingAlgorithm): Unit { TransferContext.writeArguments(LONG to pathfindingAlgorithm.id) - TransferContext.callMethod(rawPtr, MethodBindings.setPathfindingAlgorithmPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPathfindingAlgorithmPtr, NIL) } public final fun getPathfindingAlgorithm(): PathfindingAlgorithm { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPathfindingAlgorithmPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPathfindingAlgorithmPtr, LONG) return NavigationPathQueryParameters2D.PathfindingAlgorithm.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setPathPostprocessing(pathPostprocessing: PathPostProcessing): Unit { TransferContext.writeArguments(LONG to pathPostprocessing.id) - TransferContext.callMethod(rawPtr, MethodBindings.setPathPostprocessingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPathPostprocessingPtr, NIL) } public final fun getPathPostprocessing(): PathPostProcessing { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPathPostprocessingPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPathPostprocessingPtr, LONG) return NavigationPathQueryParameters2D.PathPostProcessing.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setMap(map: RID): Unit { TransferContext.writeArguments(_RID to map) - TransferContext.callMethod(rawPtr, MethodBindings.setMapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMapPtr, NIL) } public final fun getMap(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMapPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getMapPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } public final fun setStartPosition(startPosition: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to startPosition) - TransferContext.callMethod(rawPtr, MethodBindings.setStartPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStartPositionPtr, NIL) } public final fun getStartPosition(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStartPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getStartPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setTargetPosition(targetPosition: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to targetPosition) - TransferContext.callMethod(rawPtr, MethodBindings.setTargetPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTargetPositionPtr, NIL) } public final fun getTargetPosition(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTargetPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getTargetPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setNavigationLayers(navigationLayers: Long): Unit { TransferContext.writeArguments(LONG to navigationLayers) - TransferContext.callMethod(rawPtr, MethodBindings.setNavigationLayersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNavigationLayersPtr, NIL) } public final fun getNavigationLayers(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNavigationLayersPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getNavigationLayersPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setMetadataFlags(flags: PathMetadataFlags): Unit { TransferContext.writeArguments(LONG to flags.flag) - TransferContext.callMethod(rawPtr, MethodBindings.setMetadataFlagsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMetadataFlagsPtr, NIL) } public final fun getMetadataFlags(): PathMetadataFlags { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMetadataFlagsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMetadataFlagsPtr, LONG) return PathMetadataFlagsValue(TransferContext.readReturnValue(LONG) as Long) } public final fun setSimplifyPath(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setSimplifyPathPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSimplifyPathPtr, NIL) } public final fun getSimplifyPath(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSimplifyPathPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getSimplifyPathPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSimplifyEpsilon(epsilon: Float): Unit { TransferContext.writeArguments(DOUBLE to epsilon.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSimplifyEpsilonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSimplifyEpsilonPtr, NIL) } public final fun getSimplifyEpsilon(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSimplifyEpsilonPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSimplifyEpsilonPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryParameters3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryParameters3D.kt index af92f0f1f7..26f5d5e832 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryParameters3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryParameters3D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -19,7 +20,6 @@ import godot.core.VariantParser.VECTOR3 import godot.core.VariantParser._RID import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -196,100 +196,100 @@ public open class NavigationPathQueryParameters3D : RefCounted() { public final fun setPathfindingAlgorithm(pathfindingAlgorithm: PathfindingAlgorithm): Unit { TransferContext.writeArguments(LONG to pathfindingAlgorithm.id) - TransferContext.callMethod(rawPtr, MethodBindings.setPathfindingAlgorithmPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPathfindingAlgorithmPtr, NIL) } public final fun getPathfindingAlgorithm(): PathfindingAlgorithm { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPathfindingAlgorithmPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPathfindingAlgorithmPtr, LONG) return NavigationPathQueryParameters3D.PathfindingAlgorithm.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setPathPostprocessing(pathPostprocessing: PathPostProcessing): Unit { TransferContext.writeArguments(LONG to pathPostprocessing.id) - TransferContext.callMethod(rawPtr, MethodBindings.setPathPostprocessingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPathPostprocessingPtr, NIL) } public final fun getPathPostprocessing(): PathPostProcessing { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPathPostprocessingPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPathPostprocessingPtr, LONG) return NavigationPathQueryParameters3D.PathPostProcessing.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setMap(map: RID): Unit { TransferContext.writeArguments(_RID to map) - TransferContext.callMethod(rawPtr, MethodBindings.setMapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMapPtr, NIL) } public final fun getMap(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMapPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getMapPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } public final fun setStartPosition(startPosition: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to startPosition) - TransferContext.callMethod(rawPtr, MethodBindings.setStartPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStartPositionPtr, NIL) } public final fun getStartPosition(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStartPositionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getStartPositionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setTargetPosition(targetPosition: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to targetPosition) - TransferContext.callMethod(rawPtr, MethodBindings.setTargetPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTargetPositionPtr, NIL) } public final fun getTargetPosition(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTargetPositionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getTargetPositionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setNavigationLayers(navigationLayers: Long): Unit { TransferContext.writeArguments(LONG to navigationLayers) - TransferContext.callMethod(rawPtr, MethodBindings.setNavigationLayersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNavigationLayersPtr, NIL) } public final fun getNavigationLayers(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNavigationLayersPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getNavigationLayersPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setMetadataFlags(flags: PathMetadataFlags): Unit { TransferContext.writeArguments(LONG to flags.flag) - TransferContext.callMethod(rawPtr, MethodBindings.setMetadataFlagsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMetadataFlagsPtr, NIL) } public final fun getMetadataFlags(): PathMetadataFlags { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMetadataFlagsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMetadataFlagsPtr, LONG) return PathMetadataFlagsValue(TransferContext.readReturnValue(LONG) as Long) } public final fun setSimplifyPath(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setSimplifyPathPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSimplifyPathPtr, NIL) } public final fun getSimplifyPath(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSimplifyPathPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getSimplifyPathPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSimplifyEpsilon(epsilon: Float): Unit { TransferContext.writeArguments(DOUBLE to epsilon.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSimplifyEpsilonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSimplifyEpsilonPtr, NIL) } public final fun getSimplifyEpsilon(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSimplifyEpsilonPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSimplifyEpsilonPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryResult2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryResult2D.kt index 4d67c37d36..dee6a51681 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryResult2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryResult2D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedInt32Array import godot.core.PackedInt64Array import godot.core.PackedVector2Array @@ -19,7 +20,6 @@ import godot.core.VariantParser.PACKED_INT_32_ARRAY import godot.core.VariantParser.PACKED_INT_64_ARRAY import godot.core.VariantParser.PACKED_VECTOR2_ARRAY import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -84,45 +84,45 @@ public open class NavigationPathQueryResult2D : RefCounted() { public final fun setPath(path: PackedVector2Array): Unit { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to path) - TransferContext.callMethod(rawPtr, MethodBindings.setPathPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPathPtr, NIL) } public final fun getPath(): PackedVector2Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPathPtr, PACKED_VECTOR2_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getPathPtr, PACKED_VECTOR2_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR2_ARRAY) as PackedVector2Array) } public final fun setPathTypes(pathTypes: PackedInt32Array): Unit { TransferContext.writeArguments(PACKED_INT_32_ARRAY to pathTypes) - TransferContext.callMethod(rawPtr, MethodBindings.setPathTypesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPathTypesPtr, NIL) } public final fun getPathTypes(): PackedInt32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPathTypesPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getPathTypesPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } public final fun setPathRids(pathRids: VariantArray): Unit { TransferContext.writeArguments(ARRAY to pathRids) - TransferContext.callMethod(rawPtr, MethodBindings.setPathRidsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPathRidsPtr, NIL) } public final fun getPathRids(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPathRidsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getPathRidsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } public final fun setPathOwnerIds(pathOwnerIds: PackedInt64Array): Unit { TransferContext.writeArguments(PACKED_INT_64_ARRAY to pathOwnerIds) - TransferContext.callMethod(rawPtr, MethodBindings.setPathOwnerIdsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPathOwnerIdsPtr, NIL) } public final fun getPathOwnerIds(): PackedInt64Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPathOwnerIdsPtr, PACKED_INT_64_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getPathOwnerIdsPtr, PACKED_INT_64_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_64_ARRAY) as PackedInt64Array) } @@ -132,7 +132,7 @@ public open class NavigationPathQueryResult2D : RefCounted() { */ public final fun reset(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.resetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.resetPtr, NIL) } public enum class PathSegmentType( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryResult3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryResult3D.kt index c32f9bd48a..a088fad323 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryResult3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryResult3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedInt32Array import godot.core.PackedInt64Array import godot.core.PackedVector3Array @@ -19,7 +20,6 @@ import godot.core.VariantParser.PACKED_INT_32_ARRAY import godot.core.VariantParser.PACKED_INT_64_ARRAY import godot.core.VariantParser.PACKED_VECTOR3_ARRAY import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -84,45 +84,45 @@ public open class NavigationPathQueryResult3D : RefCounted() { public final fun setPath(path: PackedVector3Array): Unit { TransferContext.writeArguments(PACKED_VECTOR3_ARRAY to path) - TransferContext.callMethod(rawPtr, MethodBindings.setPathPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPathPtr, NIL) } public final fun getPath(): PackedVector3Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPathPtr, PACKED_VECTOR3_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getPathPtr, PACKED_VECTOR3_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR3_ARRAY) as PackedVector3Array) } public final fun setPathTypes(pathTypes: PackedInt32Array): Unit { TransferContext.writeArguments(PACKED_INT_32_ARRAY to pathTypes) - TransferContext.callMethod(rawPtr, MethodBindings.setPathTypesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPathTypesPtr, NIL) } public final fun getPathTypes(): PackedInt32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPathTypesPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getPathTypesPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } public final fun setPathRids(pathRids: VariantArray): Unit { TransferContext.writeArguments(ARRAY to pathRids) - TransferContext.callMethod(rawPtr, MethodBindings.setPathRidsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPathRidsPtr, NIL) } public final fun getPathRids(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPathRidsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getPathRidsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } public final fun setPathOwnerIds(pathOwnerIds: PackedInt64Array): Unit { TransferContext.writeArguments(PACKED_INT_64_ARRAY to pathOwnerIds) - TransferContext.callMethod(rawPtr, MethodBindings.setPathOwnerIdsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPathOwnerIdsPtr, NIL) } public final fun getPathOwnerIds(): PackedInt64Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPathOwnerIdsPtr, PACKED_INT_64_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getPathOwnerIdsPtr, PACKED_INT_64_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_64_ARRAY) as PackedInt64Array) } @@ -132,7 +132,7 @@ public open class NavigationPathQueryResult3D : RefCounted() { */ public final fun reset(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.resetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.resetPtr, NIL) } public enum class PathSegmentType( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPolygon.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPolygon.kt index 4d0c6ce236..48bf47b66a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPolygon.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationPolygon.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedInt32Array import godot.core.PackedVector2Array import godot.core.Rect2 @@ -26,7 +27,6 @@ import godot.core.VariantParser.STRING_NAME import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -266,7 +266,7 @@ public open class NavigationPolygon : Resource() { */ public final fun setVertices(vertices: PackedVector2Array): Unit { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to vertices) - TransferContext.callMethod(rawPtr, MethodBindings.setVerticesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVerticesPtr, NIL) } /** @@ -274,7 +274,7 @@ public open class NavigationPolygon : Resource() { */ public final fun getVertices(): PackedVector2Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVerticesPtr, PACKED_VECTOR2_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getVerticesPtr, PACKED_VECTOR2_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR2_ARRAY) as PackedVector2Array) } @@ -283,7 +283,7 @@ public open class NavigationPolygon : Resource() { */ public final fun addPolygon(polygon: PackedInt32Array): Unit { TransferContext.writeArguments(PACKED_INT_32_ARRAY to polygon) - TransferContext.callMethod(rawPtr, MethodBindings.addPolygonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addPolygonPtr, NIL) } /** @@ -291,7 +291,7 @@ public open class NavigationPolygon : Resource() { */ public final fun getPolygonCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPolygonCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPolygonCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -300,7 +300,7 @@ public open class NavigationPolygon : Resource() { */ public final fun getPolygon(idx: Int): PackedInt32Array { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getPolygonPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getPolygonPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } @@ -309,7 +309,7 @@ public open class NavigationPolygon : Resource() { */ public final fun clearPolygons(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearPolygonsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPolygonsPtr, NIL) } /** @@ -320,7 +320,7 @@ public open class NavigationPolygon : Resource() { */ public final fun getNavigationMesh(): NavigationMesh? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNavigationMeshPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getNavigationMeshPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as NavigationMesh?) } @@ -330,7 +330,7 @@ public open class NavigationPolygon : Resource() { */ public final fun addOutline(outline: PackedVector2Array): Unit { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to outline) - TransferContext.callMethod(rawPtr, MethodBindings.addOutlinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addOutlinePtr, NIL) } /** @@ -339,7 +339,7 @@ public open class NavigationPolygon : Resource() { */ public final fun addOutlineAtIndex(outline: PackedVector2Array, index: Int): Unit { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to outline, LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addOutlineAtIndexPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addOutlineAtIndexPtr, NIL) } /** @@ -347,7 +347,7 @@ public open class NavigationPolygon : Resource() { */ public final fun getOutlineCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOutlineCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOutlineCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -357,7 +357,7 @@ public open class NavigationPolygon : Resource() { */ public final fun setOutline(idx: Int, outline: PackedVector2Array): Unit { TransferContext.writeArguments(LONG to idx.toLong(), PACKED_VECTOR2_ARRAY to outline) - TransferContext.callMethod(rawPtr, MethodBindings.setOutlinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOutlinePtr, NIL) } /** @@ -366,7 +366,7 @@ public open class NavigationPolygon : Resource() { */ public final fun getOutline(idx: Int): PackedVector2Array { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getOutlinePtr, PACKED_VECTOR2_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getOutlinePtr, PACKED_VECTOR2_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR2_ARRAY) as PackedVector2Array) } @@ -376,7 +376,7 @@ public open class NavigationPolygon : Resource() { */ public final fun removeOutline(idx: Int): Unit { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeOutlinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeOutlinePtr, NIL) } /** @@ -385,7 +385,7 @@ public open class NavigationPolygon : Resource() { */ public final fun clearOutlines(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearOutlinesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearOutlinesPtr, NIL) } /** @@ -393,50 +393,50 @@ public open class NavigationPolygon : Resource() { */ public final fun makePolygonsFromOutlines(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.makePolygonsFromOutlinesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.makePolygonsFromOutlinesPtr, NIL) } public final fun setCellSize(cellSize: Float): Unit { TransferContext.writeArguments(DOUBLE to cellSize.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setCellSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCellSizePtr, NIL) } public final fun getCellSize(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCellSizePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCellSizePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setBorderSize(borderSize: Float): Unit { TransferContext.writeArguments(DOUBLE to borderSize.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setBorderSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBorderSizePtr, NIL) } public final fun getBorderSize(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBorderSizePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getBorderSizePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setParsedGeometryType(geometryType: ParsedGeometryType): Unit { TransferContext.writeArguments(LONG to geometryType.id) - TransferContext.callMethod(rawPtr, MethodBindings.setParsedGeometryTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setParsedGeometryTypePtr, NIL) } public final fun getParsedGeometryType(): ParsedGeometryType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getParsedGeometryTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getParsedGeometryTypePtr, LONG) return NavigationPolygon.ParsedGeometryType.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setParsedCollisionMask(mask: Long): Unit { TransferContext.writeArguments(LONG to mask) - TransferContext.callMethod(rawPtr, MethodBindings.setParsedCollisionMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setParsedCollisionMaskPtr, NIL) } public final fun getParsedCollisionMask(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getParsedCollisionMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getParsedCollisionMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -446,7 +446,7 @@ public open class NavigationPolygon : Resource() { */ public final fun setParsedCollisionMaskValue(layerNumber: Int, `value`: Boolean): Unit { TransferContext.writeArguments(LONG to layerNumber.toLong(), BOOL to value) - TransferContext.callMethod(rawPtr, MethodBindings.setParsedCollisionMaskValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setParsedCollisionMaskValuePtr, NIL) } /** @@ -455,62 +455,62 @@ public open class NavigationPolygon : Resource() { */ public final fun getParsedCollisionMaskValue(layerNumber: Int): Boolean { TransferContext.writeArguments(LONG to layerNumber.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getParsedCollisionMaskValuePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getParsedCollisionMaskValuePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSourceGeometryMode(geometryMode: SourceGeometryMode): Unit { TransferContext.writeArguments(LONG to geometryMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setSourceGeometryModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSourceGeometryModePtr, NIL) } public final fun getSourceGeometryMode(): SourceGeometryMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSourceGeometryModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSourceGeometryModePtr, LONG) return NavigationPolygon.SourceGeometryMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setSourceGeometryGroupName(groupName: StringName): Unit { TransferContext.writeArguments(STRING_NAME to groupName) - TransferContext.callMethod(rawPtr, MethodBindings.setSourceGeometryGroupNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSourceGeometryGroupNamePtr, NIL) } public final fun getSourceGeometryGroupName(): StringName { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSourceGeometryGroupNamePtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getSourceGeometryGroupNamePtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } public final fun setAgentRadius(agentRadius: Float): Unit { TransferContext.writeArguments(DOUBLE to agentRadius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAgentRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAgentRadiusPtr, NIL) } public final fun getAgentRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAgentRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAgentRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setBakingRect(rect: Rect2): Unit { TransferContext.writeArguments(RECT2 to rect) - TransferContext.callMethod(rawPtr, MethodBindings.setBakingRectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBakingRectPtr, NIL) } public final fun getBakingRect(): Rect2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBakingRectPtr, RECT2) + TransferContext.callMethod(ptr, MethodBindings.getBakingRectPtr, RECT2) return (TransferContext.readReturnValue(RECT2) as Rect2) } public final fun setBakingRectOffset(rectOffset: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to rectOffset) - TransferContext.callMethod(rawPtr, MethodBindings.setBakingRectOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBakingRectOffsetPtr, NIL) } public final fun getBakingRectOffset(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBakingRectOffsetPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getBakingRectOffsetPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -519,7 +519,7 @@ public open class NavigationPolygon : Resource() { */ public final fun clear(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPtr, NIL) } public enum class ParsedGeometryType( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationRegion2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationRegion2D.kt index 66d29f42fa..ae0f5e07b5 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationRegion2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationRegion2D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.Signal0 import godot.core.TypeManager @@ -17,7 +18,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser._RID import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -139,29 +139,29 @@ public open class NavigationRegion2D : Node2D() { */ public final fun getRid(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRidPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getRidPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } public final fun setNavigationPolygon(navigationPolygon: NavigationPolygon?): Unit { TransferContext.writeArguments(OBJECT to navigationPolygon) - TransferContext.callMethod(rawPtr, MethodBindings.setNavigationPolygonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNavigationPolygonPtr, NIL) } public final fun getNavigationPolygon(): NavigationPolygon? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNavigationPolygonPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getNavigationPolygonPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as NavigationPolygon?) } public final fun setEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnabledPtr, NIL) } public final fun isEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -172,7 +172,7 @@ public open class NavigationRegion2D : Node2D() { */ public final fun setNavigationMap(navigationMap: RID): Unit { TransferContext.writeArguments(_RID to navigationMap) - TransferContext.callMethod(rawPtr, MethodBindings.setNavigationMapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNavigationMapPtr, NIL) } /** @@ -180,29 +180,29 @@ public open class NavigationRegion2D : Node2D() { */ public final fun getNavigationMap(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNavigationMapPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getNavigationMapPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } public final fun setUseEdgeConnections(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setUseEdgeConnectionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseEdgeConnectionsPtr, NIL) } public final fun getUseEdgeConnections(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUseEdgeConnectionsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getUseEdgeConnectionsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setNavigationLayers(navigationLayers: Long): Unit { TransferContext.writeArguments(LONG to navigationLayers) - TransferContext.callMethod(rawPtr, MethodBindings.setNavigationLayersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNavigationLayersPtr, NIL) } public final fun getNavigationLayers(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNavigationLayersPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getNavigationLayersPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -212,7 +212,7 @@ public open class NavigationRegion2D : Node2D() { */ public final fun setNavigationLayerValue(layerNumber: Int, `value`: Boolean): Unit { TransferContext.writeArguments(LONG to layerNumber.toLong(), BOOL to value) - TransferContext.callMethod(rawPtr, MethodBindings.setNavigationLayerValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNavigationLayerValuePtr, NIL) } /** @@ -221,7 +221,7 @@ public open class NavigationRegion2D : Node2D() { */ public final fun getNavigationLayerValue(layerNumber: Int): Boolean { TransferContext.writeArguments(LONG to layerNumber.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getNavigationLayerValuePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getNavigationLayerValuePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -230,29 +230,29 @@ public open class NavigationRegion2D : Node2D() { */ public final fun getRegionRid(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRegionRidPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getRegionRidPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } public final fun setEnterCost(enterCost: Float): Unit { TransferContext.writeArguments(DOUBLE to enterCost.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setEnterCostPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnterCostPtr, NIL) } public final fun getEnterCost(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnterCostPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getEnterCostPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setTravelCost(travelCost: Float): Unit { TransferContext.writeArguments(DOUBLE to travelCost.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTravelCostPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTravelCostPtr, NIL) } public final fun getTravelCost(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTravelCostPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTravelCostPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -263,7 +263,7 @@ public open class NavigationRegion2D : Node2D() { @JvmOverloads public final fun bakeNavigationPolygon(onThread: Boolean = true): Unit { TransferContext.writeArguments(BOOL to onThread) - TransferContext.callMethod(rawPtr, MethodBindings.bakeNavigationPolygonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bakeNavigationPolygonPtr, NIL) } /** @@ -271,7 +271,7 @@ public open class NavigationRegion2D : Node2D() { */ public final fun isBaking(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isBakingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isBakingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationRegion3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationRegion3D.kt index 97a16e724e..3fe112e9ab 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationRegion3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationRegion3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.Signal0 import godot.core.TypeManager @@ -17,7 +18,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser._RID import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -138,29 +138,29 @@ public open class NavigationRegion3D : Node3D() { */ public final fun getRid(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRidPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getRidPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } public final fun setNavigationMesh(navigationMesh: NavigationMesh?): Unit { TransferContext.writeArguments(OBJECT to navigationMesh) - TransferContext.callMethod(rawPtr, MethodBindings.setNavigationMeshPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNavigationMeshPtr, NIL) } public final fun getNavigationMesh(): NavigationMesh? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNavigationMeshPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getNavigationMeshPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as NavigationMesh?) } public final fun setEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnabledPtr, NIL) } public final fun isEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -171,7 +171,7 @@ public open class NavigationRegion3D : Node3D() { */ public final fun setNavigationMap(navigationMap: RID): Unit { TransferContext.writeArguments(_RID to navigationMap) - TransferContext.callMethod(rawPtr, MethodBindings.setNavigationMapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNavigationMapPtr, NIL) } /** @@ -179,29 +179,29 @@ public open class NavigationRegion3D : Node3D() { */ public final fun getNavigationMap(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNavigationMapPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getNavigationMapPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } public final fun setUseEdgeConnections(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setUseEdgeConnectionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseEdgeConnectionsPtr, NIL) } public final fun getUseEdgeConnections(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUseEdgeConnectionsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getUseEdgeConnectionsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setNavigationLayers(navigationLayers: Long): Unit { TransferContext.writeArguments(LONG to navigationLayers) - TransferContext.callMethod(rawPtr, MethodBindings.setNavigationLayersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNavigationLayersPtr, NIL) } public final fun getNavigationLayers(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNavigationLayersPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getNavigationLayersPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -211,7 +211,7 @@ public open class NavigationRegion3D : Node3D() { */ public final fun setNavigationLayerValue(layerNumber: Int, `value`: Boolean): Unit { TransferContext.writeArguments(LONG to layerNumber.toLong(), BOOL to value) - TransferContext.callMethod(rawPtr, MethodBindings.setNavigationLayerValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNavigationLayerValuePtr, NIL) } /** @@ -220,7 +220,7 @@ public open class NavigationRegion3D : Node3D() { */ public final fun getNavigationLayerValue(layerNumber: Int): Boolean { TransferContext.writeArguments(LONG to layerNumber.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getNavigationLayerValuePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getNavigationLayerValuePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -229,29 +229,29 @@ public open class NavigationRegion3D : Node3D() { */ public final fun getRegionRid(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRegionRidPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getRegionRidPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } public final fun setEnterCost(enterCost: Float): Unit { TransferContext.writeArguments(DOUBLE to enterCost.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setEnterCostPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnterCostPtr, NIL) } public final fun getEnterCost(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnterCostPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getEnterCostPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setTravelCost(travelCost: Float): Unit { TransferContext.writeArguments(DOUBLE to travelCost.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTravelCostPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTravelCostPtr, NIL) } public final fun getTravelCost(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTravelCostPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTravelCostPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -267,7 +267,7 @@ public open class NavigationRegion3D : Node3D() { @JvmOverloads public final fun bakeNavigationMesh(onThread: Boolean = true): Unit { TransferContext.writeArguments(BOOL to onThread) - TransferContext.callMethod(rawPtr, MethodBindings.bakeNavigationMeshPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bakeNavigationMeshPtr, NIL) } /** @@ -275,7 +275,7 @@ public open class NavigationRegion3D : Node3D() { */ public final fun isBaking(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isBakingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isBakingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationServer2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationServer2D.kt index f958c605d4..eecf940cec 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationServer2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationServer2D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.PackedVector2Array import godot.core.RID @@ -28,7 +29,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -86,7 +86,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun getMaps(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMapsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getMapsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -96,7 +96,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun mapCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.mapCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.mapCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -106,7 +106,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun mapSetActive(map: RID, active: Boolean): Unit { TransferContext.writeArguments(_RID to map, BOOL to active) - TransferContext.callMethod(rawPtr, MethodBindings.mapSetActivePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.mapSetActivePtr, NIL) } /** @@ -115,7 +115,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun mapIsActive(map: RID): Boolean { TransferContext.writeArguments(_RID to map) - TransferContext.callMethod(rawPtr, MethodBindings.mapIsActivePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.mapIsActivePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -126,7 +126,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun mapSetCellSize(map: RID, cellSize: Float): Unit { TransferContext.writeArguments(_RID to map, DOUBLE to cellSize.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.mapSetCellSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.mapSetCellSizePtr, NIL) } /** @@ -135,7 +135,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun mapGetCellSize(map: RID): Float { TransferContext.writeArguments(_RID to map) - TransferContext.callMethod(rawPtr, MethodBindings.mapGetCellSizePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.mapGetCellSizePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -147,7 +147,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun mapSetUseEdgeConnections(map: RID, enabled: Boolean): Unit { TransferContext.writeArguments(_RID to map, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.mapSetUseEdgeConnectionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.mapSetUseEdgeConnectionsPtr, NIL) } /** @@ -158,7 +158,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun mapGetUseEdgeConnections(map: RID): Boolean { TransferContext.writeArguments(_RID to map) - TransferContext.callMethod(rawPtr, MethodBindings.mapGetUseEdgeConnectionsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.mapGetUseEdgeConnectionsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -168,7 +168,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun mapSetEdgeConnectionMargin(map: RID, margin: Float): Unit { TransferContext.writeArguments(_RID to map, DOUBLE to margin.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.mapSetEdgeConnectionMarginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.mapSetEdgeConnectionMarginPtr, NIL) } /** @@ -178,7 +178,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun mapGetEdgeConnectionMargin(map: RID): Float { TransferContext.writeArguments(_RID to map) - TransferContext.callMethod(rawPtr, MethodBindings.mapGetEdgeConnectionMarginPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.mapGetEdgeConnectionMarginPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -188,7 +188,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun mapSetLinkConnectionRadius(map: RID, radius: Float): Unit { TransferContext.writeArguments(_RID to map, DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.mapSetLinkConnectionRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.mapSetLinkConnectionRadiusPtr, NIL) } /** @@ -198,7 +198,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun mapGetLinkConnectionRadius(map: RID): Float { TransferContext.writeArguments(_RID to map) - TransferContext.callMethod(rawPtr, MethodBindings.mapGetLinkConnectionRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.mapGetLinkConnectionRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -216,7 +216,7 @@ public object NavigationServer2D : Object() { navigationLayers: Long = 1, ): PackedVector2Array { TransferContext.writeArguments(_RID to map, VECTOR2 to origin, VECTOR2 to destination, BOOL to optimize, LONG to navigationLayers) - TransferContext.callMethod(rawPtr, MethodBindings.mapGetPathPtr, PACKED_VECTOR2_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.mapGetPathPtr, PACKED_VECTOR2_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR2_ARRAY) as PackedVector2Array) } @@ -226,7 +226,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun mapGetClosestPoint(map: RID, toPoint: Vector2): Vector2 { TransferContext.writeArguments(_RID to map, VECTOR2 to toPoint) - TransferContext.callMethod(rawPtr, MethodBindings.mapGetClosestPointPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.mapGetClosestPointPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -236,7 +236,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun mapGetClosestPointOwner(map: RID, toPoint: Vector2): RID { TransferContext.writeArguments(_RID to map, VECTOR2 to toPoint) - TransferContext.callMethod(rawPtr, MethodBindings.mapGetClosestPointOwnerPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.mapGetClosestPointOwnerPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -247,7 +247,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun mapGetLinks(map: RID): VariantArray { TransferContext.writeArguments(_RID to map) - TransferContext.callMethod(rawPtr, MethodBindings.mapGetLinksPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.mapGetLinksPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -258,7 +258,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun mapGetRegions(map: RID): VariantArray { TransferContext.writeArguments(_RID to map) - TransferContext.callMethod(rawPtr, MethodBindings.mapGetRegionsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.mapGetRegionsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -269,7 +269,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun mapGetAgents(map: RID): VariantArray { TransferContext.writeArguments(_RID to map) - TransferContext.callMethod(rawPtr, MethodBindings.mapGetAgentsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.mapGetAgentsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -280,7 +280,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun mapGetObstacles(map: RID): VariantArray { TransferContext.writeArguments(_RID to map) - TransferContext.callMethod(rawPtr, MethodBindings.mapGetObstaclesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.mapGetObstaclesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -308,7 +308,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun mapForceUpdate(map: RID): Unit { TransferContext.writeArguments(_RID to map) - TransferContext.callMethod(rawPtr, MethodBindings.mapForceUpdatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.mapForceUpdatePtr, NIL) } /** @@ -320,7 +320,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun mapGetIterationId(map: RID): Long { TransferContext.writeArguments(_RID to map) - TransferContext.callMethod(rawPtr, MethodBindings.mapGetIterationIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.mapGetIterationIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -337,7 +337,7 @@ public object NavigationServer2D : Object() { uniformly: Boolean, ): Vector2 { TransferContext.writeArguments(_RID to map, LONG to navigationLayers, BOOL to uniformly) - TransferContext.callMethod(rawPtr, MethodBindings.mapGetRandomPointPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.mapGetRandomPointPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -351,7 +351,7 @@ public object NavigationServer2D : Object() { public final fun queryPath(parameters: NavigationPathQueryParameters2D?, result: NavigationPathQueryResult2D?): Unit { TransferContext.writeArguments(OBJECT to parameters, OBJECT to result) - TransferContext.callMethod(rawPtr, MethodBindings.queryPathPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.queryPathPtr, NIL) } /** @@ -360,7 +360,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun regionCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.regionCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.regionCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -370,7 +370,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun regionSetEnabled(region: RID, enabled: Boolean): Unit { TransferContext.writeArguments(_RID to region, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.regionSetEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.regionSetEnabledPtr, NIL) } /** @@ -379,7 +379,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun regionGetEnabled(region: RID): Boolean { TransferContext.writeArguments(_RID to region) - TransferContext.callMethod(rawPtr, MethodBindings.regionGetEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.regionGetEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -390,7 +390,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun regionSetUseEdgeConnections(region: RID, enabled: Boolean): Unit { TransferContext.writeArguments(_RID to region, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.regionSetUseEdgeConnectionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.regionSetUseEdgeConnectionsPtr, NIL) } /** @@ -400,7 +400,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun regionGetUseEdgeConnections(region: RID): Boolean { TransferContext.writeArguments(_RID to region) - TransferContext.callMethod(rawPtr, MethodBindings.regionGetUseEdgeConnectionsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.regionGetUseEdgeConnectionsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -410,7 +410,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun regionSetEnterCost(region: RID, enterCost: Float): Unit { TransferContext.writeArguments(_RID to region, DOUBLE to enterCost.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.regionSetEnterCostPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.regionSetEnterCostPtr, NIL) } /** @@ -419,7 +419,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun regionGetEnterCost(region: RID): Float { TransferContext.writeArguments(_RID to region) - TransferContext.callMethod(rawPtr, MethodBindings.regionGetEnterCostPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.regionGetEnterCostPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -429,7 +429,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun regionSetTravelCost(region: RID, travelCost: Float): Unit { TransferContext.writeArguments(_RID to region, DOUBLE to travelCost.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.regionSetTravelCostPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.regionSetTravelCostPtr, NIL) } /** @@ -438,7 +438,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun regionGetTravelCost(region: RID): Float { TransferContext.writeArguments(_RID to region) - TransferContext.callMethod(rawPtr, MethodBindings.regionGetTravelCostPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.regionGetTravelCostPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -448,7 +448,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun regionSetOwnerId(region: RID, ownerId: Long): Unit { TransferContext.writeArguments(_RID to region, LONG to ownerId) - TransferContext.callMethod(rawPtr, MethodBindings.regionSetOwnerIdPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.regionSetOwnerIdPtr, NIL) } /** @@ -457,7 +457,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun regionGetOwnerId(region: RID): Long { TransferContext.writeArguments(_RID to region) - TransferContext.callMethod(rawPtr, MethodBindings.regionGetOwnerIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.regionGetOwnerIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -476,7 +476,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun regionOwnsPoint(region: RID, point: Vector2): Boolean { TransferContext.writeArguments(_RID to region, VECTOR2 to point) - TransferContext.callMethod(rawPtr, MethodBindings.regionOwnsPointPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.regionOwnsPointPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -486,7 +486,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun regionSetMap(region: RID, map: RID): Unit { TransferContext.writeArguments(_RID to region, _RID to map) - TransferContext.callMethod(rawPtr, MethodBindings.regionSetMapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.regionSetMapPtr, NIL) } /** @@ -495,7 +495,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun regionGetMap(region: RID): RID { TransferContext.writeArguments(_RID to region) - TransferContext.callMethod(rawPtr, MethodBindings.regionGetMapPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.regionGetMapPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -506,7 +506,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun regionSetNavigationLayers(region: RID, navigationLayers: Long): Unit { TransferContext.writeArguments(_RID to region, LONG to navigationLayers) - TransferContext.callMethod(rawPtr, MethodBindings.regionSetNavigationLayersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.regionSetNavigationLayersPtr, NIL) } /** @@ -515,7 +515,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun regionGetNavigationLayers(region: RID): Long { TransferContext.writeArguments(_RID to region) - TransferContext.callMethod(rawPtr, MethodBindings.regionGetNavigationLayersPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.regionGetNavigationLayersPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -525,7 +525,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun regionSetTransform(region: RID, transform: Transform2D): Unit { TransferContext.writeArguments(_RID to region, TRANSFORM2D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.regionSetTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.regionSetTransformPtr, NIL) } /** @@ -534,7 +534,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun regionGetTransform(region: RID): Transform2D { TransferContext.writeArguments(_RID to region) - TransferContext.callMethod(rawPtr, MethodBindings.regionGetTransformPtr, TRANSFORM2D) + TransferContext.callMethod(ptr, MethodBindings.regionGetTransformPtr, TRANSFORM2D) return (TransferContext.readReturnValue(TRANSFORM2D) as Transform2D) } @@ -545,7 +545,7 @@ public object NavigationServer2D : Object() { public final fun regionSetNavigationPolygon(region: RID, navigationPolygon: NavigationPolygon?): Unit { TransferContext.writeArguments(_RID to region, OBJECT to navigationPolygon) - TransferContext.callMethod(rawPtr, MethodBindings.regionSetNavigationPolygonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.regionSetNavigationPolygonPtr, NIL) } /** @@ -554,7 +554,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun regionGetConnectionsCount(region: RID): Int { TransferContext.writeArguments(_RID to region) - TransferContext.callMethod(rawPtr, MethodBindings.regionGetConnectionsCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.regionGetConnectionsCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -565,7 +565,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun regionGetConnectionPathwayStart(region: RID, connection: Int): Vector2 { TransferContext.writeArguments(_RID to region, LONG to connection.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.regionGetConnectionPathwayStartPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.regionGetConnectionPathwayStartPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -576,7 +576,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun regionGetConnectionPathwayEnd(region: RID, connection: Int): Vector2 { TransferContext.writeArguments(_RID to region, LONG to connection.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.regionGetConnectionPathwayEndPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.regionGetConnectionPathwayEndPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -593,7 +593,7 @@ public object NavigationServer2D : Object() { uniformly: Boolean, ): Vector2 { TransferContext.writeArguments(_RID to region, LONG to navigationLayers, BOOL to uniformly) - TransferContext.callMethod(rawPtr, MethodBindings.regionGetRandomPointPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.regionGetRandomPointPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -603,7 +603,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun linkCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.linkCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.linkCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -613,7 +613,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun linkSetMap(link: RID, map: RID): Unit { TransferContext.writeArguments(_RID to link, _RID to map) - TransferContext.callMethod(rawPtr, MethodBindings.linkSetMapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.linkSetMapPtr, NIL) } /** @@ -622,7 +622,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun linkGetMap(link: RID): RID { TransferContext.writeArguments(_RID to link) - TransferContext.callMethod(rawPtr, MethodBindings.linkGetMapPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.linkGetMapPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -632,7 +632,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun linkSetEnabled(link: RID, enabled: Boolean): Unit { TransferContext.writeArguments(_RID to link, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.linkSetEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.linkSetEnabledPtr, NIL) } /** @@ -641,7 +641,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun linkGetEnabled(link: RID): Boolean { TransferContext.writeArguments(_RID to link) - TransferContext.callMethod(rawPtr, MethodBindings.linkGetEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.linkGetEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -651,7 +651,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun linkSetBidirectional(link: RID, bidirectional: Boolean): Unit { TransferContext.writeArguments(_RID to link, BOOL to bidirectional) - TransferContext.callMethod(rawPtr, MethodBindings.linkSetBidirectionalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.linkSetBidirectionalPtr, NIL) } /** @@ -660,7 +660,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun linkIsBidirectional(link: RID): Boolean { TransferContext.writeArguments(_RID to link) - TransferContext.callMethod(rawPtr, MethodBindings.linkIsBidirectionalPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.linkIsBidirectionalPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -671,7 +671,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun linkSetNavigationLayers(link: RID, navigationLayers: Long): Unit { TransferContext.writeArguments(_RID to link, LONG to navigationLayers) - TransferContext.callMethod(rawPtr, MethodBindings.linkSetNavigationLayersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.linkSetNavigationLayersPtr, NIL) } /** @@ -680,7 +680,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun linkGetNavigationLayers(link: RID): Long { TransferContext.writeArguments(_RID to link) - TransferContext.callMethod(rawPtr, MethodBindings.linkGetNavigationLayersPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.linkGetNavigationLayersPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -690,7 +690,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun linkSetStartPosition(link: RID, position: Vector2): Unit { TransferContext.writeArguments(_RID to link, VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.linkSetStartPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.linkSetStartPositionPtr, NIL) } /** @@ -699,7 +699,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun linkGetStartPosition(link: RID): Vector2 { TransferContext.writeArguments(_RID to link) - TransferContext.callMethod(rawPtr, MethodBindings.linkGetStartPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.linkGetStartPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -709,7 +709,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun linkSetEndPosition(link: RID, position: Vector2): Unit { TransferContext.writeArguments(_RID to link, VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.linkSetEndPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.linkSetEndPositionPtr, NIL) } /** @@ -718,7 +718,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun linkGetEndPosition(link: RID): Vector2 { TransferContext.writeArguments(_RID to link) - TransferContext.callMethod(rawPtr, MethodBindings.linkGetEndPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.linkGetEndPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -728,7 +728,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun linkSetEnterCost(link: RID, enterCost: Float): Unit { TransferContext.writeArguments(_RID to link, DOUBLE to enterCost.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.linkSetEnterCostPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.linkSetEnterCostPtr, NIL) } /** @@ -737,7 +737,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun linkGetEnterCost(link: RID): Float { TransferContext.writeArguments(_RID to link) - TransferContext.callMethod(rawPtr, MethodBindings.linkGetEnterCostPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.linkGetEnterCostPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -747,7 +747,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun linkSetTravelCost(link: RID, travelCost: Float): Unit { TransferContext.writeArguments(_RID to link, DOUBLE to travelCost.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.linkSetTravelCostPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.linkSetTravelCostPtr, NIL) } /** @@ -756,7 +756,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun linkGetTravelCost(link: RID): Float { TransferContext.writeArguments(_RID to link) - TransferContext.callMethod(rawPtr, MethodBindings.linkGetTravelCostPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.linkGetTravelCostPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -766,7 +766,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun linkSetOwnerId(link: RID, ownerId: Long): Unit { TransferContext.writeArguments(_RID to link, LONG to ownerId) - TransferContext.callMethod(rawPtr, MethodBindings.linkSetOwnerIdPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.linkSetOwnerIdPtr, NIL) } /** @@ -775,7 +775,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun linkGetOwnerId(link: RID): Long { TransferContext.writeArguments(_RID to link) - TransferContext.callMethod(rawPtr, MethodBindings.linkGetOwnerIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.linkGetOwnerIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -785,7 +785,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun agentCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.agentCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.agentCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -795,7 +795,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun agentSetAvoidanceEnabled(agent: RID, enabled: Boolean): Unit { TransferContext.writeArguments(_RID to agent, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.agentSetAvoidanceEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.agentSetAvoidanceEnabledPtr, NIL) } /** @@ -804,7 +804,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun agentGetAvoidanceEnabled(agent: RID): Boolean { TransferContext.writeArguments(_RID to agent) - TransferContext.callMethod(rawPtr, MethodBindings.agentGetAvoidanceEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.agentGetAvoidanceEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -814,7 +814,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun agentSetMap(agent: RID, map: RID): Unit { TransferContext.writeArguments(_RID to agent, _RID to map) - TransferContext.callMethod(rawPtr, MethodBindings.agentSetMapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.agentSetMapPtr, NIL) } /** @@ -823,7 +823,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun agentGetMap(agent: RID): RID { TransferContext.writeArguments(_RID to agent) - TransferContext.callMethod(rawPtr, MethodBindings.agentGetMapPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.agentGetMapPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -834,7 +834,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun agentSetPaused(agent: RID, paused: Boolean): Unit { TransferContext.writeArguments(_RID to agent, BOOL to paused) - TransferContext.callMethod(rawPtr, MethodBindings.agentSetPausedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.agentSetPausedPtr, NIL) } /** @@ -843,7 +843,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun agentGetPaused(agent: RID): Boolean { TransferContext.writeArguments(_RID to agent) - TransferContext.callMethod(rawPtr, MethodBindings.agentGetPausedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.agentGetPausedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -855,7 +855,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun agentSetNeighborDistance(agent: RID, distance: Float): Unit { TransferContext.writeArguments(_RID to agent, DOUBLE to distance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.agentSetNeighborDistancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.agentSetNeighborDistancePtr, NIL) } /** @@ -865,7 +865,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun agentGetNeighborDistance(agent: RID): Float { TransferContext.writeArguments(_RID to agent) - TransferContext.callMethod(rawPtr, MethodBindings.agentGetNeighborDistancePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.agentGetNeighborDistancePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -877,7 +877,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun agentSetMaxNeighbors(agent: RID, count: Int): Unit { TransferContext.writeArguments(_RID to agent, LONG to count.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.agentSetMaxNeighborsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.agentSetMaxNeighborsPtr, NIL) } /** @@ -887,7 +887,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun agentGetMaxNeighbors(agent: RID): Int { TransferContext.writeArguments(_RID to agent) - TransferContext.callMethod(rawPtr, MethodBindings.agentGetMaxNeighborsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.agentGetMaxNeighborsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -900,7 +900,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun agentSetTimeHorizonAgents(agent: RID, timeHorizon: Float): Unit { TransferContext.writeArguments(_RID to agent, DOUBLE to timeHorizon.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.agentSetTimeHorizonAgentsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.agentSetTimeHorizonAgentsPtr, NIL) } /** @@ -910,7 +910,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun agentGetTimeHorizonAgents(agent: RID): Float { TransferContext.writeArguments(_RID to agent) - TransferContext.callMethod(rawPtr, MethodBindings.agentGetTimeHorizonAgentsPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.agentGetTimeHorizonAgentsPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -924,7 +924,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun agentSetTimeHorizonObstacles(agent: RID, timeHorizon: Float): Unit { TransferContext.writeArguments(_RID to agent, DOUBLE to timeHorizon.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.agentSetTimeHorizonObstaclesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.agentSetTimeHorizonObstaclesPtr, NIL) } /** @@ -934,7 +934,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun agentGetTimeHorizonObstacles(agent: RID): Float { TransferContext.writeArguments(_RID to agent) - TransferContext.callMethod(rawPtr, MethodBindings.agentGetTimeHorizonObstaclesPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.agentGetTimeHorizonObstaclesPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -944,7 +944,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun agentSetRadius(agent: RID, radius: Float): Unit { TransferContext.writeArguments(_RID to agent, DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.agentSetRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.agentSetRadiusPtr, NIL) } /** @@ -953,7 +953,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun agentGetRadius(agent: RID): Float { TransferContext.writeArguments(_RID to agent) - TransferContext.callMethod(rawPtr, MethodBindings.agentGetRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.agentGetRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -963,7 +963,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun agentSetMaxSpeed(agent: RID, maxSpeed: Float): Unit { TransferContext.writeArguments(_RID to agent, DOUBLE to maxSpeed.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.agentSetMaxSpeedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.agentSetMaxSpeedPtr, NIL) } /** @@ -972,7 +972,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun agentGetMaxSpeed(agent: RID): Float { TransferContext.writeArguments(_RID to agent) - TransferContext.callMethod(rawPtr, MethodBindings.agentGetMaxSpeedPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.agentGetMaxSpeedPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -984,7 +984,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun agentSetVelocityForced(agent: RID, velocity: Vector2): Unit { TransferContext.writeArguments(_RID to agent, VECTOR2 to velocity) - TransferContext.callMethod(rawPtr, MethodBindings.agentSetVelocityForcedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.agentSetVelocityForcedPtr, NIL) } /** @@ -996,7 +996,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun agentSetVelocity(agent: RID, velocity: Vector2): Unit { TransferContext.writeArguments(_RID to agent, VECTOR2 to velocity) - TransferContext.callMethod(rawPtr, MethodBindings.agentSetVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.agentSetVelocityPtr, NIL) } /** @@ -1005,7 +1005,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun agentGetVelocity(agent: RID): Vector2 { TransferContext.writeArguments(_RID to agent) - TransferContext.callMethod(rawPtr, MethodBindings.agentGetVelocityPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.agentGetVelocityPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -1015,7 +1015,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun agentSetPosition(agent: RID, position: Vector2): Unit { TransferContext.writeArguments(_RID to agent, VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.agentSetPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.agentSetPositionPtr, NIL) } /** @@ -1024,7 +1024,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun agentGetPosition(agent: RID): Vector2 { TransferContext.writeArguments(_RID to agent) - TransferContext.callMethod(rawPtr, MethodBindings.agentGetPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.agentGetPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -1034,7 +1034,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun agentIsMapChanged(agent: RID): Boolean { TransferContext.writeArguments(_RID to agent) - TransferContext.callMethod(rawPtr, MethodBindings.agentIsMapChangedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.agentIsMapChangedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1049,7 +1049,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun agentSetAvoidanceCallback(agent: RID, callback: Callable): Unit { TransferContext.writeArguments(_RID to agent, CALLABLE to callback) - TransferContext.callMethod(rawPtr, MethodBindings.agentSetAvoidanceCallbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.agentSetAvoidanceCallbackPtr, NIL) } /** @@ -1058,7 +1058,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun agentHasAvoidanceCallback(agent: RID): Boolean { TransferContext.writeArguments(_RID to agent) - TransferContext.callMethod(rawPtr, MethodBindings.agentHasAvoidanceCallbackPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.agentHasAvoidanceCallbackPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1068,7 +1068,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun agentSetAvoidanceLayers(agent: RID, layers: Long): Unit { TransferContext.writeArguments(_RID to agent, LONG to layers) - TransferContext.callMethod(rawPtr, MethodBindings.agentSetAvoidanceLayersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.agentSetAvoidanceLayersPtr, NIL) } /** @@ -1077,7 +1077,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun agentGetAvoidanceLayers(agent: RID): Long { TransferContext.writeArguments(_RID to agent) - TransferContext.callMethod(rawPtr, MethodBindings.agentGetAvoidanceLayersPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.agentGetAvoidanceLayersPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -1087,7 +1087,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun agentSetAvoidanceMask(agent: RID, mask: Long): Unit { TransferContext.writeArguments(_RID to agent, LONG to mask) - TransferContext.callMethod(rawPtr, MethodBindings.agentSetAvoidanceMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.agentSetAvoidanceMaskPtr, NIL) } /** @@ -1096,7 +1096,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun agentGetAvoidanceMask(agent: RID): Long { TransferContext.writeArguments(_RID to agent) - TransferContext.callMethod(rawPtr, MethodBindings.agentGetAvoidanceMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.agentGetAvoidanceMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -1110,7 +1110,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun agentSetAvoidancePriority(agent: RID, priority: Float): Unit { TransferContext.writeArguments(_RID to agent, DOUBLE to priority.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.agentSetAvoidancePriorityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.agentSetAvoidancePriorityPtr, NIL) } /** @@ -1119,7 +1119,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun agentGetAvoidancePriority(agent: RID): Float { TransferContext.writeArguments(_RID to agent) - TransferContext.callMethod(rawPtr, MethodBindings.agentGetAvoidancePriorityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.agentGetAvoidancePriorityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1129,7 +1129,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun obstacleCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.obstacleCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.obstacleCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -1139,7 +1139,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun obstacleSetAvoidanceEnabled(obstacle: RID, enabled: Boolean): Unit { TransferContext.writeArguments(_RID to obstacle, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.obstacleSetAvoidanceEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.obstacleSetAvoidanceEnabledPtr, NIL) } /** @@ -1148,7 +1148,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun obstacleGetAvoidanceEnabled(obstacle: RID): Boolean { TransferContext.writeArguments(_RID to obstacle) - TransferContext.callMethod(rawPtr, MethodBindings.obstacleGetAvoidanceEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.obstacleGetAvoidanceEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1158,7 +1158,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun obstacleSetMap(obstacle: RID, map: RID): Unit { TransferContext.writeArguments(_RID to obstacle, _RID to map) - TransferContext.callMethod(rawPtr, MethodBindings.obstacleSetMapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.obstacleSetMapPtr, NIL) } /** @@ -1167,7 +1167,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun obstacleGetMap(obstacle: RID): RID { TransferContext.writeArguments(_RID to obstacle) - TransferContext.callMethod(rawPtr, MethodBindings.obstacleGetMapPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.obstacleGetMapPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -1178,7 +1178,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun obstacleSetPaused(obstacle: RID, paused: Boolean): Unit { TransferContext.writeArguments(_RID to obstacle, BOOL to paused) - TransferContext.callMethod(rawPtr, MethodBindings.obstacleSetPausedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.obstacleSetPausedPtr, NIL) } /** @@ -1187,7 +1187,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun obstacleGetPaused(obstacle: RID): Boolean { TransferContext.writeArguments(_RID to obstacle) - TransferContext.callMethod(rawPtr, MethodBindings.obstacleGetPausedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.obstacleGetPausedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1197,7 +1197,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun obstacleSetRadius(obstacle: RID, radius: Float): Unit { TransferContext.writeArguments(_RID to obstacle, DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.obstacleSetRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.obstacleSetRadiusPtr, NIL) } /** @@ -1206,7 +1206,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun obstacleGetRadius(obstacle: RID): Float { TransferContext.writeArguments(_RID to obstacle) - TransferContext.callMethod(rawPtr, MethodBindings.obstacleGetRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.obstacleGetRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1217,7 +1217,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun obstacleSetVelocity(obstacle: RID, velocity: Vector2): Unit { TransferContext.writeArguments(_RID to obstacle, VECTOR2 to velocity) - TransferContext.callMethod(rawPtr, MethodBindings.obstacleSetVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.obstacleSetVelocityPtr, NIL) } /** @@ -1226,7 +1226,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun obstacleGetVelocity(obstacle: RID): Vector2 { TransferContext.writeArguments(_RID to obstacle) - TransferContext.callMethod(rawPtr, MethodBindings.obstacleGetVelocityPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.obstacleGetVelocityPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -1236,7 +1236,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun obstacleSetPosition(obstacle: RID, position: Vector2): Unit { TransferContext.writeArguments(_RID to obstacle, VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.obstacleSetPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.obstacleSetPositionPtr, NIL) } /** @@ -1245,7 +1245,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun obstacleGetPosition(obstacle: RID): Vector2 { TransferContext.writeArguments(_RID to obstacle) - TransferContext.callMethod(rawPtr, MethodBindings.obstacleGetPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.obstacleGetPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -1256,7 +1256,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun obstacleSetVertices(obstacle: RID, vertices: PackedVector2Array): Unit { TransferContext.writeArguments(_RID to obstacle, PACKED_VECTOR2_ARRAY to vertices) - TransferContext.callMethod(rawPtr, MethodBindings.obstacleSetVerticesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.obstacleSetVerticesPtr, NIL) } /** @@ -1265,7 +1265,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun obstacleGetVertices(obstacle: RID): PackedVector2Array { TransferContext.writeArguments(_RID to obstacle) - TransferContext.callMethod(rawPtr, MethodBindings.obstacleGetVerticesPtr, PACKED_VECTOR2_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.obstacleGetVerticesPtr, PACKED_VECTOR2_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR2_ARRAY) as PackedVector2Array) } @@ -1275,7 +1275,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun obstacleSetAvoidanceLayers(obstacle: RID, layers: Long): Unit { TransferContext.writeArguments(_RID to obstacle, LONG to layers) - TransferContext.callMethod(rawPtr, MethodBindings.obstacleSetAvoidanceLayersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.obstacleSetAvoidanceLayersPtr, NIL) } /** @@ -1284,7 +1284,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun obstacleGetAvoidanceLayers(obstacle: RID): Long { TransferContext.writeArguments(_RID to obstacle) - TransferContext.callMethod(rawPtr, MethodBindings.obstacleGetAvoidanceLayersPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.obstacleGetAvoidanceLayersPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -1309,7 +1309,7 @@ public object NavigationServer2D : Object() { callback: Callable = Callable(), ): Unit { TransferContext.writeArguments(OBJECT to navigationPolygon, OBJECT to sourceGeometryData, OBJECT to rootNode, CALLABLE to callback) - TransferContext.callMethod(rawPtr, MethodBindings.parseSourceGeometryDataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.parseSourceGeometryDataPtr, NIL) } /** @@ -1324,7 +1324,7 @@ public object NavigationServer2D : Object() { callback: Callable = Callable(), ): Unit { TransferContext.writeArguments(OBJECT to navigationPolygon, OBJECT to sourceGeometryData, CALLABLE to callback) - TransferContext.callMethod(rawPtr, MethodBindings.bakeFromSourceGeometryDataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bakeFromSourceGeometryDataPtr, NIL) } /** @@ -1340,7 +1340,7 @@ public object NavigationServer2D : Object() { callback: Callable = Callable(), ): Unit { TransferContext.writeArguments(OBJECT to navigationPolygon, OBJECT to sourceGeometryData, CALLABLE to callback) - TransferContext.callMethod(rawPtr, MethodBindings.bakeFromSourceGeometryDataAsyncPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bakeFromSourceGeometryDataAsyncPtr, NIL) } /** @@ -1349,7 +1349,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun isBakingNavigationPolygon(navigationPolygon: NavigationPolygon?): Boolean { TransferContext.writeArguments(OBJECT to navigationPolygon) - TransferContext.callMethod(rawPtr, MethodBindings.isBakingNavigationPolygonPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isBakingNavigationPolygonPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1361,7 +1361,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun sourceGeometryParserCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.sourceGeometryParserCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.sourceGeometryParserCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -1377,7 +1377,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun sourceGeometryParserSetCallback(parser: RID, callback: Callable): Unit { TransferContext.writeArguments(_RID to parser, CALLABLE to callback) - TransferContext.callMethod(rawPtr, MethodBindings.sourceGeometryParserSetCallbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.sourceGeometryParserSetCallbackPtr, NIL) } /** @@ -1391,7 +1391,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun simplifyPath(path: PackedVector2Array, epsilon: Float): PackedVector2Array { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to path, DOUBLE to epsilon.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.simplifyPathPtr, PACKED_VECTOR2_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.simplifyPathPtr, PACKED_VECTOR2_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR2_ARRAY) as PackedVector2Array) } @@ -1401,7 +1401,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun freeRid(rid: RID): Unit { TransferContext.writeArguments(_RID to rid) - TransferContext.callMethod(rawPtr, MethodBindings.freeRidPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.freeRidPtr, NIL) } /** @@ -1410,7 +1410,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun setDebugEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDebugEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDebugEnabledPtr, NIL) } /** @@ -1419,7 +1419,7 @@ public object NavigationServer2D : Object() { @JvmStatic public final fun getDebugEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDebugEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getDebugEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationServer3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationServer3D.kt index 186e1b19ea..4c4a3c770b 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationServer3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/NavigationServer3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.PackedVector3Array import godot.core.RID @@ -28,7 +29,6 @@ import godot.core.VariantParser.VECTOR3 import godot.core.VariantParser._RID import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -92,7 +92,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun getMaps(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMapsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getMapsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -102,7 +102,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun mapCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.mapCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.mapCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -112,7 +112,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun mapSetActive(map: RID, active: Boolean): Unit { TransferContext.writeArguments(_RID to map, BOOL to active) - TransferContext.callMethod(rawPtr, MethodBindings.mapSetActivePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.mapSetActivePtr, NIL) } /** @@ -121,7 +121,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun mapIsActive(map: RID): Boolean { TransferContext.writeArguments(_RID to map) - TransferContext.callMethod(rawPtr, MethodBindings.mapIsActivePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.mapIsActivePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -131,7 +131,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun mapSetUp(map: RID, up: Vector3): Unit { TransferContext.writeArguments(_RID to map, VECTOR3 to up) - TransferContext.callMethod(rawPtr, MethodBindings.mapSetUpPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.mapSetUpPtr, NIL) } /** @@ -140,7 +140,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun mapGetUp(map: RID): Vector3 { TransferContext.writeArguments(_RID to map) - TransferContext.callMethod(rawPtr, MethodBindings.mapGetUpPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.mapGetUpPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -151,7 +151,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun mapSetCellSize(map: RID, cellSize: Float): Unit { TransferContext.writeArguments(_RID to map, DOUBLE to cellSize.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.mapSetCellSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.mapSetCellSizePtr, NIL) } /** @@ -160,7 +160,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun mapGetCellSize(map: RID): Float { TransferContext.writeArguments(_RID to map) - TransferContext.callMethod(rawPtr, MethodBindings.mapGetCellSizePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.mapGetCellSizePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -171,7 +171,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun mapSetCellHeight(map: RID, cellHeight: Float): Unit { TransferContext.writeArguments(_RID to map, DOUBLE to cellHeight.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.mapSetCellHeightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.mapSetCellHeightPtr, NIL) } /** @@ -180,7 +180,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun mapGetCellHeight(map: RID): Float { TransferContext.writeArguments(_RID to map) - TransferContext.callMethod(rawPtr, MethodBindings.mapGetCellHeightPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.mapGetCellHeightPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -190,7 +190,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun mapSetMergeRasterizerCellScale(map: RID, scale: Float): Unit { TransferContext.writeArguments(_RID to map, DOUBLE to scale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.mapSetMergeRasterizerCellScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.mapSetMergeRasterizerCellScalePtr, NIL) } /** @@ -199,7 +199,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun mapGetMergeRasterizerCellScale(map: RID): Float { TransferContext.writeArguments(_RID to map) - TransferContext.callMethod(rawPtr, MethodBindings.mapGetMergeRasterizerCellScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.mapGetMergeRasterizerCellScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -211,7 +211,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun mapSetUseEdgeConnections(map: RID, enabled: Boolean): Unit { TransferContext.writeArguments(_RID to map, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.mapSetUseEdgeConnectionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.mapSetUseEdgeConnectionsPtr, NIL) } /** @@ -222,7 +222,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun mapGetUseEdgeConnections(map: RID): Boolean { TransferContext.writeArguments(_RID to map) - TransferContext.callMethod(rawPtr, MethodBindings.mapGetUseEdgeConnectionsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.mapGetUseEdgeConnectionsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -232,7 +232,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun mapSetEdgeConnectionMargin(map: RID, margin: Float): Unit { TransferContext.writeArguments(_RID to map, DOUBLE to margin.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.mapSetEdgeConnectionMarginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.mapSetEdgeConnectionMarginPtr, NIL) } /** @@ -242,7 +242,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun mapGetEdgeConnectionMargin(map: RID): Float { TransferContext.writeArguments(_RID to map) - TransferContext.callMethod(rawPtr, MethodBindings.mapGetEdgeConnectionMarginPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.mapGetEdgeConnectionMarginPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -252,7 +252,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun mapSetLinkConnectionRadius(map: RID, radius: Float): Unit { TransferContext.writeArguments(_RID to map, DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.mapSetLinkConnectionRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.mapSetLinkConnectionRadiusPtr, NIL) } /** @@ -262,7 +262,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun mapGetLinkConnectionRadius(map: RID): Float { TransferContext.writeArguments(_RID to map) - TransferContext.callMethod(rawPtr, MethodBindings.mapGetLinkConnectionRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.mapGetLinkConnectionRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -280,7 +280,7 @@ public object NavigationServer3D : Object() { navigationLayers: Long = 1, ): PackedVector3Array { TransferContext.writeArguments(_RID to map, VECTOR3 to origin, VECTOR3 to destination, BOOL to optimize, LONG to navigationLayers) - TransferContext.callMethod(rawPtr, MethodBindings.mapGetPathPtr, PACKED_VECTOR3_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.mapGetPathPtr, PACKED_VECTOR3_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR3_ARRAY) as PackedVector3Array) } @@ -296,7 +296,7 @@ public object NavigationServer3D : Object() { useCollision: Boolean = false, ): Vector3 { TransferContext.writeArguments(_RID to map, VECTOR3 to start, VECTOR3 to end, BOOL to useCollision) - TransferContext.callMethod(rawPtr, MethodBindings.mapGetClosestPointToSegmentPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.mapGetClosestPointToSegmentPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -306,7 +306,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun mapGetClosestPoint(map: RID, toPoint: Vector3): Vector3 { TransferContext.writeArguments(_RID to map, VECTOR3 to toPoint) - TransferContext.callMethod(rawPtr, MethodBindings.mapGetClosestPointPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.mapGetClosestPointPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -316,7 +316,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun mapGetClosestPointNormal(map: RID, toPoint: Vector3): Vector3 { TransferContext.writeArguments(_RID to map, VECTOR3 to toPoint) - TransferContext.callMethod(rawPtr, MethodBindings.mapGetClosestPointNormalPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.mapGetClosestPointNormalPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -326,7 +326,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun mapGetClosestPointOwner(map: RID, toPoint: Vector3): RID { TransferContext.writeArguments(_RID to map, VECTOR3 to toPoint) - TransferContext.callMethod(rawPtr, MethodBindings.mapGetClosestPointOwnerPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.mapGetClosestPointOwnerPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -337,7 +337,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun mapGetLinks(map: RID): VariantArray { TransferContext.writeArguments(_RID to map) - TransferContext.callMethod(rawPtr, MethodBindings.mapGetLinksPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.mapGetLinksPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -348,7 +348,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun mapGetRegions(map: RID): VariantArray { TransferContext.writeArguments(_RID to map) - TransferContext.callMethod(rawPtr, MethodBindings.mapGetRegionsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.mapGetRegionsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -359,7 +359,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun mapGetAgents(map: RID): VariantArray { TransferContext.writeArguments(_RID to map) - TransferContext.callMethod(rawPtr, MethodBindings.mapGetAgentsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.mapGetAgentsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -370,7 +370,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun mapGetObstacles(map: RID): VariantArray { TransferContext.writeArguments(_RID to map) - TransferContext.callMethod(rawPtr, MethodBindings.mapGetObstaclesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.mapGetObstaclesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -398,7 +398,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun mapForceUpdate(map: RID): Unit { TransferContext.writeArguments(_RID to map) - TransferContext.callMethod(rawPtr, MethodBindings.mapForceUpdatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.mapForceUpdatePtr, NIL) } /** @@ -410,7 +410,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun mapGetIterationId(map: RID): Long { TransferContext.writeArguments(_RID to map) - TransferContext.callMethod(rawPtr, MethodBindings.mapGetIterationIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.mapGetIterationIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -427,7 +427,7 @@ public object NavigationServer3D : Object() { uniformly: Boolean, ): Vector3 { TransferContext.writeArguments(_RID to map, LONG to navigationLayers, BOOL to uniformly) - TransferContext.callMethod(rawPtr, MethodBindings.mapGetRandomPointPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.mapGetRandomPointPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -441,7 +441,7 @@ public object NavigationServer3D : Object() { public final fun queryPath(parameters: NavigationPathQueryParameters3D?, result: NavigationPathQueryResult3D?): Unit { TransferContext.writeArguments(OBJECT to parameters, OBJECT to result) - TransferContext.callMethod(rawPtr, MethodBindings.queryPathPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.queryPathPtr, NIL) } /** @@ -450,7 +450,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun regionCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.regionCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.regionCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -460,7 +460,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun regionSetEnabled(region: RID, enabled: Boolean): Unit { TransferContext.writeArguments(_RID to region, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.regionSetEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.regionSetEnabledPtr, NIL) } /** @@ -469,7 +469,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun regionGetEnabled(region: RID): Boolean { TransferContext.writeArguments(_RID to region) - TransferContext.callMethod(rawPtr, MethodBindings.regionGetEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.regionGetEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -480,7 +480,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun regionSetUseEdgeConnections(region: RID, enabled: Boolean): Unit { TransferContext.writeArguments(_RID to region, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.regionSetUseEdgeConnectionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.regionSetUseEdgeConnectionsPtr, NIL) } /** @@ -490,7 +490,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun regionGetUseEdgeConnections(region: RID): Boolean { TransferContext.writeArguments(_RID to region) - TransferContext.callMethod(rawPtr, MethodBindings.regionGetUseEdgeConnectionsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.regionGetUseEdgeConnectionsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -500,7 +500,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun regionSetEnterCost(region: RID, enterCost: Float): Unit { TransferContext.writeArguments(_RID to region, DOUBLE to enterCost.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.regionSetEnterCostPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.regionSetEnterCostPtr, NIL) } /** @@ -509,7 +509,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun regionGetEnterCost(region: RID): Float { TransferContext.writeArguments(_RID to region) - TransferContext.callMethod(rawPtr, MethodBindings.regionGetEnterCostPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.regionGetEnterCostPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -519,7 +519,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun regionSetTravelCost(region: RID, travelCost: Float): Unit { TransferContext.writeArguments(_RID to region, DOUBLE to travelCost.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.regionSetTravelCostPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.regionSetTravelCostPtr, NIL) } /** @@ -528,7 +528,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun regionGetTravelCost(region: RID): Float { TransferContext.writeArguments(_RID to region) - TransferContext.callMethod(rawPtr, MethodBindings.regionGetTravelCostPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.regionGetTravelCostPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -538,7 +538,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun regionSetOwnerId(region: RID, ownerId: Long): Unit { TransferContext.writeArguments(_RID to region, LONG to ownerId) - TransferContext.callMethod(rawPtr, MethodBindings.regionSetOwnerIdPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.regionSetOwnerIdPtr, NIL) } /** @@ -547,7 +547,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun regionGetOwnerId(region: RID): Long { TransferContext.writeArguments(_RID to region) - TransferContext.callMethod(rawPtr, MethodBindings.regionGetOwnerIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.regionGetOwnerIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -566,7 +566,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun regionOwnsPoint(region: RID, point: Vector3): Boolean { TransferContext.writeArguments(_RID to region, VECTOR3 to point) - TransferContext.callMethod(rawPtr, MethodBindings.regionOwnsPointPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.regionOwnsPointPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -576,7 +576,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun regionSetMap(region: RID, map: RID): Unit { TransferContext.writeArguments(_RID to region, _RID to map) - TransferContext.callMethod(rawPtr, MethodBindings.regionSetMapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.regionSetMapPtr, NIL) } /** @@ -585,7 +585,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun regionGetMap(region: RID): RID { TransferContext.writeArguments(_RID to region) - TransferContext.callMethod(rawPtr, MethodBindings.regionGetMapPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.regionGetMapPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -596,7 +596,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun regionSetNavigationLayers(region: RID, navigationLayers: Long): Unit { TransferContext.writeArguments(_RID to region, LONG to navigationLayers) - TransferContext.callMethod(rawPtr, MethodBindings.regionSetNavigationLayersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.regionSetNavigationLayersPtr, NIL) } /** @@ -605,7 +605,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun regionGetNavigationLayers(region: RID): Long { TransferContext.writeArguments(_RID to region) - TransferContext.callMethod(rawPtr, MethodBindings.regionGetNavigationLayersPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.regionGetNavigationLayersPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -615,7 +615,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun regionSetTransform(region: RID, transform: Transform3D): Unit { TransferContext.writeArguments(_RID to region, TRANSFORM3D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.regionSetTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.regionSetTransformPtr, NIL) } /** @@ -624,7 +624,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun regionGetTransform(region: RID): Transform3D { TransferContext.writeArguments(_RID to region) - TransferContext.callMethod(rawPtr, MethodBindings.regionGetTransformPtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.regionGetTransformPtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } @@ -634,7 +634,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun regionSetNavigationMesh(region: RID, navigationMesh: NavigationMesh?): Unit { TransferContext.writeArguments(_RID to region, OBJECT to navigationMesh) - TransferContext.callMethod(rawPtr, MethodBindings.regionSetNavigationMeshPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.regionSetNavigationMeshPtr, NIL) } /** @@ -644,7 +644,7 @@ public object NavigationServer3D : Object() { public final fun regionBakeNavigationMesh(navigationMesh: NavigationMesh?, rootNode: Node?): Unit { TransferContext.writeArguments(OBJECT to navigationMesh, OBJECT to rootNode) - TransferContext.callMethod(rawPtr, MethodBindings.regionBakeNavigationMeshPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.regionBakeNavigationMeshPtr, NIL) } /** @@ -653,7 +653,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun regionGetConnectionsCount(region: RID): Int { TransferContext.writeArguments(_RID to region) - TransferContext.callMethod(rawPtr, MethodBindings.regionGetConnectionsCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.regionGetConnectionsCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -664,7 +664,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun regionGetConnectionPathwayStart(region: RID, connection: Int): Vector3 { TransferContext.writeArguments(_RID to region, LONG to connection.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.regionGetConnectionPathwayStartPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.regionGetConnectionPathwayStartPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -675,7 +675,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun regionGetConnectionPathwayEnd(region: RID, connection: Int): Vector3 { TransferContext.writeArguments(_RID to region, LONG to connection.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.regionGetConnectionPathwayEndPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.regionGetConnectionPathwayEndPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -692,7 +692,7 @@ public object NavigationServer3D : Object() { uniformly: Boolean, ): Vector3 { TransferContext.writeArguments(_RID to region, LONG to navigationLayers, BOOL to uniformly) - TransferContext.callMethod(rawPtr, MethodBindings.regionGetRandomPointPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.regionGetRandomPointPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -702,7 +702,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun linkCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.linkCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.linkCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -712,7 +712,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun linkSetMap(link: RID, map: RID): Unit { TransferContext.writeArguments(_RID to link, _RID to map) - TransferContext.callMethod(rawPtr, MethodBindings.linkSetMapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.linkSetMapPtr, NIL) } /** @@ -721,7 +721,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun linkGetMap(link: RID): RID { TransferContext.writeArguments(_RID to link) - TransferContext.callMethod(rawPtr, MethodBindings.linkGetMapPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.linkGetMapPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -731,7 +731,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun linkSetEnabled(link: RID, enabled: Boolean): Unit { TransferContext.writeArguments(_RID to link, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.linkSetEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.linkSetEnabledPtr, NIL) } /** @@ -740,7 +740,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun linkGetEnabled(link: RID): Boolean { TransferContext.writeArguments(_RID to link) - TransferContext.callMethod(rawPtr, MethodBindings.linkGetEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.linkGetEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -750,7 +750,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun linkSetBidirectional(link: RID, bidirectional: Boolean): Unit { TransferContext.writeArguments(_RID to link, BOOL to bidirectional) - TransferContext.callMethod(rawPtr, MethodBindings.linkSetBidirectionalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.linkSetBidirectionalPtr, NIL) } /** @@ -759,7 +759,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun linkIsBidirectional(link: RID): Boolean { TransferContext.writeArguments(_RID to link) - TransferContext.callMethod(rawPtr, MethodBindings.linkIsBidirectionalPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.linkIsBidirectionalPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -770,7 +770,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun linkSetNavigationLayers(link: RID, navigationLayers: Long): Unit { TransferContext.writeArguments(_RID to link, LONG to navigationLayers) - TransferContext.callMethod(rawPtr, MethodBindings.linkSetNavigationLayersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.linkSetNavigationLayersPtr, NIL) } /** @@ -779,7 +779,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun linkGetNavigationLayers(link: RID): Long { TransferContext.writeArguments(_RID to link) - TransferContext.callMethod(rawPtr, MethodBindings.linkGetNavigationLayersPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.linkGetNavigationLayersPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -789,7 +789,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun linkSetStartPosition(link: RID, position: Vector3): Unit { TransferContext.writeArguments(_RID to link, VECTOR3 to position) - TransferContext.callMethod(rawPtr, MethodBindings.linkSetStartPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.linkSetStartPositionPtr, NIL) } /** @@ -798,7 +798,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun linkGetStartPosition(link: RID): Vector3 { TransferContext.writeArguments(_RID to link) - TransferContext.callMethod(rawPtr, MethodBindings.linkGetStartPositionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.linkGetStartPositionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -808,7 +808,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun linkSetEndPosition(link: RID, position: Vector3): Unit { TransferContext.writeArguments(_RID to link, VECTOR3 to position) - TransferContext.callMethod(rawPtr, MethodBindings.linkSetEndPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.linkSetEndPositionPtr, NIL) } /** @@ -817,7 +817,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun linkGetEndPosition(link: RID): Vector3 { TransferContext.writeArguments(_RID to link) - TransferContext.callMethod(rawPtr, MethodBindings.linkGetEndPositionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.linkGetEndPositionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -827,7 +827,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun linkSetEnterCost(link: RID, enterCost: Float): Unit { TransferContext.writeArguments(_RID to link, DOUBLE to enterCost.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.linkSetEnterCostPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.linkSetEnterCostPtr, NIL) } /** @@ -836,7 +836,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun linkGetEnterCost(link: RID): Float { TransferContext.writeArguments(_RID to link) - TransferContext.callMethod(rawPtr, MethodBindings.linkGetEnterCostPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.linkGetEnterCostPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -846,7 +846,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun linkSetTravelCost(link: RID, travelCost: Float): Unit { TransferContext.writeArguments(_RID to link, DOUBLE to travelCost.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.linkSetTravelCostPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.linkSetTravelCostPtr, NIL) } /** @@ -855,7 +855,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun linkGetTravelCost(link: RID): Float { TransferContext.writeArguments(_RID to link) - TransferContext.callMethod(rawPtr, MethodBindings.linkGetTravelCostPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.linkGetTravelCostPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -865,7 +865,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun linkSetOwnerId(link: RID, ownerId: Long): Unit { TransferContext.writeArguments(_RID to link, LONG to ownerId) - TransferContext.callMethod(rawPtr, MethodBindings.linkSetOwnerIdPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.linkSetOwnerIdPtr, NIL) } /** @@ -874,7 +874,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun linkGetOwnerId(link: RID): Long { TransferContext.writeArguments(_RID to link) - TransferContext.callMethod(rawPtr, MethodBindings.linkGetOwnerIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.linkGetOwnerIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -884,7 +884,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun agentCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.agentCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.agentCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -894,7 +894,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun agentSetAvoidanceEnabled(agent: RID, enabled: Boolean): Unit { TransferContext.writeArguments(_RID to agent, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.agentSetAvoidanceEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.agentSetAvoidanceEnabledPtr, NIL) } /** @@ -903,7 +903,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun agentGetAvoidanceEnabled(agent: RID): Boolean { TransferContext.writeArguments(_RID to agent) - TransferContext.callMethod(rawPtr, MethodBindings.agentGetAvoidanceEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.agentGetAvoidanceEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -923,7 +923,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun agentSetUse3dAvoidance(agent: RID, enabled: Boolean): Unit { TransferContext.writeArguments(_RID to agent, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.agentSetUse3dAvoidancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.agentSetUse3dAvoidancePtr, NIL) } /** @@ -933,7 +933,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun agentGetUse3dAvoidance(agent: RID): Boolean { TransferContext.writeArguments(_RID to agent) - TransferContext.callMethod(rawPtr, MethodBindings.agentGetUse3dAvoidancePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.agentGetUse3dAvoidancePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -943,7 +943,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun agentSetMap(agent: RID, map: RID): Unit { TransferContext.writeArguments(_RID to agent, _RID to map) - TransferContext.callMethod(rawPtr, MethodBindings.agentSetMapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.agentSetMapPtr, NIL) } /** @@ -952,7 +952,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun agentGetMap(agent: RID): RID { TransferContext.writeArguments(_RID to agent) - TransferContext.callMethod(rawPtr, MethodBindings.agentGetMapPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.agentGetMapPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -963,7 +963,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun agentSetPaused(agent: RID, paused: Boolean): Unit { TransferContext.writeArguments(_RID to agent, BOOL to paused) - TransferContext.callMethod(rawPtr, MethodBindings.agentSetPausedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.agentSetPausedPtr, NIL) } /** @@ -972,7 +972,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun agentGetPaused(agent: RID): Boolean { TransferContext.writeArguments(_RID to agent) - TransferContext.callMethod(rawPtr, MethodBindings.agentGetPausedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.agentGetPausedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -984,7 +984,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun agentSetNeighborDistance(agent: RID, distance: Float): Unit { TransferContext.writeArguments(_RID to agent, DOUBLE to distance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.agentSetNeighborDistancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.agentSetNeighborDistancePtr, NIL) } /** @@ -994,7 +994,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun agentGetNeighborDistance(agent: RID): Float { TransferContext.writeArguments(_RID to agent) - TransferContext.callMethod(rawPtr, MethodBindings.agentGetNeighborDistancePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.agentGetNeighborDistancePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1006,7 +1006,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun agentSetMaxNeighbors(agent: RID, count: Int): Unit { TransferContext.writeArguments(_RID to agent, LONG to count.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.agentSetMaxNeighborsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.agentSetMaxNeighborsPtr, NIL) } /** @@ -1016,7 +1016,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun agentGetMaxNeighbors(agent: RID): Int { TransferContext.writeArguments(_RID to agent) - TransferContext.callMethod(rawPtr, MethodBindings.agentGetMaxNeighborsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.agentGetMaxNeighborsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1029,7 +1029,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun agentSetTimeHorizonAgents(agent: RID, timeHorizon: Float): Unit { TransferContext.writeArguments(_RID to agent, DOUBLE to timeHorizon.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.agentSetTimeHorizonAgentsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.agentSetTimeHorizonAgentsPtr, NIL) } /** @@ -1039,7 +1039,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun agentGetTimeHorizonAgents(agent: RID): Float { TransferContext.writeArguments(_RID to agent) - TransferContext.callMethod(rawPtr, MethodBindings.agentGetTimeHorizonAgentsPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.agentGetTimeHorizonAgentsPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1053,7 +1053,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun agentSetTimeHorizonObstacles(agent: RID, timeHorizon: Float): Unit { TransferContext.writeArguments(_RID to agent, DOUBLE to timeHorizon.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.agentSetTimeHorizonObstaclesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.agentSetTimeHorizonObstaclesPtr, NIL) } /** @@ -1063,7 +1063,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun agentGetTimeHorizonObstacles(agent: RID): Float { TransferContext.writeArguments(_RID to agent) - TransferContext.callMethod(rawPtr, MethodBindings.agentGetTimeHorizonObstaclesPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.agentGetTimeHorizonObstaclesPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1073,7 +1073,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun agentSetRadius(agent: RID, radius: Float): Unit { TransferContext.writeArguments(_RID to agent, DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.agentSetRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.agentSetRadiusPtr, NIL) } /** @@ -1082,7 +1082,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun agentGetRadius(agent: RID): Float { TransferContext.writeArguments(_RID to agent) - TransferContext.callMethod(rawPtr, MethodBindings.agentGetRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.agentGetRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1092,7 +1092,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun agentSetHeight(agent: RID, height: Float): Unit { TransferContext.writeArguments(_RID to agent, DOUBLE to height.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.agentSetHeightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.agentSetHeightPtr, NIL) } /** @@ -1101,7 +1101,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun agentGetHeight(agent: RID): Float { TransferContext.writeArguments(_RID to agent) - TransferContext.callMethod(rawPtr, MethodBindings.agentGetHeightPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.agentGetHeightPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1111,7 +1111,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun agentSetMaxSpeed(agent: RID, maxSpeed: Float): Unit { TransferContext.writeArguments(_RID to agent, DOUBLE to maxSpeed.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.agentSetMaxSpeedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.agentSetMaxSpeedPtr, NIL) } /** @@ -1120,7 +1120,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun agentGetMaxSpeed(agent: RID): Float { TransferContext.writeArguments(_RID to agent) - TransferContext.callMethod(rawPtr, MethodBindings.agentGetMaxSpeedPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.agentGetMaxSpeedPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1132,7 +1132,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun agentSetVelocityForced(agent: RID, velocity: Vector3): Unit { TransferContext.writeArguments(_RID to agent, VECTOR3 to velocity) - TransferContext.callMethod(rawPtr, MethodBindings.agentSetVelocityForcedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.agentSetVelocityForcedPtr, NIL) } /** @@ -1144,7 +1144,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun agentSetVelocity(agent: RID, velocity: Vector3): Unit { TransferContext.writeArguments(_RID to agent, VECTOR3 to velocity) - TransferContext.callMethod(rawPtr, MethodBindings.agentSetVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.agentSetVelocityPtr, NIL) } /** @@ -1153,7 +1153,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun agentGetVelocity(agent: RID): Vector3 { TransferContext.writeArguments(_RID to agent) - TransferContext.callMethod(rawPtr, MethodBindings.agentGetVelocityPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.agentGetVelocityPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -1163,7 +1163,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun agentSetPosition(agent: RID, position: Vector3): Unit { TransferContext.writeArguments(_RID to agent, VECTOR3 to position) - TransferContext.callMethod(rawPtr, MethodBindings.agentSetPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.agentSetPositionPtr, NIL) } /** @@ -1172,7 +1172,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun agentGetPosition(agent: RID): Vector3 { TransferContext.writeArguments(_RID to agent) - TransferContext.callMethod(rawPtr, MethodBindings.agentGetPositionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.agentGetPositionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -1182,7 +1182,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun agentIsMapChanged(agent: RID): Boolean { TransferContext.writeArguments(_RID to agent) - TransferContext.callMethod(rawPtr, MethodBindings.agentIsMapChangedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.agentIsMapChangedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1197,7 +1197,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun agentSetAvoidanceCallback(agent: RID, callback: Callable): Unit { TransferContext.writeArguments(_RID to agent, CALLABLE to callback) - TransferContext.callMethod(rawPtr, MethodBindings.agentSetAvoidanceCallbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.agentSetAvoidanceCallbackPtr, NIL) } /** @@ -1206,7 +1206,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun agentHasAvoidanceCallback(agent: RID): Boolean { TransferContext.writeArguments(_RID to agent) - TransferContext.callMethod(rawPtr, MethodBindings.agentHasAvoidanceCallbackPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.agentHasAvoidanceCallbackPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1216,7 +1216,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun agentSetAvoidanceLayers(agent: RID, layers: Long): Unit { TransferContext.writeArguments(_RID to agent, LONG to layers) - TransferContext.callMethod(rawPtr, MethodBindings.agentSetAvoidanceLayersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.agentSetAvoidanceLayersPtr, NIL) } /** @@ -1225,7 +1225,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun agentGetAvoidanceLayers(agent: RID): Long { TransferContext.writeArguments(_RID to agent) - TransferContext.callMethod(rawPtr, MethodBindings.agentGetAvoidanceLayersPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.agentGetAvoidanceLayersPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -1235,7 +1235,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun agentSetAvoidanceMask(agent: RID, mask: Long): Unit { TransferContext.writeArguments(_RID to agent, LONG to mask) - TransferContext.callMethod(rawPtr, MethodBindings.agentSetAvoidanceMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.agentSetAvoidanceMaskPtr, NIL) } /** @@ -1244,7 +1244,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun agentGetAvoidanceMask(agent: RID): Long { TransferContext.writeArguments(_RID to agent) - TransferContext.callMethod(rawPtr, MethodBindings.agentGetAvoidanceMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.agentGetAvoidanceMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -1258,7 +1258,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun agentSetAvoidancePriority(agent: RID, priority: Float): Unit { TransferContext.writeArguments(_RID to agent, DOUBLE to priority.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.agentSetAvoidancePriorityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.agentSetAvoidancePriorityPtr, NIL) } /** @@ -1267,7 +1267,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun agentGetAvoidancePriority(agent: RID): Float { TransferContext.writeArguments(_RID to agent) - TransferContext.callMethod(rawPtr, MethodBindings.agentGetAvoidancePriorityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.agentGetAvoidancePriorityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1277,7 +1277,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun obstacleCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.obstacleCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.obstacleCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -1287,7 +1287,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun obstacleSetAvoidanceEnabled(obstacle: RID, enabled: Boolean): Unit { TransferContext.writeArguments(_RID to obstacle, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.obstacleSetAvoidanceEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.obstacleSetAvoidanceEnabledPtr, NIL) } /** @@ -1296,7 +1296,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun obstacleGetAvoidanceEnabled(obstacle: RID): Boolean { TransferContext.writeArguments(_RID to obstacle) - TransferContext.callMethod(rawPtr, MethodBindings.obstacleGetAvoidanceEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.obstacleGetAvoidanceEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1306,7 +1306,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun obstacleSetUse3dAvoidance(obstacle: RID, enabled: Boolean): Unit { TransferContext.writeArguments(_RID to obstacle, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.obstacleSetUse3dAvoidancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.obstacleSetUse3dAvoidancePtr, NIL) } /** @@ -1316,7 +1316,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun obstacleGetUse3dAvoidance(obstacle: RID): Boolean { TransferContext.writeArguments(_RID to obstacle) - TransferContext.callMethod(rawPtr, MethodBindings.obstacleGetUse3dAvoidancePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.obstacleGetUse3dAvoidancePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1326,7 +1326,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun obstacleSetMap(obstacle: RID, map: RID): Unit { TransferContext.writeArguments(_RID to obstacle, _RID to map) - TransferContext.callMethod(rawPtr, MethodBindings.obstacleSetMapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.obstacleSetMapPtr, NIL) } /** @@ -1335,7 +1335,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun obstacleGetMap(obstacle: RID): RID { TransferContext.writeArguments(_RID to obstacle) - TransferContext.callMethod(rawPtr, MethodBindings.obstacleGetMapPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.obstacleGetMapPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -1346,7 +1346,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun obstacleSetPaused(obstacle: RID, paused: Boolean): Unit { TransferContext.writeArguments(_RID to obstacle, BOOL to paused) - TransferContext.callMethod(rawPtr, MethodBindings.obstacleSetPausedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.obstacleSetPausedPtr, NIL) } /** @@ -1355,7 +1355,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun obstacleGetPaused(obstacle: RID): Boolean { TransferContext.writeArguments(_RID to obstacle) - TransferContext.callMethod(rawPtr, MethodBindings.obstacleGetPausedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.obstacleGetPausedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1365,7 +1365,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun obstacleSetRadius(obstacle: RID, radius: Float): Unit { TransferContext.writeArguments(_RID to obstacle, DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.obstacleSetRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.obstacleSetRadiusPtr, NIL) } /** @@ -1374,7 +1374,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun obstacleGetRadius(obstacle: RID): Float { TransferContext.writeArguments(_RID to obstacle) - TransferContext.callMethod(rawPtr, MethodBindings.obstacleGetRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.obstacleGetRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1385,7 +1385,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun obstacleSetHeight(obstacle: RID, height: Float): Unit { TransferContext.writeArguments(_RID to obstacle, DOUBLE to height.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.obstacleSetHeightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.obstacleSetHeightPtr, NIL) } /** @@ -1394,7 +1394,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun obstacleGetHeight(obstacle: RID): Float { TransferContext.writeArguments(_RID to obstacle) - TransferContext.callMethod(rawPtr, MethodBindings.obstacleGetHeightPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.obstacleGetHeightPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1405,7 +1405,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun obstacleSetVelocity(obstacle: RID, velocity: Vector3): Unit { TransferContext.writeArguments(_RID to obstacle, VECTOR3 to velocity) - TransferContext.callMethod(rawPtr, MethodBindings.obstacleSetVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.obstacleSetVelocityPtr, NIL) } /** @@ -1414,7 +1414,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun obstacleGetVelocity(obstacle: RID): Vector3 { TransferContext.writeArguments(_RID to obstacle) - TransferContext.callMethod(rawPtr, MethodBindings.obstacleGetVelocityPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.obstacleGetVelocityPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -1424,7 +1424,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun obstacleSetPosition(obstacle: RID, position: Vector3): Unit { TransferContext.writeArguments(_RID to obstacle, VECTOR3 to position) - TransferContext.callMethod(rawPtr, MethodBindings.obstacleSetPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.obstacleSetPositionPtr, NIL) } /** @@ -1433,7 +1433,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun obstacleGetPosition(obstacle: RID): Vector3 { TransferContext.writeArguments(_RID to obstacle) - TransferContext.callMethod(rawPtr, MethodBindings.obstacleGetPositionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.obstacleGetPositionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -1444,7 +1444,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun obstacleSetVertices(obstacle: RID, vertices: PackedVector3Array): Unit { TransferContext.writeArguments(_RID to obstacle, PACKED_VECTOR3_ARRAY to vertices) - TransferContext.callMethod(rawPtr, MethodBindings.obstacleSetVerticesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.obstacleSetVerticesPtr, NIL) } /** @@ -1453,7 +1453,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun obstacleGetVertices(obstacle: RID): PackedVector3Array { TransferContext.writeArguments(_RID to obstacle) - TransferContext.callMethod(rawPtr, MethodBindings.obstacleGetVerticesPtr, PACKED_VECTOR3_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.obstacleGetVerticesPtr, PACKED_VECTOR3_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR3_ARRAY) as PackedVector3Array) } @@ -1463,7 +1463,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun obstacleSetAvoidanceLayers(obstacle: RID, layers: Long): Unit { TransferContext.writeArguments(_RID to obstacle, LONG to layers) - TransferContext.callMethod(rawPtr, MethodBindings.obstacleSetAvoidanceLayersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.obstacleSetAvoidanceLayersPtr, NIL) } /** @@ -1472,7 +1472,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun obstacleGetAvoidanceLayers(obstacle: RID): Long { TransferContext.writeArguments(_RID to obstacle) - TransferContext.callMethod(rawPtr, MethodBindings.obstacleGetAvoidanceLayersPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.obstacleGetAvoidanceLayersPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -1497,7 +1497,7 @@ public object NavigationServer3D : Object() { callback: Callable = Callable(), ): Unit { TransferContext.writeArguments(OBJECT to navigationMesh, OBJECT to sourceGeometryData, OBJECT to rootNode, CALLABLE to callback) - TransferContext.callMethod(rawPtr, MethodBindings.parseSourceGeometryDataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.parseSourceGeometryDataPtr, NIL) } /** @@ -1512,7 +1512,7 @@ public object NavigationServer3D : Object() { callback: Callable = Callable(), ): Unit { TransferContext.writeArguments(OBJECT to navigationMesh, OBJECT to sourceGeometryData, CALLABLE to callback) - TransferContext.callMethod(rawPtr, MethodBindings.bakeFromSourceGeometryDataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bakeFromSourceGeometryDataPtr, NIL) } /** @@ -1528,7 +1528,7 @@ public object NavigationServer3D : Object() { callback: Callable = Callable(), ): Unit { TransferContext.writeArguments(OBJECT to navigationMesh, OBJECT to sourceGeometryData, CALLABLE to callback) - TransferContext.callMethod(rawPtr, MethodBindings.bakeFromSourceGeometryDataAsyncPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bakeFromSourceGeometryDataAsyncPtr, NIL) } /** @@ -1537,7 +1537,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun isBakingNavigationMesh(navigationMesh: NavigationMesh?): Boolean { TransferContext.writeArguments(OBJECT to navigationMesh) - TransferContext.callMethod(rawPtr, MethodBindings.isBakingNavigationMeshPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isBakingNavigationMeshPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1549,7 +1549,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun sourceGeometryParserCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.sourceGeometryParserCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.sourceGeometryParserCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -1565,7 +1565,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun sourceGeometryParserSetCallback(parser: RID, callback: Callable): Unit { TransferContext.writeArguments(_RID to parser, CALLABLE to callback) - TransferContext.callMethod(rawPtr, MethodBindings.sourceGeometryParserSetCallbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.sourceGeometryParserSetCallbackPtr, NIL) } /** @@ -1579,7 +1579,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun simplifyPath(path: PackedVector3Array, epsilon: Float): PackedVector3Array { TransferContext.writeArguments(PACKED_VECTOR3_ARRAY to path, DOUBLE to epsilon.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.simplifyPathPtr, PACKED_VECTOR3_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.simplifyPathPtr, PACKED_VECTOR3_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR3_ARRAY) as PackedVector3Array) } @@ -1589,7 +1589,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun freeRid(rid: RID): Unit { TransferContext.writeArguments(_RID to rid) - TransferContext.callMethod(rawPtr, MethodBindings.freeRidPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.freeRidPtr, NIL) } /** @@ -1598,7 +1598,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun setActive(active: Boolean): Unit { TransferContext.writeArguments(BOOL to active) - TransferContext.callMethod(rawPtr, MethodBindings.setActivePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setActivePtr, NIL) } /** @@ -1607,7 +1607,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun setDebugEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDebugEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDebugEnabledPtr, NIL) } /** @@ -1616,7 +1616,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun getDebugEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDebugEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getDebugEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1627,7 +1627,7 @@ public object NavigationServer3D : Object() { @JvmStatic public final fun getProcessInfo(processInfo: ProcessInfo): Int { TransferContext.writeArguments(LONG to processInfo.id) - TransferContext.callMethod(rawPtr, MethodBindings.getProcessInfoPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getProcessInfoPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/NinePatchRect.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/NinePatchRect.kt index d24a4b712e..f6f053ebf7 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/NinePatchRect.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/NinePatchRect.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Rect2 import godot.core.Signal0 import godot.core.TypeManager @@ -18,7 +19,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.RECT2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -183,12 +183,12 @@ public open class NinePatchRect : Control() { public final fun setTexture(texture: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTexturePtr, NIL) } public final fun getTexture(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } @@ -197,7 +197,7 @@ public open class NinePatchRect : Control() { */ public final fun setPatchMargin(margin: Side, `value`: Int): Unit { TransferContext.writeArguments(LONG to margin.id, LONG to value.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setPatchMarginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPatchMarginPtr, NIL) } /** @@ -205,51 +205,51 @@ public open class NinePatchRect : Control() { */ public final fun getPatchMargin(margin: Side): Int { TransferContext.writeArguments(LONG to margin.id) - TransferContext.callMethod(rawPtr, MethodBindings.getPatchMarginPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPatchMarginPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setRegionRect(rect: Rect2): Unit { TransferContext.writeArguments(RECT2 to rect) - TransferContext.callMethod(rawPtr, MethodBindings.setRegionRectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRegionRectPtr, NIL) } public final fun getRegionRect(): Rect2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRegionRectPtr, RECT2) + TransferContext.callMethod(ptr, MethodBindings.getRegionRectPtr, RECT2) return (TransferContext.readReturnValue(RECT2) as Rect2) } public final fun setDrawCenter(drawCenter: Boolean): Unit { TransferContext.writeArguments(BOOL to drawCenter) - TransferContext.callMethod(rawPtr, MethodBindings.setDrawCenterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDrawCenterPtr, NIL) } public final fun isDrawCenterEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDrawCenterEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDrawCenterEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setHAxisStretchMode(mode: AxisStretchMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setHAxisStretchModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHAxisStretchModePtr, NIL) } public final fun getHAxisStretchMode(): AxisStretchMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHAxisStretchModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getHAxisStretchModePtr, LONG) return NinePatchRect.AxisStretchMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setVAxisStretchMode(mode: AxisStretchMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setVAxisStretchModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVAxisStretchModePtr, NIL) } public final fun getVAxisStretchMode(): AxisStretchMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVAxisStretchModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVAxisStretchModePtr, LONG) return NinePatchRect.AxisStretchMode.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Node.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Node.kt index f7904231c0..dae6f01e1e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Node.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Node.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.PackedStringArray import godot.core.Signal0 @@ -26,7 +27,6 @@ import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext import godot.core.toGodotName -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -753,17 +753,17 @@ public open class Node : Object() { @JvmOverloads public final fun addSibling(sibling: Node?, forceReadableName: Boolean = false): Unit { TransferContext.writeArguments(OBJECT to sibling, BOOL to forceReadableName) - TransferContext.callMethod(rawPtr, MethodBindings.addSiblingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addSiblingPtr, NIL) } public final fun setName(name: String): Unit { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.setNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNamePtr, NIL) } public final fun getName(): StringName { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNamePtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getNamePtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } @@ -816,7 +816,7 @@ public open class Node : Object() { `internal`: InternalMode = Node.InternalMode.INTERNAL_MODE_DISABLED, ): Unit { TransferContext.writeArguments(OBJECT to node, BOOL to forceReadableName, LONG to internal.id) - TransferContext.callMethod(rawPtr, MethodBindings.addChildPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addChildPtr, NIL) } /** @@ -827,7 +827,7 @@ public open class Node : Object() { */ public final fun removeChild(node: Node?): Unit { TransferContext.writeArguments(OBJECT to node) - TransferContext.callMethod(rawPtr, MethodBindings.removeChildPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeChildPtr, NIL) } /** @@ -840,7 +840,7 @@ public open class Node : Object() { @JvmOverloads public final fun reparent(newParent: Node?, keepGlobalTransform: Boolean = true): Unit { TransferContext.writeArguments(OBJECT to newParent, BOOL to keepGlobalTransform) - TransferContext.callMethod(rawPtr, MethodBindings.reparentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.reparentPtr, NIL) } /** @@ -851,7 +851,7 @@ public open class Node : Object() { @JvmOverloads public final fun getChildCount(includeInternal: Boolean = false): Int { TransferContext.writeArguments(BOOL to includeInternal) - TransferContext.callMethod(rawPtr, MethodBindings.getChildCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getChildCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -863,7 +863,7 @@ public open class Node : Object() { @JvmOverloads public final fun getChildren(includeInternal: Boolean = false): VariantArray { TransferContext.writeArguments(BOOL to includeInternal) - TransferContext.callMethod(rawPtr, MethodBindings.getChildrenPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getChildrenPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -889,7 +889,7 @@ public open class Node : Object() { @JvmOverloads public final fun getChild(idx: Int, includeInternal: Boolean = false): Node? { TransferContext.writeArguments(LONG to idx.toLong(), BOOL to includeInternal) - TransferContext.callMethod(rawPtr, MethodBindings.getChildPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getChildPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Node?) } @@ -898,7 +898,7 @@ public open class Node : Object() { */ public final fun hasNode(path: NodePath): Boolean { TransferContext.writeArguments(NODE_PATH to path) - TransferContext.callMethod(rawPtr, MethodBindings.hasNodePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasNodePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -941,7 +941,7 @@ public open class Node : Object() { */ public final fun getNode(path: NodePath): Node? { TransferContext.writeArguments(NODE_PATH to path) - TransferContext.callMethod(rawPtr, MethodBindings.getNodePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getNodePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Node?) } @@ -951,7 +951,7 @@ public open class Node : Object() { */ public final fun getNodeOrNull(path: NodePath): Node? { TransferContext.writeArguments(NODE_PATH to path) - TransferContext.callMethod(rawPtr, MethodBindings.getNodeOrNullPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getNodeOrNullPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Node?) } @@ -960,7 +960,7 @@ public open class Node : Object() { */ public final fun getParent(): Node? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getParentPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getParentPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Node?) } @@ -985,7 +985,7 @@ public open class Node : Object() { owned: Boolean = true, ): Node? { TransferContext.writeArguments(STRING to pattern, BOOL to recursive, BOOL to owned) - TransferContext.callMethod(rawPtr, MethodBindings.findChildPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.findChildPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Node?) } @@ -1013,7 +1013,7 @@ public open class Node : Object() { owned: Boolean = true, ): VariantArray { TransferContext.writeArguments(STRING to pattern, STRING to type, BOOL to recursive, BOOL to owned) - TransferContext.callMethod(rawPtr, MethodBindings.findChildrenPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.findChildrenPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -1028,7 +1028,7 @@ public open class Node : Object() { */ public final fun findParent(pattern: String): Node? { TransferContext.writeArguments(STRING to pattern) - TransferContext.callMethod(rawPtr, MethodBindings.findParentPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.findParentPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Node?) } @@ -1039,7 +1039,7 @@ public open class Node : Object() { */ public final fun hasNodeAndResource(path: NodePath): Boolean { TransferContext.writeArguments(NODE_PATH to path) - TransferContext.callMethod(rawPtr, MethodBindings.hasNodeAndResourcePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasNodeAndResourcePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1089,7 +1089,7 @@ public open class Node : Object() { */ public final fun getNodeAndResource(path: NodePath): VariantArray { TransferContext.writeArguments(NODE_PATH to path) - TransferContext.callMethod(rawPtr, MethodBindings.getNodeAndResourcePtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getNodeAndResourcePtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -1098,7 +1098,7 @@ public open class Node : Object() { */ public final fun isInsideTree(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isInsideTreePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isInsideTreePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1107,7 +1107,7 @@ public open class Node : Object() { */ public final fun isPartOfEditedScene(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isPartOfEditedScenePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPartOfEditedScenePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1116,7 +1116,7 @@ public open class Node : Object() { */ public final fun isAncestorOf(node: Node?): Boolean { TransferContext.writeArguments(OBJECT to node) - TransferContext.callMethod(rawPtr, MethodBindings.isAncestorOfPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isAncestorOfPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1126,7 +1126,7 @@ public open class Node : Object() { */ public final fun isGreaterThan(node: Node?): Boolean { TransferContext.writeArguments(OBJECT to node) - TransferContext.callMethod(rawPtr, MethodBindings.isGreaterThanPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isGreaterThanPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1136,7 +1136,7 @@ public open class Node : Object() { */ public final fun getPath(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPathPtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getPathPtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } @@ -1152,7 +1152,7 @@ public open class Node : Object() { @JvmOverloads public final fun getPathTo(node: Node?, useUniquePath: Boolean = false): NodePath { TransferContext.writeArguments(OBJECT to node, BOOL to useUniquePath) - TransferContext.callMethod(rawPtr, MethodBindings.getPathToPtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getPathToPtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } @@ -1170,7 +1170,7 @@ public open class Node : Object() { @JvmOverloads public final fun addToGroup(group: StringName, persistent: Boolean = false): Unit { TransferContext.writeArguments(STRING_NAME to group, BOOL to persistent) - TransferContext.callMethod(rawPtr, MethodBindings.addToGroupPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addToGroupPtr, NIL) } /** @@ -1179,7 +1179,7 @@ public open class Node : Object() { */ public final fun removeFromGroup(group: StringName): Unit { TransferContext.writeArguments(STRING_NAME to group) - TransferContext.callMethod(rawPtr, MethodBindings.removeFromGroupPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeFromGroupPtr, NIL) } /** @@ -1188,7 +1188,7 @@ public open class Node : Object() { */ public final fun isInGroup(group: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to group) - TransferContext.callMethod(rawPtr, MethodBindings.isInGroupPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isInGroupPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1202,7 +1202,7 @@ public open class Node : Object() { */ public final fun moveChild(childNode: Node?, toIndex: Int): Unit { TransferContext.writeArguments(OBJECT to childNode, LONG to toIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.moveChildPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.moveChildPtr, NIL) } /** @@ -1234,18 +1234,18 @@ public open class Node : Object() { */ public final fun getGroups(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGroupsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getGroupsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } public final fun setOwner(owner: Node?): Unit { TransferContext.writeArguments(OBJECT to owner) - TransferContext.callMethod(rawPtr, MethodBindings.setOwnerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOwnerPtr, NIL) } public final fun getOwner(): Node? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOwnerPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getOwnerPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Node?) } @@ -1258,7 +1258,7 @@ public open class Node : Object() { @JvmOverloads public final fun getIndex(includeInternal: Boolean = false): Int { TransferContext.writeArguments(BOOL to includeInternal) - TransferContext.callMethod(rawPtr, MethodBindings.getIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1278,7 +1278,7 @@ public open class Node : Object() { */ public final fun printTree(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.printTreePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.printTreePtr, NIL) } /** @@ -1297,7 +1297,7 @@ public open class Node : Object() { */ public final fun printTreePretty(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.printTreePrettyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.printTreePrettyPtr, NIL) } /** @@ -1316,7 +1316,7 @@ public open class Node : Object() { */ public final fun getTreeString(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTreeStringPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getTreeStringPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -1336,18 +1336,18 @@ public open class Node : Object() { */ public final fun getTreeStringPretty(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTreeStringPrettyPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getTreeStringPrettyPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setSceneFilePath(sceneFilePath: String): Unit { TransferContext.writeArguments(STRING to sceneFilePath) - TransferContext.callMethod(rawPtr, MethodBindings.setSceneFilePathPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSceneFilePathPtr, NIL) } public final fun getSceneFilePath(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSceneFilePathPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getSceneFilePathPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -1356,7 +1356,7 @@ public open class Node : Object() { */ public final fun propagateNotification(what: Int): Unit { TransferContext.writeArguments(LONG to what.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.propagateNotificationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.propagateNotificationPtr, NIL) } /** @@ -1372,7 +1372,7 @@ public open class Node : Object() { parentFirst: Boolean = false, ): Unit { TransferContext.writeArguments(STRING_NAME to method, ARRAY to args, BOOL to parentFirst) - TransferContext.callMethod(rawPtr, MethodBindings.propagateCallPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.propagateCallPtr, NIL) } /** @@ -1385,7 +1385,7 @@ public open class Node : Object() { */ public final fun setPhysicsProcess(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setPhysicsProcessPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPhysicsProcessPtr, NIL) } /** @@ -1395,7 +1395,7 @@ public open class Node : Object() { */ public final fun getPhysicsProcessDeltaTime(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPhysicsProcessDeltaTimePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPhysicsProcessDeltaTimePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -1404,7 +1404,7 @@ public open class Node : Object() { */ public final fun isPhysicsProcessing(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isPhysicsProcessingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPhysicsProcessingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1415,7 +1415,7 @@ public open class Node : Object() { */ public final fun getProcessDeltaTime(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getProcessDeltaTimePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getProcessDeltaTimePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -1431,28 +1431,28 @@ public open class Node : Object() { */ public final fun setProcess(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setProcessPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setProcessPtr, NIL) } public final fun setProcessPriority(priority: Int): Unit { TransferContext.writeArguments(LONG to priority.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setProcessPriorityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setProcessPriorityPtr, NIL) } public final fun getProcessPriority(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getProcessPriorityPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getProcessPriorityPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setPhysicsProcessPriority(priority: Int): Unit { TransferContext.writeArguments(LONG to priority.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setPhysicsProcessPriorityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPhysicsProcessPriorityPtr, NIL) } public final fun getPhysicsProcessPriority(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPhysicsProcessPriorityPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPhysicsProcessPriorityPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1461,7 +1461,7 @@ public open class Node : Object() { */ public final fun isProcessing(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isProcessingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isProcessingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1473,7 +1473,7 @@ public open class Node : Object() { */ public final fun setProcessInput(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setProcessInputPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setProcessInputPtr, NIL) } /** @@ -1481,7 +1481,7 @@ public open class Node : Object() { */ public final fun isProcessingInput(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isProcessingInputPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isProcessingInputPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1492,7 +1492,7 @@ public open class Node : Object() { */ public final fun setProcessShortcutInput(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setProcessShortcutInputPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setProcessShortcutInputPtr, NIL) } /** @@ -1500,7 +1500,7 @@ public open class Node : Object() { */ public final fun isProcessingShortcutInput(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isProcessingShortcutInputPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isProcessingShortcutInputPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1513,7 +1513,7 @@ public open class Node : Object() { */ public final fun setProcessUnhandledInput(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setProcessUnhandledInputPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setProcessUnhandledInputPtr, NIL) } /** @@ -1521,7 +1521,7 @@ public open class Node : Object() { */ public final fun isProcessingUnhandledInput(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isProcessingUnhandledInputPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isProcessingUnhandledInputPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1532,7 +1532,7 @@ public open class Node : Object() { */ public final fun setProcessUnhandledKeyInput(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setProcessUnhandledKeyInputPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setProcessUnhandledKeyInputPtr, NIL) } /** @@ -1541,18 +1541,18 @@ public open class Node : Object() { */ public final fun isProcessingUnhandledKeyInput(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isProcessingUnhandledKeyInputPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isProcessingUnhandledKeyInputPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setProcessMode(mode: ProcessMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setProcessModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setProcessModePtr, NIL) } public final fun getProcessMode(): ProcessMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getProcessModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getProcessModePtr, LONG) return Node.ProcessMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -1572,40 +1572,40 @@ public open class Node : Object() { */ public final fun canProcess(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.canProcessPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.canProcessPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setProcessThreadGroup(mode: ProcessThreadGroup): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setProcessThreadGroupPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setProcessThreadGroupPtr, NIL) } public final fun getProcessThreadGroup(): ProcessThreadGroup { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getProcessThreadGroupPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getProcessThreadGroupPtr, LONG) return Node.ProcessThreadGroup.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setProcessThreadMessages(flags: ProcessThreadMessages): Unit { TransferContext.writeArguments(LONG to flags.flag) - TransferContext.callMethod(rawPtr, MethodBindings.setProcessThreadMessagesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setProcessThreadMessagesPtr, NIL) } public final fun getProcessThreadMessages(): ProcessThreadMessages { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getProcessThreadMessagesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getProcessThreadMessagesPtr, LONG) return ProcessThreadMessagesValue(TransferContext.readReturnValue(LONG) as Long) } public final fun setProcessThreadGroupOrder(order: Int): Unit { TransferContext.writeArguments(LONG to order.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setProcessThreadGroupOrderPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setProcessThreadGroupOrderPtr, NIL) } public final fun getProcessThreadGroupOrder(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getProcessThreadGroupOrderPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getProcessThreadGroupOrderPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1616,7 +1616,7 @@ public open class Node : Object() { */ public final fun setDisplayFolded(fold: Boolean): Unit { TransferContext.writeArguments(BOOL to fold) - TransferContext.callMethod(rawPtr, MethodBindings.setDisplayFoldedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDisplayFoldedPtr, NIL) } /** @@ -1625,7 +1625,7 @@ public open class Node : Object() { */ public final fun isDisplayedFolded(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDisplayedFoldedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDisplayedFoldedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1639,7 +1639,7 @@ public open class Node : Object() { */ public final fun setProcessInternal(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setProcessInternalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setProcessInternalPtr, NIL) } /** @@ -1647,7 +1647,7 @@ public open class Node : Object() { */ public final fun isProcessingInternal(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isProcessingInternalPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isProcessingInternalPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1661,7 +1661,7 @@ public open class Node : Object() { */ public final fun setPhysicsProcessInternal(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setPhysicsProcessInternalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPhysicsProcessInternalPtr, NIL) } /** @@ -1669,18 +1669,18 @@ public open class Node : Object() { */ public final fun isPhysicsProcessingInternal(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isPhysicsProcessingInternalPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPhysicsProcessingInternalPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setPhysicsInterpolationMode(mode: PhysicsInterpolationMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setPhysicsInterpolationModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPhysicsInterpolationModePtr, NIL) } public final fun getPhysicsInterpolationMode(): PhysicsInterpolationMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPhysicsInterpolationModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPhysicsInterpolationModePtr, LONG) return Node.PhysicsInterpolationMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -1693,7 +1693,7 @@ public open class Node : Object() { */ public final fun isPhysicsInterpolated(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isPhysicsInterpolatedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPhysicsInterpolatedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1706,7 +1706,7 @@ public open class Node : Object() { */ public final fun isPhysicsInterpolatedAndEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isPhysicsInterpolatedAndEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPhysicsInterpolatedAndEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1722,17 +1722,17 @@ public open class Node : Object() { */ public final fun resetPhysicsInterpolation(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.resetPhysicsInterpolationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.resetPhysicsInterpolationPtr, NIL) } public final fun setAutoTranslateMode(mode: AutoTranslateMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setAutoTranslateModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutoTranslateModePtr, NIL) } public final fun getAutoTranslateMode(): AutoTranslateMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAutoTranslateModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAutoTranslateModePtr, LONG) return Node.AutoTranslateMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -1742,7 +1742,7 @@ public open class Node : Object() { */ public final fun getWindow(): Window? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWindowPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getWindowPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Window?) } @@ -1752,7 +1752,7 @@ public open class Node : Object() { */ public final fun getLastExclusiveWindow(): Window? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLastExclusiveWindowPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getLastExclusiveWindowPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Window?) } @@ -1762,7 +1762,7 @@ public open class Node : Object() { */ public final fun getTree(): SceneTree? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTreePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTreePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as SceneTree?) } @@ -1786,7 +1786,7 @@ public open class Node : Object() { */ public final fun createTween(): Tween? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.createTweenPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.createTweenPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Tween?) } @@ -1799,7 +1799,7 @@ public open class Node : Object() { @JvmOverloads public final fun duplicate(flags: Int = 15): Node? { TransferContext.writeArguments(LONG to flags.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.duplicatePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.duplicatePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Node?) } @@ -1813,7 +1813,7 @@ public open class Node : Object() { @JvmOverloads public final fun replaceBy(node: Node?, keepGroups: Boolean = false): Unit { TransferContext.writeArguments(OBJECT to node, BOOL to keepGroups) - TransferContext.callMethod(rawPtr, MethodBindings.replaceByPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.replaceByPtr, NIL) } /** @@ -1822,7 +1822,7 @@ public open class Node : Object() { */ public final fun setSceneInstanceLoadPlaceholder(loadPlaceholder: Boolean): Unit { TransferContext.writeArguments(BOOL to loadPlaceholder) - TransferContext.callMethod(rawPtr, MethodBindings.setSceneInstanceLoadPlaceholderPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSceneInstanceLoadPlaceholderPtr, NIL) } /** @@ -1831,7 +1831,7 @@ public open class Node : Object() { */ public final fun getSceneInstanceLoadPlaceholder(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSceneInstanceLoadPlaceholderPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getSceneInstanceLoadPlaceholderPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1842,7 +1842,7 @@ public open class Node : Object() { */ public final fun setEditableInstance(node: Node?, isEditable: Boolean): Unit { TransferContext.writeArguments(OBJECT to node, BOOL to isEditable) - TransferContext.callMethod(rawPtr, MethodBindings.setEditableInstancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEditableInstancePtr, NIL) } /** @@ -1851,7 +1851,7 @@ public open class Node : Object() { */ public final fun isEditableInstance(node: Node?): Boolean { TransferContext.writeArguments(OBJECT to node) - TransferContext.callMethod(rawPtr, MethodBindings.isEditableInstancePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isEditableInstancePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1861,7 +1861,7 @@ public open class Node : Object() { */ public final fun getViewport(): Viewport? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getViewportPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getViewportPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Viewport?) } @@ -1876,7 +1876,7 @@ public open class Node : Object() { */ public final fun queueFree(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.queueFreePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.queueFreePtr, NIL) } /** @@ -1888,7 +1888,7 @@ public open class Node : Object() { */ public final fun requestReady(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.requestReadyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.requestReadyPtr, NIL) } /** @@ -1898,7 +1898,7 @@ public open class Node : Object() { */ public final fun isNodeReady(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isNodeReadyPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isNodeReadyPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1916,7 +1916,7 @@ public open class Node : Object() { @JvmOverloads public final fun setMultiplayerAuthority(id: Int, recursive: Boolean = true): Unit { TransferContext.writeArguments(LONG to id.toLong(), BOOL to recursive) - TransferContext.callMethod(rawPtr, MethodBindings.setMultiplayerAuthorityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMultiplayerAuthorityPtr, NIL) } /** @@ -1924,7 +1924,7 @@ public open class Node : Object() { */ public final fun getMultiplayerAuthority(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMultiplayerAuthorityPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMultiplayerAuthorityPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1933,13 +1933,13 @@ public open class Node : Object() { */ public final fun isMultiplayerAuthority(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isMultiplayerAuthorityPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isMultiplayerAuthorityPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun getMultiplayer(): MultiplayerAPI? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMultiplayerPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getMultiplayerPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as MultiplayerAPI?) } @@ -1957,28 +1957,28 @@ public open class Node : Object() { */ public final fun rpcConfig(method: StringName, config: Any?): Unit { TransferContext.writeArguments(STRING_NAME to method, ANY to config) - TransferContext.callMethod(rawPtr, MethodBindings.rpcConfigPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.rpcConfigPtr, NIL) } public final fun setEditorDescription(editorDescription: String): Unit { TransferContext.writeArguments(STRING to editorDescription) - TransferContext.callMethod(rawPtr, MethodBindings.setEditorDescriptionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEditorDescriptionPtr, NIL) } public final fun getEditorDescription(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEditorDescriptionPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getEditorDescriptionPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setUniqueNameInOwner(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setUniqueNameInOwnerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUniqueNameInOwnerPtr, NIL) } public final fun isUniqueNameInOwner(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUniqueNameInOwnerPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUniqueNameInOwnerPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1997,7 +1997,7 @@ public open class Node : Object() { @JvmOverloads public final fun atr(message: String, context: StringName = StringName("")): String { TransferContext.writeArguments(STRING to message, STRING_NAME to context) - TransferContext.callMethod(rawPtr, MethodBindings.atrPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.atrPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -2023,7 +2023,7 @@ public open class Node : Object() { context: StringName = StringName(""), ): String { TransferContext.writeArguments(STRING to message, STRING_NAME to pluralMessage, LONG to n.toLong(), STRING_NAME to context) - TransferContext.callMethod(rawPtr, MethodBindings.atrNPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.atrNPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -2045,7 +2045,7 @@ public open class Node : Object() { */ public final fun rpc(method: StringName, vararg __var_args: Any?): Error { TransferContext.writeArguments(STRING_NAME to method, *__var_args.map { ANY to it }.toTypedArray()) - TransferContext.callMethod(rawPtr, MethodBindings.rpcPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.rpcPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -2062,7 +2062,7 @@ public open class Node : Object() { vararg __var_args: Any?, ): Error { TransferContext.writeArguments(LONG to peerId, STRING_NAME to method, *__var_args.map { ANY to it }.toTypedArray()) - TransferContext.callMethod(rawPtr, MethodBindings.rpcIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.rpcIdPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -2072,7 +2072,7 @@ public open class Node : Object() { */ public final fun updateConfigurationWarnings(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.updateConfigurationWarningsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.updateConfigurationWarningsPtr, NIL) } /** @@ -2084,7 +2084,7 @@ public open class Node : Object() { */ public final fun callDeferredThreadGroup(method: StringName, vararg __var_args: Any?): Any? { TransferContext.writeArguments(STRING_NAME to method, *__var_args.map { ANY to it }.toTypedArray()) - TransferContext.callMethod(rawPtr, MethodBindings.callDeferredThreadGroupPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.callDeferredThreadGroupPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -2093,7 +2093,7 @@ public open class Node : Object() { */ public final fun setDeferredThreadGroup(`property`: StringName, `value`: Any?): Unit { TransferContext.writeArguments(STRING_NAME to property, ANY to value) - TransferContext.callMethod(rawPtr, MethodBindings.setDeferredThreadGroupPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDeferredThreadGroupPtr, NIL) } /** @@ -2101,7 +2101,7 @@ public open class Node : Object() { */ public final fun notifyDeferredThreadGroup(what: Int): Unit { TransferContext.writeArguments(LONG to what.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.notifyDeferredThreadGroupPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.notifyDeferredThreadGroupPtr, NIL) } /** @@ -2111,7 +2111,7 @@ public open class Node : Object() { */ public final fun callThreadSafe(method: StringName, vararg __var_args: Any?): Any? { TransferContext.writeArguments(STRING_NAME to method, *__var_args.map { ANY to it }.toTypedArray()) - TransferContext.callMethod(rawPtr, MethodBindings.callThreadSafePtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.callThreadSafePtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -2120,7 +2120,7 @@ public open class Node : Object() { */ public final fun setThreadSafe(`property`: StringName, `value`: Any?): Unit { TransferContext.writeArguments(STRING_NAME to property, ANY to value) - TransferContext.callMethod(rawPtr, MethodBindings.setThreadSafePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setThreadSafePtr, NIL) } /** @@ -2128,7 +2128,7 @@ public open class Node : Object() { */ public final fun notifyThreadSafe(what: Int): Unit { TransferContext.writeArguments(LONG to what.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.notifyThreadSafePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.notifyThreadSafePtr, NIL) } public enum class ProcessMode( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Node2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Node2D.kt index bc1c5d4bfd..f34f83c997 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Node2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Node2D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Transform2D import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -19,7 +20,6 @@ import godot.core.VariantParser.TRANSFORM2D import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -334,56 +334,56 @@ public open class Node2D : CanvasItem() { public final fun setPosition(position: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.setPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPositionPtr, NIL) } public final fun setRotation(radians: Float): Unit { TransferContext.writeArguments(DOUBLE to radians.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRotationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRotationPtr, NIL) } public final fun setRotationDegrees(degrees: Float): Unit { TransferContext.writeArguments(DOUBLE to degrees.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRotationDegreesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRotationDegreesPtr, NIL) } public final fun setSkew(radians: Float): Unit { TransferContext.writeArguments(DOUBLE to radians.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSkewPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSkewPtr, NIL) } public final fun setScale(scale: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to scale) - TransferContext.callMethod(rawPtr, MethodBindings.setScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setScalePtr, NIL) } public final fun getPosition(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun getRotation(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRotationPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRotationPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun getRotationDegrees(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRotationDegreesPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRotationDegreesPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun getSkew(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSkewPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSkewPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun getScale(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScalePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getScalePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -392,7 +392,7 @@ public open class Node2D : CanvasItem() { */ public final fun rotate(radians: Float): Unit { TransferContext.writeArguments(DOUBLE to radians.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.rotatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.rotatePtr, NIL) } /** @@ -402,7 +402,7 @@ public open class Node2D : CanvasItem() { @JvmOverloads public final fun moveLocalX(delta: Float, scaled: Boolean = false): Unit { TransferContext.writeArguments(DOUBLE to delta.toDouble(), BOOL to scaled) - TransferContext.callMethod(rawPtr, MethodBindings.moveLocalXPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.moveLocalXPtr, NIL) } /** @@ -412,7 +412,7 @@ public open class Node2D : CanvasItem() { @JvmOverloads public final fun moveLocalY(delta: Float, scaled: Boolean = false): Unit { TransferContext.writeArguments(DOUBLE to delta.toDouble(), BOOL to scaled) - TransferContext.callMethod(rawPtr, MethodBindings.moveLocalYPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.moveLocalYPtr, NIL) } /** @@ -420,7 +420,7 @@ public open class Node2D : CanvasItem() { */ public final fun translate(offset: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.translatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.translatePtr, NIL) } /** @@ -428,7 +428,7 @@ public open class Node2D : CanvasItem() { */ public final fun globalTranslate(offset: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.globalTranslatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.globalTranslatePtr, NIL) } /** @@ -436,72 +436,72 @@ public open class Node2D : CanvasItem() { */ public final fun applyScale(ratio: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to ratio) - TransferContext.callMethod(rawPtr, MethodBindings.applyScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.applyScalePtr, NIL) } public final fun setGlobalPosition(position: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.setGlobalPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlobalPositionPtr, NIL) } public final fun getGlobalPosition(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGlobalPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getGlobalPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setGlobalRotation(radians: Float): Unit { TransferContext.writeArguments(DOUBLE to radians.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setGlobalRotationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlobalRotationPtr, NIL) } public final fun setGlobalRotationDegrees(degrees: Float): Unit { TransferContext.writeArguments(DOUBLE to degrees.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setGlobalRotationDegreesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlobalRotationDegreesPtr, NIL) } public final fun getGlobalRotation(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGlobalRotationPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getGlobalRotationPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun getGlobalRotationDegrees(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGlobalRotationDegreesPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getGlobalRotationDegreesPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setGlobalSkew(radians: Float): Unit { TransferContext.writeArguments(DOUBLE to radians.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setGlobalSkewPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlobalSkewPtr, NIL) } public final fun getGlobalSkew(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGlobalSkewPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getGlobalSkewPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setGlobalScale(scale: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to scale) - TransferContext.callMethod(rawPtr, MethodBindings.setGlobalScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlobalScalePtr, NIL) } public final fun getGlobalScale(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGlobalScalePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getGlobalScalePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setTransform(xform: Transform2D): Unit { TransferContext.writeArguments(TRANSFORM2D to xform) - TransferContext.callMethod(rawPtr, MethodBindings.setTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTransformPtr, NIL) } public final fun setGlobalTransform(xform: Transform2D): Unit { TransferContext.writeArguments(TRANSFORM2D to xform) - TransferContext.callMethod(rawPtr, MethodBindings.setGlobalTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlobalTransformPtr, NIL) } /** @@ -512,7 +512,7 @@ public open class Node2D : CanvasItem() { */ public final fun lookAt(point: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to point) - TransferContext.callMethod(rawPtr, MethodBindings.lookAtPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.lookAtPtr, NIL) } /** @@ -522,7 +522,7 @@ public open class Node2D : CanvasItem() { */ public final fun getAngleTo(point: Vector2): Float { TransferContext.writeArguments(VECTOR2 to point) - TransferContext.callMethod(rawPtr, MethodBindings.getAngleToPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAngleToPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -534,7 +534,7 @@ public open class Node2D : CanvasItem() { */ public final fun toLocal(globalPoint: Vector2): Vector2 { TransferContext.writeArguments(VECTOR2 to globalPoint) - TransferContext.callMethod(rawPtr, MethodBindings.toLocalPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.toLocalPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -547,7 +547,7 @@ public open class Node2D : CanvasItem() { */ public final fun toGlobal(localPoint: Vector2): Vector2 { TransferContext.writeArguments(VECTOR2 to localPoint) - TransferContext.callMethod(rawPtr, MethodBindings.toGlobalPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.toGlobalPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -556,7 +556,7 @@ public open class Node2D : CanvasItem() { */ public final fun getRelativeTransformToParent(parent: Node?): Transform2D { TransferContext.writeArguments(OBJECT to parent) - TransferContext.callMethod(rawPtr, MethodBindings.getRelativeTransformToParentPtr, TRANSFORM2D) + TransferContext.callMethod(ptr, MethodBindings.getRelativeTransformToParentPtr, TRANSFORM2D) return (TransferContext.readReturnValue(TRANSFORM2D) as Transform2D) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Node3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Node3D.kt index bb730e1c5e..e064abe759 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Node3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Node3D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Basis import godot.core.NodePath import godot.core.Quaternion @@ -29,7 +30,6 @@ import godot.core.VariantParser.TRANSFORM3D import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Float import kotlin.Int @@ -606,155 +606,155 @@ public open class Node3D : Node() { public final fun setTransform(local: Transform3D): Unit { TransferContext.writeArguments(TRANSFORM3D to local) - TransferContext.callMethod(rawPtr, MethodBindings.setTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTransformPtr, NIL) } public final fun getTransform(): Transform3D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTransformPtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.getTransformPtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } public final fun setPosition(position: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to position) - TransferContext.callMethod(rawPtr, MethodBindings.setPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPositionPtr, NIL) } public final fun getPosition(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPositionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getPositionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setRotation(eulerRadians: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to eulerRadians) - TransferContext.callMethod(rawPtr, MethodBindings.setRotationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRotationPtr, NIL) } public final fun getRotation(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRotationPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getRotationPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setRotationDegrees(eulerDegrees: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to eulerDegrees) - TransferContext.callMethod(rawPtr, MethodBindings.setRotationDegreesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRotationDegreesPtr, NIL) } public final fun getRotationDegrees(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRotationDegreesPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getRotationDegreesPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setRotationOrder(order: EulerOrder): Unit { TransferContext.writeArguments(LONG to order.id) - TransferContext.callMethod(rawPtr, MethodBindings.setRotationOrderPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRotationOrderPtr, NIL) } public final fun getRotationOrder(): EulerOrder { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRotationOrderPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getRotationOrderPtr, LONG) return EulerOrder.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setRotationEditMode(editMode: RotationEditMode): Unit { TransferContext.writeArguments(LONG to editMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setRotationEditModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRotationEditModePtr, NIL) } public final fun getRotationEditMode(): RotationEditMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRotationEditModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getRotationEditModePtr, LONG) return Node3D.RotationEditMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setScale(scale: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to scale) - TransferContext.callMethod(rawPtr, MethodBindings.setScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setScalePtr, NIL) } public final fun getScale(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScalePtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getScalePtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setQuaternion(quaternion: Quaternion): Unit { TransferContext.writeArguments(QUATERNION to quaternion) - TransferContext.callMethod(rawPtr, MethodBindings.setQuaternionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setQuaternionPtr, NIL) } public final fun getQuaternion(): Quaternion { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getQuaternionPtr, QUATERNION) + TransferContext.callMethod(ptr, MethodBindings.getQuaternionPtr, QUATERNION) return (TransferContext.readReturnValue(QUATERNION) as Quaternion) } public final fun setBasis(basis: Basis): Unit { TransferContext.writeArguments(BASIS to basis) - TransferContext.callMethod(rawPtr, MethodBindings.setBasisPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBasisPtr, NIL) } public final fun getBasis(): Basis { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBasisPtr, BASIS) + TransferContext.callMethod(ptr, MethodBindings.getBasisPtr, BASIS) return (TransferContext.readReturnValue(BASIS) as Basis) } public final fun setGlobalTransform(global: Transform3D): Unit { TransferContext.writeArguments(TRANSFORM3D to global) - TransferContext.callMethod(rawPtr, MethodBindings.setGlobalTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlobalTransformPtr, NIL) } public final fun getGlobalTransform(): Transform3D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGlobalTransformPtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.getGlobalTransformPtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } public final fun setGlobalPosition(position: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to position) - TransferContext.callMethod(rawPtr, MethodBindings.setGlobalPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlobalPositionPtr, NIL) } public final fun getGlobalPosition(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGlobalPositionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getGlobalPositionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setGlobalBasis(basis: Basis): Unit { TransferContext.writeArguments(BASIS to basis) - TransferContext.callMethod(rawPtr, MethodBindings.setGlobalBasisPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlobalBasisPtr, NIL) } public final fun getGlobalBasis(): Basis { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGlobalBasisPtr, BASIS) + TransferContext.callMethod(ptr, MethodBindings.getGlobalBasisPtr, BASIS) return (TransferContext.readReturnValue(BASIS) as Basis) } public final fun setGlobalRotation(eulerRadians: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to eulerRadians) - TransferContext.callMethod(rawPtr, MethodBindings.setGlobalRotationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlobalRotationPtr, NIL) } public final fun getGlobalRotation(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGlobalRotationPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getGlobalRotationPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setGlobalRotationDegrees(eulerDegrees: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to eulerDegrees) - TransferContext.callMethod(rawPtr, MethodBindings.setGlobalRotationDegreesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlobalRotationDegreesPtr, NIL) } public final fun getGlobalRotationDegrees(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGlobalRotationDegreesPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getGlobalRotationDegreesPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -766,7 +766,7 @@ public open class Node3D : Node() { */ public final fun getParentNode3d(): Node3D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getParentNode3dPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getParentNode3dPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Node3D?) } @@ -775,17 +775,17 @@ public open class Node3D : Node() { */ public final fun setIgnoreTransformNotification(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setIgnoreTransformNotificationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIgnoreTransformNotificationPtr, NIL) } public final fun setAsTopLevel(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setAsTopLevelPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAsTopLevelPtr, NIL) } public final fun isSetAsTopLevel(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSetAsTopLevelPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSetAsTopLevelPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -795,7 +795,7 @@ public open class Node3D : Node() { */ public final fun setDisableScale(disable: Boolean): Unit { TransferContext.writeArguments(BOOL to disable) - TransferContext.callMethod(rawPtr, MethodBindings.setDisableScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDisableScalePtr, NIL) } /** @@ -803,7 +803,7 @@ public open class Node3D : Node() { */ public final fun isScaleDisabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isScaleDisabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isScaleDisabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -812,7 +812,7 @@ public open class Node3D : Node() { */ public final fun getWorld3d(): World3D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWorld3dPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getWorld3dPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as World3D?) } @@ -823,17 +823,17 @@ public open class Node3D : Node() { */ public final fun forceUpdateTransform(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.forceUpdateTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.forceUpdateTransformPtr, NIL) } public final fun setVisibilityParent(path: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to path) - TransferContext.callMethod(rawPtr, MethodBindings.setVisibilityParentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVisibilityParentPtr, NIL) } public final fun getVisibilityParent(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVisibilityParentPtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getVisibilityParentPtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } @@ -842,7 +842,7 @@ public open class Node3D : Node() { */ public final fun updateGizmos(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.updateGizmosPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.updateGizmosPtr, NIL) } /** @@ -852,7 +852,7 @@ public open class Node3D : Node() { */ public final fun addGizmo(gizmo: Node3DGizmo?): Unit { TransferContext.writeArguments(OBJECT to gizmo) - TransferContext.callMethod(rawPtr, MethodBindings.addGizmoPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addGizmoPtr, NIL) } /** @@ -860,7 +860,7 @@ public open class Node3D : Node() { */ public final fun getGizmos(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGizmosPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getGizmosPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -869,7 +869,7 @@ public open class Node3D : Node() { */ public final fun clearGizmos(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearGizmosPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearGizmosPtr, NIL) } /** @@ -883,7 +883,7 @@ public open class Node3D : Node() { transform: Transform3D, ): Unit { TransferContext.writeArguments(OBJECT to gizmo, LONG to id.toLong(), TRANSFORM3D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.setSubgizmoSelectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSubgizmoSelectionPtr, NIL) } /** @@ -892,17 +892,17 @@ public open class Node3D : Node() { */ public final fun clearSubgizmoSelection(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearSubgizmoSelectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearSubgizmoSelectionPtr, NIL) } public final fun setVisible(visible: Boolean): Unit { TransferContext.writeArguments(BOOL to visible) - TransferContext.callMethod(rawPtr, MethodBindings.setVisiblePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVisiblePtr, NIL) } public final fun isVisible(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isVisiblePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isVisiblePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -913,7 +913,7 @@ public open class Node3D : Node() { */ public final fun isVisibleInTree(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isVisibleInTreePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isVisibleInTreePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -922,7 +922,7 @@ public open class Node3D : Node() { */ public final fun show(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.showPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.showPtr, NIL) } /** @@ -930,7 +930,7 @@ public open class Node3D : Node() { */ public final fun hide(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hidePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.hidePtr, NIL) } /** @@ -939,7 +939,7 @@ public open class Node3D : Node() { */ public final fun setNotifyLocalTransform(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setNotifyLocalTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNotifyLocalTransformPtr, NIL) } /** @@ -948,7 +948,7 @@ public open class Node3D : Node() { */ public final fun isLocalTransformNotificationEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isLocalTransformNotificationEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isLocalTransformNotificationEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -958,7 +958,7 @@ public open class Node3D : Node() { */ public final fun setNotifyTransform(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setNotifyTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNotifyTransformPtr, NIL) } /** @@ -967,7 +967,7 @@ public open class Node3D : Node() { */ public final fun isTransformNotificationEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isTransformNotificationEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isTransformNotificationEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -976,7 +976,7 @@ public open class Node3D : Node() { */ public final fun rotate(axis: Vector3, angle: Float): Unit { TransferContext.writeArguments(VECTOR3 to axis, DOUBLE to angle.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.rotatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.rotatePtr, NIL) } /** @@ -985,7 +985,7 @@ public open class Node3D : Node() { */ public final fun globalRotate(axis: Vector3, angle: Float): Unit { TransferContext.writeArguments(VECTOR3 to axis, DOUBLE to angle.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.globalRotatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.globalRotatePtr, NIL) } /** @@ -993,7 +993,7 @@ public open class Node3D : Node() { */ public final fun globalScale(scale: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to scale) - TransferContext.callMethod(rawPtr, MethodBindings.globalScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.globalScalePtr, NIL) } /** @@ -1002,7 +1002,7 @@ public open class Node3D : Node() { */ public final fun globalTranslate(offset: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.globalTranslatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.globalTranslatePtr, NIL) } /** @@ -1011,7 +1011,7 @@ public open class Node3D : Node() { */ public final fun rotateObjectLocal(axis: Vector3, angle: Float): Unit { TransferContext.writeArguments(VECTOR3 to axis, DOUBLE to angle.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.rotateObjectLocalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.rotateObjectLocalPtr, NIL) } /** @@ -1019,7 +1019,7 @@ public open class Node3D : Node() { */ public final fun scaleObjectLocal(scale: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to scale) - TransferContext.callMethod(rawPtr, MethodBindings.scaleObjectLocalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.scaleObjectLocalPtr, NIL) } /** @@ -1027,7 +1027,7 @@ public open class Node3D : Node() { */ public final fun translateObjectLocal(offset: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.translateObjectLocalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.translateObjectLocalPtr, NIL) } /** @@ -1035,7 +1035,7 @@ public open class Node3D : Node() { */ public final fun rotateX(angle: Float): Unit { TransferContext.writeArguments(DOUBLE to angle.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.rotateXPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.rotateXPtr, NIL) } /** @@ -1043,7 +1043,7 @@ public open class Node3D : Node() { */ public final fun rotateY(angle: Float): Unit { TransferContext.writeArguments(DOUBLE to angle.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.rotateYPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.rotateYPtr, NIL) } /** @@ -1051,7 +1051,7 @@ public open class Node3D : Node() { */ public final fun rotateZ(angle: Float): Unit { TransferContext.writeArguments(DOUBLE to angle.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.rotateZPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.rotateZPtr, NIL) } /** @@ -1062,7 +1062,7 @@ public open class Node3D : Node() { */ public final fun translate(offset: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.translatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.translatePtr, NIL) } /** @@ -1071,7 +1071,7 @@ public open class Node3D : Node() { */ public final fun orthonormalize(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.orthonormalizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.orthonormalizePtr, NIL) } /** @@ -1079,7 +1079,7 @@ public open class Node3D : Node() { */ public final fun setIdentity(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.setIdentityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIdentityPtr, NIL) } /** @@ -1103,7 +1103,7 @@ public open class Node3D : Node() { useModelFront: Boolean = false, ): Unit { TransferContext.writeArguments(VECTOR3 to target, VECTOR3 to up, BOOL to useModelFront) - TransferContext.callMethod(rawPtr, MethodBindings.lookAtPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.lookAtPtr, NIL) } /** @@ -1118,7 +1118,7 @@ public open class Node3D : Node() { useModelFront: Boolean = false, ): Unit { TransferContext.writeArguments(VECTOR3 to position, VECTOR3 to target, VECTOR3 to up, BOOL to useModelFront) - TransferContext.callMethod(rawPtr, MethodBindings.lookAtFromPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.lookAtFromPositionPtr, NIL) } /** @@ -1126,7 +1126,7 @@ public open class Node3D : Node() { */ public final fun toLocal(globalPoint: Vector3): Vector3 { TransferContext.writeArguments(VECTOR3 to globalPoint) - TransferContext.callMethod(rawPtr, MethodBindings.toLocalPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.toLocalPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -1135,7 +1135,7 @@ public open class Node3D : Node() { */ public final fun toGlobal(localPoint: Vector3): Vector3 { TransferContext.writeArguments(VECTOR3 to localPoint) - TransferContext.callMethod(rawPtr, MethodBindings.toGlobalPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.toGlobalPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Noise.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Noise.kt index 2755f27315..760c4bc6f4 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Noise.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Noise.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY @@ -19,7 +20,6 @@ import godot.core.VariantParser.VECTOR3 import godot.core.Vector2 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -47,7 +47,7 @@ public open class Noise internal constructor() : Resource() { */ public final fun getNoise1d(x: Float): Float { TransferContext.writeArguments(DOUBLE to x.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.getNoise1dPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getNoise1dPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -56,7 +56,7 @@ public open class Noise internal constructor() : Resource() { */ public final fun getNoise2d(x: Float, y: Float): Float { TransferContext.writeArguments(DOUBLE to x.toDouble(), DOUBLE to y.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.getNoise2dPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getNoise2dPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -65,7 +65,7 @@ public open class Noise internal constructor() : Resource() { */ public final fun getNoise2dv(v: Vector2): Float { TransferContext.writeArguments(VECTOR2 to v) - TransferContext.callMethod(rawPtr, MethodBindings.getNoise2dvPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getNoise2dvPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -78,7 +78,7 @@ public open class Noise internal constructor() : Resource() { z: Float, ): Float { TransferContext.writeArguments(DOUBLE to x.toDouble(), DOUBLE to y.toDouble(), DOUBLE to z.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.getNoise3dPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getNoise3dPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -87,7 +87,7 @@ public open class Noise internal constructor() : Resource() { */ public final fun getNoise3dv(v: Vector3): Float { TransferContext.writeArguments(VECTOR3 to v) - TransferContext.callMethod(rawPtr, MethodBindings.getNoise3dvPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getNoise3dvPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -105,7 +105,7 @@ public open class Noise internal constructor() : Resource() { normalize: Boolean = true, ): Image? { TransferContext.writeArguments(LONG to width.toLong(), LONG to height.toLong(), BOOL to invert, BOOL to in3dSpace, BOOL to normalize) - TransferContext.callMethod(rawPtr, MethodBindings.getImagePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getImagePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Image?) } @@ -124,7 +124,7 @@ public open class Noise internal constructor() : Resource() { normalize: Boolean = true, ): Image? { TransferContext.writeArguments(LONG to width.toLong(), LONG to height.toLong(), BOOL to invert, BOOL to in3dSpace, DOUBLE to skirt.toDouble(), BOOL to normalize) - TransferContext.callMethod(rawPtr, MethodBindings.getSeamlessImagePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getSeamlessImagePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Image?) } @@ -142,7 +142,7 @@ public open class Noise internal constructor() : Resource() { normalize: Boolean = true, ): VariantArray { TransferContext.writeArguments(LONG to width.toLong(), LONG to height.toLong(), LONG to depth.toLong(), BOOL to invert, BOOL to normalize) - TransferContext.callMethod(rawPtr, MethodBindings.getImage3dPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getImage3dPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -162,7 +162,7 @@ public open class Noise internal constructor() : Resource() { normalize: Boolean = true, ): VariantArray { TransferContext.writeArguments(LONG to width.toLong(), LONG to height.toLong(), LONG to depth.toLong(), BOOL to invert, DOUBLE to skirt.toDouble(), BOOL to normalize) - TransferContext.callMethod(rawPtr, MethodBindings.getSeamlessImage3dPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getSeamlessImage3dPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/NoiseTexture2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/NoiseTexture2D.kt index 5cb5abfb20..875f11de8e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/NoiseTexture2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/NoiseTexture2D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE @@ -14,7 +15,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -196,121 +196,121 @@ public open class NoiseTexture2D : Texture2D() { public final fun setWidth(width: Int): Unit { TransferContext.writeArguments(LONG to width.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setWidthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setWidthPtr, NIL) } public final fun setHeight(height: Int): Unit { TransferContext.writeArguments(LONG to height.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setHeightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHeightPtr, NIL) } public final fun setInvert(invert: Boolean): Unit { TransferContext.writeArguments(BOOL to invert) - TransferContext.callMethod(rawPtr, MethodBindings.setInvertPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInvertPtr, NIL) } public final fun getInvert(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInvertPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getInvertPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setIn3dSpace(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setIn3dSpacePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIn3dSpacePtr, NIL) } public final fun isIn3dSpace(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isIn3dSpacePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isIn3dSpacePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setGenerateMipmaps(invert: Boolean): Unit { TransferContext.writeArguments(BOOL to invert) - TransferContext.callMethod(rawPtr, MethodBindings.setGenerateMipmapsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGenerateMipmapsPtr, NIL) } public final fun isGeneratingMipmaps(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isGeneratingMipmapsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isGeneratingMipmapsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSeamless(seamless: Boolean): Unit { TransferContext.writeArguments(BOOL to seamless) - TransferContext.callMethod(rawPtr, MethodBindings.setSeamlessPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSeamlessPtr, NIL) } public final fun getSeamless(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSeamlessPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getSeamlessPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSeamlessBlendSkirt(seamlessBlendSkirt: Float): Unit { TransferContext.writeArguments(DOUBLE to seamlessBlendSkirt.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSeamlessBlendSkirtPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSeamlessBlendSkirtPtr, NIL) } public final fun getSeamlessBlendSkirt(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSeamlessBlendSkirtPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSeamlessBlendSkirtPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAsNormalMap(asNormalMap: Boolean): Unit { TransferContext.writeArguments(BOOL to asNormalMap) - TransferContext.callMethod(rawPtr, MethodBindings.setAsNormalMapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAsNormalMapPtr, NIL) } public final fun isNormalMap(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isNormalMapPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isNormalMapPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setBumpStrength(bumpStrength: Float): Unit { TransferContext.writeArguments(DOUBLE to bumpStrength.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setBumpStrengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBumpStrengthPtr, NIL) } public final fun getBumpStrength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBumpStrengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getBumpStrengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setNormalize(normalize: Boolean): Unit { TransferContext.writeArguments(BOOL to normalize) - TransferContext.callMethod(rawPtr, MethodBindings.setNormalizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNormalizePtr, NIL) } public final fun isNormalized(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isNormalizedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isNormalizedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setColorRamp(gradient: Gradient?): Unit { TransferContext.writeArguments(OBJECT to gradient) - TransferContext.callMethod(rawPtr, MethodBindings.setColorRampPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColorRampPtr, NIL) } public final fun getColorRamp(): Gradient? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColorRampPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getColorRampPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Gradient?) } public final fun setNoise(noise: Noise?): Unit { TransferContext.writeArguments(OBJECT to noise) - TransferContext.callMethod(rawPtr, MethodBindings.setNoisePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNoisePtr, NIL) } public final fun getNoise(): Noise? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNoisePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getNoisePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Noise?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/NoiseTexture3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/NoiseTexture3D.kt index 3234f07ad5..4f08c82f1c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/NoiseTexture3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/NoiseTexture3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE @@ -14,7 +15,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -156,82 +156,82 @@ public open class NoiseTexture3D : Texture3D() { public final fun setWidth(width: Int): Unit { TransferContext.writeArguments(LONG to width.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setWidthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setWidthPtr, NIL) } public final fun setHeight(height: Int): Unit { TransferContext.writeArguments(LONG to height.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setHeightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHeightPtr, NIL) } public final fun setDepth(depth: Int): Unit { TransferContext.writeArguments(LONG to depth.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setDepthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDepthPtr, NIL) } public final fun setInvert(invert: Boolean): Unit { TransferContext.writeArguments(BOOL to invert) - TransferContext.callMethod(rawPtr, MethodBindings.setInvertPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInvertPtr, NIL) } public final fun getInvert(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInvertPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getInvertPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSeamless(seamless: Boolean): Unit { TransferContext.writeArguments(BOOL to seamless) - TransferContext.callMethod(rawPtr, MethodBindings.setSeamlessPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSeamlessPtr, NIL) } public final fun getSeamless(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSeamlessPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getSeamlessPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSeamlessBlendSkirt(seamlessBlendSkirt: Float): Unit { TransferContext.writeArguments(DOUBLE to seamlessBlendSkirt.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSeamlessBlendSkirtPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSeamlessBlendSkirtPtr, NIL) } public final fun getSeamlessBlendSkirt(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSeamlessBlendSkirtPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSeamlessBlendSkirtPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setNormalize(normalize: Boolean): Unit { TransferContext.writeArguments(BOOL to normalize) - TransferContext.callMethod(rawPtr, MethodBindings.setNormalizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNormalizePtr, NIL) } public final fun isNormalized(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isNormalizedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isNormalizedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setColorRamp(gradient: Gradient?): Unit { TransferContext.writeArguments(OBJECT to gradient) - TransferContext.callMethod(rawPtr, MethodBindings.setColorRampPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColorRampPtr, NIL) } public final fun getColorRamp(): Gradient? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColorRampPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getColorRampPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Gradient?) } public final fun setNoise(noise: Noise?): Unit { TransferContext.writeArguments(OBJECT to noise) - TransferContext.callMethod(rawPtr, MethodBindings.setNoisePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNoisePtr, NIL) } public final fun getNoise(): Noise? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNoisePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getNoisePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Noise?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/OS.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/OS.kt index 6640cb4b0c..2d5c4b5711 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/OS.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/OS.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedByteArray import godot.core.PackedStringArray @@ -21,7 +22,6 @@ import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -55,7 +55,7 @@ public object OS : Object() { @JvmStatic public final fun getEntropy(size: Int): PackedByteArray { TransferContext.writeArguments(LONG to size.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getEntropyPtr, PACKED_BYTE_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getEntropyPtr, PACKED_BYTE_ARRAY) return (TransferContext.readReturnValue(PACKED_BYTE_ARRAY) as PackedByteArray) } @@ -66,7 +66,7 @@ public object OS : Object() { @JvmStatic public final fun getSystemCaCertificates(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSystemCaCertificatesPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getSystemCaCertificatesPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -79,8 +79,7 @@ public object OS : Object() { @JvmStatic public final fun getConnectedMidiInputs(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConnectedMidiInputsPtr, - PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getConnectedMidiInputsPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -92,7 +91,7 @@ public object OS : Object() { @JvmStatic public final fun openMidiInputs(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.openMidiInputsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.openMidiInputsPtr, NIL) } /** @@ -103,7 +102,7 @@ public object OS : Object() { @JvmStatic public final fun closeMidiInputs(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.closeMidiInputsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.closeMidiInputsPtr, NIL) } /** @@ -114,7 +113,7 @@ public object OS : Object() { @JvmStatic public final fun alert(text: String, title: String = "Alert!"): Unit { TransferContext.writeArguments(STRING to text, STRING to title) - TransferContext.callMethod(rawPtr, MethodBindings.alertPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.alertPtr, NIL) } /** @@ -126,45 +125,45 @@ public object OS : Object() { @JvmStatic public final fun crash(message: String): Unit { TransferContext.writeArguments(STRING to message) - TransferContext.callMethod(rawPtr, MethodBindings.crashPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.crashPtr, NIL) } @JvmStatic public final fun setLowProcessorUsageMode(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setLowProcessorUsageModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLowProcessorUsageModePtr, NIL) } @JvmStatic public final fun isInLowProcessorUsageMode(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isInLowProcessorUsageModePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isInLowProcessorUsageModePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @JvmStatic public final fun setLowProcessorUsageModeSleepUsec(usec: Int): Unit { TransferContext.writeArguments(LONG to usec.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setLowProcessorUsageModeSleepUsecPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLowProcessorUsageModeSleepUsecPtr, NIL) } @JvmStatic public final fun getLowProcessorUsageModeSleepUsec(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLowProcessorUsageModeSleepUsecPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLowProcessorUsageModeSleepUsecPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @JvmStatic public final fun setDeltaSmoothing(deltaSmoothingEnabled: Boolean): Unit { TransferContext.writeArguments(BOOL to deltaSmoothingEnabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDeltaSmoothingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDeltaSmoothingPtr, NIL) } @JvmStatic public final fun isDeltaSmoothingEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDeltaSmoothingEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDeltaSmoothingEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -175,7 +174,7 @@ public object OS : Object() { @JvmStatic public final fun getProcessorCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getProcessorCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getProcessorCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -188,7 +187,7 @@ public object OS : Object() { @JvmStatic public final fun getProcessorName(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getProcessorNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getProcessorNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -199,7 +198,7 @@ public object OS : Object() { @JvmStatic public final fun getSystemFonts(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSystemFontsPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getSystemFontsPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -220,7 +219,7 @@ public object OS : Object() { italic: Boolean = false, ): String { TransferContext.writeArguments(STRING to fontName, LONG to weight.toLong(), LONG to stretch.toLong(), BOOL to italic) - TransferContext.callMethod(rawPtr, MethodBindings.getSystemFontPathPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getSystemFontPathPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -249,8 +248,7 @@ public object OS : Object() { italic: Boolean = false, ): PackedStringArray { TransferContext.writeArguments(STRING to fontName, STRING to text, STRING to locale, STRING to script, LONG to weight.toLong(), LONG to stretch.toLong(), BOOL to italic) - TransferContext.callMethod(rawPtr, MethodBindings.getSystemFontPathForTextPtr, - PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getSystemFontPathForTextPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -262,7 +260,7 @@ public object OS : Object() { @JvmStatic public final fun getExecutablePath(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getExecutablePathPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getExecutablePathPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -279,7 +277,7 @@ public object OS : Object() { @JvmStatic public final fun readStringFromStdin(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.readStringFromStdinPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.readStringFromStdinPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -344,7 +342,7 @@ public object OS : Object() { openConsole: Boolean = false, ): Int { TransferContext.writeArguments(STRING to path, PACKED_STRING_ARRAY to arguments, ARRAY to output, BOOL to readStderr, BOOL to openConsole) - TransferContext.callMethod(rawPtr, MethodBindings.executePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.executePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -373,7 +371,7 @@ public object OS : Object() { public final fun executeWithPipe(path: String, arguments: PackedStringArray): Dictionary { TransferContext.writeArguments(STRING to path, PACKED_STRING_ARRAY to arguments) - TransferContext.callMethod(rawPtr, MethodBindings.executeWithPipePtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.executeWithPipePtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -411,7 +409,7 @@ public object OS : Object() { openConsole: Boolean = false, ): Int { TransferContext.writeArguments(STRING to path, PACKED_STRING_ARRAY to arguments, BOOL to openConsole) - TransferContext.callMethod(rawPtr, MethodBindings.createProcessPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.createProcessPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -427,7 +425,7 @@ public object OS : Object() { @JvmStatic public final fun createInstance(arguments: PackedStringArray): Int { TransferContext.writeArguments(PACKED_STRING_ARRAY to arguments) - TransferContext.callMethod(rawPtr, MethodBindings.createInstancePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.createInstancePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -440,7 +438,7 @@ public object OS : Object() { @JvmStatic public final fun kill(pid: Int): Error { TransferContext.writeArguments(LONG to pid.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.killPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.killPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -464,7 +462,7 @@ public object OS : Object() { @JvmStatic public final fun shellOpen(uri: String): Error { TransferContext.writeArguments(STRING to uri) - TransferContext.callMethod(rawPtr, MethodBindings.shellOpenPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.shellOpenPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -483,7 +481,7 @@ public object OS : Object() { public final fun shellShowInFileManager(fileOrDirPath: String, openFolder: Boolean = true): Error { TransferContext.writeArguments(STRING to fileOrDirPath, BOOL to openFolder) - TransferContext.callMethod(rawPtr, MethodBindings.shellShowInFileManagerPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.shellShowInFileManagerPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -495,7 +493,7 @@ public object OS : Object() { @JvmStatic public final fun isProcessRunning(pid: Int): Boolean { TransferContext.writeArguments(LONG to pid.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isProcessRunningPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isProcessRunningPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -510,7 +508,7 @@ public object OS : Object() { @JvmStatic public final fun getProcessExitCode(pid: Int): Int { TransferContext.writeArguments(LONG to pid.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getProcessExitCodePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getProcessExitCodePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -521,7 +519,7 @@ public object OS : Object() { @JvmStatic public final fun getProcessId(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getProcessIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getProcessIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -533,7 +531,7 @@ public object OS : Object() { @JvmStatic public final fun hasEnvironment(variable: String): Boolean { TransferContext.writeArguments(STRING to variable) - TransferContext.callMethod(rawPtr, MethodBindings.hasEnvironmentPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasEnvironmentPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -547,7 +545,7 @@ public object OS : Object() { @JvmStatic public final fun getEnvironment(variable: String): String { TransferContext.writeArguments(STRING to variable) - TransferContext.callMethod(rawPtr, MethodBindings.getEnvironmentPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getEnvironmentPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -564,7 +562,7 @@ public object OS : Object() { @JvmStatic public final fun setEnvironment(variable: String, `value`: String): Unit { TransferContext.writeArguments(STRING to variable, STRING to value) - TransferContext.callMethod(rawPtr, MethodBindings.setEnvironmentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnvironmentPtr, NIL) } /** @@ -578,7 +576,7 @@ public object OS : Object() { @JvmStatic public final fun unsetEnvironment(variable: String): Unit { TransferContext.writeArguments(STRING to variable) - TransferContext.callMethod(rawPtr, MethodBindings.unsetEnvironmentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.unsetEnvironmentPtr, NIL) } /** @@ -645,7 +643,7 @@ public object OS : Object() { @JvmStatic public final fun getName(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -660,7 +658,7 @@ public object OS : Object() { @JvmStatic public final fun getDistributionName(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDistributionNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getDistributionNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -680,7 +678,7 @@ public object OS : Object() { @JvmStatic public final fun getVersion(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVersionPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getVersionPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -733,7 +731,7 @@ public object OS : Object() { @JvmStatic public final fun getCmdlineArgs(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCmdlineArgsPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getCmdlineArgsPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -753,7 +751,7 @@ public object OS : Object() { @JvmStatic public final fun getCmdlineUserArgs(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCmdlineUserArgsPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getCmdlineUserArgsPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -770,7 +768,7 @@ public object OS : Object() { @JvmStatic public final fun getVideoAdapterDriverInfo(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVideoAdapterDriverInfoPtr, + TransferContext.callMethod(ptr, MethodBindings.getVideoAdapterDriverInfoPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -793,7 +791,7 @@ public object OS : Object() { public final fun setRestartOnExit(restart: Boolean, arguments: PackedStringArray = PackedStringArray()): Unit { TransferContext.writeArguments(BOOL to restart, PACKED_STRING_ARRAY to arguments) - TransferContext.callMethod(rawPtr, MethodBindings.setRestartOnExitPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRestartOnExitPtr, NIL) } /** @@ -803,7 +801,7 @@ public object OS : Object() { @JvmStatic public final fun isRestartOnExitSet(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isRestartOnExitSetPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isRestartOnExitSetPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -814,7 +812,7 @@ public object OS : Object() { @JvmStatic public final fun getRestartOnExitArguments(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRestartOnExitArgumentsPtr, + TransferContext.callMethod(ptr, MethodBindings.getRestartOnExitArgumentsPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -834,7 +832,7 @@ public object OS : Object() { @JvmStatic public final fun delayUsec(usec: Int): Unit { TransferContext.writeArguments(LONG to usec.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.delayUsecPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.delayUsecPtr, NIL) } /** @@ -852,7 +850,7 @@ public object OS : Object() { @JvmStatic public final fun delayMsec(msec: Int): Unit { TransferContext.writeArguments(LONG to msec.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.delayMsecPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.delayMsecPtr, NIL) } /** @@ -874,7 +872,7 @@ public object OS : Object() { @JvmStatic public final fun getLocale(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLocalePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getLocalePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -890,7 +888,7 @@ public object OS : Object() { @JvmStatic public final fun getLocaleLanguage(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLocaleLanguagePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getLocaleLanguagePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -902,7 +900,7 @@ public object OS : Object() { @JvmStatic public final fun getModelName(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getModelNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getModelNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -914,7 +912,7 @@ public object OS : Object() { @JvmStatic public final fun isUserfsPersistent(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUserfsPersistentPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUserfsPersistentPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -926,7 +924,7 @@ public object OS : Object() { @JvmStatic public final fun isStdoutVerbose(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isStdoutVerbosePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isStdoutVerbosePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -940,7 +938,7 @@ public object OS : Object() { @JvmStatic public final fun isDebugBuild(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDebugBuildPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDebugBuildPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -951,7 +949,7 @@ public object OS : Object() { @JvmStatic public final fun getStaticMemoryUsage(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStaticMemoryUsagePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getStaticMemoryUsagePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -961,7 +959,7 @@ public object OS : Object() { @JvmStatic public final fun getStaticMemoryPeakUsage(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStaticMemoryPeakUsagePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getStaticMemoryPeakUsagePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -982,7 +980,7 @@ public object OS : Object() { @JvmStatic public final fun getMemoryInfo(): Dictionary { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMemoryInfoPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getMemoryInfoPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -1012,7 +1010,7 @@ public object OS : Object() { @JvmStatic public final fun moveToTrash(path: String): Error { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.moveToTrashPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.moveToTrashPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -1037,7 +1035,7 @@ public object OS : Object() { @JvmStatic public final fun getUserDataDir(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUserDataDirPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getUserDataDirPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -1053,7 +1051,7 @@ public object OS : Object() { @JvmStatic public final fun getSystemDir(dir: SystemDir, sharedStorage: Boolean = true): String { TransferContext.writeArguments(LONG to dir.id, BOOL to sharedStorage) - TransferContext.callMethod(rawPtr, MethodBindings.getSystemDirPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getSystemDirPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -1069,7 +1067,7 @@ public object OS : Object() { @JvmStatic public final fun getConfigDir(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConfigDirPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getConfigDirPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -1084,7 +1082,7 @@ public object OS : Object() { @JvmStatic public final fun getDataDir(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDataDirPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getDataDirPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -1099,7 +1097,7 @@ public object OS : Object() { @JvmStatic public final fun getCacheDir(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCacheDirPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getCacheDirPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -1116,7 +1114,7 @@ public object OS : Object() { @JvmStatic public final fun getUniqueId(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUniqueIdPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getUniqueIdPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -1142,7 +1140,7 @@ public object OS : Object() { @JvmStatic public final fun getKeycodeString(code: Key): String { TransferContext.writeArguments(LONG to code.id) - TransferContext.callMethod(rawPtr, MethodBindings.getKeycodeStringPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getKeycodeStringPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -1168,7 +1166,7 @@ public object OS : Object() { @JvmStatic public final fun isKeycodeUnicode(code: Long): Boolean { TransferContext.writeArguments(LONG to code) - TransferContext.callMethod(rawPtr, MethodBindings.isKeycodeUnicodePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isKeycodeUnicodePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1197,7 +1195,7 @@ public object OS : Object() { @JvmStatic public final fun findKeycodeFromString(string: String): Key { TransferContext.writeArguments(STRING to string) - TransferContext.callMethod(rawPtr, MethodBindings.findKeycodeFromStringPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.findKeycodeFromStringPtr, LONG) return Key.from(TransferContext.readReturnValue(LONG) as Long) } @@ -1210,7 +1208,7 @@ public object OS : Object() { @JvmStatic public final fun setUseFileAccessSaveAndSwap(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setUseFileAccessSaveAndSwapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseFileAccessSaveAndSwapPtr, NIL) } /** @@ -1220,7 +1218,7 @@ public object OS : Object() { @JvmStatic public final fun setThreadName(name: String): Error { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.setThreadNamePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.setThreadNamePtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -1232,7 +1230,7 @@ public object OS : Object() { @JvmStatic public final fun getThreadCallerId(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getThreadCallerIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getThreadCallerIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -1243,7 +1241,7 @@ public object OS : Object() { @JvmStatic public final fun getMainThreadId(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMainThreadIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMainThreadIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -1260,7 +1258,7 @@ public object OS : Object() { @JvmStatic public final fun hasFeature(tagName: String): Boolean { TransferContext.writeArguments(STRING to tagName) - TransferContext.callMethod(rawPtr, MethodBindings.hasFeaturePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasFeaturePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1271,7 +1269,7 @@ public object OS : Object() { @JvmStatic public final fun isSandboxed(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSandboxedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSandboxedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1284,7 +1282,7 @@ public object OS : Object() { @JvmStatic public final fun requestPermission(name: String): Boolean { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.requestPermissionPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.requestPermissionPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1297,7 +1295,7 @@ public object OS : Object() { @JvmStatic public final fun requestPermissions(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.requestPermissionsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.requestPermissionsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1309,7 +1307,7 @@ public object OS : Object() { @JvmStatic public final fun getGrantedPermissions(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGrantedPermissionsPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getGrantedPermissionsPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -1320,7 +1318,7 @@ public object OS : Object() { @JvmStatic public final fun revokeGrantedPermissions(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.revokeGrantedPermissionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.revokeGrantedPermissionsPtr, NIL) } public enum class RenderingDriver( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Object.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Object.kt index a6f1fe494b..9f92141346 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Object.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Object.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.Dictionary import godot.core.KtObject @@ -25,7 +26,6 @@ import godot.core.VariantParser.NODE_PATH import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -107,7 +107,7 @@ public open class Object : KtObject() { @JvmName("getGodotClass") public final fun getClass(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getClassPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getClassPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -133,7 +133,7 @@ public open class Object : KtObject() { */ public final fun isClass(`class`: String): Boolean { TransferContext.writeArguments(STRING to `class`) - TransferContext.callMethod(rawPtr, MethodBindings.isClassPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isClassPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -160,7 +160,7 @@ public open class Object : KtObject() { */ public final fun `set`(`property`: StringName, `value`: Any?): Unit { TransferContext.writeArguments(STRING_NAME to property, ANY to value) - TransferContext.callMethod(rawPtr, MethodBindings.setPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPtr, NIL) } /** @@ -186,7 +186,7 @@ public open class Object : KtObject() { */ public final fun `get`(`property`: StringName): Any? { TransferContext.writeArguments(STRING_NAME to property) - TransferContext.callMethod(rawPtr, MethodBindings.getPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -216,7 +216,7 @@ public open class Object : KtObject() { */ public final fun setIndexed(propertyPath: NodePath, `value`: Any?): Unit { TransferContext.writeArguments(NODE_PATH to propertyPath, ANY to value) - TransferContext.callMethod(rawPtr, MethodBindings.setIndexedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIndexedPtr, NIL) } /** @@ -247,7 +247,7 @@ public open class Object : KtObject() { */ public final fun getIndexed(propertyPath: NodePath): Any? { TransferContext.writeArguments(NODE_PATH to propertyPath) - TransferContext.callMethod(rawPtr, MethodBindings.getIndexedPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getIndexedPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -267,7 +267,7 @@ public open class Object : KtObject() { */ public final fun getPropertyList(): VariantArray> { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPropertyListPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getPropertyListPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray>) } @@ -285,7 +285,7 @@ public open class Object : KtObject() { */ public final fun getMethodList(): VariantArray> { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMethodListPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getMethodListPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray>) } @@ -298,7 +298,7 @@ public open class Object : KtObject() { */ public final fun propertyCanRevert(`property`: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to property) - TransferContext.callMethod(rawPtr, MethodBindings.propertyCanRevertPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.propertyCanRevertPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -311,7 +311,7 @@ public open class Object : KtObject() { */ public final fun propertyGetRevert(`property`: StringName): Any? { TransferContext.writeArguments(STRING_NAME to property) - TransferContext.callMethod(rawPtr, MethodBindings.propertyGetRevertPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.propertyGetRevertPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -347,7 +347,7 @@ public open class Object : KtObject() { @JvmOverloads public final fun notification(what: Int, reversed: Boolean = false): Unit { TransferContext.writeArguments(LONG to what.toLong(), BOOL to reversed) - TransferContext.callMethod(rawPtr, MethodBindings.notificationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.notificationPtr, NIL) } /** @@ -356,7 +356,7 @@ public open class Object : KtObject() { */ public final override fun toString(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.toStringPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.toStringPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -368,7 +368,7 @@ public open class Object : KtObject() { */ public final fun getInstanceId(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInstanceIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getInstanceIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -380,7 +380,7 @@ public open class Object : KtObject() { */ public final fun setScript(script: Any?): Unit { TransferContext.writeArguments(ANY to script) - TransferContext.callMethod(rawPtr, MethodBindings.setScriptPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setScriptPtr, NIL) } /** @@ -388,7 +388,7 @@ public open class Object : KtObject() { */ public final fun getScript(): Any? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScriptPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getScriptPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -405,7 +405,7 @@ public open class Object : KtObject() { */ public final fun setMeta(name: StringName, `value`: Any?): Unit { TransferContext.writeArguments(STRING_NAME to name, ANY to value) - TransferContext.callMethod(rawPtr, MethodBindings.setMetaPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMetaPtr, NIL) } /** @@ -419,7 +419,7 @@ public open class Object : KtObject() { */ public final fun removeMeta(name: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.removeMetaPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeMetaPtr, NIL) } /** @@ -434,7 +434,7 @@ public open class Object : KtObject() { @JvmOverloads public final fun getMeta(name: StringName, default: Any? = null): Any? { TransferContext.writeArguments(STRING_NAME to name, ANY to default) - TransferContext.callMethod(rawPtr, MethodBindings.getMetaPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getMetaPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -449,7 +449,7 @@ public open class Object : KtObject() { */ public final fun hasMeta(name: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.hasMetaPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasMetaPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -458,7 +458,7 @@ public open class Object : KtObject() { */ public final fun getMetaList(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMetaListPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getMetaListPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -495,7 +495,7 @@ public open class Object : KtObject() { public final fun addUserSignal(signal: String, arguments: VariantArray = godot.core.variantArrayOf()): Unit { TransferContext.writeArguments(STRING to signal, ARRAY to arguments) - TransferContext.callMethod(rawPtr, MethodBindings.addUserSignalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addUserSignalPtr, NIL) } /** @@ -504,7 +504,7 @@ public open class Object : KtObject() { */ public final fun hasUserSignal(signal: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to signal) - TransferContext.callMethod(rawPtr, MethodBindings.hasUserSignalPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasUserSignalPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -514,7 +514,7 @@ public open class Object : KtObject() { */ public final fun removeUserSignal(signal: StringName): Unit { TransferContext.writeArguments(STRING_NAME to signal) - TransferContext.callMethod(rawPtr, MethodBindings.removeUserSignalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeUserSignalPtr, NIL) } /** @@ -541,7 +541,7 @@ public open class Object : KtObject() { */ public final fun emitSignal(signal: StringName, vararg __var_args: Any?): Error { TransferContext.writeArguments(STRING_NAME to signal, *__var_args.map { ANY to it }.toTypedArray()) - TransferContext.callMethod(rawPtr, MethodBindings.emitSignalPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.emitSignalPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -566,7 +566,7 @@ public open class Object : KtObject() { */ public final fun call(method: StringName, vararg __var_args: Any?): Any? { TransferContext.writeArguments(STRING_NAME to method, *__var_args.map { ANY to it }.toTypedArray()) - TransferContext.callMethod(rawPtr, MethodBindings.callPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.callPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -610,7 +610,7 @@ public open class Object : KtObject() { */ public final fun callDeferred(method: StringName, vararg __var_args: Any?): Any? { TransferContext.writeArguments(STRING_NAME to method, *__var_args.map { ANY to it }.toTypedArray()) - TransferContext.callMethod(rawPtr, MethodBindings.callDeferredPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.callDeferredPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -647,7 +647,7 @@ public open class Object : KtObject() { */ public final fun setDeferred(`property`: StringName, `value`: Any?): Unit { TransferContext.writeArguments(STRING_NAME to property, ANY to value) - TransferContext.callMethod(rawPtr, MethodBindings.setDeferredPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDeferredPtr, NIL) } /** @@ -672,7 +672,7 @@ public open class Object : KtObject() { */ public final fun callv(method: StringName, argArray: VariantArray): Any? { TransferContext.writeArguments(STRING_NAME to method, ARRAY to argArray) - TransferContext.callMethod(rawPtr, MethodBindings.callvPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.callvPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -684,7 +684,7 @@ public open class Object : KtObject() { */ public final fun hasMethod(method: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to method) - TransferContext.callMethod(rawPtr, MethodBindings.hasMethodPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasMethodPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -696,7 +696,7 @@ public open class Object : KtObject() { */ public final fun getMethodArgumentCount(method: StringName): Int { TransferContext.writeArguments(STRING_NAME to method) - TransferContext.callMethod(rawPtr, MethodBindings.getMethodArgumentCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMethodArgumentCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -708,7 +708,7 @@ public open class Object : KtObject() { */ public final fun hasSignal(signal: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to signal) - TransferContext.callMethod(rawPtr, MethodBindings.hasSignalPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasSignalPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -719,7 +719,7 @@ public open class Object : KtObject() { */ public final fun getSignalList(): VariantArray> { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSignalListPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getSignalListPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray>) } @@ -733,7 +733,7 @@ public open class Object : KtObject() { public final fun getSignalConnectionList(signal: StringName): VariantArray> { TransferContext.writeArguments(STRING_NAME to signal) - TransferContext.callMethod(rawPtr, MethodBindings.getSignalConnectionListPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getSignalConnectionListPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray>) } @@ -746,7 +746,7 @@ public open class Object : KtObject() { */ public final fun getIncomingConnections(): VariantArray> { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getIncomingConnectionsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getIncomingConnectionsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray>) } @@ -912,7 +912,7 @@ public open class Object : KtObject() { flags: Long = 0, ): Error { TransferContext.writeArguments(STRING_NAME to signal, CALLABLE to callable, LONG to flags) - TransferContext.callMethod(rawPtr, MethodBindings.connectPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.connectPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -922,7 +922,7 @@ public open class Object : KtObject() { */ public final fun disconnect(signal: StringName, callable: Callable): Unit { TransferContext.writeArguments(STRING_NAME to signal, CALLABLE to callable) - TransferContext.callMethod(rawPtr, MethodBindings.disconnectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.disconnectPtr, NIL) } /** @@ -933,7 +933,7 @@ public open class Object : KtObject() { */ public final fun isConnected(signal: StringName, callable: Callable): Boolean { TransferContext.writeArguments(STRING_NAME to signal, CALLABLE to callable) - TransferContext.callMethod(rawPtr, MethodBindings.isConnectedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isConnectedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -943,7 +943,7 @@ public open class Object : KtObject() { */ public final fun setBlockSignals(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setBlockSignalsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBlockSignalsPtr, NIL) } /** @@ -951,7 +951,7 @@ public open class Object : KtObject() { */ public final fun isBlockingSignals(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isBlockingSignalsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isBlockingSignalsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -961,7 +961,7 @@ public open class Object : KtObject() { */ public final fun notifyPropertyListChanged(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.notifyPropertyListChangedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.notifyPropertyListChangedPtr, NIL) } /** @@ -970,7 +970,7 @@ public open class Object : KtObject() { */ public final fun setMessageTranslation(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setMessageTranslationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMessageTranslationPtr, NIL) } /** @@ -979,7 +979,7 @@ public open class Object : KtObject() { */ public final fun canTranslateMessages(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.canTranslateMessagesPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.canTranslateMessagesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -999,7 +999,7 @@ public open class Object : KtObject() { @JvmOverloads public final fun tr(message: StringName, context: StringName = StringName("")): String { TransferContext.writeArguments(STRING_NAME to message, STRING_NAME to context) - TransferContext.callMethod(rawPtr, MethodBindings.trPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.trPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -1026,7 +1026,7 @@ public open class Object : KtObject() { context: StringName = StringName(""), ): String { TransferContext.writeArguments(STRING_NAME to message, STRING_NAME to pluralMessage, LONG to n.toLong(), STRING_NAME to context) - TransferContext.callMethod(rawPtr, MethodBindings.trNPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.trNPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -1035,7 +1035,7 @@ public open class Object : KtObject() { */ public final fun isQueuedForDeletion(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isQueuedForDeletionPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isQueuedForDeletionPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1046,7 +1046,7 @@ public open class Object : KtObject() { */ public final fun cancelFree(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.cancelFreePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.cancelFreePtr, NIL) } public enum class ConnectFlags( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Occluder3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Occluder3D.kt index b4b9aacda4..c621dab35d 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Occluder3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Occluder3D.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedInt32Array import godot.core.PackedVector3Array import godot.core.TypeManager import godot.core.VariantParser.PACKED_INT_32_ARRAY import godot.core.VariantParser.PACKED_VECTOR3_ARRAY import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -33,7 +33,7 @@ public open class Occluder3D internal constructor() : Resource() { */ public final fun getVertices(): PackedVector3Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVerticesPtr, PACKED_VECTOR3_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getVerticesPtr, PACKED_VECTOR3_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR3_ARRAY) as PackedVector3Array) } @@ -42,7 +42,7 @@ public open class Occluder3D internal constructor() : Resource() { */ public final fun getIndices(): PackedInt32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getIndicesPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getIndicesPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/OccluderInstance3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/OccluderInstance3D.kt index 9fa51558ba..ff741bf51c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/OccluderInstance3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/OccluderInstance3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE @@ -14,7 +15,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -117,12 +117,12 @@ public open class OccluderInstance3D : VisualInstance3D() { public final fun setBakeMask(mask: Long): Unit { TransferContext.writeArguments(LONG to mask) - TransferContext.callMethod(rawPtr, MethodBindings.setBakeMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBakeMaskPtr, NIL) } public final fun getBakeMask(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBakeMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBakeMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -132,7 +132,7 @@ public open class OccluderInstance3D : VisualInstance3D() { */ public final fun setBakeMaskValue(layerNumber: Int, `value`: Boolean): Unit { TransferContext.writeArguments(LONG to layerNumber.toLong(), BOOL to value) - TransferContext.callMethod(rawPtr, MethodBindings.setBakeMaskValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBakeMaskValuePtr, NIL) } /** @@ -141,29 +141,29 @@ public open class OccluderInstance3D : VisualInstance3D() { */ public final fun getBakeMaskValue(layerNumber: Int): Boolean { TransferContext.writeArguments(LONG to layerNumber.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBakeMaskValuePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getBakeMaskValuePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setBakeSimplificationDistance(simplificationDistance: Float): Unit { TransferContext.writeArguments(DOUBLE to simplificationDistance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setBakeSimplificationDistancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBakeSimplificationDistancePtr, NIL) } public final fun getBakeSimplificationDistance(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBakeSimplificationDistancePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getBakeSimplificationDistancePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setOccluder(occluder: Occluder3D?): Unit { TransferContext.writeArguments(OBJECT to occluder) - TransferContext.callMethod(rawPtr, MethodBindings.setOccluderPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOccluderPtr, NIL) } public final fun getOccluder(): Occluder3D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOccluderPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getOccluderPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Occluder3D?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/OccluderPolygon2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/OccluderPolygon2D.kt index 92d2e9e216..4598a9a535 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/OccluderPolygon2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/OccluderPolygon2D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedVector2Array import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -14,7 +15,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_VECTOR2_ARRAY import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -67,34 +67,34 @@ public open class OccluderPolygon2D : Resource() { public final fun setClosed(closed: Boolean): Unit { TransferContext.writeArguments(BOOL to closed) - TransferContext.callMethod(rawPtr, MethodBindings.setClosedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setClosedPtr, NIL) } public final fun isClosed(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isClosedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isClosedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCullMode(cullMode: CullMode): Unit { TransferContext.writeArguments(LONG to cullMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setCullModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCullModePtr, NIL) } public final fun getCullMode(): CullMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCullModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCullModePtr, LONG) return OccluderPolygon2D.CullMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setPolygon(polygon: PackedVector2Array): Unit { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to polygon) - TransferContext.callMethod(rawPtr, MethodBindings.setPolygonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPolygonPtr, NIL) } public final fun getPolygon(): PackedVector2Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPolygonPtr, PACKED_VECTOR2_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getPolygonPtr, PACKED_VECTOR2_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR2_ARRAY) as PackedVector2Array) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/OggPacketSequence.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/OggPacketSequence.kt index 9cbe98e8ff..1881458194 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/OggPacketSequence.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/OggPacketSequence.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedInt64Array import godot.core.TypeManager import godot.core.VariantArray @@ -15,7 +16,6 @@ import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_INT_64_ARRAY import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Double import kotlin.Float @@ -69,35 +69,35 @@ public open class OggPacketSequence : Resource() { public final fun setPacketData(packetData: VariantArray>): Unit { TransferContext.writeArguments(ARRAY to packetData) - TransferContext.callMethod(rawPtr, MethodBindings.setPacketDataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPacketDataPtr, NIL) } public final fun getPacketData(): VariantArray> { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPacketDataPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getPacketDataPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray>) } public final fun setPacketGranulePositions(granulePositions: PackedInt64Array): Unit { TransferContext.writeArguments(PACKED_INT_64_ARRAY to granulePositions) - TransferContext.callMethod(rawPtr, MethodBindings.setPacketGranulePositionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPacketGranulePositionsPtr, NIL) } public final fun getPacketGranulePositions(): PackedInt64Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPacketGranulePositionsPtr, + TransferContext.callMethod(ptr, MethodBindings.getPacketGranulePositionsPtr, PACKED_INT_64_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_64_ARRAY) as PackedInt64Array) } public final fun setSamplingRate(samplingRate: Float): Unit { TransferContext.writeArguments(DOUBLE to samplingRate.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSamplingRatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSamplingRatePtr, NIL) } public final fun getSamplingRate(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSamplingRatePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSamplingRatePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -106,7 +106,7 @@ public open class OggPacketSequence : Resource() { */ public final fun getLength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/OmniLight3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/OmniLight3D.kt index bbace52d62..c03acf7729 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/OmniLight3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/OmniLight3D.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -51,12 +51,12 @@ public open class OmniLight3D : Light3D() { public final fun setShadowMode(mode: ShadowMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setShadowModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShadowModePtr, NIL) } public final fun getShadowMode(): ShadowMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getShadowModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getShadowModePtr, LONG) return OmniLight3D.ShadowMode.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRAPIExtension.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRAPIExtension.kt index 7c29a75648..d3fdd30c0a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRAPIExtension.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRAPIExtension.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY @@ -16,7 +17,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -44,7 +44,7 @@ public open class OpenXRAPIExtension : RefCounted() { */ public final fun getInstance(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInstancePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getInstancePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -55,7 +55,7 @@ public open class OpenXRAPIExtension : RefCounted() { */ public final fun getSystemId(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSystemIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSystemIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -66,7 +66,7 @@ public open class OpenXRAPIExtension : RefCounted() { */ public final fun getSession(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSessionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSessionPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -83,7 +83,7 @@ public open class OpenXRAPIExtension : RefCounted() { args: VariantArray, ): Boolean { TransferContext.writeArguments(LONG to result, STRING to format, ARRAY to args) - TransferContext.callMethod(rawPtr, MethodBindings.xrResultPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.xrResultPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -95,7 +95,7 @@ public open class OpenXRAPIExtension : RefCounted() { */ public final fun getInstanceProcAddr(name: String): Long { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.getInstanceProcAddrPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getInstanceProcAddrPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -105,7 +105,7 @@ public open class OpenXRAPIExtension : RefCounted() { */ public final fun getErrorString(result: Long): String { TransferContext.writeArguments(LONG to result) - TransferContext.callMethod(rawPtr, MethodBindings.getErrorStringPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getErrorStringPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -114,7 +114,7 @@ public open class OpenXRAPIExtension : RefCounted() { */ public final fun getSwapchainFormatName(swapchainFormat: Long): String { TransferContext.writeArguments(LONG to swapchainFormat) - TransferContext.callMethod(rawPtr, MethodBindings.getSwapchainFormatNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getSwapchainFormatNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -123,7 +123,7 @@ public open class OpenXRAPIExtension : RefCounted() { */ public final fun isInitialized(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isInitializedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isInitializedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -134,7 +134,7 @@ public open class OpenXRAPIExtension : RefCounted() { */ public final fun isRunning(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isRunningPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isRunningPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -145,7 +145,7 @@ public open class OpenXRAPIExtension : RefCounted() { */ public final fun getPlaySpace(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPlaySpacePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPlaySpacePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -154,7 +154,7 @@ public open class OpenXRAPIExtension : RefCounted() { */ public final fun getPredictedDisplayTime(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPredictedDisplayTimePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPredictedDisplayTimePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -163,7 +163,7 @@ public open class OpenXRAPIExtension : RefCounted() { */ public final fun getNextFrameTime(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNextFrameTimePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getNextFrameTimePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -172,7 +172,7 @@ public open class OpenXRAPIExtension : RefCounted() { */ public final fun canRender(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.canRenderPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.canRenderPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -181,7 +181,7 @@ public open class OpenXRAPIExtension : RefCounted() { */ public final fun getHandTracker(handIndex: Int): Long { TransferContext.writeArguments(LONG to handIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getHandTrackerPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getHandTrackerPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -191,7 +191,7 @@ public open class OpenXRAPIExtension : RefCounted() { public final fun registerCompositionLayerProvider(extension: OpenXRExtensionWrapperExtension?): Unit { TransferContext.writeArguments(OBJECT to extension) - TransferContext.callMethod(rawPtr, MethodBindings.registerCompositionLayerProviderPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.registerCompositionLayerProviderPtr, NIL) } /** @@ -200,7 +200,7 @@ public open class OpenXRAPIExtension : RefCounted() { public final fun unregisterCompositionLayerProvider(extension: OpenXRExtensionWrapperExtension?): Unit { TransferContext.writeArguments(OBJECT to extension) - TransferContext.callMethod(rawPtr, MethodBindings.unregisterCompositionLayerProviderPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.unregisterCompositionLayerProviderPtr, NIL) } /** @@ -209,8 +209,7 @@ public open class OpenXRAPIExtension : RefCounted() { */ public final fun setEmulateEnvironmentBlendModeAlphaBlend(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setEmulateEnvironmentBlendModeAlphaBlendPtr, - NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmulateEnvironmentBlendModeAlphaBlendPtr, NIL) } /** @@ -219,7 +218,7 @@ public open class OpenXRAPIExtension : RefCounted() { */ public final fun isEnvironmentBlendModeAlphaSupported(): OpenXRAlphaBlendModeSupport { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isEnvironmentBlendModeAlphaSupportedPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.isEnvironmentBlendModeAlphaSupportedPtr, LONG) return OpenXRAPIExtension.OpenXRAlphaBlendModeSupport.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRAction.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRAction.kt index c5c8df28cd..62d8b1ca19 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRAction.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRAction.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedStringArray import godot.core.TypeManager import godot.core.VariantParser.LONG @@ -14,7 +15,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.String @@ -78,34 +78,34 @@ public open class OpenXRAction : Resource() { public final fun setLocalizedName(localizedName: String): Unit { TransferContext.writeArguments(STRING to localizedName) - TransferContext.callMethod(rawPtr, MethodBindings.setLocalizedNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLocalizedNamePtr, NIL) } public final fun getLocalizedName(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLocalizedNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getLocalizedNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setActionType(actionType: ActionType): Unit { TransferContext.writeArguments(LONG to actionType.id) - TransferContext.callMethod(rawPtr, MethodBindings.setActionTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setActionTypePtr, NIL) } public final fun getActionType(): ActionType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getActionTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getActionTypePtr, LONG) return OpenXRAction.ActionType.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setToplevelPaths(toplevelPaths: PackedStringArray): Unit { TransferContext.writeArguments(PACKED_STRING_ARRAY to toplevelPaths) - TransferContext.callMethod(rawPtr, MethodBindings.setToplevelPathsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setToplevelPathsPtr, NIL) } public final fun getToplevelPaths(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getToplevelPathsPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getToplevelPathsPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRActionMap.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRActionMap.kt index 8b71ea2753..06dbdcda32 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRActionMap.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRActionMap.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY @@ -15,7 +16,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Int import kotlin.Long @@ -64,12 +64,12 @@ public open class OpenXRActionMap : Resource() { public final fun setActionSets(actionSets: VariantArray): Unit { TransferContext.writeArguments(ARRAY to actionSets) - TransferContext.callMethod(rawPtr, MethodBindings.setActionSetsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setActionSetsPtr, NIL) } public final fun getActionSets(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getActionSetsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getActionSetsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -78,7 +78,7 @@ public open class OpenXRActionMap : Resource() { */ public final fun getActionSetCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getActionSetCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getActionSetCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -87,7 +87,7 @@ public open class OpenXRActionMap : Resource() { */ public final fun findActionSet(name: String): OpenXRActionSet? { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.findActionSetPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.findActionSetPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as OpenXRActionSet?) } @@ -96,7 +96,7 @@ public open class OpenXRActionMap : Resource() { */ public final fun getActionSet(idx: Int): OpenXRActionSet? { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getActionSetPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getActionSetPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as OpenXRActionSet?) } @@ -105,7 +105,7 @@ public open class OpenXRActionMap : Resource() { */ public final fun addActionSet(actionSet: OpenXRActionSet?): Unit { TransferContext.writeArguments(OBJECT to actionSet) - TransferContext.callMethod(rawPtr, MethodBindings.addActionSetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addActionSetPtr, NIL) } /** @@ -113,17 +113,17 @@ public open class OpenXRActionMap : Resource() { */ public final fun removeActionSet(actionSet: OpenXRActionSet?): Unit { TransferContext.writeArguments(OBJECT to actionSet) - TransferContext.callMethod(rawPtr, MethodBindings.removeActionSetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeActionSetPtr, NIL) } public final fun setInteractionProfiles(interactionProfiles: VariantArray): Unit { TransferContext.writeArguments(ARRAY to interactionProfiles) - TransferContext.callMethod(rawPtr, MethodBindings.setInteractionProfilesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInteractionProfilesPtr, NIL) } public final fun getInteractionProfiles(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInteractionProfilesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getInteractionProfilesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -132,7 +132,7 @@ public open class OpenXRActionMap : Resource() { */ public final fun getInteractionProfileCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInteractionProfileCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getInteractionProfileCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -141,7 +141,7 @@ public open class OpenXRActionMap : Resource() { */ public final fun findInteractionProfile(name: String): OpenXRInteractionProfile? { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.findInteractionProfilePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.findInteractionProfilePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as OpenXRInteractionProfile?) } @@ -150,7 +150,7 @@ public open class OpenXRActionMap : Resource() { */ public final fun getInteractionProfile(idx: Int): OpenXRInteractionProfile? { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getInteractionProfilePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getInteractionProfilePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as OpenXRInteractionProfile?) } @@ -159,7 +159,7 @@ public open class OpenXRActionMap : Resource() { */ public final fun addInteractionProfile(interactionProfile: OpenXRInteractionProfile?): Unit { TransferContext.writeArguments(OBJECT to interactionProfile) - TransferContext.callMethod(rawPtr, MethodBindings.addInteractionProfilePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addInteractionProfilePtr, NIL) } /** @@ -167,7 +167,7 @@ public open class OpenXRActionMap : Resource() { */ public final fun removeInteractionProfile(interactionProfile: OpenXRInteractionProfile?): Unit { TransferContext.writeArguments(OBJECT to interactionProfile) - TransferContext.callMethod(rawPtr, MethodBindings.removeInteractionProfilePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeInteractionProfilePtr, NIL) } /** @@ -175,7 +175,7 @@ public open class OpenXRActionMap : Resource() { */ public final fun createDefaultActionSets(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.createDefaultActionSetsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.createDefaultActionSetsPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRActionSet.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRActionSet.kt index 7d9536e3f7..88daafdc0e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRActionSet.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRActionSet.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY @@ -15,7 +16,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Int import kotlin.Long @@ -74,23 +74,23 @@ public open class OpenXRActionSet : Resource() { public final fun setLocalizedName(localizedName: String): Unit { TransferContext.writeArguments(STRING to localizedName) - TransferContext.callMethod(rawPtr, MethodBindings.setLocalizedNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLocalizedNamePtr, NIL) } public final fun getLocalizedName(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLocalizedNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getLocalizedNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setPriority(priority: Int): Unit { TransferContext.writeArguments(LONG to priority.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setPriorityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPriorityPtr, NIL) } public final fun getPriority(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPriorityPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPriorityPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -99,18 +99,18 @@ public open class OpenXRActionSet : Resource() { */ public final fun getActionCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getActionCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getActionCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setActions(actions: VariantArray): Unit { TransferContext.writeArguments(ARRAY to actions) - TransferContext.callMethod(rawPtr, MethodBindings.setActionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setActionsPtr, NIL) } public final fun getActions(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getActionsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getActionsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -119,7 +119,7 @@ public open class OpenXRActionSet : Resource() { */ public final fun addAction(action: OpenXRAction?): Unit { TransferContext.writeArguments(OBJECT to action) - TransferContext.callMethod(rawPtr, MethodBindings.addActionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addActionPtr, NIL) } /** @@ -127,7 +127,7 @@ public open class OpenXRActionSet : Resource() { */ public final fun removeAction(action: OpenXRAction?): Unit { TransferContext.writeArguments(OBJECT to action) - TransferContext.callMethod(rawPtr, MethodBindings.removeActionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeActionPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRCompositionLayer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRCompositionLayer.kt index 8516aa104a..c4cda397e4 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRCompositionLayer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRCompositionLayer.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG @@ -17,7 +18,6 @@ import godot.core.VariantParser.VECTOR3 import godot.core.Vector2 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -92,45 +92,45 @@ public open class OpenXRCompositionLayer internal constructor() : Node3D() { public final fun setLayerViewport(viewport: SubViewport?): Unit { TransferContext.writeArguments(OBJECT to viewport) - TransferContext.callMethod(rawPtr, MethodBindings.setLayerViewportPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLayerViewportPtr, NIL) } public final fun getLayerViewport(): SubViewport? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLayerViewportPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getLayerViewportPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as SubViewport?) } public final fun setEnableHolePunch(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setEnableHolePunchPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnableHolePunchPtr, NIL) } public final fun getEnableHolePunch(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnableHolePunchPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getEnableHolePunchPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSortOrder(order: Int): Unit { TransferContext.writeArguments(LONG to order.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSortOrderPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSortOrderPtr, NIL) } public final fun getSortOrder(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSortOrderPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSortOrderPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setAlphaBlend(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setAlphaBlendPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAlphaBlendPtr, NIL) } public final fun getAlphaBlend(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAlphaBlendPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getAlphaBlendPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -140,7 +140,7 @@ public open class OpenXRCompositionLayer internal constructor() : Node3D() { */ public final fun isNativelySupported(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isNativelySupportedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isNativelySupportedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -151,7 +151,7 @@ public open class OpenXRCompositionLayer internal constructor() : Node3D() { */ public final fun intersectsRay(origin: Vector3, direction: Vector3): Vector2 { TransferContext.writeArguments(VECTOR3 to origin, VECTOR3 to direction) - TransferContext.callMethod(rawPtr, MethodBindings.intersectsRayPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.intersectsRayPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRCompositionLayerCylinder.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRCompositionLayerCylinder.kt index 468889fc9e..46cce203ab 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRCompositionLayerCylinder.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRCompositionLayerCylinder.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -77,45 +77,45 @@ public open class OpenXRCompositionLayerCylinder : OpenXRCompositionLayer() { public final fun setRadius(radius: Float): Unit { TransferContext.writeArguments(DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRadiusPtr, NIL) } public final fun getRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAspectRatio(aspectRatio: Float): Unit { TransferContext.writeArguments(DOUBLE to aspectRatio.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAspectRatioPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAspectRatioPtr, NIL) } public final fun getAspectRatio(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAspectRatioPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAspectRatioPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setCentralAngle(angle: Float): Unit { TransferContext.writeArguments(DOUBLE to angle.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setCentralAnglePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCentralAnglePtr, NIL) } public final fun getCentralAngle(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCentralAnglePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCentralAnglePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setFallbackSegments(segments: Long): Unit { TransferContext.writeArguments(LONG to segments) - TransferContext.callMethod(rawPtr, MethodBindings.setFallbackSegmentsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFallbackSegmentsPtr, NIL) } public final fun getFallbackSegments(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFallbackSegmentsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFallbackSegmentsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRCompositionLayerEquirect.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRCompositionLayerEquirect.kt index ef55d136f4..5a574486c1 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRCompositionLayerEquirect.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRCompositionLayerEquirect.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -90,56 +90,56 @@ public open class OpenXRCompositionLayerEquirect : OpenXRCompositionLayer() { public final fun setRadius(radius: Float): Unit { TransferContext.writeArguments(DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRadiusPtr, NIL) } public final fun getRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setCentralHorizontalAngle(angle: Float): Unit { TransferContext.writeArguments(DOUBLE to angle.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setCentralHorizontalAnglePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCentralHorizontalAnglePtr, NIL) } public final fun getCentralHorizontalAngle(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCentralHorizontalAnglePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCentralHorizontalAnglePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setUpperVerticalAngle(angle: Float): Unit { TransferContext.writeArguments(DOUBLE to angle.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setUpperVerticalAnglePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUpperVerticalAnglePtr, NIL) } public final fun getUpperVerticalAngle(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUpperVerticalAnglePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getUpperVerticalAnglePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setLowerVerticalAngle(angle: Float): Unit { TransferContext.writeArguments(DOUBLE to angle.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setLowerVerticalAnglePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLowerVerticalAnglePtr, NIL) } public final fun getLowerVerticalAngle(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLowerVerticalAnglePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLowerVerticalAnglePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setFallbackSegments(segments: Long): Unit { TransferContext.writeArguments(LONG to segments) - TransferContext.callMethod(rawPtr, MethodBindings.setFallbackSegmentsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFallbackSegmentsPtr, NIL) } public final fun getFallbackSegments(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFallbackSegmentsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFallbackSegmentsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRCompositionLayerQuad.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRCompositionLayerQuad.kt index f892b54774..c2500ae5e9 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRCompositionLayerQuad.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRCompositionLayerQuad.kt @@ -9,12 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -67,12 +67,12 @@ public open class OpenXRCompositionLayerQuad : OpenXRCompositionLayer() { public final fun setQuadSize(size: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to size) - TransferContext.callMethod(rawPtr, MethodBindings.setQuadSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setQuadSizePtr, NIL) } public final fun getQuadSize(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getQuadSizePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getQuadSizePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRExtensionWrapperExtension.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRExtensionWrapperExtension.kt index 14255bd4ff..fc3a8b20c9 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRExtensionWrapperExtension.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRExtensionWrapperExtension.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedStringArray import godot.core.TypeManager @@ -14,7 +15,6 @@ import godot.core.VariantArray import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Int import kotlin.Long @@ -217,7 +217,7 @@ public open class OpenXRExtensionWrapperExtension : Object() { */ public final fun getOpenxrApi(): OpenXRAPIExtension? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOpenxrApiPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getOpenxrApiPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as OpenXRAPIExtension?) } @@ -226,7 +226,7 @@ public open class OpenXRExtensionWrapperExtension : Object() { */ public final fun registerExtensionWrapper(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.registerExtensionWrapperPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.registerExtensionWrapperPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRHand.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRHand.kt index 9b2172b992..5eb7dc0b8c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRHand.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRHand.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -96,56 +96,56 @@ public open class OpenXRHand : Node3D() { public final fun setHand(hand: Hands): Unit { TransferContext.writeArguments(LONG to hand.id) - TransferContext.callMethod(rawPtr, MethodBindings.setHandPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHandPtr, NIL) } public final fun getHand(): Hands { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHandPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getHandPtr, LONG) return OpenXRHand.Hands.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setHandSkeleton(handSkeleton: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to handSkeleton) - TransferContext.callMethod(rawPtr, MethodBindings.setHandSkeletonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHandSkeletonPtr, NIL) } public final fun getHandSkeleton(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHandSkeletonPtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getHandSkeletonPtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } public final fun setMotionRange(motionRange: MotionRange): Unit { TransferContext.writeArguments(LONG to motionRange.id) - TransferContext.callMethod(rawPtr, MethodBindings.setMotionRangePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMotionRangePtr, NIL) } public final fun getMotionRange(): MotionRange { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMotionRangePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMotionRangePtr, LONG) return OpenXRHand.MotionRange.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setSkeletonRig(skeletonRig: SkeletonRig): Unit { TransferContext.writeArguments(LONG to skeletonRig.id) - TransferContext.callMethod(rawPtr, MethodBindings.setSkeletonRigPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSkeletonRigPtr, NIL) } public final fun getSkeletonRig(): SkeletonRig { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSkeletonRigPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSkeletonRigPtr, LONG) return OpenXRHand.SkeletonRig.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setBoneUpdate(boneUpdate: BoneUpdate): Unit { TransferContext.writeArguments(LONG to boneUpdate.id) - TransferContext.callMethod(rawPtr, MethodBindings.setBoneUpdatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBoneUpdatePtr, NIL) } public final fun getBoneUpdate(): BoneUpdate { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBoneUpdatePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBoneUpdatePtr, LONG) return OpenXRHand.BoneUpdate.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRIPBinding.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRIPBinding.kt index 14d5e4c5bb..968bb84277 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRIPBinding.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRIPBinding.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedStringArray import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -16,7 +17,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -61,12 +61,12 @@ public open class OpenXRIPBinding : Resource() { public final fun setAction(action: OpenXRAction?): Unit { TransferContext.writeArguments(OBJECT to action) - TransferContext.callMethod(rawPtr, MethodBindings.setActionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setActionPtr, NIL) } public final fun getAction(): OpenXRAction? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getActionPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getActionPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as OpenXRAction?) } @@ -75,18 +75,18 @@ public open class OpenXRIPBinding : Resource() { */ public final fun getPathCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPathCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPathCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setPaths(paths: PackedStringArray): Unit { TransferContext.writeArguments(PACKED_STRING_ARRAY to paths) - TransferContext.callMethod(rawPtr, MethodBindings.setPathsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPathsPtr, NIL) } public final fun getPaths(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPathsPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getPathsPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -95,7 +95,7 @@ public open class OpenXRIPBinding : Resource() { */ public final fun hasPath(path: String): Boolean { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.hasPathPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasPathPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -104,7 +104,7 @@ public open class OpenXRIPBinding : Resource() { */ public final fun addPath(path: String): Unit { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.addPathPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addPathPtr, NIL) } /** @@ -112,7 +112,7 @@ public open class OpenXRIPBinding : Resource() { */ public final fun removePath(path: String): Unit { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.removePathPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removePathPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRInteractionProfile.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRInteractionProfile.kt index d275fd93cf..eeb982b0d0 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRInteractionProfile.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRInteractionProfile.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY @@ -15,7 +16,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Int import kotlin.Long @@ -61,12 +61,12 @@ public open class OpenXRInteractionProfile : Resource() { public final fun setInteractionProfilePath(interactionProfilePath: String): Unit { TransferContext.writeArguments(STRING to interactionProfilePath) - TransferContext.callMethod(rawPtr, MethodBindings.setInteractionProfilePathPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInteractionProfilePathPtr, NIL) } public final fun getInteractionProfilePath(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInteractionProfilePathPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getInteractionProfilePathPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -75,7 +75,7 @@ public open class OpenXRInteractionProfile : Resource() { */ public final fun getBindingCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBindingCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBindingCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -84,18 +84,18 @@ public open class OpenXRInteractionProfile : Resource() { */ public final fun getBinding(index: Int): OpenXRIPBinding? { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBindingPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getBindingPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as OpenXRIPBinding?) } public final fun setBindings(bindings: VariantArray): Unit { TransferContext.writeArguments(ARRAY to bindings) - TransferContext.callMethod(rawPtr, MethodBindings.setBindingsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBindingsPtr, NIL) } public final fun getBindings(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBindingsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getBindingsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRInteractionProfileMetadata.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRInteractionProfileMetadata.kt index 496888d181..d3e820c428 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRInteractionProfileMetadata.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRInteractionProfileMetadata.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.String import kotlin.Suppress @@ -36,7 +36,7 @@ public open class OpenXRInteractionProfileMetadata : Object() { */ public final fun registerProfileRename(oldName: String, newName: String): Unit { TransferContext.writeArguments(STRING to oldName, STRING to newName) - TransferContext.callMethod(rawPtr, MethodBindings.registerProfileRenamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.registerProfileRenamePtr, NIL) } /** @@ -55,7 +55,7 @@ public open class OpenXRInteractionProfileMetadata : Object() { openxrExtensionName: String, ): Unit { TransferContext.writeArguments(STRING to displayName, STRING to openxrPath, STRING to openxrExtensionName) - TransferContext.callMethod(rawPtr, MethodBindings.registerTopLevelPathPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.registerTopLevelPathPtr, NIL) } /** @@ -73,7 +73,7 @@ public open class OpenXRInteractionProfileMetadata : Object() { openxrExtensionName: String, ): Unit { TransferContext.writeArguments(STRING to displayName, STRING to openxrPath, STRING to openxrExtensionName) - TransferContext.callMethod(rawPtr, MethodBindings.registerInteractionProfilePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.registerInteractionProfilePtr, NIL) } /** @@ -96,7 +96,7 @@ public open class OpenXRInteractionProfileMetadata : Object() { actionType: OpenXRAction.ActionType, ): Unit { TransferContext.writeArguments(STRING to interactionProfile, STRING to displayName, STRING to toplevelPath, STRING to openxrPath, STRING to openxrExtensionName, LONG to actionType.id) - TransferContext.callMethod(rawPtr, MethodBindings.registerIoPathPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.registerIoPathPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRInterface.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRInterface.kt index 9ce690d7b1..f64e8c19bd 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRInterface.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/OpenXRInterface.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Quaternion import godot.core.Signal0 import godot.core.Signal1 @@ -22,7 +23,6 @@ import godot.core.VariantParser.STRING import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -171,24 +171,24 @@ public open class OpenXRInterface : XRInterface() { public final fun getDisplayRefreshRate(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDisplayRefreshRatePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDisplayRefreshRatePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDisplayRefreshRate(refreshRate: Float): Unit { TransferContext.writeArguments(DOUBLE to refreshRate.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDisplayRefreshRatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDisplayRefreshRatePtr, NIL) } public final fun getRenderTargetSizeMultiplier(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRenderTargetSizeMultiplierPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRenderTargetSizeMultiplierPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun setRenderTargetSizeMultiplier(multiplier: Double): Unit { TransferContext.writeArguments(DOUBLE to multiplier) - TransferContext.callMethod(rawPtr, MethodBindings.setRenderTargetSizeMultiplierPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRenderTargetSizeMultiplierPtr, NIL) } /** @@ -199,30 +199,30 @@ public open class OpenXRInterface : XRInterface() { */ public final fun isFoveationSupported(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isFoveationSupportedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isFoveationSupportedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun getFoveationLevel(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFoveationLevelPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFoveationLevelPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setFoveationLevel(foveationLevel: Int): Unit { TransferContext.writeArguments(LONG to foveationLevel.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setFoveationLevelPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFoveationLevelPtr, NIL) } public final fun getFoveationDynamic(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFoveationDynamicPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getFoveationDynamicPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setFoveationDynamic(foveationDynamic: Boolean): Unit { TransferContext.writeArguments(BOOL to foveationDynamic) - TransferContext.callMethod(rawPtr, MethodBindings.setFoveationDynamicPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFoveationDynamicPtr, NIL) } /** @@ -230,7 +230,7 @@ public open class OpenXRInterface : XRInterface() { */ public final fun isActionSetActive(name: String): Boolean { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.isActionSetActivePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isActionSetActivePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -239,7 +239,7 @@ public open class OpenXRInterface : XRInterface() { */ public final fun setActionSetActive(name: String, active: Boolean): Unit { TransferContext.writeArguments(STRING to name, BOOL to active) - TransferContext.callMethod(rawPtr, MethodBindings.setActionSetActivePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setActionSetActivePtr, NIL) } /** @@ -247,7 +247,7 @@ public open class OpenXRInterface : XRInterface() { */ public final fun getActionSets(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getActionSetsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getActionSetsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -257,7 +257,7 @@ public open class OpenXRInterface : XRInterface() { */ public final fun getAvailableDisplayRefreshRates(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAvailableDisplayRefreshRatesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getAvailableDisplayRefreshRatesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -267,7 +267,7 @@ public open class OpenXRInterface : XRInterface() { */ public final fun setMotionRange(hand: Hand, motionRange: HandMotionRange): Unit { TransferContext.writeArguments(LONG to hand.id, LONG to motionRange.id) - TransferContext.callMethod(rawPtr, MethodBindings.setMotionRangePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMotionRangePtr, NIL) } /** @@ -276,7 +276,7 @@ public open class OpenXRInterface : XRInterface() { */ public final fun getMotionRange(hand: Hand): HandMotionRange { TransferContext.writeArguments(LONG to hand.id) - TransferContext.callMethod(rawPtr, MethodBindings.getMotionRangePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMotionRangePtr, LONG) return OpenXRInterface.HandMotionRange.from(TransferContext.readReturnValue(LONG) as Long) } @@ -286,7 +286,7 @@ public open class OpenXRInterface : XRInterface() { */ public final fun getHandTrackingSource(hand: Hand): HandTrackedSource { TransferContext.writeArguments(LONG to hand.id) - TransferContext.callMethod(rawPtr, MethodBindings.getHandTrackingSourcePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getHandTrackingSourcePtr, LONG) return OpenXRInterface.HandTrackedSource.from(TransferContext.readReturnValue(LONG) as Long) } @@ -295,7 +295,7 @@ public open class OpenXRInterface : XRInterface() { */ public final fun getHandJointFlags(hand: Hand, joint: HandJoints): HandJointFlags { TransferContext.writeArguments(LONG to hand.id, LONG to joint.id) - TransferContext.callMethod(rawPtr, MethodBindings.getHandJointFlagsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getHandJointFlagsPtr, LONG) return HandJointFlagsValue(TransferContext.readReturnValue(LONG) as Long) } @@ -305,7 +305,7 @@ public open class OpenXRInterface : XRInterface() { */ public final fun getHandJointRotation(hand: Hand, joint: HandJoints): Quaternion { TransferContext.writeArguments(LONG to hand.id, LONG to joint.id) - TransferContext.callMethod(rawPtr, MethodBindings.getHandJointRotationPtr, QUATERNION) + TransferContext.callMethod(ptr, MethodBindings.getHandJointRotationPtr, QUATERNION) return (TransferContext.readReturnValue(QUATERNION) as Quaternion) } @@ -315,7 +315,7 @@ public open class OpenXRInterface : XRInterface() { */ public final fun getHandJointPosition(hand: Hand, joint: HandJoints): Vector3 { TransferContext.writeArguments(LONG to hand.id, LONG to joint.id) - TransferContext.callMethod(rawPtr, MethodBindings.getHandJointPositionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getHandJointPositionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -325,7 +325,7 @@ public open class OpenXRInterface : XRInterface() { */ public final fun getHandJointRadius(hand: Hand, joint: HandJoints): Float { TransferContext.writeArguments(LONG to hand.id, LONG to joint.id) - TransferContext.callMethod(rawPtr, MethodBindings.getHandJointRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getHandJointRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -335,7 +335,7 @@ public open class OpenXRInterface : XRInterface() { */ public final fun getHandJointLinearVelocity(hand: Hand, joint: HandJoints): Vector3 { TransferContext.writeArguments(LONG to hand.id, LONG to joint.id) - TransferContext.callMethod(rawPtr, MethodBindings.getHandJointLinearVelocityPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getHandJointLinearVelocityPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -345,7 +345,7 @@ public open class OpenXRInterface : XRInterface() { */ public final fun getHandJointAngularVelocity(hand: Hand, joint: HandJoints): Vector3 { TransferContext.writeArguments(LONG to hand.id, LONG to joint.id) - TransferContext.callMethod(rawPtr, MethodBindings.getHandJointAngularVelocityPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getHandJointAngularVelocityPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -355,7 +355,7 @@ public open class OpenXRInterface : XRInterface() { */ public final fun isHandTrackingSupported(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isHandTrackingSupportedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isHandTrackingSupportedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -365,7 +365,7 @@ public open class OpenXRInterface : XRInterface() { */ public final fun isHandInteractionSupported(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isHandInteractionSupportedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isHandInteractionSupportedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -375,30 +375,30 @@ public open class OpenXRInterface : XRInterface() { */ public final fun isEyeGazeInteractionSupported(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isEyeGazeInteractionSupportedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isEyeGazeInteractionSupportedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun getVrsMinRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVrsMinRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVrsMinRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVrsMinRadius(radius: Float): Unit { TransferContext.writeArguments(DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVrsMinRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVrsMinRadiusPtr, NIL) } public final fun getVrsStrength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVrsStrengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVrsStrengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVrsStrength(strength: Float): Unit { TransferContext.writeArguments(DOUBLE to strength.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVrsStrengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVrsStrengthPtr, NIL) } public enum class Hand( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/OptimizedTranslation.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/OptimizedTranslation.kt index 57066f11ff..a80ccdaef6 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/OptimizedTranslation.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/OptimizedTranslation.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -31,7 +31,7 @@ public open class OptimizedTranslation : Translation() { */ public final fun generate(from: Translation?): Unit { TransferContext.writeArguments(OBJECT to from) - TransferContext.callMethod(rawPtr, MethodBindings.generatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.generatePtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/OptionButton.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/OptionButton.kt index 4c8c975607..27e00ca2eb 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/OptionButton.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/OptionButton.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal1 import godot.core.TypeManager import godot.core.VariantCaster.ANY @@ -16,7 +17,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -106,7 +106,7 @@ public open class OptionButton : Button() { @JvmOverloads public final fun addItem(label: String, id: Int = -1): Unit { TransferContext.writeArguments(STRING to label, LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addItemPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addItemPtr, NIL) } /** @@ -120,7 +120,7 @@ public open class OptionButton : Button() { id: Int = -1, ): Unit { TransferContext.writeArguments(OBJECT to texture, STRING to label, LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addIconItemPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addIconItemPtr, NIL) } /** @@ -128,7 +128,7 @@ public open class OptionButton : Button() { */ public final fun setItemText(idx: Int, text: String): Unit { TransferContext.writeArguments(LONG to idx.toLong(), STRING to text) - TransferContext.callMethod(rawPtr, MethodBindings.setItemTextPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemTextPtr, NIL) } /** @@ -136,7 +136,7 @@ public open class OptionButton : Button() { */ public final fun setItemIcon(idx: Int, texture: Texture2D?): Unit { TransferContext.writeArguments(LONG to idx.toLong(), OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setItemIconPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemIconPtr, NIL) } /** @@ -146,7 +146,7 @@ public open class OptionButton : Button() { */ public final fun setItemDisabled(idx: Int, disabled: Boolean): Unit { TransferContext.writeArguments(LONG to idx.toLong(), BOOL to disabled) - TransferContext.callMethod(rawPtr, MethodBindings.setItemDisabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemDisabledPtr, NIL) } /** @@ -154,7 +154,7 @@ public open class OptionButton : Button() { */ public final fun setItemId(idx: Int, id: Int): Unit { TransferContext.writeArguments(LONG to idx.toLong(), LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setItemIdPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemIdPtr, NIL) } /** @@ -163,7 +163,7 @@ public open class OptionButton : Button() { */ public final fun setItemMetadata(idx: Int, metadata: Any?): Unit { TransferContext.writeArguments(LONG to idx.toLong(), ANY to metadata) - TransferContext.callMethod(rawPtr, MethodBindings.setItemMetadataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemMetadataPtr, NIL) } /** @@ -171,7 +171,7 @@ public open class OptionButton : Button() { */ public final fun setItemTooltip(idx: Int, tooltip: String): Unit { TransferContext.writeArguments(LONG to idx.toLong(), STRING to tooltip) - TransferContext.callMethod(rawPtr, MethodBindings.setItemTooltipPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemTooltipPtr, NIL) } /** @@ -179,7 +179,7 @@ public open class OptionButton : Button() { */ public final fun getItemText(idx: Int): String { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemTextPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getItemTextPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -188,7 +188,7 @@ public open class OptionButton : Button() { */ public final fun getItemIcon(idx: Int): Texture2D? { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemIconPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getItemIconPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } @@ -197,7 +197,7 @@ public open class OptionButton : Button() { */ public final fun getItemId(idx: Int): Int { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getItemIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -206,7 +206,7 @@ public open class OptionButton : Button() { */ public final fun getItemIndex(id: Int): Int { TransferContext.writeArguments(LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getItemIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -216,7 +216,7 @@ public open class OptionButton : Button() { */ public final fun getItemMetadata(idx: Int): Any? { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemMetadataPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getItemMetadataPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -225,7 +225,7 @@ public open class OptionButton : Button() { */ public final fun getItemTooltip(idx: Int): String { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemTooltipPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getItemTooltipPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -234,7 +234,7 @@ public open class OptionButton : Button() { */ public final fun isItemDisabled(idx: Int): Boolean { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isItemDisabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isItemDisabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -243,7 +243,7 @@ public open class OptionButton : Button() { */ public final fun isItemSeparator(idx: Int): Boolean { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isItemSeparatorPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isItemSeparatorPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -255,7 +255,7 @@ public open class OptionButton : Button() { @JvmOverloads public final fun addSeparator(text: String = ""): Unit { TransferContext.writeArguments(STRING to text) - TransferContext.callMethod(rawPtr, MethodBindings.addSeparatorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addSeparatorPtr, NIL) } /** @@ -263,7 +263,7 @@ public open class OptionButton : Button() { */ public final fun clear(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPtr, NIL) } /** @@ -273,12 +273,12 @@ public open class OptionButton : Button() { */ public final fun select(idx: Int): Unit { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.selectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.selectPtr, NIL) } public final fun getSelected(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSelectedPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSelectedPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -287,7 +287,7 @@ public open class OptionButton : Button() { */ public final fun getSelectedId(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSelectedIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSelectedIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -296,7 +296,7 @@ public open class OptionButton : Button() { */ public final fun getSelectedMetadata(): Any? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSelectedMetadataPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getSelectedMetadataPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -305,7 +305,7 @@ public open class OptionButton : Button() { */ public final fun removeItem(idx: Int): Unit { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeItemPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeItemPtr, NIL) } /** @@ -315,7 +315,7 @@ public open class OptionButton : Button() { */ public final fun getPopup(): PopupMenu? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPopupPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getPopupPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as PopupMenu?) } @@ -325,17 +325,17 @@ public open class OptionButton : Button() { */ public final fun showPopup(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.showPopupPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.showPopupPtr, NIL) } public final fun setItemCount(count: Int): Unit { TransferContext.writeArguments(LONG to count.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setItemCountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemCountPtr, NIL) } public final fun getItemCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getItemCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getItemCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -345,7 +345,7 @@ public open class OptionButton : Button() { */ public final fun hasSelectableItems(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasSelectableItemsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasSelectableItemsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -357,29 +357,29 @@ public open class OptionButton : Button() { @JvmOverloads public final fun getSelectableItem(fromLast: Boolean = false): Int { TransferContext.writeArguments(BOOL to fromLast) - TransferContext.callMethod(rawPtr, MethodBindings.getSelectableItemPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSelectableItemPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setFitToLongestItem(fit: Boolean): Unit { TransferContext.writeArguments(BOOL to fit) - TransferContext.callMethod(rawPtr, MethodBindings.setFitToLongestItemPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFitToLongestItemPtr, NIL) } public final fun isFitToLongestItem(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isFitToLongestItemPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isFitToLongestItemPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAllowReselect(allow: Boolean): Unit { TransferContext.writeArguments(BOOL to allow) - TransferContext.callMethod(rawPtr, MethodBindings.setAllowReselectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAllowReselectPtr, NIL) } public final fun getAllowReselect(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAllowReselectPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getAllowReselectPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -388,7 +388,7 @@ public open class OptionButton : Button() { */ public final fun setDisableShortcuts(disabled: Boolean): Unit { TransferContext.writeArguments(BOOL to disabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDisableShortcutsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDisableShortcutsPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PCKPacker.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PCKPacker.kt index f5934de7bc..caea118ed4 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PCKPacker.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PCKPacker.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -61,7 +61,7 @@ public open class PCKPacker : RefCounted() { encryptDirectory: Boolean = false, ): Error { TransferContext.writeArguments(STRING to pckName, LONG to alignment.toLong(), STRING to key, BOOL to encryptDirectory) - TransferContext.callMethod(rawPtr, MethodBindings.pckStartPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.pckStartPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -76,7 +76,7 @@ public open class PCKPacker : RefCounted() { encrypt: Boolean = false, ): Error { TransferContext.writeArguments(STRING to pckPath, STRING to sourcePath, BOOL to encrypt) - TransferContext.callMethod(rawPtr, MethodBindings.addFilePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.addFilePtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -87,7 +87,7 @@ public open class PCKPacker : RefCounted() { @JvmOverloads public final fun flush(verbose: Boolean = false): Error { TransferContext.writeArguments(BOOL to verbose) - TransferContext.callMethod(rawPtr, MethodBindings.flushPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.flushPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PackedDataContainer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PackedDataContainer.kt index 2c8c96edfd..ee45330f19 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PackedDataContainer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PackedDataContainer.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantCaster.ANY import godot.core.VariantParser.LONG import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Int import kotlin.Long @@ -57,7 +57,7 @@ public open class PackedDataContainer : Resource() { */ public final fun pack(`value`: Any?): Error { TransferContext.writeArguments(ANY to value) - TransferContext.callMethod(rawPtr, MethodBindings.packPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.packPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -66,7 +66,7 @@ public open class PackedDataContainer : Resource() { */ public final fun size(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.sizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.sizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PackedDataContainerRef.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PackedDataContainerRef.kt index 7c2809dd90..3427127a75 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PackedDataContainerRef.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PackedDataContainerRef.kt @@ -7,10 +7,10 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -53,7 +53,7 @@ public open class PackedDataContainerRef internal constructor() : RefCounted() { */ public final fun size(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.sizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.sizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PackedScene.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PackedScene.kt index df2f20964a..738f80f78b 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PackedScene.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PackedScene.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -109,7 +109,7 @@ public open class PackedScene : Resource() { */ public final fun pack(path: Node?): Error { TransferContext.writeArguments(OBJECT to path) - TransferContext.callMethod(rawPtr, MethodBindings.packPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.packPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -121,7 +121,7 @@ public open class PackedScene : Resource() { public final fun instantiate(editState: GenEditState = PackedScene.GenEditState.GEN_EDIT_STATE_DISABLED): Node? { TransferContext.writeArguments(LONG to editState.id) - TransferContext.callMethod(rawPtr, MethodBindings.instantiatePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.instantiatePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Node?) } @@ -130,7 +130,7 @@ public open class PackedScene : Resource() { */ public final fun canInstantiate(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.canInstantiatePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.canInstantiatePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -139,7 +139,7 @@ public open class PackedScene : Resource() { */ public final fun getState(): SceneState? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStatePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getStatePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as SceneState?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PacketPeer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PacketPeer.kt index fed61dd909..f1399f0212 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PacketPeer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PacketPeer.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedByteArray import godot.core.TypeManager import godot.core.VariantCaster.ANY @@ -15,7 +16,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -65,7 +65,7 @@ public open class PacketPeer internal constructor() : RefCounted() { @JvmOverloads public final fun getVar(allowObjects: Boolean = false): Any? { TransferContext.writeArguments(BOOL to allowObjects) - TransferContext.callMethod(rawPtr, MethodBindings.getVarPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getVarPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -77,7 +77,7 @@ public open class PacketPeer internal constructor() : RefCounted() { @JvmOverloads public final fun putVar(`var`: Any?, fullObjects: Boolean = false): Error { TransferContext.writeArguments(ANY to `var`, BOOL to fullObjects) - TransferContext.callMethod(rawPtr, MethodBindings.putVarPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.putVarPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -86,7 +86,7 @@ public open class PacketPeer internal constructor() : RefCounted() { */ public final fun getPacket(): PackedByteArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPacketPtr, PACKED_BYTE_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getPacketPtr, PACKED_BYTE_ARRAY) return (TransferContext.readReturnValue(PACKED_BYTE_ARRAY) as PackedByteArray) } @@ -95,7 +95,7 @@ public open class PacketPeer internal constructor() : RefCounted() { */ public final fun putPacket(buffer: PackedByteArray): Error { TransferContext.writeArguments(PACKED_BYTE_ARRAY to buffer) - TransferContext.callMethod(rawPtr, MethodBindings.putPacketPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.putPacketPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -104,7 +104,7 @@ public open class PacketPeer internal constructor() : RefCounted() { */ public final fun getPacketError(): Error { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPacketErrorPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPacketErrorPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -113,19 +113,19 @@ public open class PacketPeer internal constructor() : RefCounted() { */ public final fun getAvailablePacketCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAvailablePacketCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAvailablePacketCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun getEncodeBufferMaxSize(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEncodeBufferMaxSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getEncodeBufferMaxSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setEncodeBufferMaxSize(maxSize: Int): Unit { TransferContext.writeArguments(LONG to maxSize.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setEncodeBufferMaxSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEncodeBufferMaxSizePtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PacketPeerDTLS.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PacketPeerDTLS.kt index 34714fa15b..fb547ce6ed 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PacketPeerDTLS.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PacketPeerDTLS.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.String @@ -43,7 +43,7 @@ public open class PacketPeerDTLS : PacketPeer() { */ public final fun poll(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.pollPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pollPtr, NIL) } /** @@ -59,7 +59,7 @@ public open class PacketPeerDTLS : PacketPeer() { clientOptions: TLSOptions? = null, ): Error { TransferContext.writeArguments(OBJECT to packetPeer, STRING to hostname, OBJECT to clientOptions) - TransferContext.callMethod(rawPtr, MethodBindings.connectToPeerPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.connectToPeerPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -68,7 +68,7 @@ public open class PacketPeerDTLS : PacketPeer() { */ public final fun getStatus(): Status { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStatusPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getStatusPtr, LONG) return PacketPeerDTLS.Status.from(TransferContext.readReturnValue(LONG) as Long) } @@ -77,7 +77,7 @@ public open class PacketPeerDTLS : PacketPeer() { */ public final fun disconnectFromPeer(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.disconnectFromPeerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.disconnectFromPeerPtr, NIL) } public enum class Status( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PacketPeerStream.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PacketPeerStream.kt index d947c29211..bb39e123e6 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PacketPeerStream.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PacketPeerStream.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -62,34 +62,34 @@ public open class PacketPeerStream : PacketPeer() { public final fun setStreamPeer(peer: StreamPeer?): Unit { TransferContext.writeArguments(OBJECT to peer) - TransferContext.callMethod(rawPtr, MethodBindings.setStreamPeerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStreamPeerPtr, NIL) } public final fun getStreamPeer(): StreamPeer? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStreamPeerPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getStreamPeerPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as StreamPeer?) } public final fun setInputBufferMaxSize(maxSizeBytes: Int): Unit { TransferContext.writeArguments(LONG to maxSizeBytes.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setInputBufferMaxSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInputBufferMaxSizePtr, NIL) } public final fun setOutputBufferMaxSize(maxSizeBytes: Int): Unit { TransferContext.writeArguments(LONG to maxSizeBytes.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setOutputBufferMaxSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOutputBufferMaxSizePtr, NIL) } public final fun getInputBufferMaxSize(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInputBufferMaxSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getInputBufferMaxSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun getOutputBufferMaxSize(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOutputBufferMaxSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOutputBufferMaxSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PacketPeerUDP.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PacketPeerUDP.kt index beda9d8c71..6507dba7fe 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PacketPeerUDP.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PacketPeerUDP.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -52,7 +52,7 @@ public open class PacketPeerUDP : PacketPeer() { recvBufSize: Int = 65536, ): Error { TransferContext.writeArguments(LONG to port.toLong(), STRING to bindAddress, LONG to recvBufSize.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.bindPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.bindPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -61,7 +61,7 @@ public open class PacketPeerUDP : PacketPeer() { */ public final fun close(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.closePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.closePtr, NIL) } /** @@ -102,7 +102,7 @@ public open class PacketPeerUDP : PacketPeer() { */ public final fun wait(): Error { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.waitPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.waitPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -111,7 +111,7 @@ public open class PacketPeerUDP : PacketPeer() { */ public final fun isBound(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isBoundPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isBoundPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -128,7 +128,7 @@ public open class PacketPeerUDP : PacketPeer() { */ public final fun connectToHost(host: String, port: Int): Error { TransferContext.writeArguments(STRING to host, LONG to port.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.connectToHostPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.connectToHostPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -138,7 +138,7 @@ public open class PacketPeerUDP : PacketPeer() { */ public final fun isSocketConnected(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSocketConnectedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSocketConnectedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -148,7 +148,7 @@ public open class PacketPeerUDP : PacketPeer() { */ public final fun getPacketIp(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPacketIpPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getPacketIpPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -158,7 +158,7 @@ public open class PacketPeerUDP : PacketPeer() { */ public final fun getPacketPort(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPacketPortPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPacketPortPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -167,7 +167,7 @@ public open class PacketPeerUDP : PacketPeer() { */ public final fun getLocalPort(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLocalPortPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLocalPortPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -179,7 +179,7 @@ public open class PacketPeerUDP : PacketPeer() { */ public final fun setDestAddress(host: String, port: Int): Error { TransferContext.writeArguments(STRING to host, LONG to port.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setDestAddressPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.setDestAddressPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -191,7 +191,7 @@ public open class PacketPeerUDP : PacketPeer() { */ public final fun setBroadcastEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setBroadcastEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBroadcastEnabledPtr, NIL) } /** @@ -204,7 +204,7 @@ public open class PacketPeerUDP : PacketPeer() { */ public final fun joinMulticastGroup(multicastAddress: String, interfaceName: String): Error { TransferContext.writeArguments(STRING to multicastAddress, STRING to interfaceName) - TransferContext.callMethod(rawPtr, MethodBindings.joinMulticastGroupPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.joinMulticastGroupPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -214,7 +214,7 @@ public open class PacketPeerUDP : PacketPeer() { */ public final fun leaveMulticastGroup(multicastAddress: String, interfaceName: String): Error { TransferContext.writeArguments(STRING to multicastAddress, STRING to interfaceName) - TransferContext.callMethod(rawPtr, MethodBindings.leaveMulticastGroupPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.leaveMulticastGroupPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PanoramaSkyMaterial.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PanoramaSkyMaterial.kt index fd9ec6cc5c..ac6992d967 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PanoramaSkyMaterial.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PanoramaSkyMaterial.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -73,34 +73,34 @@ public open class PanoramaSkyMaterial : Material() { public final fun setPanorama(texture: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setPanoramaPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPanoramaPtr, NIL) } public final fun getPanorama(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPanoramaPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getPanoramaPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } public final fun setFilteringEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setFilteringEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFilteringEnabledPtr, NIL) } public final fun isFilteringEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isFilteringEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isFilteringEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setEnergyMultiplier(multiplier: Float): Unit { TransferContext.writeArguments(DOUBLE to multiplier.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setEnergyMultiplierPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnergyMultiplierPtr, NIL) } public final fun getEnergyMultiplier(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnergyMultiplierPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getEnergyMultiplierPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Parallax2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Parallax2D.kt index 714640ed96..6acf66cb24 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Parallax2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Parallax2D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG @@ -16,7 +17,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -353,111 +353,111 @@ public open class Parallax2D : Node2D() { public final fun setScrollScale(scale: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to scale) - TransferContext.callMethod(rawPtr, MethodBindings.setScrollScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setScrollScalePtr, NIL) } public final fun getScrollScale(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScrollScalePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getScrollScalePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setRepeatSize(repeatSize: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to repeatSize) - TransferContext.callMethod(rawPtr, MethodBindings.setRepeatSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRepeatSizePtr, NIL) } public final fun getRepeatSize(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRepeatSizePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getRepeatSizePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setRepeatTimes(repeatTimes: Int): Unit { TransferContext.writeArguments(LONG to repeatTimes.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setRepeatTimesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRepeatTimesPtr, NIL) } public final fun getRepeatTimes(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRepeatTimesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getRepeatTimesPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setAutoscroll(autoscroll: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to autoscroll) - TransferContext.callMethod(rawPtr, MethodBindings.setAutoscrollPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutoscrollPtr, NIL) } public final fun getAutoscroll(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAutoscrollPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getAutoscrollPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setScrollOffset(offset: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.setScrollOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setScrollOffsetPtr, NIL) } public final fun getScrollOffset(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScrollOffsetPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getScrollOffsetPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setScreenOffset(offset: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.setScreenOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setScreenOffsetPtr, NIL) } public final fun getScreenOffset(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScreenOffsetPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getScreenOffsetPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setLimitBegin(offset: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.setLimitBeginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLimitBeginPtr, NIL) } public final fun getLimitBegin(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLimitBeginPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getLimitBeginPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setLimitEnd(offset: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.setLimitEndPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLimitEndPtr, NIL) } public final fun getLimitEnd(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLimitEndPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getLimitEndPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setFollowViewport(follow: Boolean): Unit { TransferContext.writeArguments(BOOL to follow) - TransferContext.callMethod(rawPtr, MethodBindings.setFollowViewportPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFollowViewportPtr, NIL) } public final fun getFollowViewport(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFollowViewportPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getFollowViewportPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setIgnoreCameraScroll(ignore: Boolean): Unit { TransferContext.writeArguments(BOOL to ignore) - TransferContext.callMethod(rawPtr, MethodBindings.setIgnoreCameraScrollPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIgnoreCameraScrollPtr, NIL) } public final fun isIgnoreCameraScroll(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isIgnoreCameraScrollPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isIgnoreCameraScrollPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ParallaxBackground.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ParallaxBackground.kt index 9085e3aeb9..ba997ac004 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ParallaxBackground.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ParallaxBackground.kt @@ -9,13 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -240,67 +240,67 @@ public open class ParallaxBackground : CanvasLayer() { public final fun setScrollOffset(offset: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.setScrollOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setScrollOffsetPtr, NIL) } public final fun getScrollOffset(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScrollOffsetPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getScrollOffsetPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setScrollBaseOffset(offset: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.setScrollBaseOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setScrollBaseOffsetPtr, NIL) } public final fun getScrollBaseOffset(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScrollBaseOffsetPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getScrollBaseOffsetPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setScrollBaseScale(scale: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to scale) - TransferContext.callMethod(rawPtr, MethodBindings.setScrollBaseScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setScrollBaseScalePtr, NIL) } public final fun getScrollBaseScale(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScrollBaseScalePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getScrollBaseScalePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setLimitBegin(offset: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.setLimitBeginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLimitBeginPtr, NIL) } public final fun getLimitBegin(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLimitBeginPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getLimitBeginPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setLimitEnd(offset: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.setLimitEndPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLimitEndPtr, NIL) } public final fun getLimitEnd(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLimitEndPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getLimitEndPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setIgnoreCameraZoom(ignore: Boolean): Unit { TransferContext.writeArguments(BOOL to ignore) - TransferContext.callMethod(rawPtr, MethodBindings.setIgnoreCameraZoomPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIgnoreCameraZoomPtr, NIL) } public final fun isIgnoreCameraZoom(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isIgnoreCameraZoomPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isIgnoreCameraZoomPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ParallaxLayer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ParallaxLayer.kt index dda54fdea4..9e84eac7fa 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ParallaxLayer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ParallaxLayer.kt @@ -9,12 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -175,34 +175,34 @@ public open class ParallaxLayer : Node2D() { public final fun setMotionScale(scale: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to scale) - TransferContext.callMethod(rawPtr, MethodBindings.setMotionScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMotionScalePtr, NIL) } public final fun getMotionScale(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMotionScalePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getMotionScalePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setMotionOffset(offset: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.setMotionOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMotionOffsetPtr, NIL) } public final fun getMotionOffset(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMotionOffsetPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getMotionOffsetPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setMirroring(mirror: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to mirror) - TransferContext.callMethod(rawPtr, MethodBindings.setMirroringPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMirroringPtr, NIL) } public final fun getMirroring(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMirroringPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getMirroringPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ParticleProcessMaterial.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ParticleProcessMaterial.kt index 1b49918108..64b43bdf95 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ParticleProcessMaterial.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ParticleProcessMaterial.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -22,7 +23,6 @@ import godot.core.VariantParser.VECTOR3 import godot.core.Vector2 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -1983,45 +1983,45 @@ public open class ParticleProcessMaterial : Material() { public final fun setDirection(degrees: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to degrees) - TransferContext.callMethod(rawPtr, MethodBindings.setDirectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDirectionPtr, NIL) } public final fun getDirection(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDirectionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getDirectionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setInheritVelocityRatio(ratio: Double): Unit { TransferContext.writeArguments(DOUBLE to ratio) - TransferContext.callMethod(rawPtr, MethodBindings.setInheritVelocityRatioPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInheritVelocityRatioPtr, NIL) } public final fun getInheritVelocityRatio(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInheritVelocityRatioPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getInheritVelocityRatioPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun setSpread(degrees: Float): Unit { TransferContext.writeArguments(DOUBLE to degrees.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSpreadPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSpreadPtr, NIL) } public final fun getSpread(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSpreadPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSpreadPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setFlatness(amount: Float): Unit { TransferContext.writeArguments(DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFlatnessPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFlatnessPtr, NIL) } public final fun getFlatness(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFlatnessPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFlatnessPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -2032,7 +2032,7 @@ public open class ParticleProcessMaterial : Material() { */ public final fun setParam(`param`: Parameter, `value`: Vector2): Unit { TransferContext.writeArguments(LONG to param.id, VECTOR2 to value) - TransferContext.callMethod(rawPtr, MethodBindings.setParamPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setParamPtr, NIL) } /** @@ -2042,7 +2042,7 @@ public open class ParticleProcessMaterial : Material() { */ public final fun getParam(`param`: Parameter): Vector2 { TransferContext.writeArguments(LONG to param.id) - TransferContext.callMethod(rawPtr, MethodBindings.getParamPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getParamPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -2051,7 +2051,7 @@ public open class ParticleProcessMaterial : Material() { */ public final fun setParamMin(`param`: Parameter, `value`: Float): Unit { TransferContext.writeArguments(LONG to param.id, DOUBLE to value.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setParamMinPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setParamMinPtr, NIL) } /** @@ -2059,7 +2059,7 @@ public open class ParticleProcessMaterial : Material() { */ public final fun getParamMin(`param`: Parameter): Float { TransferContext.writeArguments(LONG to param.id) - TransferContext.callMethod(rawPtr, MethodBindings.getParamMinPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getParamMinPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -2068,7 +2068,7 @@ public open class ParticleProcessMaterial : Material() { */ public final fun setParamMax(`param`: Parameter, `value`: Float): Unit { TransferContext.writeArguments(LONG to param.id, DOUBLE to value.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setParamMaxPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setParamMaxPtr, NIL) } /** @@ -2076,7 +2076,7 @@ public open class ParticleProcessMaterial : Material() { */ public final fun getParamMax(`param`: Parameter): Float { TransferContext.writeArguments(LONG to param.id) - TransferContext.callMethod(rawPtr, MethodBindings.getParamMaxPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getParamMaxPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -2085,7 +2085,7 @@ public open class ParticleProcessMaterial : Material() { */ public final fun setParamTexture(`param`: Parameter, texture: Texture2D?): Unit { TransferContext.writeArguments(LONG to param.id, OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setParamTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setParamTexturePtr, NIL) } /** @@ -2093,73 +2093,73 @@ public open class ParticleProcessMaterial : Material() { */ public final fun getParamTexture(`param`: Parameter): Texture2D? { TransferContext.writeArguments(LONG to param.id) - TransferContext.callMethod(rawPtr, MethodBindings.getParamTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getParamTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } public final fun setColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColorPtr, NIL) } public final fun getColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setColorRamp(ramp: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to ramp) - TransferContext.callMethod(rawPtr, MethodBindings.setColorRampPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColorRampPtr, NIL) } public final fun getColorRamp(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColorRampPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getColorRampPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } public final fun setAlphaCurve(curve: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to curve) - TransferContext.callMethod(rawPtr, MethodBindings.setAlphaCurvePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAlphaCurvePtr, NIL) } public final fun getAlphaCurve(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAlphaCurvePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getAlphaCurvePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } public final fun setEmissionCurve(curve: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to curve) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionCurvePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionCurvePtr, NIL) } public final fun getEmissionCurve(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmissionCurvePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getEmissionCurvePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } public final fun setColorInitialRamp(ramp: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to ramp) - TransferContext.callMethod(rawPtr, MethodBindings.setColorInitialRampPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColorInitialRampPtr, NIL) } public final fun getColorInitialRamp(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColorInitialRampPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getColorInitialRampPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } public final fun setVelocityLimitCurve(curve: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to curve) - TransferContext.callMethod(rawPtr, MethodBindings.setVelocityLimitCurvePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVelocityLimitCurvePtr, NIL) } public final fun getVelocityLimitCurve(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVelocityLimitCurvePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getVelocityLimitCurvePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } @@ -2168,7 +2168,7 @@ public open class ParticleProcessMaterial : Material() { */ public final fun setParticleFlag(particleFlag: ParticleFlags, enable: Boolean): Unit { TransferContext.writeArguments(LONG to particleFlag.id, BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setParticleFlagPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setParticleFlagPtr, NIL) } /** @@ -2176,348 +2176,348 @@ public open class ParticleProcessMaterial : Material() { */ public final fun getParticleFlag(particleFlag: ParticleFlags): Boolean { TransferContext.writeArguments(LONG to particleFlag.id) - TransferContext.callMethod(rawPtr, MethodBindings.getParticleFlagPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getParticleFlagPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setVelocityPivot(pivot: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to pivot) - TransferContext.callMethod(rawPtr, MethodBindings.setVelocityPivotPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVelocityPivotPtr, NIL) } public final fun getVelocityPivot(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVelocityPivotPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getVelocityPivotPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setEmissionShape(shape: EmissionShape): Unit { TransferContext.writeArguments(LONG to shape.id) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionShapePtr, NIL) } public final fun getEmissionShape(): EmissionShape { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmissionShapePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getEmissionShapePtr, LONG) return ParticleProcessMaterial.EmissionShape.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setEmissionSphereRadius(radius: Float): Unit { TransferContext.writeArguments(DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionSphereRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionSphereRadiusPtr, NIL) } public final fun getEmissionSphereRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmissionSphereRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getEmissionSphereRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setEmissionBoxExtents(extents: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to extents) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionBoxExtentsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionBoxExtentsPtr, NIL) } public final fun getEmissionBoxExtents(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmissionBoxExtentsPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getEmissionBoxExtentsPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setEmissionPointTexture(texture: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionPointTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionPointTexturePtr, NIL) } public final fun getEmissionPointTexture(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmissionPointTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getEmissionPointTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } public final fun setEmissionNormalTexture(texture: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionNormalTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionNormalTexturePtr, NIL) } public final fun getEmissionNormalTexture(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmissionNormalTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getEmissionNormalTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } public final fun setEmissionColorTexture(texture: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionColorTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionColorTexturePtr, NIL) } public final fun getEmissionColorTexture(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmissionColorTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getEmissionColorTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } public final fun setEmissionPointCount(pointCount: Int): Unit { TransferContext.writeArguments(LONG to pointCount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionPointCountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionPointCountPtr, NIL) } public final fun getEmissionPointCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmissionPointCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getEmissionPointCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setEmissionRingAxis(axis: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to axis) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionRingAxisPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionRingAxisPtr, NIL) } public final fun getEmissionRingAxis(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmissionRingAxisPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getEmissionRingAxisPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setEmissionRingHeight(height: Float): Unit { TransferContext.writeArguments(DOUBLE to height.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionRingHeightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionRingHeightPtr, NIL) } public final fun getEmissionRingHeight(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmissionRingHeightPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getEmissionRingHeightPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setEmissionRingRadius(radius: Float): Unit { TransferContext.writeArguments(DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionRingRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionRingRadiusPtr, NIL) } public final fun getEmissionRingRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmissionRingRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getEmissionRingRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setEmissionRingInnerRadius(innerRadius: Float): Unit { TransferContext.writeArguments(DOUBLE to innerRadius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionRingInnerRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionRingInnerRadiusPtr, NIL) } public final fun getEmissionRingInnerRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmissionRingInnerRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getEmissionRingInnerRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setEmissionShapeOffset(emissionShapeOffset: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to emissionShapeOffset) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionShapeOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionShapeOffsetPtr, NIL) } public final fun getEmissionShapeOffset(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmissionShapeOffsetPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getEmissionShapeOffsetPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setEmissionShapeScale(emissionShapeScale: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to emissionShapeScale) - TransferContext.callMethod(rawPtr, MethodBindings.setEmissionShapeScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmissionShapeScalePtr, NIL) } public final fun getEmissionShapeScale(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmissionShapeScalePtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getEmissionShapeScalePtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun getTurbulenceEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTurbulenceEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getTurbulenceEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setTurbulenceEnabled(turbulenceEnabled: Boolean): Unit { TransferContext.writeArguments(BOOL to turbulenceEnabled) - TransferContext.callMethod(rawPtr, MethodBindings.setTurbulenceEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTurbulenceEnabledPtr, NIL) } public final fun getTurbulenceNoiseStrength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTurbulenceNoiseStrengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTurbulenceNoiseStrengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setTurbulenceNoiseStrength(turbulenceNoiseStrength: Float): Unit { TransferContext.writeArguments(DOUBLE to turbulenceNoiseStrength.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTurbulenceNoiseStrengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTurbulenceNoiseStrengthPtr, NIL) } public final fun getTurbulenceNoiseScale(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTurbulenceNoiseScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTurbulenceNoiseScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setTurbulenceNoiseScale(turbulenceNoiseScale: Float): Unit { TransferContext.writeArguments(DOUBLE to turbulenceNoiseScale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTurbulenceNoiseScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTurbulenceNoiseScalePtr, NIL) } public final fun getTurbulenceNoiseSpeedRandom(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTurbulenceNoiseSpeedRandomPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTurbulenceNoiseSpeedRandomPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setTurbulenceNoiseSpeedRandom(turbulenceNoiseSpeedRandom: Float): Unit { TransferContext.writeArguments(DOUBLE to turbulenceNoiseSpeedRandom.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTurbulenceNoiseSpeedRandomPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTurbulenceNoiseSpeedRandomPtr, NIL) } public final fun getTurbulenceNoiseSpeed(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTurbulenceNoiseSpeedPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getTurbulenceNoiseSpeedPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setTurbulenceNoiseSpeed(turbulenceNoiseSpeed: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to turbulenceNoiseSpeed) - TransferContext.callMethod(rawPtr, MethodBindings.setTurbulenceNoiseSpeedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTurbulenceNoiseSpeedPtr, NIL) } public final fun getGravity(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGravityPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getGravityPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setGravity(accelVec: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to accelVec) - TransferContext.callMethod(rawPtr, MethodBindings.setGravityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGravityPtr, NIL) } public final fun setLifetimeRandomness(randomness: Double): Unit { TransferContext.writeArguments(DOUBLE to randomness) - TransferContext.callMethod(rawPtr, MethodBindings.setLifetimeRandomnessPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLifetimeRandomnessPtr, NIL) } public final fun getLifetimeRandomness(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLifetimeRandomnessPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLifetimeRandomnessPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun getSubEmitterMode(): SubEmitterMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSubEmitterModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSubEmitterModePtr, LONG) return ParticleProcessMaterial.SubEmitterMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setSubEmitterMode(mode: SubEmitterMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setSubEmitterModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSubEmitterModePtr, NIL) } public final fun getSubEmitterFrequency(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSubEmitterFrequencyPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSubEmitterFrequencyPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun setSubEmitterFrequency(hz: Double): Unit { TransferContext.writeArguments(DOUBLE to hz) - TransferContext.callMethod(rawPtr, MethodBindings.setSubEmitterFrequencyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSubEmitterFrequencyPtr, NIL) } public final fun getSubEmitterAmountAtEnd(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSubEmitterAmountAtEndPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSubEmitterAmountAtEndPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setSubEmitterAmountAtEnd(amount: Int): Unit { TransferContext.writeArguments(LONG to amount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSubEmitterAmountAtEndPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSubEmitterAmountAtEndPtr, NIL) } public final fun getSubEmitterAmountAtCollision(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSubEmitterAmountAtCollisionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSubEmitterAmountAtCollisionPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setSubEmitterAmountAtCollision(amount: Int): Unit { TransferContext.writeArguments(LONG to amount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSubEmitterAmountAtCollisionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSubEmitterAmountAtCollisionPtr, NIL) } public final fun getSubEmitterKeepVelocity(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSubEmitterKeepVelocityPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getSubEmitterKeepVelocityPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSubEmitterKeepVelocity(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setSubEmitterKeepVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSubEmitterKeepVelocityPtr, NIL) } public final fun setAttractorInteractionEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setAttractorInteractionEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAttractorInteractionEnabledPtr, NIL) } public final fun isAttractorInteractionEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isAttractorInteractionEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isAttractorInteractionEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCollisionMode(mode: CollisionMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionModePtr, NIL) } public final fun getCollisionMode(): CollisionMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCollisionModePtr, LONG) return ParticleProcessMaterial.CollisionMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setCollisionUseScale(radius: Boolean): Unit { TransferContext.writeArguments(BOOL to radius) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionUseScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionUseScalePtr, NIL) } public final fun isCollisionUsingScale(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCollisionUsingScalePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCollisionUsingScalePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCollisionFriction(friction: Float): Unit { TransferContext.writeArguments(DOUBLE to friction.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionFrictionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionFrictionPtr, NIL) } public final fun getCollisionFriction(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionFrictionPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCollisionFrictionPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setCollisionBounce(bounce: Float): Unit { TransferContext.writeArguments(DOUBLE to bounce.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionBouncePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionBouncePtr, NIL) } public final fun getCollisionBounce(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionBouncePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCollisionBouncePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Path2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Path2D.kt index 1c67fa2d85..3a709ca305 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Path2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Path2D.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -42,12 +42,12 @@ public open class Path2D : Node2D() { public final fun setCurve(curve: Curve2D?): Unit { TransferContext.writeArguments(OBJECT to curve) - TransferContext.callMethod(rawPtr, MethodBindings.setCurvePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCurvePtr, NIL) } public final fun getCurve(): Curve2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCurvePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getCurvePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Curve2D?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Path3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Path3D.kt index d460a381e7..fb099a5380 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Path3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Path3D.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -48,12 +48,12 @@ public open class Path3D : Node3D() { public final fun setCurve(curve: Curve3D?): Unit { TransferContext.writeArguments(OBJECT to curve) - TransferContext.callMethod(rawPtr, MethodBindings.setCurvePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCurvePtr, NIL) } public final fun getCurve(): Curve3D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCurvePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getCurvePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Curve3D?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PathFollow2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PathFollow2D.kt index 0bb5767ae9..914bcbebc2 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PathFollow2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PathFollow2D.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -126,78 +126,78 @@ public open class PathFollow2D : Node2D() { public final fun setProgress(progress: Float): Unit { TransferContext.writeArguments(DOUBLE to progress.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setProgressPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setProgressPtr, NIL) } public final fun getProgress(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getProgressPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getProgressPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setHOffset(hOffset: Float): Unit { TransferContext.writeArguments(DOUBLE to hOffset.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setHOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHOffsetPtr, NIL) } public final fun getHOffset(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHOffsetPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getHOffsetPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVOffset(vOffset: Float): Unit { TransferContext.writeArguments(DOUBLE to vOffset.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVOffsetPtr, NIL) } public final fun getVOffset(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVOffsetPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVOffsetPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setProgressRatio(ratio: Float): Unit { TransferContext.writeArguments(DOUBLE to ratio.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setProgressRatioPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setProgressRatioPtr, NIL) } public final fun getProgressRatio(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getProgressRatioPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getProgressRatioPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setRotates(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setRotatesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRotatesPtr, NIL) } public final fun isRotating(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isRotatingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isRotatingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCubicInterpolation(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setCubicInterpolationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCubicInterpolationPtr, NIL) } public final fun getCubicInterpolation(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCubicInterpolationPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getCubicInterpolationPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setLoop(loop: Boolean): Unit { TransferContext.writeArguments(BOOL to loop) - TransferContext.callMethod(rawPtr, MethodBindings.setLoopPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLoopPtr, NIL) } public final fun hasLoop(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasLoopPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasLoopPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PathFollow3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PathFollow3D.kt index 3015bf840a..068e56c7be 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PathFollow3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PathFollow3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Transform3D import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -15,7 +16,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.TRANSFORM3D import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -153,100 +153,100 @@ public open class PathFollow3D : Node3D() { public final fun setProgress(progress: Float): Unit { TransferContext.writeArguments(DOUBLE to progress.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setProgressPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setProgressPtr, NIL) } public final fun getProgress(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getProgressPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getProgressPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setHOffset(hOffset: Float): Unit { TransferContext.writeArguments(DOUBLE to hOffset.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setHOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHOffsetPtr, NIL) } public final fun getHOffset(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHOffsetPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getHOffsetPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVOffset(vOffset: Float): Unit { TransferContext.writeArguments(DOUBLE to vOffset.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVOffsetPtr, NIL) } public final fun getVOffset(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVOffsetPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVOffsetPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setProgressRatio(ratio: Float): Unit { TransferContext.writeArguments(DOUBLE to ratio.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setProgressRatioPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setProgressRatioPtr, NIL) } public final fun getProgressRatio(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getProgressRatioPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getProgressRatioPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setRotationMode(rotationMode: RotationMode): Unit { TransferContext.writeArguments(LONG to rotationMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setRotationModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRotationModePtr, NIL) } public final fun getRotationMode(): RotationMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRotationModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getRotationModePtr, LONG) return PathFollow3D.RotationMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setCubicInterpolation(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setCubicInterpolationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCubicInterpolationPtr, NIL) } public final fun getCubicInterpolation(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCubicInterpolationPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getCubicInterpolationPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setUseModelFront(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setUseModelFrontPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseModelFrontPtr, NIL) } public final fun isUsingModelFront(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUsingModelFrontPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUsingModelFrontPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setLoop(loop: Boolean): Unit { TransferContext.writeArguments(BOOL to loop) - TransferContext.callMethod(rawPtr, MethodBindings.setLoopPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLoopPtr, NIL) } public final fun hasLoop(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasLoopPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasLoopPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setTiltEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setTiltEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTiltEnabledPtr, NIL) } public final fun isTiltEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isTiltEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isTiltEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Performance.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Performance.kt index 8a0a90ec16..3001298279 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Performance.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Performance.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.StringName import godot.core.TypeManager @@ -20,7 +21,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -69,7 +69,7 @@ public object Performance : Object() { @JvmStatic public final fun getMonitor(monitor: Monitor): Double { TransferContext.writeArguments(LONG to monitor.id) - TransferContext.callMethod(rawPtr, MethodBindings.getMonitorPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMonitorPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -143,7 +143,7 @@ public object Performance : Object() { arguments: VariantArray = godot.core.variantArrayOf(), ): Unit { TransferContext.writeArguments(STRING_NAME to id, CALLABLE to callable, ARRAY to arguments) - TransferContext.callMethod(rawPtr, MethodBindings.addCustomMonitorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addCustomMonitorPtr, NIL) } /** @@ -153,7 +153,7 @@ public object Performance : Object() { @JvmStatic public final fun removeCustomMonitor(id: StringName): Unit { TransferContext.writeArguments(STRING_NAME to id) - TransferContext.callMethod(rawPtr, MethodBindings.removeCustomMonitorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeCustomMonitorPtr, NIL) } /** @@ -162,7 +162,7 @@ public object Performance : Object() { @JvmStatic public final fun hasCustomMonitor(id: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to id) - TransferContext.callMethod(rawPtr, MethodBindings.hasCustomMonitorPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasCustomMonitorPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -173,7 +173,7 @@ public object Performance : Object() { @JvmStatic public final fun getCustomMonitor(id: StringName): Any? { TransferContext.writeArguments(STRING_NAME to id) - TransferContext.callMethod(rawPtr, MethodBindings.getCustomMonitorPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getCustomMonitorPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -184,7 +184,7 @@ public object Performance : Object() { @JvmStatic public final fun getMonitorModificationTime(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMonitorModificationTimePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMonitorModificationTimePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -194,7 +194,7 @@ public object Performance : Object() { @JvmStatic public final fun getCustomMonitorNames(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCustomMonitorNamesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getCustomMonitorNamesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicalBone2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicalBone2D.kt index 9ea976437d..b0c6c2dce6 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicalBone2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicalBone2D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -15,7 +16,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -107,29 +107,29 @@ public open class PhysicalBone2D : RigidBody2D() { */ public final fun getJoint(): Joint2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getJointPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getJointPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Joint2D?) } public final fun getAutoConfigureJoint(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAutoConfigureJointPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getAutoConfigureJointPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAutoConfigureJoint(autoConfigureJoint: Boolean): Unit { TransferContext.writeArguments(BOOL to autoConfigureJoint) - TransferContext.callMethod(rawPtr, MethodBindings.setAutoConfigureJointPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutoConfigureJointPtr, NIL) } public final fun setSimulatePhysics(simulatePhysics: Boolean): Unit { TransferContext.writeArguments(BOOL to simulatePhysics) - TransferContext.callMethod(rawPtr, MethodBindings.setSimulatePhysicsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSimulatePhysicsPtr, NIL) } public final fun getSimulatePhysics(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSimulatePhysicsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getSimulatePhysicsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -139,40 +139,40 @@ public open class PhysicalBone2D : RigidBody2D() { */ public final fun isSimulatingPhysics(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSimulatingPhysicsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSimulatingPhysicsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setBone2dNodepath(nodepath: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to nodepath) - TransferContext.callMethod(rawPtr, MethodBindings.setBone2dNodepathPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBone2dNodepathPtr, NIL) } public final fun getBone2dNodepath(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBone2dNodepathPtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getBone2dNodepathPtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } public final fun setBone2dIndex(boneIndex: Int): Unit { TransferContext.writeArguments(LONG to boneIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setBone2dIndexPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBone2dIndexPtr, NIL) } public final fun getBone2dIndex(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBone2dIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBone2dIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setFollowBoneWhenSimulating(followBone: Boolean): Unit { TransferContext.writeArguments(BOOL to followBone) - TransferContext.callMethod(rawPtr, MethodBindings.setFollowBoneWhenSimulatingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFollowBoneWhenSimulatingPtr, NIL) } public final fun getFollowBoneWhenSimulating(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFollowBoneWhenSimulatingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getFollowBoneWhenSimulatingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicalBone3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicalBone3D.kt index 57bba2209a..7bd796dbc7 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicalBone3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicalBone3D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Transform3D import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -19,7 +20,6 @@ import godot.core.VariantParser.TRANSFORM3D import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -380,206 +380,206 @@ public open class PhysicalBone3D : PhysicsBody3D() { public final fun applyCentralImpulse(impulse: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to impulse) - TransferContext.callMethod(rawPtr, MethodBindings.applyCentralImpulsePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.applyCentralImpulsePtr, NIL) } @JvmOverloads public final fun applyImpulse(impulse: Vector3, position: Vector3 = Vector3(0, 0, 0)): Unit { TransferContext.writeArguments(VECTOR3 to impulse, VECTOR3 to position) - TransferContext.callMethod(rawPtr, MethodBindings.applyImpulsePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.applyImpulsePtr, NIL) } public final fun setJointType(jointType: JointType): Unit { TransferContext.writeArguments(LONG to jointType.id) - TransferContext.callMethod(rawPtr, MethodBindings.setJointTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setJointTypePtr, NIL) } public final fun getJointType(): JointType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getJointTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getJointTypePtr, LONG) return PhysicalBone3D.JointType.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setJointOffset(offset: Transform3D): Unit { TransferContext.writeArguments(TRANSFORM3D to offset) - TransferContext.callMethod(rawPtr, MethodBindings.setJointOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setJointOffsetPtr, NIL) } public final fun getJointOffset(): Transform3D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getJointOffsetPtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.getJointOffsetPtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } public final fun setJointRotation(euler: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to euler) - TransferContext.callMethod(rawPtr, MethodBindings.setJointRotationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setJointRotationPtr, NIL) } public final fun getJointRotation(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getJointRotationPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getJointRotationPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setBodyOffset(offset: Transform3D): Unit { TransferContext.writeArguments(TRANSFORM3D to offset) - TransferContext.callMethod(rawPtr, MethodBindings.setBodyOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBodyOffsetPtr, NIL) } public final fun getBodyOffset(): Transform3D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBodyOffsetPtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.getBodyOffsetPtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } public final fun getSimulatePhysics(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSimulatePhysicsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getSimulatePhysicsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun isSimulatingPhysics(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSimulatingPhysicsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSimulatingPhysicsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun getBoneId(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBoneIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBoneIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setMass(mass: Float): Unit { TransferContext.writeArguments(DOUBLE to mass.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMassPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMassPtr, NIL) } public final fun getMass(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMassPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMassPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setFriction(friction: Float): Unit { TransferContext.writeArguments(DOUBLE to friction.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFrictionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFrictionPtr, NIL) } public final fun getFriction(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFrictionPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFrictionPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setBounce(bounce: Float): Unit { TransferContext.writeArguments(DOUBLE to bounce.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setBouncePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBouncePtr, NIL) } public final fun getBounce(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBouncePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getBouncePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setGravityScale(gravityScale: Float): Unit { TransferContext.writeArguments(DOUBLE to gravityScale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setGravityScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGravityScalePtr, NIL) } public final fun getGravityScale(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGravityScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getGravityScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setLinearDampMode(linearDampMode: DampMode): Unit { TransferContext.writeArguments(LONG to linearDampMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setLinearDampModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLinearDampModePtr, NIL) } public final fun getLinearDampMode(): DampMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLinearDampModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLinearDampModePtr, LONG) return PhysicalBone3D.DampMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setAngularDampMode(angularDampMode: DampMode): Unit { TransferContext.writeArguments(LONG to angularDampMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setAngularDampModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAngularDampModePtr, NIL) } public final fun getAngularDampMode(): DampMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAngularDampModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAngularDampModePtr, LONG) return PhysicalBone3D.DampMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setLinearDamp(linearDamp: Float): Unit { TransferContext.writeArguments(DOUBLE to linearDamp.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setLinearDampPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLinearDampPtr, NIL) } public final fun getLinearDamp(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLinearDampPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLinearDampPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAngularDamp(angularDamp: Float): Unit { TransferContext.writeArguments(DOUBLE to angularDamp.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAngularDampPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAngularDampPtr, NIL) } public final fun getAngularDamp(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAngularDampPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAngularDampPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setLinearVelocity(linearVelocity: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to linearVelocity) - TransferContext.callMethod(rawPtr, MethodBindings.setLinearVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLinearVelocityPtr, NIL) } public final fun getLinearVelocity(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLinearVelocityPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getLinearVelocityPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setAngularVelocity(angularVelocity: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to angularVelocity) - TransferContext.callMethod(rawPtr, MethodBindings.setAngularVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAngularVelocityPtr, NIL) } public final fun getAngularVelocity(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAngularVelocityPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getAngularVelocityPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setUseCustomIntegrator(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setUseCustomIntegratorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseCustomIntegratorPtr, NIL) } public final fun isUsingCustomIntegrator(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUsingCustomIntegratorPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUsingCustomIntegratorPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCanSleep(ableToSleep: Boolean): Unit { TransferContext.writeArguments(BOOL to ableToSleep) - TransferContext.callMethod(rawPtr, MethodBindings.setCanSleepPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCanSleepPtr, NIL) } public final fun isAbleToSleep(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isAbleToSleepPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isAbleToSleepPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicalBoneSimulator3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicalBoneSimulator3D.kt index 03c19d57a2..97043f2566 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicalBoneSimulator3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicalBoneSimulator3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.StringName import godot.core.TypeManager @@ -16,7 +17,6 @@ import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser._RID import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -39,7 +39,7 @@ public open class PhysicalBoneSimulator3D : SkeletonModifier3D() { */ public final fun isSimulatingPhysics(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSimulatingPhysicsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSimulatingPhysicsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -48,7 +48,7 @@ public open class PhysicalBoneSimulator3D : SkeletonModifier3D() { */ public final fun physicalBonesStopSimulation(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.physicalBonesStopSimulationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.physicalBonesStopSimulationPtr, NIL) } /** @@ -61,7 +61,7 @@ public open class PhysicalBoneSimulator3D : SkeletonModifier3D() { public final fun physicalBonesStartSimulation(bones: VariantArray = godot.core.variantArrayOf()): Unit { TransferContext.writeArguments(ARRAY to bones) - TransferContext.callMethod(rawPtr, MethodBindings.physicalBonesStartSimulationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.physicalBonesStartSimulationPtr, NIL) } /** @@ -70,7 +70,7 @@ public open class PhysicalBoneSimulator3D : SkeletonModifier3D() { */ public final fun physicalBonesAddCollisionException(exception: RID): Unit { TransferContext.writeArguments(_RID to exception) - TransferContext.callMethod(rawPtr, MethodBindings.physicalBonesAddCollisionExceptionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.physicalBonesAddCollisionExceptionPtr, NIL) } /** @@ -79,7 +79,7 @@ public open class PhysicalBoneSimulator3D : SkeletonModifier3D() { */ public final fun physicalBonesRemoveCollisionException(exception: RID): Unit { TransferContext.writeArguments(_RID to exception) - TransferContext.callMethod(rawPtr, MethodBindings.physicalBonesRemoveCollisionExceptionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.physicalBonesRemoveCollisionExceptionPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicalSkyMaterial.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicalSkyMaterial.kt index 2e363d45ce..c2ce35d517 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicalSkyMaterial.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicalSkyMaterial.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -17,7 +18,6 @@ import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -256,122 +256,122 @@ public open class PhysicalSkyMaterial : Material() { public final fun setRayleighCoefficient(rayleigh: Float): Unit { TransferContext.writeArguments(DOUBLE to rayleigh.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRayleighCoefficientPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRayleighCoefficientPtr, NIL) } public final fun getRayleighCoefficient(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRayleighCoefficientPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRayleighCoefficientPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setRayleighColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setRayleighColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRayleighColorPtr, NIL) } public final fun getRayleighColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRayleighColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getRayleighColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setMieCoefficient(mie: Float): Unit { TransferContext.writeArguments(DOUBLE to mie.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMieCoefficientPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMieCoefficientPtr, NIL) } public final fun getMieCoefficient(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMieCoefficientPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMieCoefficientPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setMieEccentricity(eccentricity: Float): Unit { TransferContext.writeArguments(DOUBLE to eccentricity.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMieEccentricityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMieEccentricityPtr, NIL) } public final fun getMieEccentricity(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMieEccentricityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMieEccentricityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setMieColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setMieColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMieColorPtr, NIL) } public final fun getMieColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMieColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getMieColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setTurbidity(turbidity: Float): Unit { TransferContext.writeArguments(DOUBLE to turbidity.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTurbidityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTurbidityPtr, NIL) } public final fun getTurbidity(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTurbidityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTurbidityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSunDiskScale(scale: Float): Unit { TransferContext.writeArguments(DOUBLE to scale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSunDiskScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSunDiskScalePtr, NIL) } public final fun getSunDiskScale(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSunDiskScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSunDiskScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setGroundColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setGroundColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGroundColorPtr, NIL) } public final fun getGroundColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGroundColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getGroundColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setEnergyMultiplier(multiplier: Float): Unit { TransferContext.writeArguments(DOUBLE to multiplier.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setEnergyMultiplierPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnergyMultiplierPtr, NIL) } public final fun getEnergyMultiplier(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnergyMultiplierPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getEnergyMultiplierPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setUseDebanding(useDebanding: Boolean): Unit { TransferContext.writeArguments(BOOL to useDebanding) - TransferContext.callMethod(rawPtr, MethodBindings.setUseDebandingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseDebandingPtr, NIL) } public final fun getUseDebanding(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUseDebandingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getUseDebandingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setNightSky(nightSky: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to nightSky) - TransferContext.callMethod(rawPtr, MethodBindings.setNightSkyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNightSkyPtr, NIL) } public final fun getNightSky(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNightSkyPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getNightSkyPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsBody2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsBody2D.kt index 733091a3b0..58a9de5842 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsBody2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsBody2D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Transform2D import godot.core.TypeManager import godot.core.VariantArray @@ -19,7 +20,6 @@ import godot.core.VariantParser.TRANSFORM2D import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Float import kotlin.Int @@ -58,7 +58,7 @@ public open class PhysicsBody2D internal constructor() : CollisionObject2D() { recoveryAsCollision: Boolean = false, ): KinematicCollision2D? { TransferContext.writeArguments(VECTOR2 to motion, BOOL to testOnly, DOUBLE to safeMargin.toDouble(), BOOL to recoveryAsCollision) - TransferContext.callMethod(rawPtr, MethodBindings.moveAndCollidePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.moveAndCollidePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as KinematicCollision2D?) } @@ -84,7 +84,7 @@ public open class PhysicsBody2D internal constructor() : CollisionObject2D() { recoveryAsCollision: Boolean = false, ): Boolean { TransferContext.writeArguments(TRANSFORM2D to from, VECTOR2 to motion, OBJECT to collision, DOUBLE to safeMargin.toDouble(), BOOL to recoveryAsCollision) - TransferContext.callMethod(rawPtr, MethodBindings.testMovePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.testMovePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -94,7 +94,7 @@ public open class PhysicsBody2D internal constructor() : CollisionObject2D() { */ public final fun getGravity(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGravityPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getGravityPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -103,7 +103,7 @@ public open class PhysicsBody2D internal constructor() : CollisionObject2D() { */ public final fun getCollisionExceptions(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionExceptionsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getCollisionExceptionsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -112,7 +112,7 @@ public open class PhysicsBody2D internal constructor() : CollisionObject2D() { */ public final fun addCollisionExceptionWith(body: Node?): Unit { TransferContext.writeArguments(OBJECT to body) - TransferContext.callMethod(rawPtr, MethodBindings.addCollisionExceptionWithPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addCollisionExceptionWithPtr, NIL) } /** @@ -120,7 +120,7 @@ public open class PhysicsBody2D internal constructor() : CollisionObject2D() { */ public final fun removeCollisionExceptionWith(body: Node?): Unit { TransferContext.writeArguments(OBJECT to body) - TransferContext.callMethod(rawPtr, MethodBindings.removeCollisionExceptionWithPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeCollisionExceptionWithPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsBody3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsBody3D.kt index 4f590c5079..6b7a7b626c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsBody3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsBody3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Transform3D import godot.core.TypeManager import godot.core.VariantArray @@ -20,7 +21,6 @@ import godot.core.VariantParser.TRANSFORM3D import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Float import kotlin.Int @@ -130,7 +130,7 @@ public open class PhysicsBody3D internal constructor() : CollisionObject3D() { maxCollisions: Int = 1, ): KinematicCollision3D? { TransferContext.writeArguments(VECTOR3 to motion, BOOL to testOnly, DOUBLE to safeMargin.toDouble(), BOOL to recoveryAsCollision, LONG to maxCollisions.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.moveAndCollidePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.moveAndCollidePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as KinematicCollision3D?) } @@ -158,7 +158,7 @@ public open class PhysicsBody3D internal constructor() : CollisionObject3D() { maxCollisions: Int = 1, ): Boolean { TransferContext.writeArguments(TRANSFORM3D to from, VECTOR3 to motion, OBJECT to collision, DOUBLE to safeMargin.toDouble(), BOOL to recoveryAsCollision, LONG to maxCollisions.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.testMovePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.testMovePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -168,7 +168,7 @@ public open class PhysicsBody3D internal constructor() : CollisionObject3D() { */ public final fun getGravity(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGravityPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getGravityPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -177,7 +177,7 @@ public open class PhysicsBody3D internal constructor() : CollisionObject3D() { */ public final fun setAxisLock(axis: PhysicsServer3D.BodyAxis, lock: Boolean): Unit { TransferContext.writeArguments(LONG to axis.id, BOOL to lock) - TransferContext.callMethod(rawPtr, MethodBindings.setAxisLockPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAxisLockPtr, NIL) } /** @@ -185,7 +185,7 @@ public open class PhysicsBody3D internal constructor() : CollisionObject3D() { */ public final fun getAxisLock(axis: PhysicsServer3D.BodyAxis): Boolean { TransferContext.writeArguments(LONG to axis.id) - TransferContext.callMethod(rawPtr, MethodBindings.getAxisLockPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getAxisLockPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -194,7 +194,7 @@ public open class PhysicsBody3D internal constructor() : CollisionObject3D() { */ public final fun getCollisionExceptions(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionExceptionsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getCollisionExceptionsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -203,7 +203,7 @@ public open class PhysicsBody3D internal constructor() : CollisionObject3D() { */ public final fun addCollisionExceptionWith(body: Node?): Unit { TransferContext.writeArguments(OBJECT to body) - TransferContext.callMethod(rawPtr, MethodBindings.addCollisionExceptionWithPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addCollisionExceptionWithPtr, NIL) } /** @@ -211,7 +211,7 @@ public open class PhysicsBody3D internal constructor() : CollisionObject3D() { */ public final fun removeCollisionExceptionWith(body: Node?): Unit { TransferContext.writeArguments(OBJECT to body) - TransferContext.callMethod(rawPtr, MethodBindings.removeCollisionExceptionWithPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeCollisionExceptionWithPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsDirectBodyState2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsDirectBodyState2D.kt index 8f26a318a5..e27344ceee 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsDirectBodyState2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsDirectBodyState2D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.Transform2D import godot.core.TypeManager @@ -22,7 +23,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -200,76 +200,76 @@ public open class PhysicsDirectBodyState2D internal constructor() : Object() { public final fun getTotalGravity(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTotalGravityPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getTotalGravityPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun getTotalLinearDamp(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTotalLinearDampPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTotalLinearDampPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun getTotalAngularDamp(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTotalAngularDampPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTotalAngularDampPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun getCenterOfMass(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCenterOfMassPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getCenterOfMassPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun getCenterOfMassLocal(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCenterOfMassLocalPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getCenterOfMassLocalPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun getInverseMass(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInverseMassPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getInverseMassPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun getInverseInertia(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInverseInertiaPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getInverseInertiaPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setLinearVelocity(velocity: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to velocity) - TransferContext.callMethod(rawPtr, MethodBindings.setLinearVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLinearVelocityPtr, NIL) } public final fun getLinearVelocity(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLinearVelocityPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getLinearVelocityPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setAngularVelocity(velocity: Float): Unit { TransferContext.writeArguments(DOUBLE to velocity.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAngularVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAngularVelocityPtr, NIL) } public final fun getAngularVelocity(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAngularVelocityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAngularVelocityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setTransform(transform: Transform2D): Unit { TransferContext.writeArguments(TRANSFORM2D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.setTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTransformPtr, NIL) } public final fun getTransform(): Transform2D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTransformPtr, TRANSFORM2D) + TransferContext.callMethod(ptr, MethodBindings.getTransformPtr, TRANSFORM2D) return (TransferContext.readReturnValue(TRANSFORM2D) as Transform2D) } @@ -279,7 +279,7 @@ public open class PhysicsDirectBodyState2D internal constructor() : Object() { */ public final fun getVelocityAtLocalPosition(localPosition: Vector2): Vector2 { TransferContext.writeArguments(VECTOR2 to localPosition) - TransferContext.callMethod(rawPtr, MethodBindings.getVelocityAtLocalPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getVelocityAtLocalPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -292,7 +292,7 @@ public open class PhysicsDirectBodyState2D internal constructor() : Object() { */ public final fun applyCentralImpulse(impulse: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to impulse) - TransferContext.callMethod(rawPtr, MethodBindings.applyCentralImpulsePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.applyCentralImpulsePtr, NIL) } /** @@ -305,7 +305,7 @@ public open class PhysicsDirectBodyState2D internal constructor() : Object() { */ public final fun applyTorqueImpulse(impulse: Float): Unit { TransferContext.writeArguments(DOUBLE to impulse.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.applyTorqueImpulsePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.applyTorqueImpulsePtr, NIL) } /** @@ -318,7 +318,7 @@ public open class PhysicsDirectBodyState2D internal constructor() : Object() { @JvmOverloads public final fun applyImpulse(impulse: Vector2, position: Vector2 = Vector2(0, 0)): Unit { TransferContext.writeArguments(VECTOR2 to impulse, VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.applyImpulsePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.applyImpulsePtr, NIL) } /** @@ -329,7 +329,7 @@ public open class PhysicsDirectBodyState2D internal constructor() : Object() { @JvmOverloads public final fun applyCentralForce(force: Vector2 = Vector2(0, 0)): Unit { TransferContext.writeArguments(VECTOR2 to force) - TransferContext.callMethod(rawPtr, MethodBindings.applyCentralForcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.applyCentralForcePtr, NIL) } /** @@ -340,7 +340,7 @@ public open class PhysicsDirectBodyState2D internal constructor() : Object() { @JvmOverloads public final fun applyForce(force: Vector2, position: Vector2 = Vector2(0, 0)): Unit { TransferContext.writeArguments(VECTOR2 to force, VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.applyForcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.applyForcePtr, NIL) } /** @@ -351,7 +351,7 @@ public open class PhysicsDirectBodyState2D internal constructor() : Object() { */ public final fun applyTorque(torque: Float): Unit { TransferContext.writeArguments(DOUBLE to torque.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.applyTorquePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.applyTorquePtr, NIL) } /** @@ -362,7 +362,7 @@ public open class PhysicsDirectBodyState2D internal constructor() : Object() { @JvmOverloads public final fun addConstantCentralForce(force: Vector2 = Vector2(0, 0)): Unit { TransferContext.writeArguments(VECTOR2 to force) - TransferContext.callMethod(rawPtr, MethodBindings.addConstantCentralForcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addConstantCentralForcePtr, NIL) } /** @@ -373,7 +373,7 @@ public open class PhysicsDirectBodyState2D internal constructor() : Object() { @JvmOverloads public final fun addConstantForce(force: Vector2, position: Vector2 = Vector2(0, 0)): Unit { TransferContext.writeArguments(VECTOR2 to force, VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.addConstantForcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addConstantForcePtr, NIL) } /** @@ -382,7 +382,7 @@ public open class PhysicsDirectBodyState2D internal constructor() : Object() { */ public final fun addConstantTorque(torque: Float): Unit { TransferContext.writeArguments(DOUBLE to torque.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.addConstantTorquePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addConstantTorquePtr, NIL) } /** @@ -391,7 +391,7 @@ public open class PhysicsDirectBodyState2D internal constructor() : Object() { */ public final fun setConstantForce(force: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to force) - TransferContext.callMethod(rawPtr, MethodBindings.setConstantForcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setConstantForcePtr, NIL) } /** @@ -400,7 +400,7 @@ public open class PhysicsDirectBodyState2D internal constructor() : Object() { */ public final fun getConstantForce(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConstantForcePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getConstantForcePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -410,7 +410,7 @@ public open class PhysicsDirectBodyState2D internal constructor() : Object() { */ public final fun setConstantTorque(torque: Float): Unit { TransferContext.writeArguments(DOUBLE to torque.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setConstantTorquePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setConstantTorquePtr, NIL) } /** @@ -419,18 +419,18 @@ public open class PhysicsDirectBodyState2D internal constructor() : Object() { */ public final fun getConstantTorque(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConstantTorquePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getConstantTorquePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSleepState(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setSleepStatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSleepStatePtr, NIL) } public final fun isSleeping(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSleepingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSleepingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -441,7 +441,7 @@ public open class PhysicsDirectBodyState2D internal constructor() : Object() { */ public final fun getContactCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getContactCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getContactCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -450,7 +450,7 @@ public open class PhysicsDirectBodyState2D internal constructor() : Object() { */ public final fun getContactLocalPosition(contactIdx: Int): Vector2 { TransferContext.writeArguments(LONG to contactIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getContactLocalPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getContactLocalPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -459,7 +459,7 @@ public open class PhysicsDirectBodyState2D internal constructor() : Object() { */ public final fun getContactLocalNormal(contactIdx: Int): Vector2 { TransferContext.writeArguments(LONG to contactIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getContactLocalNormalPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getContactLocalNormalPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -468,7 +468,7 @@ public open class PhysicsDirectBodyState2D internal constructor() : Object() { */ public final fun getContactLocalShape(contactIdx: Int): Int { TransferContext.writeArguments(LONG to contactIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getContactLocalShapePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getContactLocalShapePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -477,7 +477,7 @@ public open class PhysicsDirectBodyState2D internal constructor() : Object() { */ public final fun getContactLocalVelocityAtPosition(contactIdx: Int): Vector2 { TransferContext.writeArguments(LONG to contactIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getContactLocalVelocityAtPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getContactLocalVelocityAtPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -486,7 +486,7 @@ public open class PhysicsDirectBodyState2D internal constructor() : Object() { */ public final fun getContactCollider(contactIdx: Int): RID { TransferContext.writeArguments(LONG to contactIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getContactColliderPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getContactColliderPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -495,7 +495,7 @@ public open class PhysicsDirectBodyState2D internal constructor() : Object() { */ public final fun getContactColliderPosition(contactIdx: Int): Vector2 { TransferContext.writeArguments(LONG to contactIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getContactColliderPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getContactColliderPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -504,7 +504,7 @@ public open class PhysicsDirectBodyState2D internal constructor() : Object() { */ public final fun getContactColliderId(contactIdx: Int): Long { TransferContext.writeArguments(LONG to contactIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getContactColliderIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getContactColliderIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -514,7 +514,7 @@ public open class PhysicsDirectBodyState2D internal constructor() : Object() { */ public final fun getContactColliderObject(contactIdx: Int): Object? { TransferContext.writeArguments(LONG to contactIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getContactColliderObjectPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getContactColliderObjectPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Object?) } @@ -523,7 +523,7 @@ public open class PhysicsDirectBodyState2D internal constructor() : Object() { */ public final fun getContactColliderShape(contactIdx: Int): Int { TransferContext.writeArguments(LONG to contactIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getContactColliderShapePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getContactColliderShapePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -532,8 +532,7 @@ public open class PhysicsDirectBodyState2D internal constructor() : Object() { */ public final fun getContactColliderVelocityAtPosition(contactIdx: Int): Vector2 { TransferContext.writeArguments(LONG to contactIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getContactColliderVelocityAtPositionPtr, - VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getContactColliderVelocityAtPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -542,13 +541,13 @@ public open class PhysicsDirectBodyState2D internal constructor() : Object() { */ public final fun getContactImpulse(contactIdx: Int): Vector2 { TransferContext.writeArguments(LONG to contactIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getContactImpulsePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getContactImpulsePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun getStep(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStepPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getStepPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -558,7 +557,7 @@ public open class PhysicsDirectBodyState2D internal constructor() : Object() { */ public final fun integrateForces(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.integrateForcesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.integrateForcesPtr, NIL) } /** @@ -566,7 +565,7 @@ public open class PhysicsDirectBodyState2D internal constructor() : Object() { */ public final fun getSpaceState(): PhysicsDirectSpaceState2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSpaceStatePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getSpaceStatePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as PhysicsDirectSpaceState2D?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsDirectBodyState3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsDirectBodyState3D.kt index f5b8360789..950fe2e98a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsDirectBodyState3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsDirectBodyState3D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Basis import godot.core.RID import godot.core.Transform3D @@ -24,7 +25,6 @@ import godot.core.VariantParser.VECTOR3 import godot.core.VariantParser._RID import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -242,88 +242,88 @@ public open class PhysicsDirectBodyState3D internal constructor() : Object() { public final fun getTotalGravity(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTotalGravityPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getTotalGravityPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun getTotalLinearDamp(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTotalLinearDampPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTotalLinearDampPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun getTotalAngularDamp(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTotalAngularDampPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTotalAngularDampPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun getCenterOfMass(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCenterOfMassPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getCenterOfMassPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun getCenterOfMassLocal(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCenterOfMassLocalPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getCenterOfMassLocalPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun getPrincipalInertiaAxes(): Basis { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPrincipalInertiaAxesPtr, BASIS) + TransferContext.callMethod(ptr, MethodBindings.getPrincipalInertiaAxesPtr, BASIS) return (TransferContext.readReturnValue(BASIS) as Basis) } public final fun getInverseMass(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInverseMassPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getInverseMassPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun getInverseInertia(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInverseInertiaPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getInverseInertiaPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun getInverseInertiaTensor(): Basis { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInverseInertiaTensorPtr, BASIS) + TransferContext.callMethod(ptr, MethodBindings.getInverseInertiaTensorPtr, BASIS) return (TransferContext.readReturnValue(BASIS) as Basis) } public final fun setLinearVelocity(velocity: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to velocity) - TransferContext.callMethod(rawPtr, MethodBindings.setLinearVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLinearVelocityPtr, NIL) } public final fun getLinearVelocity(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLinearVelocityPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getLinearVelocityPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setAngularVelocity(velocity: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to velocity) - TransferContext.callMethod(rawPtr, MethodBindings.setAngularVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAngularVelocityPtr, NIL) } public final fun getAngularVelocity(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAngularVelocityPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getAngularVelocityPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setTransform(transform: Transform3D): Unit { TransferContext.writeArguments(TRANSFORM3D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.setTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTransformPtr, NIL) } public final fun getTransform(): Transform3D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTransformPtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.getTransformPtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } @@ -333,7 +333,7 @@ public open class PhysicsDirectBodyState3D internal constructor() : Object() { */ public final fun getVelocityAtLocalPosition(localPosition: Vector3): Vector3 { TransferContext.writeArguments(VECTOR3 to localPosition) - TransferContext.callMethod(rawPtr, MethodBindings.getVelocityAtLocalPositionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getVelocityAtLocalPositionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -347,7 +347,7 @@ public open class PhysicsDirectBodyState3D internal constructor() : Object() { @JvmOverloads public final fun applyCentralImpulse(impulse: Vector3 = Vector3(0, 0, 0)): Unit { TransferContext.writeArguments(VECTOR3 to impulse) - TransferContext.callMethod(rawPtr, MethodBindings.applyCentralImpulsePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.applyCentralImpulsePtr, NIL) } /** @@ -360,7 +360,7 @@ public open class PhysicsDirectBodyState3D internal constructor() : Object() { @JvmOverloads public final fun applyImpulse(impulse: Vector3, position: Vector3 = Vector3(0, 0, 0)): Unit { TransferContext.writeArguments(VECTOR3 to impulse, VECTOR3 to position) - TransferContext.callMethod(rawPtr, MethodBindings.applyImpulsePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.applyImpulsePtr, NIL) } /** @@ -373,7 +373,7 @@ public open class PhysicsDirectBodyState3D internal constructor() : Object() { */ public final fun applyTorqueImpulse(impulse: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to impulse) - TransferContext.callMethod(rawPtr, MethodBindings.applyTorqueImpulsePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.applyTorqueImpulsePtr, NIL) } /** @@ -384,7 +384,7 @@ public open class PhysicsDirectBodyState3D internal constructor() : Object() { @JvmOverloads public final fun applyCentralForce(force: Vector3 = Vector3(0, 0, 0)): Unit { TransferContext.writeArguments(VECTOR3 to force) - TransferContext.callMethod(rawPtr, MethodBindings.applyCentralForcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.applyCentralForcePtr, NIL) } /** @@ -395,7 +395,7 @@ public open class PhysicsDirectBodyState3D internal constructor() : Object() { @JvmOverloads public final fun applyForce(force: Vector3, position: Vector3 = Vector3(0, 0, 0)): Unit { TransferContext.writeArguments(VECTOR3 to force, VECTOR3 to position) - TransferContext.callMethod(rawPtr, MethodBindings.applyForcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.applyForcePtr, NIL) } /** @@ -406,7 +406,7 @@ public open class PhysicsDirectBodyState3D internal constructor() : Object() { */ public final fun applyTorque(torque: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to torque) - TransferContext.callMethod(rawPtr, MethodBindings.applyTorquePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.applyTorquePtr, NIL) } /** @@ -417,7 +417,7 @@ public open class PhysicsDirectBodyState3D internal constructor() : Object() { @JvmOverloads public final fun addConstantCentralForce(force: Vector3 = Vector3(0, 0, 0)): Unit { TransferContext.writeArguments(VECTOR3 to force) - TransferContext.callMethod(rawPtr, MethodBindings.addConstantCentralForcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addConstantCentralForcePtr, NIL) } /** @@ -428,7 +428,7 @@ public open class PhysicsDirectBodyState3D internal constructor() : Object() { @JvmOverloads public final fun addConstantForce(force: Vector3, position: Vector3 = Vector3(0, 0, 0)): Unit { TransferContext.writeArguments(VECTOR3 to force, VECTOR3 to position) - TransferContext.callMethod(rawPtr, MethodBindings.addConstantForcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addConstantForcePtr, NIL) } /** @@ -437,7 +437,7 @@ public open class PhysicsDirectBodyState3D internal constructor() : Object() { */ public final fun addConstantTorque(torque: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to torque) - TransferContext.callMethod(rawPtr, MethodBindings.addConstantTorquePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addConstantTorquePtr, NIL) } /** @@ -446,7 +446,7 @@ public open class PhysicsDirectBodyState3D internal constructor() : Object() { */ public final fun setConstantForce(force: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to force) - TransferContext.callMethod(rawPtr, MethodBindings.setConstantForcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setConstantForcePtr, NIL) } /** @@ -455,7 +455,7 @@ public open class PhysicsDirectBodyState3D internal constructor() : Object() { */ public final fun getConstantForce(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConstantForcePtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getConstantForcePtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -465,7 +465,7 @@ public open class PhysicsDirectBodyState3D internal constructor() : Object() { */ public final fun setConstantTorque(torque: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to torque) - TransferContext.callMethod(rawPtr, MethodBindings.setConstantTorquePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setConstantTorquePtr, NIL) } /** @@ -474,18 +474,18 @@ public open class PhysicsDirectBodyState3D internal constructor() : Object() { */ public final fun getConstantTorque(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConstantTorquePtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getConstantTorquePtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setSleepState(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setSleepStatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSleepStatePtr, NIL) } public final fun isSleeping(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSleepingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSleepingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -496,7 +496,7 @@ public open class PhysicsDirectBodyState3D internal constructor() : Object() { */ public final fun getContactCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getContactCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getContactCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -505,7 +505,7 @@ public open class PhysicsDirectBodyState3D internal constructor() : Object() { */ public final fun getContactLocalPosition(contactIdx: Int): Vector3 { TransferContext.writeArguments(LONG to contactIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getContactLocalPositionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getContactLocalPositionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -514,7 +514,7 @@ public open class PhysicsDirectBodyState3D internal constructor() : Object() { */ public final fun getContactLocalNormal(contactIdx: Int): Vector3 { TransferContext.writeArguments(LONG to contactIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getContactLocalNormalPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getContactLocalNormalPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -523,7 +523,7 @@ public open class PhysicsDirectBodyState3D internal constructor() : Object() { */ public final fun getContactImpulse(contactIdx: Int): Vector3 { TransferContext.writeArguments(LONG to contactIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getContactImpulsePtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getContactImpulsePtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -532,7 +532,7 @@ public open class PhysicsDirectBodyState3D internal constructor() : Object() { */ public final fun getContactLocalShape(contactIdx: Int): Int { TransferContext.writeArguments(LONG to contactIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getContactLocalShapePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getContactLocalShapePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -541,7 +541,7 @@ public open class PhysicsDirectBodyState3D internal constructor() : Object() { */ public final fun getContactLocalVelocityAtPosition(contactIdx: Int): Vector3 { TransferContext.writeArguments(LONG to contactIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getContactLocalVelocityAtPositionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getContactLocalVelocityAtPositionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -550,7 +550,7 @@ public open class PhysicsDirectBodyState3D internal constructor() : Object() { */ public final fun getContactCollider(contactIdx: Int): RID { TransferContext.writeArguments(LONG to contactIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getContactColliderPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getContactColliderPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -559,7 +559,7 @@ public open class PhysicsDirectBodyState3D internal constructor() : Object() { */ public final fun getContactColliderPosition(contactIdx: Int): Vector3 { TransferContext.writeArguments(LONG to contactIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getContactColliderPositionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getContactColliderPositionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -568,7 +568,7 @@ public open class PhysicsDirectBodyState3D internal constructor() : Object() { */ public final fun getContactColliderId(contactIdx: Int): Long { TransferContext.writeArguments(LONG to contactIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getContactColliderIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getContactColliderIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -577,7 +577,7 @@ public open class PhysicsDirectBodyState3D internal constructor() : Object() { */ public final fun getContactColliderObject(contactIdx: Int): Object? { TransferContext.writeArguments(LONG to contactIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getContactColliderObjectPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getContactColliderObjectPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Object?) } @@ -586,7 +586,7 @@ public open class PhysicsDirectBodyState3D internal constructor() : Object() { */ public final fun getContactColliderShape(contactIdx: Int): Int { TransferContext.writeArguments(LONG to contactIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getContactColliderShapePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getContactColliderShapePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -595,14 +595,13 @@ public open class PhysicsDirectBodyState3D internal constructor() : Object() { */ public final fun getContactColliderVelocityAtPosition(contactIdx: Int): Vector3 { TransferContext.writeArguments(LONG to contactIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getContactColliderVelocityAtPositionPtr, - VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getContactColliderVelocityAtPositionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun getStep(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStepPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getStepPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -612,7 +611,7 @@ public open class PhysicsDirectBodyState3D internal constructor() : Object() { */ public final fun integrateForces(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.integrateForcesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.integrateForcesPtr, NIL) } /** @@ -620,7 +619,7 @@ public open class PhysicsDirectBodyState3D internal constructor() : Object() { */ public final fun getSpaceState(): PhysicsDirectSpaceState3D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSpaceStatePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getSpaceStatePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as PhysicsDirectSpaceState3D?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsDirectSpaceState2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsDirectSpaceState2D.kt index 6f7d5e4896..9517274570 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsDirectSpaceState2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsDirectSpaceState2D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedFloat32Array import godot.core.TypeManager @@ -18,7 +19,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_FLOAT_32_ARRAY import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Int import kotlin.Suppress @@ -52,7 +52,7 @@ public open class PhysicsDirectSpaceState2D internal constructor() : Object() { public final fun intersectPoint(parameters: PhysicsPointQueryParameters2D?, maxResults: Int = 32): VariantArray> { TransferContext.writeArguments(OBJECT to parameters, LONG to maxResults.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.intersectPointPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.intersectPointPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray>) } @@ -70,7 +70,7 @@ public open class PhysicsDirectSpaceState2D internal constructor() : Object() { */ public final fun intersectRay(parameters: PhysicsRayQueryParameters2D?): Dictionary { TransferContext.writeArguments(OBJECT to parameters) - TransferContext.callMethod(rawPtr, MethodBindings.intersectRayPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.intersectRayPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -89,7 +89,7 @@ public open class PhysicsDirectSpaceState2D internal constructor() : Object() { public final fun intersectShape(parameters: PhysicsShapeQueryParameters2D?, maxResults: Int = 32): VariantArray> { TransferContext.writeArguments(OBJECT to parameters, LONG to maxResults.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.intersectShapePtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.intersectShapePtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray>) } @@ -105,7 +105,7 @@ public open class PhysicsDirectSpaceState2D internal constructor() : Object() { */ public final fun castMotion(parameters: PhysicsShapeQueryParameters2D?): PackedFloat32Array { TransferContext.writeArguments(OBJECT to parameters) - TransferContext.callMethod(rawPtr, MethodBindings.castMotionPtr, PACKED_FLOAT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.castMotionPtr, PACKED_FLOAT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_FLOAT_32_ARRAY) as PackedFloat32Array) } @@ -122,7 +122,7 @@ public open class PhysicsDirectSpaceState2D internal constructor() : Object() { public final fun collideShape(parameters: PhysicsShapeQueryParameters2D?, maxResults: Int = 32): VariantArray { TransferContext.writeArguments(OBJECT to parameters, LONG to maxResults.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.collideShapePtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.collideShapePtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -142,7 +142,7 @@ public open class PhysicsDirectSpaceState2D internal constructor() : Object() { */ public final fun getRestInfo(parameters: PhysicsShapeQueryParameters2D?): Dictionary { TransferContext.writeArguments(OBJECT to parameters) - TransferContext.callMethod(rawPtr, MethodBindings.getRestInfoPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getRestInfoPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsDirectSpaceState2DExtension.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsDirectSpaceState2DExtension.kt index 851622893b..aeef25b0f7 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsDirectSpaceState2DExtension.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsDirectSpaceState2DExtension.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser._RID import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -33,7 +33,7 @@ public open class PhysicsDirectSpaceState2DExtension : PhysicsDirectSpaceState2D public final fun isBodyExcludedFromQuery(body: RID): Boolean { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.isBodyExcludedFromQueryPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isBodyExcludedFromQueryPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsDirectSpaceState3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsDirectSpaceState3D.kt index 932763ad37..9bad311fed 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsDirectSpaceState3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsDirectSpaceState3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedFloat32Array import godot.core.TypeManager @@ -18,7 +19,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_FLOAT_32_ARRAY import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Int import kotlin.Suppress @@ -50,7 +50,7 @@ public open class PhysicsDirectSpaceState3D internal constructor() : Object() { public final fun intersectPoint(parameters: PhysicsPointQueryParameters3D?, maxResults: Int = 32): VariantArray> { TransferContext.writeArguments(OBJECT to parameters, LONG to maxResults.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.intersectPointPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.intersectPointPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray>) } @@ -71,7 +71,7 @@ public open class PhysicsDirectSpaceState3D internal constructor() : Object() { */ public final fun intersectRay(parameters: PhysicsRayQueryParameters3D?): Dictionary { TransferContext.writeArguments(OBJECT to parameters) - TransferContext.callMethod(rawPtr, MethodBindings.intersectRayPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.intersectRayPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -91,7 +91,7 @@ public open class PhysicsDirectSpaceState3D internal constructor() : Object() { public final fun intersectShape(parameters: PhysicsShapeQueryParameters3D?, maxResults: Int = 32): VariantArray> { TransferContext.writeArguments(OBJECT to parameters, LONG to maxResults.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.intersectShapePtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.intersectShapePtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray>) } @@ -107,7 +107,7 @@ public open class PhysicsDirectSpaceState3D internal constructor() : Object() { */ public final fun castMotion(parameters: PhysicsShapeQueryParameters3D?): PackedFloat32Array { TransferContext.writeArguments(OBJECT to parameters) - TransferContext.callMethod(rawPtr, MethodBindings.castMotionPtr, PACKED_FLOAT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.castMotionPtr, PACKED_FLOAT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_FLOAT_32_ARRAY) as PackedFloat32Array) } @@ -125,7 +125,7 @@ public open class PhysicsDirectSpaceState3D internal constructor() : Object() { public final fun collideShape(parameters: PhysicsShapeQueryParameters3D?, maxResults: Int = 32): VariantArray { TransferContext.writeArguments(OBJECT to parameters, LONG to maxResults.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.collideShapePtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.collideShapePtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -145,7 +145,7 @@ public open class PhysicsDirectSpaceState3D internal constructor() : Object() { */ public final fun getRestInfo(parameters: PhysicsShapeQueryParameters3D?): Dictionary { TransferContext.writeArguments(OBJECT to parameters) - TransferContext.callMethod(rawPtr, MethodBindings.getRestInfoPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getRestInfoPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsDirectSpaceState3DExtension.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsDirectSpaceState3DExtension.kt index d53d934713..2185fdca2b 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsDirectSpaceState3DExtension.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsDirectSpaceState3DExtension.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser._RID import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.NotImplementedError @@ -39,7 +39,7 @@ public open class PhysicsDirectSpaceState3DExtension : PhysicsDirectSpaceState3D public final fun isBodyExcludedFromQuery(body: RID): Boolean { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.isBodyExcludedFromQueryPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isBodyExcludedFromQueryPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsMaterial.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsMaterial.kt index 362ca8ab6c..e3eae1f3d4 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsMaterial.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsMaterial.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -85,45 +85,45 @@ public open class PhysicsMaterial : Resource() { public final fun setFriction(friction: Float): Unit { TransferContext.writeArguments(DOUBLE to friction.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFrictionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFrictionPtr, NIL) } public final fun getFriction(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFrictionPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFrictionPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setRough(rough: Boolean): Unit { TransferContext.writeArguments(BOOL to rough) - TransferContext.callMethod(rawPtr, MethodBindings.setRoughPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRoughPtr, NIL) } public final fun isRough(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isRoughPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isRoughPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setBounce(bounce: Float): Unit { TransferContext.writeArguments(DOUBLE to bounce.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setBouncePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBouncePtr, NIL) } public final fun getBounce(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBouncePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getBouncePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAbsorbent(absorbent: Boolean): Unit { TransferContext.writeArguments(BOOL to absorbent) - TransferContext.callMethod(rawPtr, MethodBindings.setAbsorbentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAbsorbentPtr, NIL) } public final fun isAbsorbent(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isAbsorbentPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isAbsorbentPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsPointQueryParameters2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsPointQueryParameters2D.kt index 37fba85040..b1e3f255ef 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsPointQueryParameters2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsPointQueryParameters2D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.TypeManager import godot.core.VariantArray @@ -19,7 +20,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -139,67 +139,67 @@ public open class PhysicsPointQueryParameters2D : RefCounted() { public final fun setPosition(position: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.setPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPositionPtr, NIL) } public final fun getPosition(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setCanvasInstanceId(canvasInstanceId: Long): Unit { TransferContext.writeArguments(LONG to canvasInstanceId) - TransferContext.callMethod(rawPtr, MethodBindings.setCanvasInstanceIdPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCanvasInstanceIdPtr, NIL) } public final fun getCanvasInstanceId(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCanvasInstanceIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCanvasInstanceIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setCollisionMask(collisionMask: Long): Unit { TransferContext.writeArguments(LONG to collisionMask) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionMaskPtr, NIL) } public final fun getCollisionMask(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCollisionMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setExclude(exclude: VariantArray): Unit { TransferContext.writeArguments(ARRAY to exclude) - TransferContext.callMethod(rawPtr, MethodBindings.setExcludePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExcludePtr, NIL) } public final fun getExclude(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getExcludePtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getExcludePtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } public final fun setCollideWithBodies(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setCollideWithBodiesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollideWithBodiesPtr, NIL) } public final fun isCollideWithBodiesEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCollideWithBodiesEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCollideWithBodiesEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCollideWithAreas(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setCollideWithAreasPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollideWithAreasPtr, NIL) } public final fun isCollideWithAreasEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCollideWithAreasEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCollideWithAreasEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsPointQueryParameters3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsPointQueryParameters3D.kt index 83047222b0..a614fe2a3a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsPointQueryParameters3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsPointQueryParameters3D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.TypeManager import godot.core.VariantArray @@ -19,7 +20,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -126,56 +126,56 @@ public open class PhysicsPointQueryParameters3D : RefCounted() { public final fun setPosition(position: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to position) - TransferContext.callMethod(rawPtr, MethodBindings.setPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPositionPtr, NIL) } public final fun getPosition(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPositionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getPositionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setCollisionMask(collisionMask: Long): Unit { TransferContext.writeArguments(LONG to collisionMask) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionMaskPtr, NIL) } public final fun getCollisionMask(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCollisionMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setExclude(exclude: VariantArray): Unit { TransferContext.writeArguments(ARRAY to exclude) - TransferContext.callMethod(rawPtr, MethodBindings.setExcludePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExcludePtr, NIL) } public final fun getExclude(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getExcludePtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getExcludePtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } public final fun setCollideWithBodies(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setCollideWithBodiesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollideWithBodiesPtr, NIL) } public final fun isCollideWithBodiesEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCollideWithBodiesEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCollideWithBodiesEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCollideWithAreas(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setCollideWithAreasPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollideWithAreasPtr, NIL) } public final fun isCollideWithAreasEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCollideWithAreasEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCollideWithAreasEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsRayQueryParameters2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsRayQueryParameters2D.kt index 53991e5fc3..407378ee46 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsRayQueryParameters2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsRayQueryParameters2D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.TypeManager import godot.core.VariantArray @@ -20,7 +21,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -176,78 +176,78 @@ public open class PhysicsRayQueryParameters2D : RefCounted() { public final fun setFrom(from: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to from) - TransferContext.callMethod(rawPtr, MethodBindings.setFromPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFromPtr, NIL) } public final fun getFrom(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFromPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getFromPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setTo(to: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to to) - TransferContext.callMethod(rawPtr, MethodBindings.setToPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setToPtr, NIL) } public final fun getTo(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getToPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getToPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setCollisionMask(collisionMask: Long): Unit { TransferContext.writeArguments(LONG to collisionMask) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionMaskPtr, NIL) } public final fun getCollisionMask(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCollisionMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setExclude(exclude: VariantArray): Unit { TransferContext.writeArguments(ARRAY to exclude) - TransferContext.callMethod(rawPtr, MethodBindings.setExcludePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExcludePtr, NIL) } public final fun getExclude(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getExcludePtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getExcludePtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } public final fun setCollideWithBodies(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setCollideWithBodiesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollideWithBodiesPtr, NIL) } public final fun isCollideWithBodiesEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCollideWithBodiesEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCollideWithBodiesEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCollideWithAreas(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setCollideWithAreasPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollideWithAreasPtr, NIL) } public final fun isCollideWithAreasEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCollideWithAreasEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCollideWithAreasEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setHitFromInside(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setHitFromInsidePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHitFromInsidePtr, NIL) } public final fun isHitFromInsideEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isHitFromInsideEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isHitFromInsideEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsRayQueryParameters3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsRayQueryParameters3D.kt index cb17c28827..789c2408d1 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsRayQueryParameters3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsRayQueryParameters3D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.TypeManager import godot.core.VariantArray @@ -20,7 +21,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -188,89 +188,89 @@ public open class PhysicsRayQueryParameters3D : RefCounted() { public final fun setFrom(from: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to from) - TransferContext.callMethod(rawPtr, MethodBindings.setFromPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFromPtr, NIL) } public final fun getFrom(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFromPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getFromPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setTo(to: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to to) - TransferContext.callMethod(rawPtr, MethodBindings.setToPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setToPtr, NIL) } public final fun getTo(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getToPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getToPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setCollisionMask(collisionMask: Long): Unit { TransferContext.writeArguments(LONG to collisionMask) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionMaskPtr, NIL) } public final fun getCollisionMask(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCollisionMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setExclude(exclude: VariantArray): Unit { TransferContext.writeArguments(ARRAY to exclude) - TransferContext.callMethod(rawPtr, MethodBindings.setExcludePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExcludePtr, NIL) } public final fun getExclude(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getExcludePtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getExcludePtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } public final fun setCollideWithBodies(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setCollideWithBodiesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollideWithBodiesPtr, NIL) } public final fun isCollideWithBodiesEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCollideWithBodiesEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCollideWithBodiesEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCollideWithAreas(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setCollideWithAreasPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollideWithAreasPtr, NIL) } public final fun isCollideWithAreasEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCollideWithAreasEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCollideWithAreasEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setHitFromInside(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setHitFromInsidePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHitFromInsidePtr, NIL) } public final fun isHitFromInsideEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isHitFromInsideEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isHitFromInsideEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setHitBackFaces(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setHitBackFacesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHitBackFacesPtr, NIL) } public final fun isHitBackFacesEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isHitBackFacesEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isHitBackFacesEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsServer2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsServer2D.kt index d708d83968..050e3a9240 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsServer2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsServer2D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.RID import godot.core.Transform2D @@ -23,7 +24,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -77,7 +77,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun worldBoundaryShapeCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.worldBoundaryShapeCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.worldBoundaryShapeCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -88,7 +88,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun separationRayShapeCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.separationRayShapeCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.separationRayShapeCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -99,7 +99,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun segmentShapeCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.segmentShapeCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.segmentShapeCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -110,7 +110,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun circleShapeCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.circleShapeCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.circleShapeCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -121,7 +121,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun rectangleShapeCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.rectangleShapeCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.rectangleShapeCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -132,7 +132,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun capsuleShapeCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.capsuleShapeCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.capsuleShapeCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -143,7 +143,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun convexPolygonShapeCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.convexPolygonShapeCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.convexPolygonShapeCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -154,7 +154,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun concavePolygonShapeCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.concavePolygonShapeCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.concavePolygonShapeCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -184,7 +184,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun shapeSetData(shape: RID, `data`: Any?): Unit { TransferContext.writeArguments(_RID to shape, ANY to data) - TransferContext.callMethod(rawPtr, MethodBindings.shapeSetDataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.shapeSetDataPtr, NIL) } /** @@ -193,7 +193,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun shapeGetType(shape: RID): ShapeType { TransferContext.writeArguments(_RID to shape) - TransferContext.callMethod(rawPtr, MethodBindings.shapeGetTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.shapeGetTypePtr, LONG) return PhysicsServer2D.ShapeType.from(TransferContext.readReturnValue(LONG) as Long) } @@ -205,7 +205,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun shapeGetData(shape: RID): Any? { TransferContext.writeArguments(_RID to shape) - TransferContext.callMethod(rawPtr, MethodBindings.shapeGetDataPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.shapeGetDataPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -217,7 +217,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun spaceCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.spaceCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.spaceCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -228,7 +228,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun spaceSetActive(space: RID, active: Boolean): Unit { TransferContext.writeArguments(_RID to space, BOOL to active) - TransferContext.callMethod(rawPtr, MethodBindings.spaceSetActivePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.spaceSetActivePtr, NIL) } /** @@ -237,7 +237,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun spaceIsActive(space: RID): Boolean { TransferContext.writeArguments(_RID to space) - TransferContext.callMethod(rawPtr, MethodBindings.spaceIsActivePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.spaceIsActivePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -252,7 +252,7 @@ public object PhysicsServer2D : Object() { `value`: Float, ): Unit { TransferContext.writeArguments(_RID to space, LONG to param.id, DOUBLE to value.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.spaceSetParamPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.spaceSetParamPtr, NIL) } /** @@ -262,7 +262,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun spaceGetParam(space: RID, `param`: SpaceParameter): Float { TransferContext.writeArguments(_RID to space, LONG to param.id) - TransferContext.callMethod(rawPtr, MethodBindings.spaceGetParamPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.spaceGetParamPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -273,7 +273,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun spaceGetDirectState(space: RID): PhysicsDirectSpaceState2D? { TransferContext.writeArguments(_RID to space) - TransferContext.callMethod(rawPtr, MethodBindings.spaceGetDirectStatePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.spaceGetDirectStatePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as PhysicsDirectSpaceState2D?) } @@ -288,7 +288,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun areaCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.areaCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.areaCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -301,7 +301,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun areaSetSpace(area: RID, space: RID): Unit { TransferContext.writeArguments(_RID to area, _RID to space) - TransferContext.callMethod(rawPtr, MethodBindings.areaSetSpacePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.areaSetSpacePtr, NIL) } /** @@ -311,7 +311,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun areaGetSpace(area: RID): RID { TransferContext.writeArguments(_RID to area) - TransferContext.callMethod(rawPtr, MethodBindings.areaGetSpacePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.areaGetSpacePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -329,7 +329,7 @@ public object PhysicsServer2D : Object() { disabled: Boolean = false, ): Unit { TransferContext.writeArguments(_RID to area, _RID to shape, TRANSFORM2D to transform, BOOL to disabled) - TransferContext.callMethod(rawPtr, MethodBindings.areaAddShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.areaAddShapePtr, NIL) } /** @@ -343,7 +343,7 @@ public object PhysicsServer2D : Object() { shape: RID, ): Unit { TransferContext.writeArguments(_RID to area, LONG to shapeIdx.toLong(), _RID to shape) - TransferContext.callMethod(rawPtr, MethodBindings.areaSetShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.areaSetShapePtr, NIL) } /** @@ -356,7 +356,7 @@ public object PhysicsServer2D : Object() { transform: Transform2D, ): Unit { TransferContext.writeArguments(_RID to area, LONG to shapeIdx.toLong(), TRANSFORM2D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.areaSetShapeTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.areaSetShapeTransformPtr, NIL) } /** @@ -370,7 +370,7 @@ public object PhysicsServer2D : Object() { disabled: Boolean, ): Unit { TransferContext.writeArguments(_RID to area, LONG to shapeIdx.toLong(), BOOL to disabled) - TransferContext.callMethod(rawPtr, MethodBindings.areaSetShapeDisabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.areaSetShapeDisabledPtr, NIL) } /** @@ -379,7 +379,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun areaGetShapeCount(area: RID): Int { TransferContext.writeArguments(_RID to area) - TransferContext.callMethod(rawPtr, MethodBindings.areaGetShapeCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.areaGetShapeCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -389,7 +389,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun areaGetShape(area: RID, shapeIdx: Int): RID { TransferContext.writeArguments(_RID to area, LONG to shapeIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.areaGetShapePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.areaGetShapePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -400,7 +400,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun areaGetShapeTransform(area: RID, shapeIdx: Int): Transform2D { TransferContext.writeArguments(_RID to area, LONG to shapeIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.areaGetShapeTransformPtr, TRANSFORM2D) + TransferContext.callMethod(ptr, MethodBindings.areaGetShapeTransformPtr, TRANSFORM2D) return (TransferContext.readReturnValue(TRANSFORM2D) as Transform2D) } @@ -413,7 +413,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun areaRemoveShape(area: RID, shapeIdx: Int): Unit { TransferContext.writeArguments(_RID to area, LONG to shapeIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.areaRemoveShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.areaRemoveShapePtr, NIL) } /** @@ -423,7 +423,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun areaClearShapes(area: RID): Unit { TransferContext.writeArguments(_RID to area) - TransferContext.callMethod(rawPtr, MethodBindings.areaClearShapesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.areaClearShapesPtr, NIL) } /** @@ -432,7 +432,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun areaSetCollisionLayer(area: RID, layer: Long): Unit { TransferContext.writeArguments(_RID to area, LONG to layer) - TransferContext.callMethod(rawPtr, MethodBindings.areaSetCollisionLayerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.areaSetCollisionLayerPtr, NIL) } /** @@ -441,7 +441,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun areaGetCollisionLayer(area: RID): Long { TransferContext.writeArguments(_RID to area) - TransferContext.callMethod(rawPtr, MethodBindings.areaGetCollisionLayerPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.areaGetCollisionLayerPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -451,7 +451,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun areaSetCollisionMask(area: RID, mask: Long): Unit { TransferContext.writeArguments(_RID to area, LONG to mask) - TransferContext.callMethod(rawPtr, MethodBindings.areaSetCollisionMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.areaSetCollisionMaskPtr, NIL) } /** @@ -460,7 +460,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun areaGetCollisionMask(area: RID): Long { TransferContext.writeArguments(_RID to area) - TransferContext.callMethod(rawPtr, MethodBindings.areaGetCollisionMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.areaGetCollisionMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -475,7 +475,7 @@ public object PhysicsServer2D : Object() { `value`: Any?, ): Unit { TransferContext.writeArguments(_RID to area, LONG to param.id, ANY to value) - TransferContext.callMethod(rawPtr, MethodBindings.areaSetParamPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.areaSetParamPtr, NIL) } /** @@ -484,7 +484,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun areaSetTransform(area: RID, transform: Transform2D): Unit { TransferContext.writeArguments(_RID to area, TRANSFORM2D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.areaSetTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.areaSetTransformPtr, NIL) } /** @@ -494,7 +494,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun areaGetParam(area: RID, `param`: AreaParameter): Any? { TransferContext.writeArguments(_RID to area, LONG to param.id) - TransferContext.callMethod(rawPtr, MethodBindings.areaGetParamPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.areaGetParamPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -504,7 +504,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun areaGetTransform(area: RID): Transform2D { TransferContext.writeArguments(_RID to area) - TransferContext.callMethod(rawPtr, MethodBindings.areaGetTransformPtr, TRANSFORM2D) + TransferContext.callMethod(ptr, MethodBindings.areaGetTransformPtr, TRANSFORM2D) return (TransferContext.readReturnValue(TRANSFORM2D) as Transform2D) } @@ -515,7 +515,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun areaAttachObjectInstanceId(area: RID, id: Long): Unit { TransferContext.writeArguments(_RID to area, LONG to id) - TransferContext.callMethod(rawPtr, MethodBindings.areaAttachObjectInstanceIdPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.areaAttachObjectInstanceIdPtr, NIL) } /** @@ -525,7 +525,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun areaGetObjectInstanceId(area: RID): Long { TransferContext.writeArguments(_RID to area) - TransferContext.callMethod(rawPtr, MethodBindings.areaGetObjectInstanceIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.areaGetObjectInstanceIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -536,7 +536,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun areaAttachCanvasInstanceId(area: RID, id: Long): Unit { TransferContext.writeArguments(_RID to area, LONG to id) - TransferContext.callMethod(rawPtr, MethodBindings.areaAttachCanvasInstanceIdPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.areaAttachCanvasInstanceIdPtr, NIL) } /** @@ -546,7 +546,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun areaGetCanvasInstanceId(area: RID): Long { TransferContext.writeArguments(_RID to area) - TransferContext.callMethod(rawPtr, MethodBindings.areaGetCanvasInstanceIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.areaGetCanvasInstanceIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -567,7 +567,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun areaSetMonitorCallback(area: RID, callback: Callable): Unit { TransferContext.writeArguments(_RID to area, CALLABLE to callback) - TransferContext.callMethod(rawPtr, MethodBindings.areaSetMonitorCallbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.areaSetMonitorCallbackPtr, NIL) } /** @@ -587,7 +587,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun areaSetAreaMonitorCallback(area: RID, callback: Callable): Unit { TransferContext.writeArguments(_RID to area, CALLABLE to callback) - TransferContext.callMethod(rawPtr, MethodBindings.areaSetAreaMonitorCallbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.areaSetAreaMonitorCallbackPtr, NIL) } /** @@ -597,7 +597,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun areaSetMonitorable(area: RID, monitorable: Boolean): Unit { TransferContext.writeArguments(_RID to area, BOOL to monitorable) - TransferContext.callMethod(rawPtr, MethodBindings.areaSetMonitorablePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.areaSetMonitorablePtr, NIL) } /** @@ -610,7 +610,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodyCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.bodyCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.bodyCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -628,7 +628,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodySetSpace(body: RID, space: RID): Unit { TransferContext.writeArguments(_RID to body, _RID to space) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetSpacePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodySetSpacePtr, NIL) } /** @@ -638,7 +638,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodyGetSpace(body: RID): RID { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.bodyGetSpacePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.bodyGetSpacePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -648,7 +648,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodySetMode(body: RID, mode: BodyMode): Unit { TransferContext.writeArguments(_RID to body, LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodySetModePtr, NIL) } /** @@ -657,7 +657,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodyGetMode(body: RID): BodyMode { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.bodyGetModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.bodyGetModePtr, LONG) return PhysicsServer2D.BodyMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -675,7 +675,7 @@ public object PhysicsServer2D : Object() { disabled: Boolean = false, ): Unit { TransferContext.writeArguments(_RID to body, _RID to shape, TRANSFORM2D to transform, BOOL to disabled) - TransferContext.callMethod(rawPtr, MethodBindings.bodyAddShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodyAddShapePtr, NIL) } /** @@ -689,7 +689,7 @@ public object PhysicsServer2D : Object() { shape: RID, ): Unit { TransferContext.writeArguments(_RID to body, LONG to shapeIdx.toLong(), _RID to shape) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodySetShapePtr, NIL) } /** @@ -702,7 +702,7 @@ public object PhysicsServer2D : Object() { transform: Transform2D, ): Unit { TransferContext.writeArguments(_RID to body, LONG to shapeIdx.toLong(), TRANSFORM2D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetShapeTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodySetShapeTransformPtr, NIL) } /** @@ -711,7 +711,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodyGetShapeCount(body: RID): Int { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.bodyGetShapeCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.bodyGetShapeCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -721,7 +721,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodyGetShape(body: RID, shapeIdx: Int): RID { TransferContext.writeArguments(_RID to body, LONG to shapeIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.bodyGetShapePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.bodyGetShapePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -732,7 +732,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodyGetShapeTransform(body: RID, shapeIdx: Int): Transform2D { TransferContext.writeArguments(_RID to body, LONG to shapeIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.bodyGetShapeTransformPtr, TRANSFORM2D) + TransferContext.callMethod(ptr, MethodBindings.bodyGetShapeTransformPtr, TRANSFORM2D) return (TransferContext.readReturnValue(TRANSFORM2D) as Transform2D) } @@ -745,7 +745,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodyRemoveShape(body: RID, shapeIdx: Int): Unit { TransferContext.writeArguments(_RID to body, LONG to shapeIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.bodyRemoveShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodyRemoveShapePtr, NIL) } /** @@ -755,7 +755,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodyClearShapes(body: RID): Unit { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.bodyClearShapesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodyClearShapesPtr, NIL) } /** @@ -769,7 +769,7 @@ public object PhysicsServer2D : Object() { disabled: Boolean, ): Unit { TransferContext.writeArguments(_RID to body, LONG to shapeIdx.toLong(), BOOL to disabled) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetShapeDisabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodySetShapeDisabledPtr, NIL) } /** @@ -786,7 +786,7 @@ public object PhysicsServer2D : Object() { margin: Float, ): Unit { TransferContext.writeArguments(_RID to body, LONG to shapeIdx.toLong(), BOOL to enable, DOUBLE to margin.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetShapeAsOneWayCollisionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodySetShapeAsOneWayCollisionPtr, NIL) } /** @@ -796,7 +796,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodyAttachObjectInstanceId(body: RID, id: Long): Unit { TransferContext.writeArguments(_RID to body, LONG to id) - TransferContext.callMethod(rawPtr, MethodBindings.bodyAttachObjectInstanceIdPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodyAttachObjectInstanceIdPtr, NIL) } /** @@ -806,7 +806,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodyGetObjectInstanceId(body: RID): Long { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.bodyGetObjectInstanceIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.bodyGetObjectInstanceIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -817,7 +817,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodyAttachCanvasInstanceId(body: RID, id: Long): Unit { TransferContext.writeArguments(_RID to body, LONG to id) - TransferContext.callMethod(rawPtr, MethodBindings.bodyAttachCanvasInstanceIdPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodyAttachCanvasInstanceIdPtr, NIL) } /** @@ -827,7 +827,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodyGetCanvasInstanceId(body: RID): Long { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.bodyGetCanvasInstanceIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.bodyGetCanvasInstanceIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -839,8 +839,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodySetContinuousCollisionDetectionMode(body: RID, mode: CCDMode): Unit { TransferContext.writeArguments(_RID to body, LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetContinuousCollisionDetectionModePtr, - NIL) + TransferContext.callMethod(ptr, MethodBindings.bodySetContinuousCollisionDetectionModePtr, NIL) } /** @@ -849,8 +848,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodyGetContinuousCollisionDetectionMode(body: RID): CCDMode { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.bodyGetContinuousCollisionDetectionModePtr, - LONG) + TransferContext.callMethod(ptr, MethodBindings.bodyGetContinuousCollisionDetectionModePtr, LONG) return PhysicsServer2D.CCDMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -860,7 +858,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodySetCollisionLayer(body: RID, layer: Long): Unit { TransferContext.writeArguments(_RID to body, LONG to layer) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetCollisionLayerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodySetCollisionLayerPtr, NIL) } /** @@ -869,7 +867,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodyGetCollisionLayer(body: RID): Long { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.bodyGetCollisionLayerPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.bodyGetCollisionLayerPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -879,7 +877,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodySetCollisionMask(body: RID, mask: Long): Unit { TransferContext.writeArguments(_RID to body, LONG to mask) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetCollisionMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodySetCollisionMaskPtr, NIL) } /** @@ -888,7 +886,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodyGetCollisionMask(body: RID): Long { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.bodyGetCollisionMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.bodyGetCollisionMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -899,7 +897,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodySetCollisionPriority(body: RID, priority: Float): Unit { TransferContext.writeArguments(_RID to body, DOUBLE to priority.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetCollisionPriorityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodySetCollisionPriorityPtr, NIL) } /** @@ -909,7 +907,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodyGetCollisionPriority(body: RID): Float { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.bodyGetCollisionPriorityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.bodyGetCollisionPriorityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -924,7 +922,7 @@ public object PhysicsServer2D : Object() { `value`: Any?, ): Unit { TransferContext.writeArguments(_RID to body, LONG to param.id, ANY to value) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetParamPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodySetParamPtr, NIL) } /** @@ -934,7 +932,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodyGetParam(body: RID, `param`: BodyParameter): Any? { TransferContext.writeArguments(_RID to body, LONG to param.id) - TransferContext.callMethod(rawPtr, MethodBindings.bodyGetParamPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.bodyGetParamPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -945,7 +943,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodyResetMassProperties(body: RID): Unit { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.bodyResetMassPropertiesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodyResetMassPropertiesPtr, NIL) } /** @@ -960,7 +958,7 @@ public object PhysicsServer2D : Object() { `value`: Any?, ): Unit { TransferContext.writeArguments(_RID to body, LONG to state.id, ANY to value) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetStatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodySetStatePtr, NIL) } /** @@ -970,7 +968,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodyGetState(body: RID, state: BodyState): Any? { TransferContext.writeArguments(_RID to body, LONG to state.id) - TransferContext.callMethod(rawPtr, MethodBindings.bodyGetStatePtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.bodyGetStatePtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -985,7 +983,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodyApplyCentralImpulse(body: RID, impulse: Vector2): Unit { TransferContext.writeArguments(_RID to body, VECTOR2 to impulse) - TransferContext.callMethod(rawPtr, MethodBindings.bodyApplyCentralImpulsePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodyApplyCentralImpulsePtr, NIL) } /** @@ -997,7 +995,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodyApplyTorqueImpulse(body: RID, impulse: Float): Unit { TransferContext.writeArguments(_RID to body, DOUBLE to impulse.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.bodyApplyTorqueImpulsePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodyApplyTorqueImpulsePtr, NIL) } /** @@ -1016,7 +1014,7 @@ public object PhysicsServer2D : Object() { position: Vector2 = Vector2(0, 0), ): Unit { TransferContext.writeArguments(_RID to body, VECTOR2 to impulse, VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.bodyApplyImpulsePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodyApplyImpulsePtr, NIL) } /** @@ -1027,7 +1025,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodyApplyCentralForce(body: RID, force: Vector2): Unit { TransferContext.writeArguments(_RID to body, VECTOR2 to force) - TransferContext.callMethod(rawPtr, MethodBindings.bodyApplyCentralForcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodyApplyCentralForcePtr, NIL) } /** @@ -1044,7 +1042,7 @@ public object PhysicsServer2D : Object() { position: Vector2 = Vector2(0, 0), ): Unit { TransferContext.writeArguments(_RID to body, VECTOR2 to force, VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.bodyApplyForcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodyApplyForcePtr, NIL) } /** @@ -1054,7 +1052,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodyApplyTorque(body: RID, torque: Float): Unit { TransferContext.writeArguments(_RID to body, DOUBLE to torque.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.bodyApplyTorquePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodyApplyTorquePtr, NIL) } /** @@ -1066,7 +1064,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodyAddConstantCentralForce(body: RID, force: Vector2): Unit { TransferContext.writeArguments(_RID to body, VECTOR2 to force) - TransferContext.callMethod(rawPtr, MethodBindings.bodyAddConstantCentralForcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodyAddConstantCentralForcePtr, NIL) } /** @@ -1083,7 +1081,7 @@ public object PhysicsServer2D : Object() { position: Vector2 = Vector2(0, 0), ): Unit { TransferContext.writeArguments(_RID to body, VECTOR2 to force, VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.bodyAddConstantForcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodyAddConstantForcePtr, NIL) } /** @@ -1093,7 +1091,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodyAddConstantTorque(body: RID, torque: Float): Unit { TransferContext.writeArguments(_RID to body, DOUBLE to torque.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.bodyAddConstantTorquePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodyAddConstantTorquePtr, NIL) } /** @@ -1103,7 +1101,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodySetConstantForce(body: RID, force: Vector2): Unit { TransferContext.writeArguments(_RID to body, VECTOR2 to force) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetConstantForcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodySetConstantForcePtr, NIL) } /** @@ -1113,7 +1111,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodyGetConstantForce(body: RID): Vector2 { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.bodyGetConstantForcePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.bodyGetConstantForcePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -1124,7 +1122,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodySetConstantTorque(body: RID, torque: Float): Unit { TransferContext.writeArguments(_RID to body, DOUBLE to torque.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetConstantTorquePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodySetConstantTorquePtr, NIL) } /** @@ -1134,7 +1132,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodyGetConstantTorque(body: RID): Float { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.bodyGetConstantTorquePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.bodyGetConstantTorquePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1146,7 +1144,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodySetAxisVelocity(body: RID, axisVelocity: Vector2): Unit { TransferContext.writeArguments(_RID to body, VECTOR2 to axisVelocity) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetAxisVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodySetAxisVelocityPtr, NIL) } /** @@ -1156,7 +1154,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodyAddCollisionException(body: RID, exceptedBody: RID): Unit { TransferContext.writeArguments(_RID to body, _RID to exceptedBody) - TransferContext.callMethod(rawPtr, MethodBindings.bodyAddCollisionExceptionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodyAddCollisionExceptionPtr, NIL) } /** @@ -1166,7 +1164,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodyRemoveCollisionException(body: RID, exceptedBody: RID): Unit { TransferContext.writeArguments(_RID to body, _RID to exceptedBody) - TransferContext.callMethod(rawPtr, MethodBindings.bodyRemoveCollisionExceptionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodyRemoveCollisionExceptionPtr, NIL) } /** @@ -1176,7 +1174,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodySetMaxContactsReported(body: RID, amount: Int): Unit { TransferContext.writeArguments(_RID to body, LONG to amount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetMaxContactsReportedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodySetMaxContactsReportedPtr, NIL) } /** @@ -1186,7 +1184,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodyGetMaxContactsReported(body: RID): Int { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.bodyGetMaxContactsReportedPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.bodyGetMaxContactsReportedPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1200,7 +1198,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodySetOmitForceIntegration(body: RID, enable: Boolean): Unit { TransferContext.writeArguments(_RID to body, BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetOmitForceIntegrationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodySetOmitForceIntegrationPtr, NIL) } /** @@ -1210,7 +1208,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodyIsOmittingForceIntegration(body: RID): Boolean { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.bodyIsOmittingForceIntegrationPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.bodyIsOmittingForceIntegrationPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1226,7 +1224,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodySetStateSyncCallback(body: RID, callable: Callable): Unit { TransferContext.writeArguments(_RID to body, CALLABLE to callable) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetStateSyncCallbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodySetStateSyncCallbackPtr, NIL) } /** @@ -1249,7 +1247,7 @@ public object PhysicsServer2D : Object() { userdata: Any? = null, ): Unit { TransferContext.writeArguments(_RID to body, CALLABLE to callable, ANY to userdata) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetForceIntegrationCallbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodySetForceIntegrationCallbackPtr, NIL) } /** @@ -1266,7 +1264,7 @@ public object PhysicsServer2D : Object() { result: PhysicsTestMotionResult2D? = null, ): Boolean { TransferContext.writeArguments(_RID to body, OBJECT to parameters, OBJECT to result) - TransferContext.callMethod(rawPtr, MethodBindings.bodyTestMotionPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.bodyTestMotionPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1277,7 +1275,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun bodyGetDirectState(body: RID): PhysicsDirectBodyState2D? { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.bodyGetDirectStatePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.bodyGetDirectStatePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as PhysicsDirectBodyState2D?) } @@ -1289,7 +1287,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun jointCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.jointCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.jointCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -1300,7 +1298,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun jointClear(joint: RID): Unit { TransferContext.writeArguments(_RID to joint) - TransferContext.callMethod(rawPtr, MethodBindings.jointClearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.jointClearPtr, NIL) } /** @@ -1314,7 +1312,7 @@ public object PhysicsServer2D : Object() { `value`: Float, ): Unit { TransferContext.writeArguments(_RID to joint, LONG to param.id, DOUBLE to value.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.jointSetParamPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.jointSetParamPtr, NIL) } /** @@ -1324,7 +1322,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun jointGetParam(joint: RID, `param`: JointParam): Float { TransferContext.writeArguments(_RID to joint, LONG to param.id) - TransferContext.callMethod(rawPtr, MethodBindings.jointGetParamPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.jointGetParamPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1334,7 +1332,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun jointDisableCollisionsBetweenBodies(joint: RID, disable: Boolean): Unit { TransferContext.writeArguments(_RID to joint, BOOL to disable) - TransferContext.callMethod(rawPtr, MethodBindings.jointDisableCollisionsBetweenBodiesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.jointDisableCollisionsBetweenBodiesPtr, NIL) } /** @@ -1343,8 +1341,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun jointIsDisabledCollisionsBetweenBodies(joint: RID): Boolean { TransferContext.writeArguments(_RID to joint) - TransferContext.callMethod(rawPtr, MethodBindings.jointIsDisabledCollisionsBetweenBodiesPtr, - BOOL) + TransferContext.callMethod(ptr, MethodBindings.jointIsDisabledCollisionsBetweenBodiesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1363,7 +1360,7 @@ public object PhysicsServer2D : Object() { bodyB: RID = RID(), ): Unit { TransferContext.writeArguments(_RID to joint, VECTOR2 to anchor, _RID to bodyA, _RID to bodyB) - TransferContext.callMethod(rawPtr, MethodBindings.jointMakePinPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.jointMakePinPtr, NIL) } /** @@ -1380,7 +1377,7 @@ public object PhysicsServer2D : Object() { bodyB: RID = RID(), ): Unit { TransferContext.writeArguments(_RID to joint, VECTOR2 to groove1A, VECTOR2 to groove2A, VECTOR2 to anchorB, _RID to bodyA, _RID to bodyB) - TransferContext.callMethod(rawPtr, MethodBindings.jointMakeGroovePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.jointMakeGroovePtr, NIL) } /** @@ -1399,7 +1396,7 @@ public object PhysicsServer2D : Object() { bodyB: RID = RID(), ): Unit { TransferContext.writeArguments(_RID to joint, VECTOR2 to anchorA, VECTOR2 to anchorB, _RID to bodyA, _RID to bodyB) - TransferContext.callMethod(rawPtr, MethodBindings.jointMakeDampedSpringPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.jointMakeDampedSpringPtr, NIL) } /** @@ -1412,7 +1409,7 @@ public object PhysicsServer2D : Object() { enabled: Boolean, ): Unit { TransferContext.writeArguments(_RID to joint, LONG to flag.id, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.pinJointSetFlagPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pinJointSetFlagPtr, NIL) } /** @@ -1421,7 +1418,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun pinJointGetFlag(joint: RID, flag: PinJointFlag): Boolean { TransferContext.writeArguments(_RID to joint, LONG to flag.id) - TransferContext.callMethod(rawPtr, MethodBindings.pinJointGetFlagPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.pinJointGetFlagPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1435,7 +1432,7 @@ public object PhysicsServer2D : Object() { `value`: Float, ): Unit { TransferContext.writeArguments(_RID to joint, LONG to param.id, DOUBLE to value.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.pinJointSetParamPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pinJointSetParamPtr, NIL) } /** @@ -1445,7 +1442,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun pinJointGetParam(joint: RID, `param`: PinJointParam): Float { TransferContext.writeArguments(_RID to joint, LONG to param.id) - TransferContext.callMethod(rawPtr, MethodBindings.pinJointGetParamPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.pinJointGetParamPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1460,7 +1457,7 @@ public object PhysicsServer2D : Object() { `value`: Float, ): Unit { TransferContext.writeArguments(_RID to joint, LONG to param.id, DOUBLE to value.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.dampedSpringJointSetParamPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.dampedSpringJointSetParamPtr, NIL) } /** @@ -1470,7 +1467,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun dampedSpringJointGetParam(joint: RID, `param`: DampedSpringParam): Float { TransferContext.writeArguments(_RID to joint, LONG to param.id) - TransferContext.callMethod(rawPtr, MethodBindings.dampedSpringJointGetParamPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.dampedSpringJointGetParamPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1480,7 +1477,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun jointGetType(joint: RID): JointType { TransferContext.writeArguments(_RID to joint) - TransferContext.callMethod(rawPtr, MethodBindings.jointGetTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.jointGetTypePtr, LONG) return PhysicsServer2D.JointType.from(TransferContext.readReturnValue(LONG) as Long) } @@ -1491,7 +1488,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun freeRid(rid: RID): Unit { TransferContext.writeArguments(_RID to rid) - TransferContext.callMethod(rawPtr, MethodBindings.freeRidPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.freeRidPtr, NIL) } /** @@ -1501,7 +1498,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun setActive(active: Boolean): Unit { TransferContext.writeArguments(BOOL to active) - TransferContext.callMethod(rawPtr, MethodBindings.setActivePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setActivePtr, NIL) } /** @@ -1511,7 +1508,7 @@ public object PhysicsServer2D : Object() { @JvmStatic public final fun getProcessInfo(processInfo: ProcessInfo): Int { TransferContext.writeArguments(LONG to processInfo.id) - TransferContext.callMethod(rawPtr, MethodBindings.getProcessInfoPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getProcessInfoPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsServer2DManager.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsServer2DManager.kt index bc9519dacd..056ade896c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsServer2DManager.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsServer2DManager.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.TypeManager import godot.core.VariantParser.CALLABLE @@ -14,7 +15,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.String import kotlin.Suppress @@ -40,7 +40,7 @@ public object PhysicsServer2DManager : Object() { @JvmStatic public final fun registerServer(name: String, createCallback: Callable): Unit { TransferContext.writeArguments(STRING to name, CALLABLE to createCallback) - TransferContext.callMethod(rawPtr, MethodBindings.registerServerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.registerServerPtr, NIL) } /** @@ -50,7 +50,7 @@ public object PhysicsServer2DManager : Object() { @JvmStatic public final fun setDefaultServer(name: String, priority: Int): Unit { TransferContext.writeArguments(STRING to name, LONG to priority.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setDefaultServerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDefaultServerPtr, NIL) } internal object MethodBindings { diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsServer3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsServer3D.kt index 1bbccdb704..f742c85230 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsServer3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsServer3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.AABB import godot.core.Callable import godot.core.RID @@ -24,7 +25,6 @@ import godot.core.VariantParser.VECTOR3 import godot.core.VariantParser._RID import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -74,70 +74,70 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun worldBoundaryShapeCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.worldBoundaryShapeCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.worldBoundaryShapeCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @JvmStatic public final fun separationRayShapeCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.separationRayShapeCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.separationRayShapeCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @JvmStatic public final fun sphereShapeCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.sphereShapeCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.sphereShapeCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @JvmStatic public final fun boxShapeCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.boxShapeCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.boxShapeCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @JvmStatic public final fun capsuleShapeCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.capsuleShapeCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.capsuleShapeCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @JvmStatic public final fun cylinderShapeCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.cylinderShapeCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.cylinderShapeCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @JvmStatic public final fun convexPolygonShapeCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.convexPolygonShapeCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.convexPolygonShapeCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @JvmStatic public final fun concavePolygonShapeCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.concavePolygonShapeCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.concavePolygonShapeCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @JvmStatic public final fun heightmapShapeCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.heightmapShapeCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.heightmapShapeCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @JvmStatic public final fun customShapeCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.customShapeCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.customShapeCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -148,7 +148,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun shapeSetData(shape: RID, `data`: Any?): Unit { TransferContext.writeArguments(_RID to shape, ANY to data) - TransferContext.callMethod(rawPtr, MethodBindings.shapeSetDataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.shapeSetDataPtr, NIL) } /** @@ -158,7 +158,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun shapeSetMargin(shape: RID, margin: Float): Unit { TransferContext.writeArguments(_RID to shape, DOUBLE to margin.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.shapeSetMarginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.shapeSetMarginPtr, NIL) } /** @@ -167,7 +167,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun shapeGetType(shape: RID): ShapeType { TransferContext.writeArguments(_RID to shape) - TransferContext.callMethod(rawPtr, MethodBindings.shapeGetTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.shapeGetTypePtr, LONG) return PhysicsServer3D.ShapeType.from(TransferContext.readReturnValue(LONG) as Long) } @@ -177,7 +177,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun shapeGetData(shape: RID): Any? { TransferContext.writeArguments(_RID to shape) - TransferContext.callMethod(rawPtr, MethodBindings.shapeGetDataPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.shapeGetDataPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -188,7 +188,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun shapeGetMargin(shape: RID): Float { TransferContext.writeArguments(_RID to shape) - TransferContext.callMethod(rawPtr, MethodBindings.shapeGetMarginPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.shapeGetMarginPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -200,7 +200,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun spaceCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.spaceCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.spaceCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -210,7 +210,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun spaceSetActive(space: RID, active: Boolean): Unit { TransferContext.writeArguments(_RID to space, BOOL to active) - TransferContext.callMethod(rawPtr, MethodBindings.spaceSetActivePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.spaceSetActivePtr, NIL) } /** @@ -219,7 +219,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun spaceIsActive(space: RID): Boolean { TransferContext.writeArguments(_RID to space) - TransferContext.callMethod(rawPtr, MethodBindings.spaceIsActivePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.spaceIsActivePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -234,7 +234,7 @@ public object PhysicsServer3D : Object() { `value`: Float, ): Unit { TransferContext.writeArguments(_RID to space, LONG to param.id, DOUBLE to value.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.spaceSetParamPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.spaceSetParamPtr, NIL) } /** @@ -243,7 +243,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun spaceGetParam(space: RID, `param`: SpaceParameter): Float { TransferContext.writeArguments(_RID to space, LONG to param.id) - TransferContext.callMethod(rawPtr, MethodBindings.spaceGetParamPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.spaceGetParamPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -254,7 +254,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun spaceGetDirectState(space: RID): PhysicsDirectSpaceState3D? { TransferContext.writeArguments(_RID to space) - TransferContext.callMethod(rawPtr, MethodBindings.spaceGetDirectStatePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.spaceGetDirectStatePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as PhysicsDirectSpaceState3D?) } @@ -269,7 +269,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun areaCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.areaCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.areaCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -279,7 +279,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun areaSetSpace(area: RID, space: RID): Unit { TransferContext.writeArguments(_RID to area, _RID to space) - TransferContext.callMethod(rawPtr, MethodBindings.areaSetSpacePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.areaSetSpacePtr, NIL) } /** @@ -288,7 +288,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun areaGetSpace(area: RID): RID { TransferContext.writeArguments(_RID to area) - TransferContext.callMethod(rawPtr, MethodBindings.areaGetSpacePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.areaGetSpacePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -305,7 +305,7 @@ public object PhysicsServer3D : Object() { disabled: Boolean = false, ): Unit { TransferContext.writeArguments(_RID to area, _RID to shape, TRANSFORM3D to transform, BOOL to disabled) - TransferContext.callMethod(rawPtr, MethodBindings.areaAddShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.areaAddShapePtr, NIL) } /** @@ -319,7 +319,7 @@ public object PhysicsServer3D : Object() { shape: RID, ): Unit { TransferContext.writeArguments(_RID to area, LONG to shapeIdx.toLong(), _RID to shape) - TransferContext.callMethod(rawPtr, MethodBindings.areaSetShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.areaSetShapePtr, NIL) } /** @@ -332,7 +332,7 @@ public object PhysicsServer3D : Object() { transform: Transform3D, ): Unit { TransferContext.writeArguments(_RID to area, LONG to shapeIdx.toLong(), TRANSFORM3D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.areaSetShapeTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.areaSetShapeTransformPtr, NIL) } @JvmStatic @@ -342,7 +342,7 @@ public object PhysicsServer3D : Object() { disabled: Boolean, ): Unit { TransferContext.writeArguments(_RID to area, LONG to shapeIdx.toLong(), BOOL to disabled) - TransferContext.callMethod(rawPtr, MethodBindings.areaSetShapeDisabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.areaSetShapeDisabledPtr, NIL) } /** @@ -351,7 +351,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun areaGetShapeCount(area: RID): Int { TransferContext.writeArguments(_RID to area) - TransferContext.callMethod(rawPtr, MethodBindings.areaGetShapeCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.areaGetShapeCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -361,7 +361,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun areaGetShape(area: RID, shapeIdx: Int): RID { TransferContext.writeArguments(_RID to area, LONG to shapeIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.areaGetShapePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.areaGetShapePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -371,7 +371,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun areaGetShapeTransform(area: RID, shapeIdx: Int): Transform3D { TransferContext.writeArguments(_RID to area, LONG to shapeIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.areaGetShapeTransformPtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.areaGetShapeTransformPtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } @@ -381,7 +381,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun areaRemoveShape(area: RID, shapeIdx: Int): Unit { TransferContext.writeArguments(_RID to area, LONG to shapeIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.areaRemoveShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.areaRemoveShapePtr, NIL) } /** @@ -391,7 +391,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun areaClearShapes(area: RID): Unit { TransferContext.writeArguments(_RID to area) - TransferContext.callMethod(rawPtr, MethodBindings.areaClearShapesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.areaClearShapesPtr, NIL) } /** @@ -400,7 +400,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun areaSetCollisionLayer(area: RID, layer: Long): Unit { TransferContext.writeArguments(_RID to area, LONG to layer) - TransferContext.callMethod(rawPtr, MethodBindings.areaSetCollisionLayerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.areaSetCollisionLayerPtr, NIL) } /** @@ -409,7 +409,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun areaGetCollisionLayer(area: RID): Long { TransferContext.writeArguments(_RID to area) - TransferContext.callMethod(rawPtr, MethodBindings.areaGetCollisionLayerPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.areaGetCollisionLayerPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -419,7 +419,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun areaSetCollisionMask(area: RID, mask: Long): Unit { TransferContext.writeArguments(_RID to area, LONG to mask) - TransferContext.callMethod(rawPtr, MethodBindings.areaSetCollisionMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.areaSetCollisionMaskPtr, NIL) } /** @@ -428,7 +428,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun areaGetCollisionMask(area: RID): Long { TransferContext.writeArguments(_RID to area) - TransferContext.callMethod(rawPtr, MethodBindings.areaGetCollisionMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.areaGetCollisionMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -443,7 +443,7 @@ public object PhysicsServer3D : Object() { `value`: Any?, ): Unit { TransferContext.writeArguments(_RID to area, LONG to param.id, ANY to value) - TransferContext.callMethod(rawPtr, MethodBindings.areaSetParamPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.areaSetParamPtr, NIL) } /** @@ -452,7 +452,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun areaSetTransform(area: RID, transform: Transform3D): Unit { TransferContext.writeArguments(_RID to area, TRANSFORM3D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.areaSetTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.areaSetTransformPtr, NIL) } /** @@ -462,7 +462,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun areaGetParam(area: RID, `param`: AreaParameter): Any? { TransferContext.writeArguments(_RID to area, LONG to param.id) - TransferContext.callMethod(rawPtr, MethodBindings.areaGetParamPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.areaGetParamPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -472,7 +472,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun areaGetTransform(area: RID): Transform3D { TransferContext.writeArguments(_RID to area) - TransferContext.callMethod(rawPtr, MethodBindings.areaGetTransformPtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.areaGetTransformPtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } @@ -482,7 +482,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun areaAttachObjectInstanceId(area: RID, id: Long): Unit { TransferContext.writeArguments(_RID to area, LONG to id) - TransferContext.callMethod(rawPtr, MethodBindings.areaAttachObjectInstanceIdPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.areaAttachObjectInstanceIdPtr, NIL) } /** @@ -491,7 +491,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun areaGetObjectInstanceId(area: RID): Long { TransferContext.writeArguments(_RID to area) - TransferContext.callMethod(rawPtr, MethodBindings.areaGetObjectInstanceIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.areaGetObjectInstanceIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -512,7 +512,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun areaSetMonitorCallback(area: RID, callback: Callable): Unit { TransferContext.writeArguments(_RID to area, CALLABLE to callback) - TransferContext.callMethod(rawPtr, MethodBindings.areaSetMonitorCallbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.areaSetMonitorCallbackPtr, NIL) } /** @@ -532,13 +532,13 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun areaSetAreaMonitorCallback(area: RID, callback: Callable): Unit { TransferContext.writeArguments(_RID to area, CALLABLE to callback) - TransferContext.callMethod(rawPtr, MethodBindings.areaSetAreaMonitorCallbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.areaSetAreaMonitorCallbackPtr, NIL) } @JvmStatic public final fun areaSetMonitorable(area: RID, monitorable: Boolean): Unit { TransferContext.writeArguments(_RID to area, BOOL to monitorable) - TransferContext.callMethod(rawPtr, MethodBindings.areaSetMonitorablePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.areaSetMonitorablePtr, NIL) } /** @@ -547,7 +547,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun areaSetRayPickable(area: RID, enable: Boolean): Unit { TransferContext.writeArguments(_RID to area, BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.areaSetRayPickablePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.areaSetRayPickablePtr, NIL) } /** @@ -560,7 +560,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodyCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.bodyCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.bodyCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -570,7 +570,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodySetSpace(body: RID, space: RID): Unit { TransferContext.writeArguments(_RID to body, _RID to space) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetSpacePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodySetSpacePtr, NIL) } /** @@ -579,7 +579,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodyGetSpace(body: RID): RID { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.bodyGetSpacePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.bodyGetSpacePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -589,7 +589,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodySetMode(body: RID, mode: BodyMode): Unit { TransferContext.writeArguments(_RID to body, LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodySetModePtr, NIL) } /** @@ -598,7 +598,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodyGetMode(body: RID): BodyMode { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.bodyGetModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.bodyGetModePtr, LONG) return PhysicsServer3D.BodyMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -608,7 +608,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodySetCollisionLayer(body: RID, layer: Long): Unit { TransferContext.writeArguments(_RID to body, LONG to layer) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetCollisionLayerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodySetCollisionLayerPtr, NIL) } /** @@ -617,7 +617,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodyGetCollisionLayer(body: RID): Long { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.bodyGetCollisionLayerPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.bodyGetCollisionLayerPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -627,7 +627,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodySetCollisionMask(body: RID, mask: Long): Unit { TransferContext.writeArguments(_RID to body, LONG to mask) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetCollisionMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodySetCollisionMaskPtr, NIL) } /** @@ -636,7 +636,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodyGetCollisionMask(body: RID): Long { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.bodyGetCollisionMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.bodyGetCollisionMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -646,7 +646,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodySetCollisionPriority(body: RID, priority: Float): Unit { TransferContext.writeArguments(_RID to body, DOUBLE to priority.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetCollisionPriorityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodySetCollisionPriorityPtr, NIL) } /** @@ -655,7 +655,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodyGetCollisionPriority(body: RID): Float { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.bodyGetCollisionPriorityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.bodyGetCollisionPriorityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -672,7 +672,7 @@ public object PhysicsServer3D : Object() { disabled: Boolean = false, ): Unit { TransferContext.writeArguments(_RID to body, _RID to shape, TRANSFORM3D to transform, BOOL to disabled) - TransferContext.callMethod(rawPtr, MethodBindings.bodyAddShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodyAddShapePtr, NIL) } /** @@ -686,7 +686,7 @@ public object PhysicsServer3D : Object() { shape: RID, ): Unit { TransferContext.writeArguments(_RID to body, LONG to shapeIdx.toLong(), _RID to shape) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodySetShapePtr, NIL) } /** @@ -699,7 +699,7 @@ public object PhysicsServer3D : Object() { transform: Transform3D, ): Unit { TransferContext.writeArguments(_RID to body, LONG to shapeIdx.toLong(), TRANSFORM3D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetShapeTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodySetShapeTransformPtr, NIL) } @JvmStatic @@ -709,7 +709,7 @@ public object PhysicsServer3D : Object() { disabled: Boolean, ): Unit { TransferContext.writeArguments(_RID to body, LONG to shapeIdx.toLong(), BOOL to disabled) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetShapeDisabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodySetShapeDisabledPtr, NIL) } /** @@ -718,7 +718,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodyGetShapeCount(body: RID): Int { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.bodyGetShapeCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.bodyGetShapeCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -728,7 +728,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodyGetShape(body: RID, shapeIdx: Int): RID { TransferContext.writeArguments(_RID to body, LONG to shapeIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.bodyGetShapePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.bodyGetShapePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -738,7 +738,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodyGetShapeTransform(body: RID, shapeIdx: Int): Transform3D { TransferContext.writeArguments(_RID to body, LONG to shapeIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.bodyGetShapeTransformPtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.bodyGetShapeTransformPtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } @@ -748,7 +748,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodyRemoveShape(body: RID, shapeIdx: Int): Unit { TransferContext.writeArguments(_RID to body, LONG to shapeIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.bodyRemoveShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodyRemoveShapePtr, NIL) } /** @@ -757,7 +757,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodyClearShapes(body: RID): Unit { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.bodyClearShapesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodyClearShapesPtr, NIL) } /** @@ -766,7 +766,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodyAttachObjectInstanceId(body: RID, id: Long): Unit { TransferContext.writeArguments(_RID to body, LONG to id) - TransferContext.callMethod(rawPtr, MethodBindings.bodyAttachObjectInstanceIdPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodyAttachObjectInstanceIdPtr, NIL) } /** @@ -775,7 +775,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodyGetObjectInstanceId(body: RID): Long { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.bodyGetObjectInstanceIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.bodyGetObjectInstanceIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -787,7 +787,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodySetEnableContinuousCollisionDetection(body: RID, enable: Boolean): Unit { TransferContext.writeArguments(_RID to body, BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetEnableContinuousCollisionDetectionPtr, + TransferContext.callMethod(ptr, MethodBindings.bodySetEnableContinuousCollisionDetectionPtr, NIL) } @@ -797,7 +797,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodyIsContinuousCollisionDetectionEnabled(body: RID): Boolean { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.bodyIsContinuousCollisionDetectionEnabledPtr, + TransferContext.callMethod(ptr, MethodBindings.bodyIsContinuousCollisionDetectionEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -812,7 +812,7 @@ public object PhysicsServer3D : Object() { `value`: Any?, ): Unit { TransferContext.writeArguments(_RID to body, LONG to param.id, ANY to value) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetParamPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodySetParamPtr, NIL) } /** @@ -822,7 +822,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodyGetParam(body: RID, `param`: BodyParameter): Any? { TransferContext.writeArguments(_RID to body, LONG to param.id) - TransferContext.callMethod(rawPtr, MethodBindings.bodyGetParamPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.bodyGetParamPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -833,7 +833,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodyResetMassProperties(body: RID): Unit { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.bodyResetMassPropertiesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodyResetMassPropertiesPtr, NIL) } /** @@ -846,7 +846,7 @@ public object PhysicsServer3D : Object() { `value`: Any?, ): Unit { TransferContext.writeArguments(_RID to body, LONG to state.id, ANY to value) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetStatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodySetStatePtr, NIL) } /** @@ -855,7 +855,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodyGetState(body: RID, state: BodyState): Any? { TransferContext.writeArguments(_RID to body, LONG to state.id) - TransferContext.callMethod(rawPtr, MethodBindings.bodyGetStatePtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.bodyGetStatePtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -869,7 +869,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodyApplyCentralImpulse(body: RID, impulse: Vector3): Unit { TransferContext.writeArguments(_RID to body, VECTOR3 to impulse) - TransferContext.callMethod(rawPtr, MethodBindings.bodyApplyCentralImpulsePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodyApplyCentralImpulsePtr, NIL) } /** @@ -887,7 +887,7 @@ public object PhysicsServer3D : Object() { position: Vector3 = Vector3(0, 0, 0), ): Unit { TransferContext.writeArguments(_RID to body, VECTOR3 to impulse, VECTOR3 to position) - TransferContext.callMethod(rawPtr, MethodBindings.bodyApplyImpulsePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodyApplyImpulsePtr, NIL) } /** @@ -899,7 +899,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodyApplyTorqueImpulse(body: RID, impulse: Vector3): Unit { TransferContext.writeArguments(_RID to body, VECTOR3 to impulse) - TransferContext.callMethod(rawPtr, MethodBindings.bodyApplyTorqueImpulsePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodyApplyTorqueImpulsePtr, NIL) } /** @@ -910,7 +910,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodyApplyCentralForce(body: RID, force: Vector3): Unit { TransferContext.writeArguments(_RID to body, VECTOR3 to force) - TransferContext.callMethod(rawPtr, MethodBindings.bodyApplyCentralForcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodyApplyCentralForcePtr, NIL) } /** @@ -926,7 +926,7 @@ public object PhysicsServer3D : Object() { position: Vector3 = Vector3(0, 0, 0), ): Unit { TransferContext.writeArguments(_RID to body, VECTOR3 to force, VECTOR3 to position) - TransferContext.callMethod(rawPtr, MethodBindings.bodyApplyForcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodyApplyForcePtr, NIL) } /** @@ -936,7 +936,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodyApplyTorque(body: RID, torque: Vector3): Unit { TransferContext.writeArguments(_RID to body, VECTOR3 to torque) - TransferContext.callMethod(rawPtr, MethodBindings.bodyApplyTorquePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodyApplyTorquePtr, NIL) } /** @@ -947,7 +947,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodyAddConstantCentralForce(body: RID, force: Vector3): Unit { TransferContext.writeArguments(_RID to body, VECTOR3 to force) - TransferContext.callMethod(rawPtr, MethodBindings.bodyAddConstantCentralForcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodyAddConstantCentralForcePtr, NIL) } /** @@ -963,7 +963,7 @@ public object PhysicsServer3D : Object() { position: Vector3 = Vector3(0, 0, 0), ): Unit { TransferContext.writeArguments(_RID to body, VECTOR3 to force, VECTOR3 to position) - TransferContext.callMethod(rawPtr, MethodBindings.bodyAddConstantForcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodyAddConstantForcePtr, NIL) } /** @@ -973,7 +973,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodyAddConstantTorque(body: RID, torque: Vector3): Unit { TransferContext.writeArguments(_RID to body, VECTOR3 to torque) - TransferContext.callMethod(rawPtr, MethodBindings.bodyAddConstantTorquePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodyAddConstantTorquePtr, NIL) } /** @@ -983,7 +983,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodySetConstantForce(body: RID, force: Vector3): Unit { TransferContext.writeArguments(_RID to body, VECTOR3 to force) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetConstantForcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodySetConstantForcePtr, NIL) } /** @@ -993,7 +993,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodyGetConstantForce(body: RID): Vector3 { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.bodyGetConstantForcePtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.bodyGetConstantForcePtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -1004,7 +1004,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodySetConstantTorque(body: RID, torque: Vector3): Unit { TransferContext.writeArguments(_RID to body, VECTOR3 to torque) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetConstantTorquePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodySetConstantTorquePtr, NIL) } /** @@ -1014,7 +1014,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodyGetConstantTorque(body: RID): Vector3 { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.bodyGetConstantTorquePtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.bodyGetConstantTorquePtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -1025,7 +1025,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodySetAxisVelocity(body: RID, axisVelocity: Vector3): Unit { TransferContext.writeArguments(_RID to body, VECTOR3 to axisVelocity) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetAxisVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodySetAxisVelocityPtr, NIL) } @JvmStatic @@ -1035,13 +1035,13 @@ public object PhysicsServer3D : Object() { lock: Boolean, ): Unit { TransferContext.writeArguments(_RID to body, LONG to axis.id, BOOL to lock) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetAxisLockPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodySetAxisLockPtr, NIL) } @JvmStatic public final fun bodyIsAxisLocked(body: RID, axis: BodyAxis): Boolean { TransferContext.writeArguments(_RID to body, LONG to axis.id) - TransferContext.callMethod(rawPtr, MethodBindings.bodyIsAxisLockedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.bodyIsAxisLockedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1051,7 +1051,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodyAddCollisionException(body: RID, exceptedBody: RID): Unit { TransferContext.writeArguments(_RID to body, _RID to exceptedBody) - TransferContext.callMethod(rawPtr, MethodBindings.bodyAddCollisionExceptionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodyAddCollisionExceptionPtr, NIL) } /** @@ -1062,7 +1062,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodyRemoveCollisionException(body: RID, exceptedBody: RID): Unit { TransferContext.writeArguments(_RID to body, _RID to exceptedBody) - TransferContext.callMethod(rawPtr, MethodBindings.bodyRemoveCollisionExceptionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodyRemoveCollisionExceptionPtr, NIL) } /** @@ -1072,7 +1072,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodySetMaxContactsReported(body: RID, amount: Int): Unit { TransferContext.writeArguments(_RID to body, LONG to amount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetMaxContactsReportedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodySetMaxContactsReportedPtr, NIL) } /** @@ -1081,7 +1081,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodyGetMaxContactsReported(body: RID): Int { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.bodyGetMaxContactsReportedPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.bodyGetMaxContactsReportedPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1095,7 +1095,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodySetOmitForceIntegration(body: RID, enable: Boolean): Unit { TransferContext.writeArguments(_RID to body, BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetOmitForceIntegrationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodySetOmitForceIntegrationPtr, NIL) } /** @@ -1105,7 +1105,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodyIsOmittingForceIntegration(body: RID): Boolean { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.bodyIsOmittingForceIntegrationPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.bodyIsOmittingForceIntegrationPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1121,7 +1121,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodySetStateSyncCallback(body: RID, callable: Callable): Unit { TransferContext.writeArguments(_RID to body, CALLABLE to callable) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetStateSyncCallbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodySetStateSyncCallbackPtr, NIL) } /** @@ -1144,7 +1144,7 @@ public object PhysicsServer3D : Object() { userdata: Any? = null, ): Unit { TransferContext.writeArguments(_RID to body, CALLABLE to callable, ANY to userdata) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetForceIntegrationCallbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodySetForceIntegrationCallbackPtr, NIL) } /** @@ -1153,7 +1153,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodySetRayPickable(body: RID, enable: Boolean): Unit { TransferContext.writeArguments(_RID to body, BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.bodySetRayPickablePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bodySetRayPickablePtr, NIL) } /** @@ -1169,7 +1169,7 @@ public object PhysicsServer3D : Object() { result: PhysicsTestMotionResult3D? = null, ): Boolean { TransferContext.writeArguments(_RID to body, OBJECT to parameters, OBJECT to result) - TransferContext.callMethod(rawPtr, MethodBindings.bodyTestMotionPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.bodyTestMotionPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1180,7 +1180,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun bodyGetDirectState(body: RID): PhysicsDirectBodyState3D? { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.bodyGetDirectStatePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.bodyGetDirectStatePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as PhysicsDirectBodyState3D?) } @@ -1190,7 +1190,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun softBodyCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.softBodyCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.softBodyCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -1202,7 +1202,7 @@ public object PhysicsServer3D : Object() { public final fun softBodyUpdateRenderingServer(body: RID, renderingServerHandler: PhysicsServer3DRenderingServerHandler?): Unit { TransferContext.writeArguments(_RID to body, OBJECT to renderingServerHandler) - TransferContext.callMethod(rawPtr, MethodBindings.softBodyUpdateRenderingServerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.softBodyUpdateRenderingServerPtr, NIL) } /** @@ -1211,7 +1211,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun softBodySetSpace(body: RID, space: RID): Unit { TransferContext.writeArguments(_RID to body, _RID to space) - TransferContext.callMethod(rawPtr, MethodBindings.softBodySetSpacePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.softBodySetSpacePtr, NIL) } /** @@ -1220,7 +1220,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun softBodyGetSpace(body: RID): RID { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.softBodyGetSpacePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.softBodyGetSpacePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -1230,7 +1230,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun softBodySetMesh(body: RID, mesh: RID): Unit { TransferContext.writeArguments(_RID to body, _RID to mesh) - TransferContext.callMethod(rawPtr, MethodBindings.softBodySetMeshPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.softBodySetMeshPtr, NIL) } /** @@ -1239,7 +1239,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun softBodyGetBounds(body: RID): AABB { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.softBodyGetBoundsPtr, + TransferContext.callMethod(ptr, MethodBindings.softBodyGetBoundsPtr, godot.core.VariantParser.AABB) return (TransferContext.readReturnValue(godot.core.VariantParser.AABB) as AABB) } @@ -1250,7 +1250,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun softBodySetCollisionLayer(body: RID, layer: Long): Unit { TransferContext.writeArguments(_RID to body, LONG to layer) - TransferContext.callMethod(rawPtr, MethodBindings.softBodySetCollisionLayerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.softBodySetCollisionLayerPtr, NIL) } /** @@ -1259,7 +1259,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun softBodyGetCollisionLayer(body: RID): Long { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.softBodyGetCollisionLayerPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.softBodyGetCollisionLayerPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -1269,7 +1269,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun softBodySetCollisionMask(body: RID, mask: Long): Unit { TransferContext.writeArguments(_RID to body, LONG to mask) - TransferContext.callMethod(rawPtr, MethodBindings.softBodySetCollisionMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.softBodySetCollisionMaskPtr, NIL) } /** @@ -1278,7 +1278,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun softBodyGetCollisionMask(body: RID): Long { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.softBodyGetCollisionMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.softBodyGetCollisionMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -1288,7 +1288,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun softBodyAddCollisionException(body: RID, bodyB: RID): Unit { TransferContext.writeArguments(_RID to body, _RID to bodyB) - TransferContext.callMethod(rawPtr, MethodBindings.softBodyAddCollisionExceptionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.softBodyAddCollisionExceptionPtr, NIL) } /** @@ -1297,7 +1297,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun softBodyRemoveCollisionException(body: RID, bodyB: RID): Unit { TransferContext.writeArguments(_RID to body, _RID to bodyB) - TransferContext.callMethod(rawPtr, MethodBindings.softBodyRemoveCollisionExceptionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.softBodyRemoveCollisionExceptionPtr, NIL) } /** @@ -1312,7 +1312,7 @@ public object PhysicsServer3D : Object() { variant: Any?, ): Unit { TransferContext.writeArguments(_RID to body, LONG to state.id, ANY to variant) - TransferContext.callMethod(rawPtr, MethodBindings.softBodySetStatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.softBodySetStatePtr, NIL) } /** @@ -1323,7 +1323,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun softBodyGetState(body: RID, state: BodyState): Any? { TransferContext.writeArguments(_RID to body, LONG to state.id) - TransferContext.callMethod(rawPtr, MethodBindings.softBodyGetStatePtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.softBodyGetStatePtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -1333,7 +1333,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun softBodySetTransform(body: RID, transform: Transform3D): Unit { TransferContext.writeArguments(_RID to body, TRANSFORM3D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.softBodySetTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.softBodySetTransformPtr, NIL) } /** @@ -1342,7 +1342,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun softBodySetRayPickable(body: RID, enable: Boolean): Unit { TransferContext.writeArguments(_RID to body, BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.softBodySetRayPickablePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.softBodySetRayPickablePtr, NIL) } /** @@ -1352,7 +1352,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun softBodySetSimulationPrecision(body: RID, simulationPrecision: Int): Unit { TransferContext.writeArguments(_RID to body, LONG to simulationPrecision.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.softBodySetSimulationPrecisionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.softBodySetSimulationPrecisionPtr, NIL) } /** @@ -1361,7 +1361,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun softBodyGetSimulationPrecision(body: RID): Int { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.softBodyGetSimulationPrecisionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.softBodyGetSimulationPrecisionPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1371,7 +1371,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun softBodySetTotalMass(body: RID, totalMass: Float): Unit { TransferContext.writeArguments(_RID to body, DOUBLE to totalMass.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.softBodySetTotalMassPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.softBodySetTotalMassPtr, NIL) } /** @@ -1380,7 +1380,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun softBodyGetTotalMass(body: RID): Float { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.softBodyGetTotalMassPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.softBodyGetTotalMassPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1392,7 +1392,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun softBodySetLinearStiffness(body: RID, stiffness: Float): Unit { TransferContext.writeArguments(_RID to body, DOUBLE to stiffness.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.softBodySetLinearStiffnessPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.softBodySetLinearStiffnessPtr, NIL) } /** @@ -1401,7 +1401,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun softBodyGetLinearStiffness(body: RID): Float { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.softBodyGetLinearStiffnessPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.softBodyGetLinearStiffnessPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1412,7 +1412,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun softBodySetPressureCoefficient(body: RID, pressureCoefficient: Float): Unit { TransferContext.writeArguments(_RID to body, DOUBLE to pressureCoefficient.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.softBodySetPressureCoefficientPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.softBodySetPressureCoefficientPtr, NIL) } /** @@ -1421,7 +1421,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun softBodyGetPressureCoefficient(body: RID): Float { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.softBodyGetPressureCoefficientPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.softBodyGetPressureCoefficientPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1432,7 +1432,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun softBodySetDampingCoefficient(body: RID, dampingCoefficient: Float): Unit { TransferContext.writeArguments(_RID to body, DOUBLE to dampingCoefficient.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.softBodySetDampingCoefficientPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.softBodySetDampingCoefficientPtr, NIL) } /** @@ -1441,7 +1441,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun softBodyGetDampingCoefficient(body: RID): Float { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.softBodyGetDampingCoefficientPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.softBodyGetDampingCoefficientPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1453,7 +1453,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun softBodySetDragCoefficient(body: RID, dragCoefficient: Float): Unit { TransferContext.writeArguments(_RID to body, DOUBLE to dragCoefficient.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.softBodySetDragCoefficientPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.softBodySetDragCoefficientPtr, NIL) } /** @@ -1462,7 +1462,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun softBodyGetDragCoefficient(body: RID): Float { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.softBodyGetDragCoefficientPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.softBodyGetDragCoefficientPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1476,7 +1476,7 @@ public object PhysicsServer3D : Object() { globalPosition: Vector3, ): Unit { TransferContext.writeArguments(_RID to body, LONG to pointIndex.toLong(), VECTOR3 to globalPosition) - TransferContext.callMethod(rawPtr, MethodBindings.softBodyMovePointPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.softBodyMovePointPtr, NIL) } /** @@ -1485,7 +1485,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun softBodyGetPointGlobalPosition(body: RID, pointIndex: Int): Vector3 { TransferContext.writeArguments(_RID to body, LONG to pointIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.softBodyGetPointGlobalPositionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.softBodyGetPointGlobalPositionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -1495,7 +1495,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun softBodyRemoveAllPinnedPoints(body: RID): Unit { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.softBodyRemoveAllPinnedPointsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.softBodyRemoveAllPinnedPointsPtr, NIL) } /** @@ -1510,7 +1510,7 @@ public object PhysicsServer3D : Object() { pin: Boolean, ): Unit { TransferContext.writeArguments(_RID to body, LONG to pointIndex.toLong(), BOOL to pin) - TransferContext.callMethod(rawPtr, MethodBindings.softBodyPinPointPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.softBodyPinPointPtr, NIL) } /** @@ -1519,21 +1519,21 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun softBodyIsPointPinned(body: RID, pointIndex: Int): Boolean { TransferContext.writeArguments(_RID to body, LONG to pointIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.softBodyIsPointPinnedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.softBodyIsPointPinnedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @JvmStatic public final fun jointCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.jointCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.jointCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @JvmStatic public final fun jointClear(joint: RID): Unit { TransferContext.writeArguments(_RID to joint) - TransferContext.callMethod(rawPtr, MethodBindings.jointClearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.jointClearPtr, NIL) } @JvmStatic @@ -1545,7 +1545,7 @@ public object PhysicsServer3D : Object() { localB: Vector3, ): Unit { TransferContext.writeArguments(_RID to joint, _RID to bodyA, VECTOR3 to localA, _RID to bodyB, VECTOR3 to localB) - TransferContext.callMethod(rawPtr, MethodBindings.jointMakePinPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.jointMakePinPtr, NIL) } /** @@ -1558,7 +1558,7 @@ public object PhysicsServer3D : Object() { `value`: Float, ): Unit { TransferContext.writeArguments(_RID to joint, LONG to param.id, DOUBLE to value.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.pinJointSetParamPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pinJointSetParamPtr, NIL) } /** @@ -1567,7 +1567,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun pinJointGetParam(joint: RID, `param`: PinJointParam): Float { TransferContext.writeArguments(_RID to joint, LONG to param.id) - TransferContext.callMethod(rawPtr, MethodBindings.pinJointGetParamPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.pinJointGetParamPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1577,7 +1577,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun pinJointSetLocalA(joint: RID, localA: Vector3): Unit { TransferContext.writeArguments(_RID to joint, VECTOR3 to localA) - TransferContext.callMethod(rawPtr, MethodBindings.pinJointSetLocalAPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pinJointSetLocalAPtr, NIL) } /** @@ -1586,7 +1586,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun pinJointGetLocalA(joint: RID): Vector3 { TransferContext.writeArguments(_RID to joint) - TransferContext.callMethod(rawPtr, MethodBindings.pinJointGetLocalAPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.pinJointGetLocalAPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -1596,7 +1596,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun pinJointSetLocalB(joint: RID, localB: Vector3): Unit { TransferContext.writeArguments(_RID to joint, VECTOR3 to localB) - TransferContext.callMethod(rawPtr, MethodBindings.pinJointSetLocalBPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pinJointSetLocalBPtr, NIL) } /** @@ -1605,7 +1605,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun pinJointGetLocalB(joint: RID): Vector3 { TransferContext.writeArguments(_RID to joint) - TransferContext.callMethod(rawPtr, MethodBindings.pinJointGetLocalBPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.pinJointGetLocalBPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -1618,7 +1618,7 @@ public object PhysicsServer3D : Object() { hingeB: Transform3D, ): Unit { TransferContext.writeArguments(_RID to joint, _RID to bodyA, TRANSFORM3D to hingeA, _RID to bodyB, TRANSFORM3D to hingeB) - TransferContext.callMethod(rawPtr, MethodBindings.jointMakeHingePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.jointMakeHingePtr, NIL) } /** @@ -1631,7 +1631,7 @@ public object PhysicsServer3D : Object() { `value`: Float, ): Unit { TransferContext.writeArguments(_RID to joint, LONG to param.id, DOUBLE to value.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.hingeJointSetParamPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.hingeJointSetParamPtr, NIL) } /** @@ -1640,7 +1640,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun hingeJointGetParam(joint: RID, `param`: HingeJointParam): Float { TransferContext.writeArguments(_RID to joint, LONG to param.id) - TransferContext.callMethod(rawPtr, MethodBindings.hingeJointGetParamPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.hingeJointGetParamPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1654,7 +1654,7 @@ public object PhysicsServer3D : Object() { enabled: Boolean, ): Unit { TransferContext.writeArguments(_RID to joint, LONG to flag.id, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.hingeJointSetFlagPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.hingeJointSetFlagPtr, NIL) } /** @@ -1663,7 +1663,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun hingeJointGetFlag(joint: RID, flag: HingeJointFlag): Boolean { TransferContext.writeArguments(_RID to joint, LONG to flag.id) - TransferContext.callMethod(rawPtr, MethodBindings.hingeJointGetFlagPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hingeJointGetFlagPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1676,7 +1676,7 @@ public object PhysicsServer3D : Object() { localRefB: Transform3D, ): Unit { TransferContext.writeArguments(_RID to joint, _RID to bodyA, TRANSFORM3D to localRefA, _RID to bodyB, TRANSFORM3D to localRefB) - TransferContext.callMethod(rawPtr, MethodBindings.jointMakeSliderPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.jointMakeSliderPtr, NIL) } /** @@ -1689,7 +1689,7 @@ public object PhysicsServer3D : Object() { `value`: Float, ): Unit { TransferContext.writeArguments(_RID to joint, LONG to param.id, DOUBLE to value.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.sliderJointSetParamPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.sliderJointSetParamPtr, NIL) } /** @@ -1698,7 +1698,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun sliderJointGetParam(joint: RID, `param`: SliderJointParam): Float { TransferContext.writeArguments(_RID to joint, LONG to param.id) - TransferContext.callMethod(rawPtr, MethodBindings.sliderJointGetParamPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.sliderJointGetParamPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1711,7 +1711,7 @@ public object PhysicsServer3D : Object() { localRefB: Transform3D, ): Unit { TransferContext.writeArguments(_RID to joint, _RID to bodyA, TRANSFORM3D to localRefA, _RID to bodyB, TRANSFORM3D to localRefB) - TransferContext.callMethod(rawPtr, MethodBindings.jointMakeConeTwistPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.jointMakeConeTwistPtr, NIL) } /** @@ -1724,7 +1724,7 @@ public object PhysicsServer3D : Object() { `value`: Float, ): Unit { TransferContext.writeArguments(_RID to joint, LONG to param.id, DOUBLE to value.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.coneTwistJointSetParamPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.coneTwistJointSetParamPtr, NIL) } /** @@ -1733,7 +1733,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun coneTwistJointGetParam(joint: RID, `param`: ConeTwistJointParam): Float { TransferContext.writeArguments(_RID to joint, LONG to param.id) - TransferContext.callMethod(rawPtr, MethodBindings.coneTwistJointGetParamPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.coneTwistJointGetParamPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1743,7 +1743,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun jointGetType(joint: RID): JointType { TransferContext.writeArguments(_RID to joint) - TransferContext.callMethod(rawPtr, MethodBindings.jointGetTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.jointGetTypePtr, LONG) return PhysicsServer3D.JointType.from(TransferContext.readReturnValue(LONG) as Long) } @@ -1753,7 +1753,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun jointSetSolverPriority(joint: RID, priority: Int): Unit { TransferContext.writeArguments(_RID to joint, LONG to priority.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.jointSetSolverPriorityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.jointSetSolverPriorityPtr, NIL) } /** @@ -1762,7 +1762,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun jointGetSolverPriority(joint: RID): Int { TransferContext.writeArguments(_RID to joint) - TransferContext.callMethod(rawPtr, MethodBindings.jointGetSolverPriorityPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.jointGetSolverPriorityPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1772,7 +1772,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun jointDisableCollisionsBetweenBodies(joint: RID, disable: Boolean): Unit { TransferContext.writeArguments(_RID to joint, BOOL to disable) - TransferContext.callMethod(rawPtr, MethodBindings.jointDisableCollisionsBetweenBodiesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.jointDisableCollisionsBetweenBodiesPtr, NIL) } /** @@ -1781,8 +1781,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun jointIsDisabledCollisionsBetweenBodies(joint: RID): Boolean { TransferContext.writeArguments(_RID to joint) - TransferContext.callMethod(rawPtr, MethodBindings.jointIsDisabledCollisionsBetweenBodiesPtr, - BOOL) + TransferContext.callMethod(ptr, MethodBindings.jointIsDisabledCollisionsBetweenBodiesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1799,7 +1798,7 @@ public object PhysicsServer3D : Object() { localRefB: Transform3D, ): Unit { TransferContext.writeArguments(_RID to joint, _RID to bodyA, TRANSFORM3D to localRefA, _RID to bodyB, TRANSFORM3D to localRefB) - TransferContext.callMethod(rawPtr, MethodBindings.jointMakeGeneric6dofPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.jointMakeGeneric6dofPtr, NIL) } /** @@ -1814,7 +1813,7 @@ public object PhysicsServer3D : Object() { `value`: Float, ): Unit { TransferContext.writeArguments(_RID to joint, LONG to axis.id, LONG to param.id, DOUBLE to value.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.generic6dofJointSetParamPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.generic6dofJointSetParamPtr, NIL) } /** @@ -1828,7 +1827,7 @@ public object PhysicsServer3D : Object() { `param`: G6DOFJointAxisParam, ): Float { TransferContext.writeArguments(_RID to joint, LONG to axis.id, LONG to param.id) - TransferContext.callMethod(rawPtr, MethodBindings.generic6dofJointGetParamPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.generic6dofJointGetParamPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1844,7 +1843,7 @@ public object PhysicsServer3D : Object() { enable: Boolean, ): Unit { TransferContext.writeArguments(_RID to joint, LONG to axis.id, LONG to flag.id, BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.generic6dofJointSetFlagPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.generic6dofJointSetFlagPtr, NIL) } /** @@ -1858,7 +1857,7 @@ public object PhysicsServer3D : Object() { flag: G6DOFJointAxisFlag, ): Boolean { TransferContext.writeArguments(_RID to joint, LONG to axis.id, LONG to flag.id) - TransferContext.callMethod(rawPtr, MethodBindings.generic6dofJointGetFlagPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.generic6dofJointGetFlagPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1869,7 +1868,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun freeRid(rid: RID): Unit { TransferContext.writeArguments(_RID to rid) - TransferContext.callMethod(rawPtr, MethodBindings.freeRidPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.freeRidPtr, NIL) } /** @@ -1878,7 +1877,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun setActive(active: Boolean): Unit { TransferContext.writeArguments(BOOL to active) - TransferContext.callMethod(rawPtr, MethodBindings.setActivePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setActivePtr, NIL) } /** @@ -1888,7 +1887,7 @@ public object PhysicsServer3D : Object() { @JvmStatic public final fun getProcessInfo(processInfo: ProcessInfo): Int { TransferContext.writeArguments(LONG to processInfo.id) - TransferContext.callMethod(rawPtr, MethodBindings.getProcessInfoPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getProcessInfoPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsServer3DManager.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsServer3DManager.kt index c62d86d712..fcfd574afd 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsServer3DManager.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsServer3DManager.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.TypeManager import godot.core.VariantParser.CALLABLE @@ -14,7 +15,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.String import kotlin.Suppress @@ -40,7 +40,7 @@ public object PhysicsServer3DManager : Object() { @JvmStatic public final fun registerServer(name: String, createCallback: Callable): Unit { TransferContext.writeArguments(STRING to name, CALLABLE to createCallback) - TransferContext.callMethod(rawPtr, MethodBindings.registerServerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.registerServerPtr, NIL) } /** @@ -50,7 +50,7 @@ public object PhysicsServer3DManager : Object() { @JvmStatic public final fun setDefaultServer(name: String, priority: Int): Unit { TransferContext.writeArguments(STRING to name, LONG to priority.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setDefaultServerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDefaultServerPtr, NIL) } internal object MethodBindings { diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsServer3DRenderingServerHandler.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsServer3DRenderingServerHandler.kt index 45ac88bdd4..0a11160add 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsServer3DRenderingServerHandler.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsServer3DRenderingServerHandler.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.AABB import godot.core.TypeManager import godot.core.VariantParser.LONG @@ -14,7 +15,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -52,7 +52,7 @@ public open class PhysicsServer3DRenderingServerHandler : Object() { */ public final fun setVertex(vertexId: Int, vertex: Vector3): Unit { TransferContext.writeArguments(LONG to vertexId.toLong(), VECTOR3 to vertex) - TransferContext.callMethod(rawPtr, MethodBindings.setVertexPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVertexPtr, NIL) } /** @@ -60,7 +60,7 @@ public open class PhysicsServer3DRenderingServerHandler : Object() { */ public final fun setNormal(vertexId: Int, normal: Vector3): Unit { TransferContext.writeArguments(LONG to vertexId.toLong(), VECTOR3 to normal) - TransferContext.callMethod(rawPtr, MethodBindings.setNormalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNormalPtr, NIL) } /** @@ -68,7 +68,7 @@ public open class PhysicsServer3DRenderingServerHandler : Object() { */ public final fun setAabb(aabb: AABB): Unit { TransferContext.writeArguments(godot.core.VariantParser.AABB to aabb) - TransferContext.callMethod(rawPtr, MethodBindings.setAabbPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAabbPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsShapeQueryParameters2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsShapeQueryParameters2D.kt index 6f1d6218f8..a870480e5c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsShapeQueryParameters2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsShapeQueryParameters2D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.Transform2D import godot.core.TypeManager @@ -24,7 +25,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -234,100 +234,100 @@ public open class PhysicsShapeQueryParameters2D : RefCounted() { public final fun setShape(shape: Resource?): Unit { TransferContext.writeArguments(OBJECT to shape) - TransferContext.callMethod(rawPtr, MethodBindings.setShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShapePtr, NIL) } public final fun getShape(): Resource? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getShapePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getShapePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Resource?) } public final fun setShapeRid(shape: RID): Unit { TransferContext.writeArguments(_RID to shape) - TransferContext.callMethod(rawPtr, MethodBindings.setShapeRidPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShapeRidPtr, NIL) } public final fun getShapeRid(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getShapeRidPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getShapeRidPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } public final fun setTransform(transform: Transform2D): Unit { TransferContext.writeArguments(TRANSFORM2D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.setTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTransformPtr, NIL) } public final fun getTransform(): Transform2D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTransformPtr, TRANSFORM2D) + TransferContext.callMethod(ptr, MethodBindings.getTransformPtr, TRANSFORM2D) return (TransferContext.readReturnValue(TRANSFORM2D) as Transform2D) } public final fun setMotion(motion: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to motion) - TransferContext.callMethod(rawPtr, MethodBindings.setMotionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMotionPtr, NIL) } public final fun getMotion(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMotionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getMotionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setMargin(margin: Float): Unit { TransferContext.writeArguments(DOUBLE to margin.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMarginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMarginPtr, NIL) } public final fun getMargin(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMarginPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMarginPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setCollisionMask(collisionMask: Long): Unit { TransferContext.writeArguments(LONG to collisionMask) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionMaskPtr, NIL) } public final fun getCollisionMask(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCollisionMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setExclude(exclude: VariantArray): Unit { TransferContext.writeArguments(ARRAY to exclude) - TransferContext.callMethod(rawPtr, MethodBindings.setExcludePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExcludePtr, NIL) } public final fun getExclude(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getExcludePtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getExcludePtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } public final fun setCollideWithBodies(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setCollideWithBodiesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollideWithBodiesPtr, NIL) } public final fun isCollideWithBodiesEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCollideWithBodiesEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCollideWithBodiesEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCollideWithAreas(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setCollideWithAreasPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollideWithAreasPtr, NIL) } public final fun isCollideWithAreasEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCollideWithAreasEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCollideWithAreasEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsShapeQueryParameters3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsShapeQueryParameters3D.kt index 99ab00a083..23cbd5cfac 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsShapeQueryParameters3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsShapeQueryParameters3D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.Transform3D import godot.core.TypeManager @@ -24,7 +25,6 @@ import godot.core.VariantParser.VECTOR3 import godot.core.VariantParser._RID import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -234,100 +234,100 @@ public open class PhysicsShapeQueryParameters3D : RefCounted() { public final fun setShape(shape: Resource?): Unit { TransferContext.writeArguments(OBJECT to shape) - TransferContext.callMethod(rawPtr, MethodBindings.setShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShapePtr, NIL) } public final fun getShape(): Resource? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getShapePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getShapePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Resource?) } public final fun setShapeRid(shape: RID): Unit { TransferContext.writeArguments(_RID to shape) - TransferContext.callMethod(rawPtr, MethodBindings.setShapeRidPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShapeRidPtr, NIL) } public final fun getShapeRid(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getShapeRidPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getShapeRidPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } public final fun setTransform(transform: Transform3D): Unit { TransferContext.writeArguments(TRANSFORM3D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.setTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTransformPtr, NIL) } public final fun getTransform(): Transform3D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTransformPtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.getTransformPtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } public final fun setMotion(motion: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to motion) - TransferContext.callMethod(rawPtr, MethodBindings.setMotionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMotionPtr, NIL) } public final fun getMotion(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMotionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getMotionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setMargin(margin: Float): Unit { TransferContext.writeArguments(DOUBLE to margin.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMarginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMarginPtr, NIL) } public final fun getMargin(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMarginPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMarginPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setCollisionMask(collisionMask: Long): Unit { TransferContext.writeArguments(LONG to collisionMask) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionMaskPtr, NIL) } public final fun getCollisionMask(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCollisionMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setExclude(exclude: VariantArray): Unit { TransferContext.writeArguments(ARRAY to exclude) - TransferContext.callMethod(rawPtr, MethodBindings.setExcludePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExcludePtr, NIL) } public final fun getExclude(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getExcludePtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getExcludePtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } public final fun setCollideWithBodies(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setCollideWithBodiesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollideWithBodiesPtr, NIL) } public final fun isCollideWithBodiesEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCollideWithBodiesEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCollideWithBodiesEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCollideWithAreas(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setCollideWithAreasPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollideWithAreasPtr, NIL) } public final fun isCollideWithAreasEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCollideWithAreasEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCollideWithAreasEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsTestMotionParameters2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsTestMotionParameters2D.kt index 2be26a50b7..c7c91fa15f 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsTestMotionParameters2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsTestMotionParameters2D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.Transform2D import godot.core.TypeManager @@ -21,7 +22,6 @@ import godot.core.VariantParser.TRANSFORM2D import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -180,79 +180,79 @@ public open class PhysicsTestMotionParameters2D : RefCounted() { public final fun getFrom(): Transform2D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFromPtr, TRANSFORM2D) + TransferContext.callMethod(ptr, MethodBindings.getFromPtr, TRANSFORM2D) return (TransferContext.readReturnValue(TRANSFORM2D) as Transform2D) } public final fun setFrom(from: Transform2D): Unit { TransferContext.writeArguments(TRANSFORM2D to from) - TransferContext.callMethod(rawPtr, MethodBindings.setFromPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFromPtr, NIL) } public final fun getMotion(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMotionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getMotionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setMotion(motion: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to motion) - TransferContext.callMethod(rawPtr, MethodBindings.setMotionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMotionPtr, NIL) } public final fun getMargin(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMarginPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMarginPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setMargin(margin: Float): Unit { TransferContext.writeArguments(DOUBLE to margin.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMarginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMarginPtr, NIL) } public final fun isCollideSeparationRayEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCollideSeparationRayEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCollideSeparationRayEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCollideSeparationRayEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setCollideSeparationRayEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollideSeparationRayEnabledPtr, NIL) } public final fun getExcludeBodies(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getExcludeBodiesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getExcludeBodiesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } public final fun setExcludeBodies(excludeList: VariantArray): Unit { TransferContext.writeArguments(ARRAY to excludeList) - TransferContext.callMethod(rawPtr, MethodBindings.setExcludeBodiesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExcludeBodiesPtr, NIL) } public final fun getExcludeObjects(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getExcludeObjectsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getExcludeObjectsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } public final fun setExcludeObjects(excludeList: VariantArray): Unit { TransferContext.writeArguments(ARRAY to excludeList) - TransferContext.callMethod(rawPtr, MethodBindings.setExcludeObjectsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExcludeObjectsPtr, NIL) } public final fun isRecoveryAsCollisionEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isRecoveryAsCollisionEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isRecoveryAsCollisionEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setRecoveryAsCollisionEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setRecoveryAsCollisionEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRecoveryAsCollisionEnabledPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsTestMotionParameters3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsTestMotionParameters3D.kt index 1ebe885f8b..9d7657b7b3 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsTestMotionParameters3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsTestMotionParameters3D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.Transform3D import godot.core.TypeManager @@ -22,7 +23,6 @@ import godot.core.VariantParser.TRANSFORM3D import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -193,90 +193,90 @@ public open class PhysicsTestMotionParameters3D : RefCounted() { public final fun getFrom(): Transform3D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFromPtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.getFromPtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } public final fun setFrom(from: Transform3D): Unit { TransferContext.writeArguments(TRANSFORM3D to from) - TransferContext.callMethod(rawPtr, MethodBindings.setFromPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFromPtr, NIL) } public final fun getMotion(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMotionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getMotionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setMotion(motion: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to motion) - TransferContext.callMethod(rawPtr, MethodBindings.setMotionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMotionPtr, NIL) } public final fun getMargin(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMarginPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMarginPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setMargin(margin: Float): Unit { TransferContext.writeArguments(DOUBLE to margin.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMarginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMarginPtr, NIL) } public final fun getMaxCollisions(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxCollisionsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMaxCollisionsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setMaxCollisions(maxCollisions: Int): Unit { TransferContext.writeArguments(LONG to maxCollisions.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxCollisionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxCollisionsPtr, NIL) } public final fun isCollideSeparationRayEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCollideSeparationRayEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCollideSeparationRayEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCollideSeparationRayEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setCollideSeparationRayEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollideSeparationRayEnabledPtr, NIL) } public final fun getExcludeBodies(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getExcludeBodiesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getExcludeBodiesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } public final fun setExcludeBodies(excludeList: VariantArray): Unit { TransferContext.writeArguments(ARRAY to excludeList) - TransferContext.callMethod(rawPtr, MethodBindings.setExcludeBodiesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExcludeBodiesPtr, NIL) } public final fun getExcludeObjects(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getExcludeObjectsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getExcludeObjectsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } public final fun setExcludeObjects(excludeList: VariantArray): Unit { TransferContext.writeArguments(ARRAY to excludeList) - TransferContext.callMethod(rawPtr, MethodBindings.setExcludeObjectsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExcludeObjectsPtr, NIL) } public final fun isRecoveryAsCollisionEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isRecoveryAsCollisionEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isRecoveryAsCollisionEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setRecoveryAsCollisionEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setRecoveryAsCollisionEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRecoveryAsCollisionEnabledPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsTestMotionResult2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsTestMotionResult2D.kt index 0401ff7623..6e495eedf9 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsTestMotionResult2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsTestMotionResult2D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.TypeManager import godot.core.VariantParser.DOUBLE @@ -16,7 +17,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -38,7 +38,7 @@ public open class PhysicsTestMotionResult2D : RefCounted() { */ public final fun getTravel(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTravelPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getTravelPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -47,7 +47,7 @@ public open class PhysicsTestMotionResult2D : RefCounted() { */ public final fun getRemainder(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRemainderPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getRemainderPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -56,7 +56,7 @@ public open class PhysicsTestMotionResult2D : RefCounted() { */ public final fun getCollisionPoint(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionPointPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getCollisionPointPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -65,7 +65,7 @@ public open class PhysicsTestMotionResult2D : RefCounted() { */ public final fun getCollisionNormal(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionNormalPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getCollisionNormalPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -74,7 +74,7 @@ public open class PhysicsTestMotionResult2D : RefCounted() { */ public final fun getColliderVelocity(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColliderVelocityPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getColliderVelocityPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -84,7 +84,7 @@ public open class PhysicsTestMotionResult2D : RefCounted() { */ public final fun getColliderId(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColliderIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getColliderIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -93,7 +93,7 @@ public open class PhysicsTestMotionResult2D : RefCounted() { */ public final fun getColliderRid(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColliderRidPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getColliderRidPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -102,7 +102,7 @@ public open class PhysicsTestMotionResult2D : RefCounted() { */ public final fun getCollider(): Object? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColliderPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getColliderPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Object?) } @@ -111,7 +111,7 @@ public open class PhysicsTestMotionResult2D : RefCounted() { */ public final fun getColliderShape(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColliderShapePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getColliderShapePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -120,7 +120,7 @@ public open class PhysicsTestMotionResult2D : RefCounted() { */ public final fun getCollisionLocalShape(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionLocalShapePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCollisionLocalShapePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -129,7 +129,7 @@ public open class PhysicsTestMotionResult2D : RefCounted() { */ public final fun getCollisionDepth(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionDepthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCollisionDepthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -139,7 +139,7 @@ public open class PhysicsTestMotionResult2D : RefCounted() { */ public final fun getCollisionSafeFraction(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionSafeFractionPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCollisionSafeFractionPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -149,7 +149,7 @@ public open class PhysicsTestMotionResult2D : RefCounted() { */ public final fun getCollisionUnsafeFraction(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionUnsafeFractionPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCollisionUnsafeFractionPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsTestMotionResult3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsTestMotionResult3D.kt index ea4e00ba4b..d47e590b1c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsTestMotionResult3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PhysicsTestMotionResult3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.TypeManager import godot.core.VariantParser.DOUBLE @@ -16,7 +17,6 @@ import godot.core.VariantParser.VECTOR3 import godot.core.VariantParser._RID import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -39,7 +39,7 @@ public open class PhysicsTestMotionResult3D : RefCounted() { */ public final fun getTravel(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTravelPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getTravelPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -48,7 +48,7 @@ public open class PhysicsTestMotionResult3D : RefCounted() { */ public final fun getRemainder(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRemainderPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getRemainderPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -58,7 +58,7 @@ public open class PhysicsTestMotionResult3D : RefCounted() { */ public final fun getCollisionSafeFraction(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionSafeFractionPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCollisionSafeFractionPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -68,7 +68,7 @@ public open class PhysicsTestMotionResult3D : RefCounted() { */ public final fun getCollisionUnsafeFraction(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionUnsafeFractionPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCollisionUnsafeFractionPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -77,7 +77,7 @@ public open class PhysicsTestMotionResult3D : RefCounted() { */ public final fun getCollisionCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCollisionCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -88,7 +88,7 @@ public open class PhysicsTestMotionResult3D : RefCounted() { @JvmOverloads public final fun getCollisionPoint(collisionIndex: Int = 0): Vector3 { TransferContext.writeArguments(LONG to collisionIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionPointPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getCollisionPointPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -99,7 +99,7 @@ public open class PhysicsTestMotionResult3D : RefCounted() { @JvmOverloads public final fun getCollisionNormal(collisionIndex: Int = 0): Vector3 { TransferContext.writeArguments(LONG to collisionIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionNormalPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getCollisionNormalPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -110,7 +110,7 @@ public open class PhysicsTestMotionResult3D : RefCounted() { @JvmOverloads public final fun getColliderVelocity(collisionIndex: Int = 0): Vector3 { TransferContext.writeArguments(LONG to collisionIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getColliderVelocityPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getColliderVelocityPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -121,7 +121,7 @@ public open class PhysicsTestMotionResult3D : RefCounted() { @JvmOverloads public final fun getColliderId(collisionIndex: Int = 0): Long { TransferContext.writeArguments(LONG to collisionIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getColliderIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getColliderIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -132,7 +132,7 @@ public open class PhysicsTestMotionResult3D : RefCounted() { @JvmOverloads public final fun getColliderRid(collisionIndex: Int = 0): RID { TransferContext.writeArguments(LONG to collisionIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getColliderRidPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getColliderRidPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -143,7 +143,7 @@ public open class PhysicsTestMotionResult3D : RefCounted() { @JvmOverloads public final fun getCollider(collisionIndex: Int = 0): Object? { TransferContext.writeArguments(LONG to collisionIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getColliderPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getColliderPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Object?) } @@ -154,7 +154,7 @@ public open class PhysicsTestMotionResult3D : RefCounted() { @JvmOverloads public final fun getColliderShape(collisionIndex: Int = 0): Int { TransferContext.writeArguments(LONG to collisionIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getColliderShapePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getColliderShapePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -165,7 +165,7 @@ public open class PhysicsTestMotionResult3D : RefCounted() { @JvmOverloads public final fun getCollisionLocalShape(collisionIndex: Int = 0): Int { TransferContext.writeArguments(LONG to collisionIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionLocalShapePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCollisionLocalShapePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -176,7 +176,7 @@ public open class PhysicsTestMotionResult3D : RefCounted() { @JvmOverloads public final fun getCollisionDepth(collisionIndex: Int = 0): Float { TransferContext.writeArguments(LONG to collisionIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionDepthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCollisionDepthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PinJoint2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PinJoint2D.kt index cce031fdb5..4728e05e55 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PinJoint2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PinJoint2D.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -101,67 +101,67 @@ public open class PinJoint2D : Joint2D() { public final fun setSoftness(softness: Float): Unit { TransferContext.writeArguments(DOUBLE to softness.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSoftnessPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSoftnessPtr, NIL) } public final fun getSoftness(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSoftnessPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSoftnessPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAngularLimitLower(angularLimitLower: Float): Unit { TransferContext.writeArguments(DOUBLE to angularLimitLower.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAngularLimitLowerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAngularLimitLowerPtr, NIL) } public final fun getAngularLimitLower(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAngularLimitLowerPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAngularLimitLowerPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAngularLimitUpper(angularLimitUpper: Float): Unit { TransferContext.writeArguments(DOUBLE to angularLimitUpper.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAngularLimitUpperPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAngularLimitUpperPtr, NIL) } public final fun getAngularLimitUpper(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAngularLimitUpperPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAngularLimitUpperPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setMotorTargetVelocity(motorTargetVelocity: Float): Unit { TransferContext.writeArguments(DOUBLE to motorTargetVelocity.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMotorTargetVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMotorTargetVelocityPtr, NIL) } public final fun getMotorTargetVelocity(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMotorTargetVelocityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMotorTargetVelocityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setMotorEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setMotorEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMotorEnabledPtr, NIL) } public final fun isMotorEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isMotorEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isMotorEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAngularLimitEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setAngularLimitEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAngularLimitEnabledPtr, NIL) } public final fun isAngularLimitEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isAngularLimitEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isAngularLimitEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PinJoint3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PinJoint3D.kt index 3f4c7975a4..1960a45e62 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PinJoint3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PinJoint3D.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -36,7 +36,7 @@ public open class PinJoint3D : Joint3D() { */ public final fun setParam(`param`: Param, `value`: Float): Unit { TransferContext.writeArguments(LONG to param.id, DOUBLE to value.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setParamPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setParamPtr, NIL) } /** @@ -44,7 +44,7 @@ public open class PinJoint3D : Joint3D() { */ public final fun getParam(`param`: Param): Float { TransferContext.writeArguments(LONG to param.id) - TransferContext.callMethod(rawPtr, MethodBindings.getParamPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getParamPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PlaceholderMesh.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PlaceholderMesh.kt index 1f900ab542..24a4a9a5ca 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PlaceholderMesh.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PlaceholderMesh.kt @@ -9,11 +9,11 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.AABB import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -71,7 +71,7 @@ public open class PlaceholderMesh : Mesh() { public final fun setAabb(aabb: AABB): Unit { TransferContext.writeArguments(godot.core.VariantParser.AABB to aabb) - TransferContext.callMethod(rawPtr, MethodBindings.setAabbPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAabbPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PlaceholderTexture2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PlaceholderTexture2D.kt index 92b4b99ff6..ab202d3317 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PlaceholderTexture2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PlaceholderTexture2D.kt @@ -9,12 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -74,7 +74,7 @@ public open class PlaceholderTexture2D : Texture2D() { public final fun setSize(size: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to size) - TransferContext.callMethod(rawPtr, MethodBindings.setSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSizePtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PlaceholderTexture3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PlaceholderTexture3D.kt index f5d91c079f..3ca85a5e1b 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PlaceholderTexture3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PlaceholderTexture3D.kt @@ -9,12 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR3I import godot.core.Vector3i import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -74,12 +74,12 @@ public open class PlaceholderTexture3D : Texture3D() { public final fun setSize(size: Vector3i): Unit { TransferContext.writeArguments(VECTOR3I to size) - TransferContext.callMethod(rawPtr, MethodBindings.setSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSizePtr, NIL) } public final fun getSize(): Vector3i { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSizePtr, VECTOR3I) + TransferContext.callMethod(ptr, MethodBindings.getSizePtr, VECTOR3I) return (TransferContext.readReturnValue(VECTOR3I) as Vector3i) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PlaceholderTextureLayered.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PlaceholderTextureLayered.kt index 5b7234141a..0225c2048a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PlaceholderTextureLayered.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PlaceholderTextureLayered.kt @@ -9,13 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2I import godot.core.Vector2i import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -86,18 +86,18 @@ public open class PlaceholderTextureLayered internal constructor() : TextureLaye public final fun setSize(size: Vector2i): Unit { TransferContext.writeArguments(VECTOR2I to size) - TransferContext.callMethod(rawPtr, MethodBindings.setSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSizePtr, NIL) } public final fun getSize(): Vector2i { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSizePtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getSizePtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } public final fun setLayers(layers: Int): Unit { TransferContext.writeArguments(LONG to layers.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setLayersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLayersPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PlaneMesh.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PlaneMesh.kt index 73ef06c3d3..a2c5fcf70c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PlaneMesh.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PlaneMesh.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL @@ -17,7 +18,6 @@ import godot.core.VariantParser.VECTOR3 import godot.core.Vector2 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -145,56 +145,56 @@ public open class PlaneMesh : PrimitiveMesh() { public final fun setSize(size: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to size) - TransferContext.callMethod(rawPtr, MethodBindings.setSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSizePtr, NIL) } public final fun getSize(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSizePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getSizePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setSubdivideWidth(subdivide: Int): Unit { TransferContext.writeArguments(LONG to subdivide.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSubdivideWidthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSubdivideWidthPtr, NIL) } public final fun getSubdivideWidth(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSubdivideWidthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSubdivideWidthPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setSubdivideDepth(subdivide: Int): Unit { TransferContext.writeArguments(LONG to subdivide.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSubdivideDepthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSubdivideDepthPtr, NIL) } public final fun getSubdivideDepth(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSubdivideDepthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSubdivideDepthPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setCenterOffset(offset: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.setCenterOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCenterOffsetPtr, NIL) } public final fun getCenterOffset(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCenterOffsetPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getCenterOffsetPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setOrientation(orientation: Orientation): Unit { TransferContext.writeArguments(LONG to orientation.id) - TransferContext.callMethod(rawPtr, MethodBindings.setOrientationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOrientationPtr, NIL) } public final fun getOrientation(): Orientation { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOrientationPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOrientationPtr, LONG) return PlaneMesh.Orientation.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PointLight2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PointLight2D.kt index dfe95e6022..e8f6c2c49d 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PointLight2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PointLight2D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL @@ -16,7 +17,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -105,34 +105,34 @@ public open class PointLight2D : Light2D() { public final fun setTexture(texture: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTexturePtr, NIL) } public final fun getTexture(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } public final fun setTextureOffset(textureOffset: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to textureOffset) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureOffsetPtr, NIL) } public final fun getTextureOffset(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextureOffsetPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getTextureOffsetPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setTextureScale(textureScale: Float): Unit { TransferContext.writeArguments(DOUBLE to textureScale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureScalePtr, NIL) } public final fun getTextureScale(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextureScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTextureScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Polygon2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Polygon2D.kt index c061286a45..f1557a5fff 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Polygon2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Polygon2D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.NodePath import godot.core.PackedColorArray @@ -30,7 +31,6 @@ import godot.core.VariantParser.PACKED_VECTOR2_ARRAY import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -333,144 +333,144 @@ public open class Polygon2D : Node2D() { public final fun setPolygon(polygon: PackedVector2Array): Unit { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to polygon) - TransferContext.callMethod(rawPtr, MethodBindings.setPolygonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPolygonPtr, NIL) } public final fun getPolygon(): PackedVector2Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPolygonPtr, PACKED_VECTOR2_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getPolygonPtr, PACKED_VECTOR2_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR2_ARRAY) as PackedVector2Array) } public final fun setUv(uv: PackedVector2Array): Unit { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to uv) - TransferContext.callMethod(rawPtr, MethodBindings.setUvPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUvPtr, NIL) } public final fun getUv(): PackedVector2Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUvPtr, PACKED_VECTOR2_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getUvPtr, PACKED_VECTOR2_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR2_ARRAY) as PackedVector2Array) } public final fun setColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColorPtr, NIL) } public final fun getColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setPolygons(polygons: VariantArray): Unit { TransferContext.writeArguments(ARRAY to polygons) - TransferContext.callMethod(rawPtr, MethodBindings.setPolygonsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPolygonsPtr, NIL) } public final fun getPolygons(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPolygonsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getPolygonsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } public final fun setVertexColors(vertexColors: PackedColorArray): Unit { TransferContext.writeArguments(PACKED_COLOR_ARRAY to vertexColors) - TransferContext.callMethod(rawPtr, MethodBindings.setVertexColorsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVertexColorsPtr, NIL) } public final fun getVertexColors(): PackedColorArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVertexColorsPtr, PACKED_COLOR_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getVertexColorsPtr, PACKED_COLOR_ARRAY) return (TransferContext.readReturnValue(PACKED_COLOR_ARRAY) as PackedColorArray) } public final fun setTexture(texture: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTexturePtr, NIL) } public final fun getTexture(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } public final fun setTextureOffset(textureOffset: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to textureOffset) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureOffsetPtr, NIL) } public final fun getTextureOffset(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextureOffsetPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getTextureOffsetPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setTextureRotation(textureRotation: Float): Unit { TransferContext.writeArguments(DOUBLE to textureRotation.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureRotationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureRotationPtr, NIL) } public final fun getTextureRotation(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextureRotationPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTextureRotationPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setTextureScale(textureScale: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to textureScale) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureScalePtr, NIL) } public final fun getTextureScale(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextureScalePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getTextureScalePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setInvertEnabled(invert: Boolean): Unit { TransferContext.writeArguments(BOOL to invert) - TransferContext.callMethod(rawPtr, MethodBindings.setInvertEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInvertEnabledPtr, NIL) } public final fun getInvertEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInvertEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getInvertEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAntialiased(antialiased: Boolean): Unit { TransferContext.writeArguments(BOOL to antialiased) - TransferContext.callMethod(rawPtr, MethodBindings.setAntialiasedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAntialiasedPtr, NIL) } public final fun getAntialiased(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAntialiasedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getAntialiasedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setInvertBorder(invertBorder: Float): Unit { TransferContext.writeArguments(DOUBLE to invertBorder.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setInvertBorderPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInvertBorderPtr, NIL) } public final fun getInvertBorder(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInvertBorderPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getInvertBorderPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setOffset(offset: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.setOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOffsetPtr, NIL) } public final fun getOffset(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOffsetPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getOffsetPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -479,7 +479,7 @@ public open class Polygon2D : Node2D() { */ public final fun addBone(path: NodePath, weights: PackedFloat32Array): Unit { TransferContext.writeArguments(NODE_PATH to path, PACKED_FLOAT_32_ARRAY to weights) - TransferContext.callMethod(rawPtr, MethodBindings.addBonePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addBonePtr, NIL) } /** @@ -487,7 +487,7 @@ public open class Polygon2D : Node2D() { */ public final fun getBoneCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBoneCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBoneCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -496,7 +496,7 @@ public open class Polygon2D : Node2D() { */ public final fun getBonePath(index: Int): NodePath { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBonePathPtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getBonePathPtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } @@ -505,7 +505,7 @@ public open class Polygon2D : Node2D() { */ public final fun getBoneWeights(index: Int): PackedFloat32Array { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBoneWeightsPtr, PACKED_FLOAT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getBoneWeightsPtr, PACKED_FLOAT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_FLOAT_32_ARRAY) as PackedFloat32Array) } @@ -514,7 +514,7 @@ public open class Polygon2D : Node2D() { */ public final fun eraseBone(index: Int): Unit { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.eraseBonePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.eraseBonePtr, NIL) } /** @@ -522,7 +522,7 @@ public open class Polygon2D : Node2D() { */ public final fun clearBones(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearBonesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearBonesPtr, NIL) } /** @@ -530,7 +530,7 @@ public open class Polygon2D : Node2D() { */ public final fun setBonePath(index: Int, path: NodePath): Unit { TransferContext.writeArguments(LONG to index.toLong(), NODE_PATH to path) - TransferContext.callMethod(rawPtr, MethodBindings.setBonePathPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBonePathPtr, NIL) } /** @@ -538,28 +538,28 @@ public open class Polygon2D : Node2D() { */ public final fun setBoneWeights(index: Int, weights: PackedFloat32Array): Unit { TransferContext.writeArguments(LONG to index.toLong(), PACKED_FLOAT_32_ARRAY to weights) - TransferContext.callMethod(rawPtr, MethodBindings.setBoneWeightsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBoneWeightsPtr, NIL) } public final fun setSkeleton(skeleton: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to skeleton) - TransferContext.callMethod(rawPtr, MethodBindings.setSkeletonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSkeletonPtr, NIL) } public final fun getSkeleton(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSkeletonPtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getSkeletonPtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } public final fun setInternalVertexCount(internalVertexCount: Int): Unit { TransferContext.writeArguments(LONG to internalVertexCount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setInternalVertexCountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInternalVertexCountPtr, NIL) } public final fun getInternalVertexCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInternalVertexCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getInternalVertexCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PolygonOccluder3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PolygonOccluder3D.kt index c5daeb8d1d..6a1b32d0ee 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PolygonOccluder3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PolygonOccluder3D.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedVector2Array import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_VECTOR2_ARRAY import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -49,12 +49,12 @@ public open class PolygonOccluder3D : Occluder3D() { public final fun setPolygon(polygon: PackedVector2Array): Unit { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to polygon) - TransferContext.callMethod(rawPtr, MethodBindings.setPolygonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPolygonPtr, NIL) } public final fun getPolygon(): PackedVector2Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPolygonPtr, PACKED_VECTOR2_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getPolygonPtr, PACKED_VECTOR2_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR2_ARRAY) as PackedVector2Array) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PolygonPathFinder.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PolygonPathFinder.kt index 2345fe947e..7a4dc4cef4 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PolygonPathFinder.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PolygonPathFinder.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedInt32Array import godot.core.PackedVector2Array import godot.core.Rect2 @@ -21,7 +22,6 @@ import godot.core.VariantParser.RECT2 import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -37,47 +37,47 @@ public open class PolygonPathFinder : Resource() { public final fun setup(points: PackedVector2Array, connections: PackedInt32Array): Unit { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to points, PACKED_INT_32_ARRAY to connections) - TransferContext.callMethod(rawPtr, MethodBindings.setupPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setupPtr, NIL) } public final fun findPath(from: Vector2, to: Vector2): PackedVector2Array { TransferContext.writeArguments(VECTOR2 to from, VECTOR2 to to) - TransferContext.callMethod(rawPtr, MethodBindings.findPathPtr, PACKED_VECTOR2_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.findPathPtr, PACKED_VECTOR2_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR2_ARRAY) as PackedVector2Array) } public final fun getIntersections(from: Vector2, to: Vector2): PackedVector2Array { TransferContext.writeArguments(VECTOR2 to from, VECTOR2 to to) - TransferContext.callMethod(rawPtr, MethodBindings.getIntersectionsPtr, PACKED_VECTOR2_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getIntersectionsPtr, PACKED_VECTOR2_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR2_ARRAY) as PackedVector2Array) } public final fun getClosestPoint(point: Vector2): Vector2 { TransferContext.writeArguments(VECTOR2 to point) - TransferContext.callMethod(rawPtr, MethodBindings.getClosestPointPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getClosestPointPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun isPointInside(point: Vector2): Boolean { TransferContext.writeArguments(VECTOR2 to point) - TransferContext.callMethod(rawPtr, MethodBindings.isPointInsidePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPointInsidePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setPointPenalty(idx: Int, penalty: Float): Unit { TransferContext.writeArguments(LONG to idx.toLong(), DOUBLE to penalty.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPointPenaltyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPointPenaltyPtr, NIL) } public final fun getPointPenalty(idx: Int): Float { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getPointPenaltyPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPointPenaltyPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun getBounds(): Rect2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBoundsPtr, RECT2) + TransferContext.callMethod(ptr, MethodBindings.getBoundsPtr, RECT2) return (TransferContext.readReturnValue(RECT2) as Rect2) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PopupMenu.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PopupMenu.kt index 3e4daaebdf..510fc533df 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PopupMenu.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PopupMenu.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.Signal0 import godot.core.Signal1 @@ -20,7 +21,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -187,18 +187,18 @@ public open class PopupMenu : Popup() { public final fun activateItemByEvent(event: InputEvent?, forGlobalOnly: Boolean = false): Boolean { TransferContext.writeArguments(OBJECT to event, BOOL to forGlobalOnly) - TransferContext.callMethod(rawPtr, MethodBindings.activateItemByEventPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.activateItemByEventPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setPreferNativeMenu(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setPreferNativeMenuPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPreferNativeMenuPtr, NIL) } public final fun isPreferNativeMenu(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isPreferNativeMenuPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPreferNativeMenuPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -207,7 +207,7 @@ public open class PopupMenu : Popup() { */ public final fun isNativeMenu(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isNativeMenuPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isNativeMenuPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -227,7 +227,7 @@ public open class PopupMenu : Popup() { accel: Key = Key.KEY_NONE, ): Unit { TransferContext.writeArguments(STRING to label, LONG to id.toLong(), LONG to accel.id) - TransferContext.callMethod(rawPtr, MethodBindings.addItemPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addItemPtr, NIL) } /** @@ -245,7 +245,7 @@ public open class PopupMenu : Popup() { accel: Key = Key.KEY_NONE, ): Unit { TransferContext.writeArguments(OBJECT to texture, STRING to label, LONG to id.toLong(), LONG to accel.id) - TransferContext.callMethod(rawPtr, MethodBindings.addIconItemPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addIconItemPtr, NIL) } /** @@ -265,7 +265,7 @@ public open class PopupMenu : Popup() { accel: Key = Key.KEY_NONE, ): Unit { TransferContext.writeArguments(STRING to label, LONG to id.toLong(), LONG to accel.id) - TransferContext.callMethod(rawPtr, MethodBindings.addCheckItemPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addCheckItemPtr, NIL) } /** @@ -286,7 +286,7 @@ public open class PopupMenu : Popup() { accel: Key = Key.KEY_NONE, ): Unit { TransferContext.writeArguments(OBJECT to texture, STRING to label, LONG to id.toLong(), LONG to accel.id) - TransferContext.callMethod(rawPtr, MethodBindings.addIconCheckItemPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addIconCheckItemPtr, NIL) } /** @@ -306,7 +306,7 @@ public open class PopupMenu : Popup() { accel: Key = Key.KEY_NONE, ): Unit { TransferContext.writeArguments(STRING to label, LONG to id.toLong(), LONG to accel.id) - TransferContext.callMethod(rawPtr, MethodBindings.addRadioCheckItemPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addRadioCheckItemPtr, NIL) } /** @@ -320,7 +320,7 @@ public open class PopupMenu : Popup() { accel: Key = Key.KEY_NONE, ): Unit { TransferContext.writeArguments(OBJECT to texture, STRING to label, LONG to id.toLong(), LONG to accel.id) - TransferContext.callMethod(rawPtr, MethodBindings.addIconRadioCheckItemPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addIconRadioCheckItemPtr, NIL) } /** @@ -360,7 +360,7 @@ public open class PopupMenu : Popup() { accel: Key = Key.KEY_NONE, ): Unit { TransferContext.writeArguments(STRING to label, LONG to maxStates.toLong(), LONG to defaultState.toLong(), LONG to id.toLong(), LONG to accel.id) - TransferContext.callMethod(rawPtr, MethodBindings.addMultistateItemPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addMultistateItemPtr, NIL) } /** @@ -376,7 +376,7 @@ public open class PopupMenu : Popup() { allowEcho: Boolean = false, ): Unit { TransferContext.writeArguments(OBJECT to shortcut, LONG to id.toLong(), BOOL to global, BOOL to allowEcho) - TransferContext.callMethod(rawPtr, MethodBindings.addShortcutPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addShortcutPtr, NIL) } /** @@ -394,7 +394,7 @@ public open class PopupMenu : Popup() { allowEcho: Boolean = false, ): Unit { TransferContext.writeArguments(OBJECT to texture, OBJECT to shortcut, LONG to id.toLong(), BOOL to global, BOOL to allowEcho) - TransferContext.callMethod(rawPtr, MethodBindings.addIconShortcutPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addIconShortcutPtr, NIL) } /** @@ -412,7 +412,7 @@ public open class PopupMenu : Popup() { global: Boolean = false, ): Unit { TransferContext.writeArguments(OBJECT to shortcut, LONG to id.toLong(), BOOL to global) - TransferContext.callMethod(rawPtr, MethodBindings.addCheckShortcutPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addCheckShortcutPtr, NIL) } /** @@ -431,7 +431,7 @@ public open class PopupMenu : Popup() { global: Boolean = false, ): Unit { TransferContext.writeArguments(OBJECT to texture, OBJECT to shortcut, LONG to id.toLong(), BOOL to global) - TransferContext.callMethod(rawPtr, MethodBindings.addIconCheckShortcutPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addIconCheckShortcutPtr, NIL) } /** @@ -449,7 +449,7 @@ public open class PopupMenu : Popup() { global: Boolean = false, ): Unit { TransferContext.writeArguments(OBJECT to shortcut, LONG to id.toLong(), BOOL to global) - TransferContext.callMethod(rawPtr, MethodBindings.addRadioCheckShortcutPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addRadioCheckShortcutPtr, NIL) } /** @@ -463,7 +463,7 @@ public open class PopupMenu : Popup() { global: Boolean = false, ): Unit { TransferContext.writeArguments(OBJECT to texture, OBJECT to shortcut, LONG to id.toLong(), BOOL to global) - TransferContext.callMethod(rawPtr, MethodBindings.addIconRadioCheckShortcutPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addIconRadioCheckShortcutPtr, NIL) } /** @@ -480,7 +480,7 @@ public open class PopupMenu : Popup() { id: Int = -1, ): Unit { TransferContext.writeArguments(STRING to label, STRING to submenu, LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addSubmenuItemPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addSubmenuItemPtr, NIL) } /** @@ -499,7 +499,7 @@ public open class PopupMenu : Popup() { id: Int = -1, ): Unit { TransferContext.writeArguments(STRING to label, OBJECT to submenu, LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addSubmenuNodeItemPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addSubmenuNodeItemPtr, NIL) } /** @@ -507,7 +507,7 @@ public open class PopupMenu : Popup() { */ public final fun setItemText(index: Int, text: String): Unit { TransferContext.writeArguments(LONG to index.toLong(), STRING to text) - TransferContext.callMethod(rawPtr, MethodBindings.setItemTextPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemTextPtr, NIL) } /** @@ -515,7 +515,7 @@ public open class PopupMenu : Popup() { */ public final fun setItemTextDirection(index: Int, direction: Control.TextDirection): Unit { TransferContext.writeArguments(LONG to index.toLong(), LONG to direction.id) - TransferContext.callMethod(rawPtr, MethodBindings.setItemTextDirectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemTextDirectionPtr, NIL) } /** @@ -524,7 +524,7 @@ public open class PopupMenu : Popup() { */ public final fun setItemLanguage(index: Int, language: String): Unit { TransferContext.writeArguments(LONG to index.toLong(), STRING to language) - TransferContext.callMethod(rawPtr, MethodBindings.setItemLanguagePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemLanguagePtr, NIL) } /** @@ -532,7 +532,7 @@ public open class PopupMenu : Popup() { */ public final fun setItemIcon(index: Int, icon: Texture2D?): Unit { TransferContext.writeArguments(LONG to index.toLong(), OBJECT to icon) - TransferContext.callMethod(rawPtr, MethodBindings.setItemIconPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemIconPtr, NIL) } /** @@ -542,7 +542,7 @@ public open class PopupMenu : Popup() { */ public final fun setItemIconMaxWidth(index: Int, width: Int): Unit { TransferContext.writeArguments(LONG to index.toLong(), LONG to width.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setItemIconMaxWidthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemIconMaxWidthPtr, NIL) } /** @@ -550,7 +550,7 @@ public open class PopupMenu : Popup() { */ public final fun setItemIconModulate(index: Int, modulate: Color): Unit { TransferContext.writeArguments(LONG to index.toLong(), COLOR to modulate) - TransferContext.callMethod(rawPtr, MethodBindings.setItemIconModulatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemIconModulatePtr, NIL) } /** @@ -558,7 +558,7 @@ public open class PopupMenu : Popup() { */ public final fun setItemChecked(index: Int, checked: Boolean): Unit { TransferContext.writeArguments(LONG to index.toLong(), BOOL to checked) - TransferContext.callMethod(rawPtr, MethodBindings.setItemCheckedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemCheckedPtr, NIL) } /** @@ -567,7 +567,7 @@ public open class PopupMenu : Popup() { */ public final fun setItemId(index: Int, id: Int): Unit { TransferContext.writeArguments(LONG to index.toLong(), LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setItemIdPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemIdPtr, NIL) } /** @@ -578,7 +578,7 @@ public open class PopupMenu : Popup() { */ public final fun setItemAccelerator(index: Int, accel: Key): Unit { TransferContext.writeArguments(LONG to index.toLong(), LONG to accel.id) - TransferContext.callMethod(rawPtr, MethodBindings.setItemAcceleratorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemAcceleratorPtr, NIL) } /** @@ -587,7 +587,7 @@ public open class PopupMenu : Popup() { */ public final fun setItemMetadata(index: Int, metadata: Any?): Unit { TransferContext.writeArguments(LONG to index.toLong(), ANY to metadata) - TransferContext.callMethod(rawPtr, MethodBindings.setItemMetadataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemMetadataPtr, NIL) } /** @@ -596,7 +596,7 @@ public open class PopupMenu : Popup() { */ public final fun setItemDisabled(index: Int, disabled: Boolean): Unit { TransferContext.writeArguments(LONG to index.toLong(), BOOL to disabled) - TransferContext.callMethod(rawPtr, MethodBindings.setItemDisabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemDisabledPtr, NIL) } /** @@ -605,7 +605,7 @@ public open class PopupMenu : Popup() { */ public final fun setItemSubmenu(index: Int, submenu: String): Unit { TransferContext.writeArguments(LONG to index.toLong(), STRING to submenu) - TransferContext.callMethod(rawPtr, MethodBindings.setItemSubmenuPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemSubmenuPtr, NIL) } /** @@ -616,7 +616,7 @@ public open class PopupMenu : Popup() { */ public final fun setItemSubmenuNode(index: Int, submenu: PopupMenu?): Unit { TransferContext.writeArguments(LONG to index.toLong(), OBJECT to submenu) - TransferContext.callMethod(rawPtr, MethodBindings.setItemSubmenuNodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemSubmenuNodePtr, NIL) } /** @@ -625,7 +625,7 @@ public open class PopupMenu : Popup() { */ public final fun setItemAsSeparator(index: Int, enable: Boolean): Unit { TransferContext.writeArguments(LONG to index.toLong(), BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setItemAsSeparatorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemAsSeparatorPtr, NIL) } /** @@ -636,7 +636,7 @@ public open class PopupMenu : Popup() { */ public final fun setItemAsCheckable(index: Int, enable: Boolean): Unit { TransferContext.writeArguments(LONG to index.toLong(), BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setItemAsCheckablePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemAsCheckablePtr, NIL) } /** @@ -645,7 +645,7 @@ public open class PopupMenu : Popup() { */ public final fun setItemAsRadioCheckable(index: Int, enable: Boolean): Unit { TransferContext.writeArguments(LONG to index.toLong(), BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setItemAsRadioCheckablePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemAsRadioCheckablePtr, NIL) } /** @@ -653,7 +653,7 @@ public open class PopupMenu : Popup() { */ public final fun setItemTooltip(index: Int, tooltip: String): Unit { TransferContext.writeArguments(LONG to index.toLong(), STRING to tooltip) - TransferContext.callMethod(rawPtr, MethodBindings.setItemTooltipPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemTooltipPtr, NIL) } /** @@ -666,7 +666,7 @@ public open class PopupMenu : Popup() { global: Boolean = false, ): Unit { TransferContext.writeArguments(LONG to index.toLong(), OBJECT to shortcut, BOOL to global) - TransferContext.callMethod(rawPtr, MethodBindings.setItemShortcutPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemShortcutPtr, NIL) } /** @@ -674,7 +674,7 @@ public open class PopupMenu : Popup() { */ public final fun setItemIndent(index: Int, indent: Int): Unit { TransferContext.writeArguments(LONG to index.toLong(), LONG to indent.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setItemIndentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemIndentPtr, NIL) } /** @@ -682,7 +682,7 @@ public open class PopupMenu : Popup() { */ public final fun setItemMultistate(index: Int, state: Int): Unit { TransferContext.writeArguments(LONG to index.toLong(), LONG to state.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setItemMultistatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemMultistatePtr, NIL) } /** @@ -690,7 +690,7 @@ public open class PopupMenu : Popup() { */ public final fun setItemMultistateMax(index: Int, maxStates: Int): Unit { TransferContext.writeArguments(LONG to index.toLong(), LONG to maxStates.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setItemMultistateMaxPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemMultistateMaxPtr, NIL) } /** @@ -698,7 +698,7 @@ public open class PopupMenu : Popup() { */ public final fun setItemShortcutDisabled(index: Int, disabled: Boolean): Unit { TransferContext.writeArguments(LONG to index.toLong(), BOOL to disabled) - TransferContext.callMethod(rawPtr, MethodBindings.setItemShortcutDisabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemShortcutDisabledPtr, NIL) } /** @@ -706,7 +706,7 @@ public open class PopupMenu : Popup() { */ public final fun toggleItemChecked(index: Int): Unit { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.toggleItemCheckedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.toggleItemCheckedPtr, NIL) } /** @@ -714,7 +714,7 @@ public open class PopupMenu : Popup() { */ public final fun toggleItemMultistate(index: Int): Unit { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.toggleItemMultistatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.toggleItemMultistatePtr, NIL) } /** @@ -722,7 +722,7 @@ public open class PopupMenu : Popup() { */ public final fun getItemText(index: Int): String { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemTextPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getItemTextPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -731,7 +731,7 @@ public open class PopupMenu : Popup() { */ public final fun getItemTextDirection(index: Int): Control.TextDirection { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemTextDirectionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getItemTextDirectionPtr, LONG) return Control.TextDirection.from(TransferContext.readReturnValue(LONG) as Long) } @@ -740,7 +740,7 @@ public open class PopupMenu : Popup() { */ public final fun getItemLanguage(index: Int): String { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemLanguagePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getItemLanguagePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -749,7 +749,7 @@ public open class PopupMenu : Popup() { */ public final fun getItemIcon(index: Int): Texture2D? { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemIconPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getItemIconPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } @@ -758,7 +758,7 @@ public open class PopupMenu : Popup() { */ public final fun getItemIconMaxWidth(index: Int): Int { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemIconMaxWidthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getItemIconMaxWidthPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -767,7 +767,7 @@ public open class PopupMenu : Popup() { */ public final fun getItemIconModulate(index: Int): Color { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemIconModulatePtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getItemIconModulatePtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } @@ -776,7 +776,7 @@ public open class PopupMenu : Popup() { */ public final fun isItemChecked(index: Int): Boolean { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isItemCheckedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isItemCheckedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -786,7 +786,7 @@ public open class PopupMenu : Popup() { */ public final fun getItemId(index: Int): Int { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getItemIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -796,7 +796,7 @@ public open class PopupMenu : Popup() { */ public final fun getItemIndex(id: Int): Int { TransferContext.writeArguments(LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getItemIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -809,7 +809,7 @@ public open class PopupMenu : Popup() { */ public final fun getItemAccelerator(index: Int): Key { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemAcceleratorPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getItemAcceleratorPtr, LONG) return Key.from(TransferContext.readReturnValue(LONG) as Long) } @@ -819,7 +819,7 @@ public open class PopupMenu : Popup() { */ public final fun getItemMetadata(index: Int): Any? { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemMetadataPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getItemMetadataPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -830,7 +830,7 @@ public open class PopupMenu : Popup() { */ public final fun isItemDisabled(index: Int): Boolean { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isItemDisabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isItemDisabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -840,7 +840,7 @@ public open class PopupMenu : Popup() { */ public final fun getItemSubmenu(index: Int): String { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemSubmenuPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getItemSubmenuPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -850,7 +850,7 @@ public open class PopupMenu : Popup() { */ public final fun getItemSubmenuNode(index: Int): PopupMenu? { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemSubmenuNodePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getItemSubmenuNodePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as PopupMenu?) } @@ -860,7 +860,7 @@ public open class PopupMenu : Popup() { */ public final fun isItemSeparator(index: Int): Boolean { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isItemSeparatorPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isItemSeparatorPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -872,7 +872,7 @@ public open class PopupMenu : Popup() { */ public final fun isItemCheckable(index: Int): Boolean { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isItemCheckablePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isItemCheckablePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -883,7 +883,7 @@ public open class PopupMenu : Popup() { */ public final fun isItemRadioCheckable(index: Int): Boolean { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isItemRadioCheckablePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isItemRadioCheckablePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -892,7 +892,7 @@ public open class PopupMenu : Popup() { */ public final fun isItemShortcutDisabled(index: Int): Boolean { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isItemShortcutDisabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isItemShortcutDisabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -901,7 +901,7 @@ public open class PopupMenu : Popup() { */ public final fun getItemTooltip(index: Int): String { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemTooltipPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getItemTooltipPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -910,7 +910,7 @@ public open class PopupMenu : Popup() { */ public final fun getItemShortcut(index: Int): Shortcut? { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemShortcutPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getItemShortcutPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Shortcut?) } @@ -919,7 +919,7 @@ public open class PopupMenu : Popup() { */ public final fun getItemIndent(index: Int): Int { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemIndentPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getItemIndentPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -928,7 +928,7 @@ public open class PopupMenu : Popup() { */ public final fun getItemMultistateMax(index: Int): Int { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemMultistateMaxPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getItemMultistateMaxPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -937,7 +937,7 @@ public open class PopupMenu : Popup() { */ public final fun getItemMultistate(index: Int): Int { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemMultistatePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getItemMultistatePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -947,7 +947,7 @@ public open class PopupMenu : Popup() { */ public final fun setFocusedItem(index: Int): Unit { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setFocusedItemPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFocusedItemPtr, NIL) } /** @@ -955,18 +955,18 @@ public open class PopupMenu : Popup() { */ public final fun getFocusedItem(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFocusedItemPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFocusedItemPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setItemCount(count: Int): Unit { TransferContext.writeArguments(LONG to count.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setItemCountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setItemCountPtr, NIL) } public final fun getItemCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getItemCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getItemCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -975,7 +975,7 @@ public open class PopupMenu : Popup() { */ public final fun scrollToItem(index: Int): Unit { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.scrollToItemPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.scrollToItemPtr, NIL) } /** @@ -984,7 +984,7 @@ public open class PopupMenu : Popup() { */ public final fun removeItem(index: Int): Unit { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeItemPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeItemPtr, NIL) } /** @@ -995,7 +995,7 @@ public open class PopupMenu : Popup() { @JvmOverloads public final fun addSeparator(label: String = "", id: Int = -1): Unit { TransferContext.writeArguments(STRING to label, LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addSeparatorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addSeparatorPtr, NIL) } /** @@ -1005,61 +1005,61 @@ public open class PopupMenu : Popup() { @JvmOverloads public final fun clear(freeSubmenus: Boolean = false): Unit { TransferContext.writeArguments(BOOL to freeSubmenus) - TransferContext.callMethod(rawPtr, MethodBindings.clearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPtr, NIL) } public final fun setHideOnItemSelection(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setHideOnItemSelectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHideOnItemSelectionPtr, NIL) } public final fun isHideOnItemSelection(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isHideOnItemSelectionPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isHideOnItemSelectionPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setHideOnCheckableItemSelection(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setHideOnCheckableItemSelectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHideOnCheckableItemSelectionPtr, NIL) } public final fun isHideOnCheckableItemSelection(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isHideOnCheckableItemSelectionPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isHideOnCheckableItemSelectionPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setHideOnStateItemSelection(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setHideOnStateItemSelectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHideOnStateItemSelectionPtr, NIL) } public final fun isHideOnStateItemSelection(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isHideOnStateItemSelectionPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isHideOnStateItemSelectionPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSubmenuPopupDelay(seconds: Float): Unit { TransferContext.writeArguments(DOUBLE to seconds.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSubmenuPopupDelayPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSubmenuPopupDelayPtr, NIL) } public final fun getSubmenuPopupDelay(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSubmenuPopupDelayPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSubmenuPopupDelayPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAllowSearch(allow: Boolean): Unit { TransferContext.writeArguments(BOOL to allow) - TransferContext.callMethod(rawPtr, MethodBindings.setAllowSearchPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAllowSearchPtr, NIL) } public final fun getAllowSearch(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAllowSearchPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getAllowSearchPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1068,18 +1068,18 @@ public open class PopupMenu : Popup() { */ public final fun isSystemMenu(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSystemMenuPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSystemMenuPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSystemMenu(systemMenuId: NativeMenu.SystemMenus): Unit { TransferContext.writeArguments(LONG to systemMenuId.id) - TransferContext.callMethod(rawPtr, MethodBindings.setSystemMenuPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSystemMenuPtr, NIL) } public final fun getSystemMenu(): NativeMenu.SystemMenus { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSystemMenuPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSystemMenuPtr, LONG) return NativeMenu.SystemMenus.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PortableCompressedTexture2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PortableCompressedTexture2D.kt index 06b5419bb3..3917ce74b7 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PortableCompressedTexture2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PortableCompressedTexture2D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE @@ -18,7 +19,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Float import kotlin.Int @@ -109,7 +109,7 @@ public open class PortableCompressedTexture2D : Texture2D() { lossyQuality: Float = 0.8f, ): Unit { TransferContext.writeArguments(OBJECT to image, LONG to compressionMode.id, BOOL to normalMap, DOUBLE to lossyQuality.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.createFromImagePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.createFromImagePtr, NIL) } /** @@ -117,7 +117,7 @@ public open class PortableCompressedTexture2D : Texture2D() { */ public final fun getFormat(): Image.Format { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFormatPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFormatPtr, LONG) return Image.Format.from(TransferContext.readReturnValue(LONG) as Long) } @@ -126,29 +126,29 @@ public open class PortableCompressedTexture2D : Texture2D() { */ public final fun getCompressionMode(): CompressionMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCompressionModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCompressionModePtr, LONG) return PortableCompressedTexture2D.CompressionMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setSizeOverride(size: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to size) - TransferContext.callMethod(rawPtr, MethodBindings.setSizeOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSizeOverridePtr, NIL) } public final fun getSizeOverride(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSizeOverridePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getSizeOverridePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setKeepCompressedBuffer(keep: Boolean): Unit { TransferContext.writeArguments(BOOL to keep) - TransferContext.callMethod(rawPtr, MethodBindings.setKeepCompressedBufferPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setKeepCompressedBufferPtr, NIL) } public final fun isKeepingCompressedBuffer(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isKeepingCompressedBufferPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isKeepingCompressedBufferPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PrimitiveMesh.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PrimitiveMesh.kt index adc71bf567..a547f64078 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PrimitiveMesh.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PrimitiveMesh.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.AABB import godot.core.TypeManager import godot.core.VariantArray @@ -18,7 +19,6 @@ import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -139,12 +139,12 @@ public open class PrimitiveMesh : Mesh() { public final fun setMaterial(material: Material?): Unit { TransferContext.writeArguments(OBJECT to material) - TransferContext.callMethod(rawPtr, MethodBindings.setMaterialPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaterialPtr, NIL) } public final fun getMaterial(): Material? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaterialPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getMaterialPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Material?) } @@ -167,52 +167,51 @@ public open class PrimitiveMesh : Mesh() { */ public final fun getMeshArrays(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMeshArraysPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getMeshArraysPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } public final fun setCustomAabb(aabb: AABB): Unit { TransferContext.writeArguments(godot.core.VariantParser.AABB to aabb) - TransferContext.callMethod(rawPtr, MethodBindings.setCustomAabbPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCustomAabbPtr, NIL) } public final fun getCustomAabb(): AABB { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCustomAabbPtr, - godot.core.VariantParser.AABB) + TransferContext.callMethod(ptr, MethodBindings.getCustomAabbPtr, godot.core.VariantParser.AABB) return (TransferContext.readReturnValue(godot.core.VariantParser.AABB) as AABB) } public final fun setFlipFaces(flipFaces: Boolean): Unit { TransferContext.writeArguments(BOOL to flipFaces) - TransferContext.callMethod(rawPtr, MethodBindings.setFlipFacesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFlipFacesPtr, NIL) } public final fun getFlipFaces(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFlipFacesPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getFlipFacesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAddUv2(addUv2: Boolean): Unit { TransferContext.writeArguments(BOOL to addUv2) - TransferContext.callMethod(rawPtr, MethodBindings.setAddUv2Ptr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAddUv2Ptr, NIL) } public final fun getAddUv2(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAddUv2Ptr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getAddUv2Ptr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setUv2Padding(uv2Padding: Float): Unit { TransferContext.writeArguments(DOUBLE to uv2Padding.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setUv2PaddingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUv2PaddingPtr, NIL) } public final fun getUv2Padding(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUv2PaddingPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getUv2PaddingPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -221,7 +220,7 @@ public open class PrimitiveMesh : Mesh() { */ public final fun requestUpdate(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.requestUpdatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.requestUpdatePtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PrismMesh.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PrismMesh.kt index 11c0ce00de..19366adcbc 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PrismMesh.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PrismMesh.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -16,7 +17,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -117,56 +117,56 @@ public open class PrismMesh : PrimitiveMesh() { public final fun setLeftToRight(leftToRight: Float): Unit { TransferContext.writeArguments(DOUBLE to leftToRight.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setLeftToRightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLeftToRightPtr, NIL) } public final fun getLeftToRight(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLeftToRightPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLeftToRightPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSize(size: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to size) - TransferContext.callMethod(rawPtr, MethodBindings.setSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSizePtr, NIL) } public final fun getSize(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSizePtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getSizePtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setSubdivideWidth(segments: Int): Unit { TransferContext.writeArguments(LONG to segments.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSubdivideWidthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSubdivideWidthPtr, NIL) } public final fun getSubdivideWidth(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSubdivideWidthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSubdivideWidthPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setSubdivideHeight(segments: Int): Unit { TransferContext.writeArguments(LONG to segments.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSubdivideHeightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSubdivideHeightPtr, NIL) } public final fun getSubdivideHeight(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSubdivideHeightPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSubdivideHeightPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setSubdivideDepth(segments: Int): Unit { TransferContext.writeArguments(LONG to segments.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSubdivideDepthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSubdivideDepthPtr, NIL) } public final fun getSubdivideDepth(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSubdivideDepthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSubdivideDepthPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ProceduralSkyMaterial.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ProceduralSkyMaterial.kt index 53f4a07001..e325db4fdd 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ProceduralSkyMaterial.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ProceduralSkyMaterial.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -17,7 +18,6 @@ import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -338,155 +338,155 @@ public open class ProceduralSkyMaterial : Material() { public final fun setSkyTopColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setSkyTopColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSkyTopColorPtr, NIL) } public final fun getSkyTopColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSkyTopColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getSkyTopColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setSkyHorizonColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setSkyHorizonColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSkyHorizonColorPtr, NIL) } public final fun getSkyHorizonColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSkyHorizonColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getSkyHorizonColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setSkyCurve(curve: Float): Unit { TransferContext.writeArguments(DOUBLE to curve.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSkyCurvePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSkyCurvePtr, NIL) } public final fun getSkyCurve(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSkyCurvePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSkyCurvePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSkyEnergyMultiplier(multiplier: Float): Unit { TransferContext.writeArguments(DOUBLE to multiplier.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSkyEnergyMultiplierPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSkyEnergyMultiplierPtr, NIL) } public final fun getSkyEnergyMultiplier(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSkyEnergyMultiplierPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSkyEnergyMultiplierPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSkyCover(skyCover: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to skyCover) - TransferContext.callMethod(rawPtr, MethodBindings.setSkyCoverPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSkyCoverPtr, NIL) } public final fun getSkyCover(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSkyCoverPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getSkyCoverPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } public final fun setSkyCoverModulate(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setSkyCoverModulatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSkyCoverModulatePtr, NIL) } public final fun getSkyCoverModulate(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSkyCoverModulatePtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getSkyCoverModulatePtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setGroundBottomColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setGroundBottomColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGroundBottomColorPtr, NIL) } public final fun getGroundBottomColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGroundBottomColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getGroundBottomColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setGroundHorizonColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setGroundHorizonColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGroundHorizonColorPtr, NIL) } public final fun getGroundHorizonColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGroundHorizonColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getGroundHorizonColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setGroundCurve(curve: Float): Unit { TransferContext.writeArguments(DOUBLE to curve.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setGroundCurvePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGroundCurvePtr, NIL) } public final fun getGroundCurve(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGroundCurvePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getGroundCurvePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setGroundEnergyMultiplier(energy: Float): Unit { TransferContext.writeArguments(DOUBLE to energy.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setGroundEnergyMultiplierPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGroundEnergyMultiplierPtr, NIL) } public final fun getGroundEnergyMultiplier(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGroundEnergyMultiplierPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getGroundEnergyMultiplierPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSunAngleMax(degrees: Float): Unit { TransferContext.writeArguments(DOUBLE to degrees.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSunAngleMaxPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSunAngleMaxPtr, NIL) } public final fun getSunAngleMax(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSunAngleMaxPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSunAngleMaxPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSunCurve(curve: Float): Unit { TransferContext.writeArguments(DOUBLE to curve.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSunCurvePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSunCurvePtr, NIL) } public final fun getSunCurve(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSunCurvePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSunCurvePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setUseDebanding(useDebanding: Boolean): Unit { TransferContext.writeArguments(BOOL to useDebanding) - TransferContext.callMethod(rawPtr, MethodBindings.setUseDebandingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseDebandingPtr, NIL) } public final fun getUseDebanding(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUseDebandingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getUseDebandingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setEnergyMultiplier(multiplier: Float): Unit { TransferContext.writeArguments(DOUBLE to multiplier.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setEnergyMultiplierPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnergyMultiplierPtr, NIL) } public final fun getEnergyMultiplier(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnergyMultiplierPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getEnergyMultiplierPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ProgressBar.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ProgressBar.kt index 24a37fe381..74d56a6fd4 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ProgressBar.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ProgressBar.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -77,45 +77,45 @@ public open class ProgressBar : Range() { public final fun setFillMode(mode: Int): Unit { TransferContext.writeArguments(LONG to mode.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setFillModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFillModePtr, NIL) } public final fun getFillMode(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFillModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFillModePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setShowPercentage(visible: Boolean): Unit { TransferContext.writeArguments(BOOL to visible) - TransferContext.callMethod(rawPtr, MethodBindings.setShowPercentagePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShowPercentagePtr, NIL) } public final fun isPercentageShown(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isPercentageShownPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPercentageShownPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setIndeterminate(indeterminate: Boolean): Unit { TransferContext.writeArguments(BOOL to indeterminate) - TransferContext.callMethod(rawPtr, MethodBindings.setIndeterminatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIndeterminatePtr, NIL) } public final fun isIndeterminate(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isIndeterminatePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isIndeterminatePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setEditorPreviewIndeterminate(previewIndeterminate: Boolean): Unit { TransferContext.writeArguments(BOOL to previewIndeterminate) - TransferContext.callMethod(rawPtr, MethodBindings.setEditorPreviewIndeterminatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEditorPreviewIndeterminatePtr, NIL) } public final fun isEditorPreviewIndeterminateEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isEditorPreviewIndeterminateEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isEditorPreviewIndeterminateEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ProjectSettings.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ProjectSettings.kt index 1e9bb64257..e67567a0ec 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ProjectSettings.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ProjectSettings.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.Signal0 import godot.core.StringName @@ -21,7 +22,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -66,7 +66,7 @@ public object ProjectSettings : Object() { @JvmStatic public final fun hasSetting(name: String): Boolean { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.hasSettingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasSettingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -89,7 +89,7 @@ public object ProjectSettings : Object() { @JvmStatic public final fun setSetting(name: String, `value`: Any?): Unit { TransferContext.writeArguments(STRING to name, ANY to value) - TransferContext.callMethod(rawPtr, MethodBindings.setSettingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSettingPtr, NIL) } /** @@ -118,7 +118,7 @@ public object ProjectSettings : Object() { @JvmStatic public final fun getSetting(name: String, defaultValue: Any? = null): Any? { TransferContext.writeArguments(STRING to name, ANY to defaultValue) - TransferContext.callMethod(rawPtr, MethodBindings.getSettingPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getSettingPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -143,7 +143,7 @@ public object ProjectSettings : Object() { @JvmStatic public final fun getSettingWithOverride(name: StringName): Any? { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.getSettingWithOverridePtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getSettingWithOverridePtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -161,7 +161,7 @@ public object ProjectSettings : Object() { @JvmStatic public final fun getGlobalClassList(): VariantArray> { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGlobalClassListPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getGlobalClassListPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray>) } @@ -171,7 +171,7 @@ public object ProjectSettings : Object() { @JvmStatic public final fun setOrder(name: String, position: Int): Unit { TransferContext.writeArguments(STRING to name, LONG to position.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setOrderPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOrderPtr, NIL) } /** @@ -180,7 +180,7 @@ public object ProjectSettings : Object() { @JvmStatic public final fun getOrder(name: String): Int { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.getOrderPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOrderPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -190,7 +190,7 @@ public object ProjectSettings : Object() { @JvmStatic public final fun setInitialValue(name: String, `value`: Any?): Unit { TransferContext.writeArguments(STRING to name, ANY to value) - TransferContext.callMethod(rawPtr, MethodBindings.setInitialValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInitialValuePtr, NIL) } /** @@ -201,7 +201,7 @@ public object ProjectSettings : Object() { @JvmStatic public final fun setAsBasic(name: String, basic: Boolean): Unit { TransferContext.writeArguments(STRING to name, BOOL to basic) - TransferContext.callMethod(rawPtr, MethodBindings.setAsBasicPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAsBasicPtr, NIL) } /** @@ -212,7 +212,7 @@ public object ProjectSettings : Object() { @JvmStatic public final fun setAsInternal(name: String, `internal`: Boolean): Unit { TransferContext.writeArguments(STRING to name, BOOL to internal) - TransferContext.callMethod(rawPtr, MethodBindings.setAsInternalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAsInternalPtr, NIL) } /** @@ -253,7 +253,7 @@ public object ProjectSettings : Object() { @JvmStatic public final fun addPropertyInfo(hint: Dictionary): Unit { TransferContext.writeArguments(DICTIONARY to hint) - TransferContext.callMethod(rawPtr, MethodBindings.addPropertyInfoPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addPropertyInfoPtr, NIL) } /** @@ -265,7 +265,7 @@ public object ProjectSettings : Object() { @JvmStatic public final fun setRestartIfChanged(name: String, restart: Boolean): Unit { TransferContext.writeArguments(STRING to name, BOOL to restart) - TransferContext.callMethod(rawPtr, MethodBindings.setRestartIfChangedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRestartIfChangedPtr, NIL) } /** @@ -274,7 +274,7 @@ public object ProjectSettings : Object() { @JvmStatic public final fun clear(name: String): Unit { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.clearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPtr, NIL) } /** @@ -284,7 +284,7 @@ public object ProjectSettings : Object() { @JvmStatic public final fun localizePath(path: String): String { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.localizePathPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.localizePathPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -312,7 +312,7 @@ public object ProjectSettings : Object() { @JvmStatic public final fun globalizePath(path: String): String { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.globalizePathPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.globalizePathPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -325,7 +325,7 @@ public object ProjectSettings : Object() { @JvmStatic public final fun save(): Error { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.savePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.savePtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -346,7 +346,7 @@ public object ProjectSettings : Object() { offset: Int = 0, ): Boolean { TransferContext.writeArguments(STRING to pack, BOOL to replaceFiles, LONG to offset.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.loadResourcePackPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.loadResourcePackPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -359,7 +359,7 @@ public object ProjectSettings : Object() { @JvmStatic public final fun saveCustom(`file`: String): Error { TransferContext.writeArguments(STRING to file) - TransferContext.callMethod(rawPtr, MethodBindings.saveCustomPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.saveCustomPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/PropertyTweener.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/PropertyTweener.kt index 389f536a99..e839c640a2 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/PropertyTweener.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/PropertyTweener.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.TypeManager import godot.core.VariantCaster.ANY @@ -15,7 +16,6 @@ import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Double import kotlin.Int @@ -45,7 +45,7 @@ public open class PropertyTweener : Tweener() { */ public final fun from(`value`: Any?): PropertyTweener? { TransferContext.writeArguments(ANY to value) - TransferContext.callMethod(rawPtr, MethodBindings.fromPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.fromPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as PropertyTweener?) } @@ -60,7 +60,7 @@ public open class PropertyTweener : Tweener() { */ public final fun fromCurrent(): PropertyTweener? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.fromCurrentPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.fromCurrentPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as PropertyTweener?) } @@ -75,7 +75,7 @@ public open class PropertyTweener : Tweener() { */ public final fun asRelative(): PropertyTweener? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.asRelativePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.asRelativePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as PropertyTweener?) } @@ -85,7 +85,7 @@ public open class PropertyTweener : Tweener() { */ public final fun setTrans(trans: Tween.TransitionType): PropertyTweener? { TransferContext.writeArguments(LONG to trans.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTransPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.setTransPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as PropertyTweener?) } @@ -95,7 +95,7 @@ public open class PropertyTweener : Tweener() { */ public final fun setEase(ease: Tween.EaseType): PropertyTweener? { TransferContext.writeArguments(LONG to ease.id) - TransferContext.callMethod(rawPtr, MethodBindings.setEasePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.setEasePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as PropertyTweener?) } @@ -121,7 +121,7 @@ public open class PropertyTweener : Tweener() { */ public final fun setCustomInterpolator(interpolatorMethod: Callable): PropertyTweener? { TransferContext.writeArguments(CALLABLE to interpolatorMethod) - TransferContext.callMethod(rawPtr, MethodBindings.setCustomInterpolatorPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.setCustomInterpolatorPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as PropertyTweener?) } @@ -131,7 +131,7 @@ public open class PropertyTweener : Tweener() { */ public final fun setDelay(delay: Double): PropertyTweener? { TransferContext.writeArguments(DOUBLE to delay) - TransferContext.callMethod(rawPtr, MethodBindings.setDelayPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.setDelayPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as PropertyTweener?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/QuadOccluder3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/QuadOccluder3D.kt index df3f0c94f2..ab6a95bd03 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/QuadOccluder3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/QuadOccluder3D.kt @@ -9,12 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -69,12 +69,12 @@ public open class QuadOccluder3D : Occluder3D() { public final fun setSize(size: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to size) - TransferContext.callMethod(rawPtr, MethodBindings.setSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSizePtr, NIL) } public final fun getSize(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSizePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getSizePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RDAttachmentFormat.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RDAttachmentFormat.kt index 510cf2b7be..59c8e50d08 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RDAttachmentFormat.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RDAttachmentFormat.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -62,34 +62,34 @@ public open class RDAttachmentFormat : RefCounted() { public final fun setFormat(pMember: RenderingDevice.DataFormat): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setFormatPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFormatPtr, NIL) } public final fun getFormat(): RenderingDevice.DataFormat { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFormatPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFormatPtr, LONG) return RenderingDevice.DataFormat.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setSamples(pMember: RenderingDevice.TextureSamples): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setSamplesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSamplesPtr, NIL) } public final fun getSamples(): RenderingDevice.TextureSamples { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSamplesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSamplesPtr, LONG) return RenderingDevice.TextureSamples.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setUsageFlags(pMember: Long): Unit { TransferContext.writeArguments(LONG to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setUsageFlagsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUsageFlagsPtr, NIL) } public final fun getUsageFlags(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUsageFlagsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getUsageFlagsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RDFramebufferPass.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RDFramebufferPass.kt index 4cde731266..7670b10e85 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RDFramebufferPass.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RDFramebufferPass.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedInt32Array import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_INT_32_ARRAY import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -94,57 +94,56 @@ public open class RDFramebufferPass : RefCounted() { public final fun setColorAttachments(pMember: PackedInt32Array): Unit { TransferContext.writeArguments(PACKED_INT_32_ARRAY to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setColorAttachmentsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColorAttachmentsPtr, NIL) } public final fun getColorAttachments(): PackedInt32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColorAttachmentsPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getColorAttachmentsPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } public final fun setInputAttachments(pMember: PackedInt32Array): Unit { TransferContext.writeArguments(PACKED_INT_32_ARRAY to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setInputAttachmentsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInputAttachmentsPtr, NIL) } public final fun getInputAttachments(): PackedInt32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInputAttachmentsPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getInputAttachmentsPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } public final fun setResolveAttachments(pMember: PackedInt32Array): Unit { TransferContext.writeArguments(PACKED_INT_32_ARRAY to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setResolveAttachmentsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setResolveAttachmentsPtr, NIL) } public final fun getResolveAttachments(): PackedInt32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getResolveAttachmentsPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getResolveAttachmentsPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } public final fun setPreserveAttachments(pMember: PackedInt32Array): Unit { TransferContext.writeArguments(PACKED_INT_32_ARRAY to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setPreserveAttachmentsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPreserveAttachmentsPtr, NIL) } public final fun getPreserveAttachments(): PackedInt32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPreserveAttachmentsPtr, - PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getPreserveAttachmentsPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } public final fun setDepthAttachment(pMember: Int): Unit { TransferContext.writeArguments(LONG to pMember.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setDepthAttachmentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDepthAttachmentPtr, NIL) } public final fun getDepthAttachment(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDepthAttachmentPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDepthAttachmentPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RDPipelineColorBlendState.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RDPipelineColorBlendState.kt index 937a65aee2..114d9cd373 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RDPipelineColorBlendState.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RDPipelineColorBlendState.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.TypeManager import godot.core.VariantArray @@ -18,7 +19,6 @@ import godot.core.VariantParser.COLOR import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -106,46 +106,46 @@ public open class RDPipelineColorBlendState : RefCounted() { public final fun setEnableLogicOp(pMember: Boolean): Unit { TransferContext.writeArguments(BOOL to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setEnableLogicOpPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnableLogicOpPtr, NIL) } public final fun getEnableLogicOp(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnableLogicOpPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getEnableLogicOpPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setLogicOp(pMember: RenderingDevice.LogicOperation): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setLogicOpPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLogicOpPtr, NIL) } public final fun getLogicOp(): RenderingDevice.LogicOperation { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLogicOpPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLogicOpPtr, LONG) return RenderingDevice.LogicOperation.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setBlendConstant(pMember: Color): Unit { TransferContext.writeArguments(COLOR to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setBlendConstantPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBlendConstantPtr, NIL) } public final fun getBlendConstant(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBlendConstantPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getBlendConstantPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setAttachments(attachments: VariantArray): Unit { TransferContext.writeArguments(ARRAY to attachments) - TransferContext.callMethod(rawPtr, MethodBindings.setAttachmentsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAttachmentsPtr, NIL) } public final fun getAttachments(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAttachmentsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getAttachmentsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RDPipelineColorBlendStateAttachment.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RDPipelineColorBlendStateAttachment.kt index f8c808ee5a..73daf73f07 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RDPipelineColorBlendStateAttachment.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RDPipelineColorBlendStateAttachment.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -224,127 +224,127 @@ public open class RDPipelineColorBlendStateAttachment : RefCounted() { */ public final fun setAsMix(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.setAsMixPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAsMixPtr, NIL) } public final fun setEnableBlend(pMember: Boolean): Unit { TransferContext.writeArguments(BOOL to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setEnableBlendPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnableBlendPtr, NIL) } public final fun getEnableBlend(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnableBlendPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getEnableBlendPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSrcColorBlendFactor(pMember: RenderingDevice.BlendFactor): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setSrcColorBlendFactorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSrcColorBlendFactorPtr, NIL) } public final fun getSrcColorBlendFactor(): RenderingDevice.BlendFactor { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSrcColorBlendFactorPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSrcColorBlendFactorPtr, LONG) return RenderingDevice.BlendFactor.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setDstColorBlendFactor(pMember: RenderingDevice.BlendFactor): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setDstColorBlendFactorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDstColorBlendFactorPtr, NIL) } public final fun getDstColorBlendFactor(): RenderingDevice.BlendFactor { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDstColorBlendFactorPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDstColorBlendFactorPtr, LONG) return RenderingDevice.BlendFactor.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setColorBlendOp(pMember: RenderingDevice.BlendOperation): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setColorBlendOpPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColorBlendOpPtr, NIL) } public final fun getColorBlendOp(): RenderingDevice.BlendOperation { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColorBlendOpPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getColorBlendOpPtr, LONG) return RenderingDevice.BlendOperation.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setSrcAlphaBlendFactor(pMember: RenderingDevice.BlendFactor): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setSrcAlphaBlendFactorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSrcAlphaBlendFactorPtr, NIL) } public final fun getSrcAlphaBlendFactor(): RenderingDevice.BlendFactor { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSrcAlphaBlendFactorPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSrcAlphaBlendFactorPtr, LONG) return RenderingDevice.BlendFactor.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setDstAlphaBlendFactor(pMember: RenderingDevice.BlendFactor): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setDstAlphaBlendFactorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDstAlphaBlendFactorPtr, NIL) } public final fun getDstAlphaBlendFactor(): RenderingDevice.BlendFactor { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDstAlphaBlendFactorPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDstAlphaBlendFactorPtr, LONG) return RenderingDevice.BlendFactor.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setAlphaBlendOp(pMember: RenderingDevice.BlendOperation): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setAlphaBlendOpPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAlphaBlendOpPtr, NIL) } public final fun getAlphaBlendOp(): RenderingDevice.BlendOperation { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAlphaBlendOpPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAlphaBlendOpPtr, LONG) return RenderingDevice.BlendOperation.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setWriteR(pMember: Boolean): Unit { TransferContext.writeArguments(BOOL to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setWriteRPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setWriteRPtr, NIL) } public final fun getWriteR(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWriteRPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getWriteRPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setWriteG(pMember: Boolean): Unit { TransferContext.writeArguments(BOOL to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setWriteGPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setWriteGPtr, NIL) } public final fun getWriteG(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWriteGPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getWriteGPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setWriteB(pMember: Boolean): Unit { TransferContext.writeArguments(BOOL to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setWriteBPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setWriteBPtr, NIL) } public final fun getWriteB(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWriteBPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getWriteBPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setWriteA(pMember: Boolean): Unit { TransferContext.writeArguments(BOOL to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setWriteAPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setWriteAPtr, NIL) } public final fun getWriteA(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWriteAPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getWriteAPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RDPipelineDepthStencilState.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RDPipelineDepthStencilState.kt index 3392384ac4..11fd9fdf49 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RDPipelineDepthStencilState.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RDPipelineDepthStencilState.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -274,232 +274,232 @@ public open class RDPipelineDepthStencilState : RefCounted() { public final fun setEnableDepthTest(pMember: Boolean): Unit { TransferContext.writeArguments(BOOL to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setEnableDepthTestPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnableDepthTestPtr, NIL) } public final fun getEnableDepthTest(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnableDepthTestPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getEnableDepthTestPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setEnableDepthWrite(pMember: Boolean): Unit { TransferContext.writeArguments(BOOL to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setEnableDepthWritePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnableDepthWritePtr, NIL) } public final fun getEnableDepthWrite(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnableDepthWritePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getEnableDepthWritePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDepthCompareOperator(pMember: RenderingDevice.CompareOperator): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setDepthCompareOperatorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDepthCompareOperatorPtr, NIL) } public final fun getDepthCompareOperator(): RenderingDevice.CompareOperator { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDepthCompareOperatorPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDepthCompareOperatorPtr, LONG) return RenderingDevice.CompareOperator.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setEnableDepthRange(pMember: Boolean): Unit { TransferContext.writeArguments(BOOL to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setEnableDepthRangePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnableDepthRangePtr, NIL) } public final fun getEnableDepthRange(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnableDepthRangePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getEnableDepthRangePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDepthRangeMin(pMember: Float): Unit { TransferContext.writeArguments(DOUBLE to pMember.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDepthRangeMinPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDepthRangeMinPtr, NIL) } public final fun getDepthRangeMin(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDepthRangeMinPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDepthRangeMinPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDepthRangeMax(pMember: Float): Unit { TransferContext.writeArguments(DOUBLE to pMember.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDepthRangeMaxPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDepthRangeMaxPtr, NIL) } public final fun getDepthRangeMax(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDepthRangeMaxPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDepthRangeMaxPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setEnableStencil(pMember: Boolean): Unit { TransferContext.writeArguments(BOOL to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setEnableStencilPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnableStencilPtr, NIL) } public final fun getEnableStencil(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnableStencilPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getEnableStencilPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setFrontOpFail(pMember: RenderingDevice.StencilOperation): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setFrontOpFailPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFrontOpFailPtr, NIL) } public final fun getFrontOpFail(): RenderingDevice.StencilOperation { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFrontOpFailPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFrontOpFailPtr, LONG) return RenderingDevice.StencilOperation.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setFrontOpPass(pMember: RenderingDevice.StencilOperation): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setFrontOpPassPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFrontOpPassPtr, NIL) } public final fun getFrontOpPass(): RenderingDevice.StencilOperation { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFrontOpPassPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFrontOpPassPtr, LONG) return RenderingDevice.StencilOperation.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setFrontOpDepthFail(pMember: RenderingDevice.StencilOperation): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setFrontOpDepthFailPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFrontOpDepthFailPtr, NIL) } public final fun getFrontOpDepthFail(): RenderingDevice.StencilOperation { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFrontOpDepthFailPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFrontOpDepthFailPtr, LONG) return RenderingDevice.StencilOperation.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setFrontOpCompare(pMember: RenderingDevice.CompareOperator): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setFrontOpComparePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFrontOpComparePtr, NIL) } public final fun getFrontOpCompare(): RenderingDevice.CompareOperator { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFrontOpComparePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFrontOpComparePtr, LONG) return RenderingDevice.CompareOperator.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setFrontOpCompareMask(pMember: Long): Unit { TransferContext.writeArguments(LONG to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setFrontOpCompareMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFrontOpCompareMaskPtr, NIL) } public final fun getFrontOpCompareMask(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFrontOpCompareMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFrontOpCompareMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setFrontOpWriteMask(pMember: Long): Unit { TransferContext.writeArguments(LONG to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setFrontOpWriteMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFrontOpWriteMaskPtr, NIL) } public final fun getFrontOpWriteMask(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFrontOpWriteMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFrontOpWriteMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setFrontOpReference(pMember: Long): Unit { TransferContext.writeArguments(LONG to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setFrontOpReferencePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFrontOpReferencePtr, NIL) } public final fun getFrontOpReference(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFrontOpReferencePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFrontOpReferencePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setBackOpFail(pMember: RenderingDevice.StencilOperation): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setBackOpFailPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBackOpFailPtr, NIL) } public final fun getBackOpFail(): RenderingDevice.StencilOperation { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBackOpFailPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBackOpFailPtr, LONG) return RenderingDevice.StencilOperation.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setBackOpPass(pMember: RenderingDevice.StencilOperation): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setBackOpPassPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBackOpPassPtr, NIL) } public final fun getBackOpPass(): RenderingDevice.StencilOperation { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBackOpPassPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBackOpPassPtr, LONG) return RenderingDevice.StencilOperation.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setBackOpDepthFail(pMember: RenderingDevice.StencilOperation): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setBackOpDepthFailPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBackOpDepthFailPtr, NIL) } public final fun getBackOpDepthFail(): RenderingDevice.StencilOperation { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBackOpDepthFailPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBackOpDepthFailPtr, LONG) return RenderingDevice.StencilOperation.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setBackOpCompare(pMember: RenderingDevice.CompareOperator): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setBackOpComparePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBackOpComparePtr, NIL) } public final fun getBackOpCompare(): RenderingDevice.CompareOperator { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBackOpComparePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBackOpComparePtr, LONG) return RenderingDevice.CompareOperator.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setBackOpCompareMask(pMember: Long): Unit { TransferContext.writeArguments(LONG to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setBackOpCompareMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBackOpCompareMaskPtr, NIL) } public final fun getBackOpCompareMask(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBackOpCompareMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBackOpCompareMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setBackOpWriteMask(pMember: Long): Unit { TransferContext.writeArguments(LONG to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setBackOpWriteMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBackOpWriteMaskPtr, NIL) } public final fun getBackOpWriteMask(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBackOpWriteMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBackOpWriteMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setBackOpReference(pMember: Long): Unit { TransferContext.writeArguments(LONG to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setBackOpReferencePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBackOpReferencePtr, NIL) } public final fun getBackOpReference(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBackOpReferencePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBackOpReferencePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RDPipelineMultisampleState.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RDPipelineMultisampleState.kt index 0ef34b440e..f43918fa07 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RDPipelineMultisampleState.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RDPipelineMultisampleState.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY @@ -15,7 +16,6 @@ import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -116,67 +116,67 @@ public open class RDPipelineMultisampleState : RefCounted() { public final fun setSampleCount(pMember: RenderingDevice.TextureSamples): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setSampleCountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSampleCountPtr, NIL) } public final fun getSampleCount(): RenderingDevice.TextureSamples { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSampleCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSampleCountPtr, LONG) return RenderingDevice.TextureSamples.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setEnableSampleShading(pMember: Boolean): Unit { TransferContext.writeArguments(BOOL to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setEnableSampleShadingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnableSampleShadingPtr, NIL) } public final fun getEnableSampleShading(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnableSampleShadingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getEnableSampleShadingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setMinSampleShading(pMember: Float): Unit { TransferContext.writeArguments(DOUBLE to pMember.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMinSampleShadingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMinSampleShadingPtr, NIL) } public final fun getMinSampleShading(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMinSampleShadingPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMinSampleShadingPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setEnableAlphaToCoverage(pMember: Boolean): Unit { TransferContext.writeArguments(BOOL to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setEnableAlphaToCoveragePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnableAlphaToCoveragePtr, NIL) } public final fun getEnableAlphaToCoverage(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnableAlphaToCoveragePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getEnableAlphaToCoveragePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setEnableAlphaToOne(pMember: Boolean): Unit { TransferContext.writeArguments(BOOL to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setEnableAlphaToOnePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnableAlphaToOnePtr, NIL) } public final fun getEnableAlphaToOne(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnableAlphaToOnePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getEnableAlphaToOnePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSampleMasks(masks: VariantArray): Unit { TransferContext.writeArguments(ARRAY to masks) - TransferContext.callMethod(rawPtr, MethodBindings.setSampleMasksPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSampleMasksPtr, NIL) } public final fun getSampleMasks(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSampleMasksPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getSampleMasksPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RDPipelineRasterizationState.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RDPipelineRasterizationState.kt index 11a7a9610f..348f4025f3 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RDPipelineRasterizationState.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RDPipelineRasterizationState.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -162,122 +162,122 @@ public open class RDPipelineRasterizationState : RefCounted() { public final fun setEnableDepthClamp(pMember: Boolean): Unit { TransferContext.writeArguments(BOOL to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setEnableDepthClampPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnableDepthClampPtr, NIL) } public final fun getEnableDepthClamp(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnableDepthClampPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getEnableDepthClampPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDiscardPrimitives(pMember: Boolean): Unit { TransferContext.writeArguments(BOOL to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setDiscardPrimitivesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDiscardPrimitivesPtr, NIL) } public final fun getDiscardPrimitives(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDiscardPrimitivesPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getDiscardPrimitivesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setWireframe(pMember: Boolean): Unit { TransferContext.writeArguments(BOOL to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setWireframePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setWireframePtr, NIL) } public final fun getWireframe(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWireframePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getWireframePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCullMode(pMember: RenderingDevice.PolygonCullMode): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setCullModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCullModePtr, NIL) } public final fun getCullMode(): RenderingDevice.PolygonCullMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCullModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCullModePtr, LONG) return RenderingDevice.PolygonCullMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setFrontFace(pMember: RenderingDevice.PolygonFrontFace): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setFrontFacePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFrontFacePtr, NIL) } public final fun getFrontFace(): RenderingDevice.PolygonFrontFace { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFrontFacePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFrontFacePtr, LONG) return RenderingDevice.PolygonFrontFace.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setDepthBiasEnabled(pMember: Boolean): Unit { TransferContext.writeArguments(BOOL to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setDepthBiasEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDepthBiasEnabledPtr, NIL) } public final fun getDepthBiasEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDepthBiasEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getDepthBiasEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDepthBiasConstantFactor(pMember: Float): Unit { TransferContext.writeArguments(DOUBLE to pMember.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDepthBiasConstantFactorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDepthBiasConstantFactorPtr, NIL) } public final fun getDepthBiasConstantFactor(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDepthBiasConstantFactorPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDepthBiasConstantFactorPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDepthBiasClamp(pMember: Float): Unit { TransferContext.writeArguments(DOUBLE to pMember.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDepthBiasClampPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDepthBiasClampPtr, NIL) } public final fun getDepthBiasClamp(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDepthBiasClampPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDepthBiasClampPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDepthBiasSlopeFactor(pMember: Float): Unit { TransferContext.writeArguments(DOUBLE to pMember.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDepthBiasSlopeFactorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDepthBiasSlopeFactorPtr, NIL) } public final fun getDepthBiasSlopeFactor(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDepthBiasSlopeFactorPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDepthBiasSlopeFactorPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setLineWidth(pMember: Float): Unit { TransferContext.writeArguments(DOUBLE to pMember.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setLineWidthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLineWidthPtr, NIL) } public final fun getLineWidth(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLineWidthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLineWidthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setPatchControlPoints(pMember: Long): Unit { TransferContext.writeArguments(LONG to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setPatchControlPointsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPatchControlPointsPtr, NIL) } public final fun getPatchControlPoints(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPatchControlPointsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPatchControlPointsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RDPipelineSpecializationConstant.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RDPipelineSpecializationConstant.kt index 5533eed6f3..abc83170e4 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RDPipelineSpecializationConstant.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RDPipelineSpecializationConstant.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantCaster.ANY import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Int import kotlin.Long @@ -59,23 +59,23 @@ public open class RDPipelineSpecializationConstant : RefCounted() { public final fun setValue(`value`: Any?): Unit { TransferContext.writeArguments(ANY to value) - TransferContext.callMethod(rawPtr, MethodBindings.setValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setValuePtr, NIL) } public final fun getValue(): Any? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getValuePtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getValuePtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } public final fun setConstantId(constantId: Long): Unit { TransferContext.writeArguments(LONG to constantId) - TransferContext.callMethod(rawPtr, MethodBindings.setConstantIdPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setConstantIdPtr, NIL) } public final fun getConstantId(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConstantIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getConstantIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RDSamplerState.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RDSamplerState.kt index 530d92df8f..374032bafa 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RDSamplerState.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RDSamplerState.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -218,166 +218,166 @@ public open class RDSamplerState : RefCounted() { public final fun setMagFilter(pMember: RenderingDevice.SamplerFilter): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setMagFilterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMagFilterPtr, NIL) } public final fun getMagFilter(): RenderingDevice.SamplerFilter { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMagFilterPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMagFilterPtr, LONG) return RenderingDevice.SamplerFilter.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setMinFilter(pMember: RenderingDevice.SamplerFilter): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setMinFilterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMinFilterPtr, NIL) } public final fun getMinFilter(): RenderingDevice.SamplerFilter { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMinFilterPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMinFilterPtr, LONG) return RenderingDevice.SamplerFilter.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setMipFilter(pMember: RenderingDevice.SamplerFilter): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setMipFilterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMipFilterPtr, NIL) } public final fun getMipFilter(): RenderingDevice.SamplerFilter { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMipFilterPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMipFilterPtr, LONG) return RenderingDevice.SamplerFilter.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setRepeatU(pMember: RenderingDevice.SamplerRepeatMode): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setRepeatUPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRepeatUPtr, NIL) } public final fun getRepeatU(): RenderingDevice.SamplerRepeatMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRepeatUPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getRepeatUPtr, LONG) return RenderingDevice.SamplerRepeatMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setRepeatV(pMember: RenderingDevice.SamplerRepeatMode): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setRepeatVPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRepeatVPtr, NIL) } public final fun getRepeatV(): RenderingDevice.SamplerRepeatMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRepeatVPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getRepeatVPtr, LONG) return RenderingDevice.SamplerRepeatMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setRepeatW(pMember: RenderingDevice.SamplerRepeatMode): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setRepeatWPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRepeatWPtr, NIL) } public final fun getRepeatW(): RenderingDevice.SamplerRepeatMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRepeatWPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getRepeatWPtr, LONG) return RenderingDevice.SamplerRepeatMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setLodBias(pMember: Float): Unit { TransferContext.writeArguments(DOUBLE to pMember.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setLodBiasPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLodBiasPtr, NIL) } public final fun getLodBias(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLodBiasPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLodBiasPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setUseAnisotropy(pMember: Boolean): Unit { TransferContext.writeArguments(BOOL to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setUseAnisotropyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseAnisotropyPtr, NIL) } public final fun getUseAnisotropy(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUseAnisotropyPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getUseAnisotropyPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAnisotropyMax(pMember: Float): Unit { TransferContext.writeArguments(DOUBLE to pMember.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAnisotropyMaxPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAnisotropyMaxPtr, NIL) } public final fun getAnisotropyMax(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAnisotropyMaxPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAnisotropyMaxPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setEnableCompare(pMember: Boolean): Unit { TransferContext.writeArguments(BOOL to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setEnableComparePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnableComparePtr, NIL) } public final fun getEnableCompare(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnableComparePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getEnableComparePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCompareOp(pMember: RenderingDevice.CompareOperator): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setCompareOpPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCompareOpPtr, NIL) } public final fun getCompareOp(): RenderingDevice.CompareOperator { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCompareOpPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCompareOpPtr, LONG) return RenderingDevice.CompareOperator.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setMinLod(pMember: Float): Unit { TransferContext.writeArguments(DOUBLE to pMember.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMinLodPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMinLodPtr, NIL) } public final fun getMinLod(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMinLodPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMinLodPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setMaxLod(pMember: Float): Unit { TransferContext.writeArguments(DOUBLE to pMember.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxLodPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxLodPtr, NIL) } public final fun getMaxLod(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxLodPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMaxLodPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setBorderColor(pMember: RenderingDevice.SamplerBorderColor): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setBorderColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBorderColorPtr, NIL) } public final fun getBorderColor(): RenderingDevice.SamplerBorderColor { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBorderColorPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBorderColorPtr, LONG) return RenderingDevice.SamplerBorderColor.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setUnnormalizedUvw(pMember: Boolean): Unit { TransferContext.writeArguments(BOOL to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setUnnormalizedUvwPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUnnormalizedUvwPtr, NIL) } public final fun getUnnormalizedUvw(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUnnormalizedUvwPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getUnnormalizedUvwPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RDShaderFile.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RDShaderFile.kt index 3affe4ec17..c645e3543e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RDShaderFile.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RDShaderFile.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.StringName import godot.core.TypeManager import godot.core.VariantArray @@ -16,7 +17,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.String import kotlin.Suppress @@ -56,7 +56,7 @@ public open class RDShaderFile : Resource() { public final fun setBytecode(bytecode: RDShaderSPIRV?, version: StringName = StringName("")): Unit { TransferContext.writeArguments(OBJECT to bytecode, STRING_NAME to version) - TransferContext.callMethod(rawPtr, MethodBindings.setBytecodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBytecodePtr, NIL) } /** @@ -65,7 +65,7 @@ public open class RDShaderFile : Resource() { @JvmOverloads public final fun getSpirv(version: StringName = StringName("")): RDShaderSPIRV? { TransferContext.writeArguments(STRING_NAME to version) - TransferContext.callMethod(rawPtr, MethodBindings.getSpirvPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getSpirvPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as RDShaderSPIRV?) } @@ -74,18 +74,18 @@ public open class RDShaderFile : Resource() { */ public final fun getVersionList(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVersionListPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getVersionListPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } public final fun setBaseError(error: String): Unit { TransferContext.writeArguments(STRING to error) - TransferContext.callMethod(rawPtr, MethodBindings.setBaseErrorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBaseErrorPtr, NIL) } public final fun getBaseError(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBaseErrorPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getBaseErrorPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RDShaderSPIRV.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RDShaderSPIRV.kt index 138a578dbe..bbf181a13a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RDShaderSPIRV.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RDShaderSPIRV.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedByteArray import godot.core.TypeManager import godot.core.VariantParser.LONG @@ -14,7 +15,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.String import kotlin.Suppress @@ -158,7 +158,7 @@ public open class RDShaderSPIRV : Resource() { public final fun setStageBytecode(stage: RenderingDevice.ShaderStage, bytecode: PackedByteArray): Unit { TransferContext.writeArguments(LONG to stage.id, PACKED_BYTE_ARRAY to bytecode) - TransferContext.callMethod(rawPtr, MethodBindings.setStageBytecodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStageBytecodePtr, NIL) } /** @@ -167,7 +167,7 @@ public open class RDShaderSPIRV : Resource() { */ public final fun getStageBytecode(stage: RenderingDevice.ShaderStage): PackedByteArray { TransferContext.writeArguments(LONG to stage.id) - TransferContext.callMethod(rawPtr, MethodBindings.getStageBytecodePtr, PACKED_BYTE_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getStageBytecodePtr, PACKED_BYTE_ARRAY) return (TransferContext.readReturnValue(PACKED_BYTE_ARRAY) as PackedByteArray) } @@ -179,7 +179,7 @@ public open class RDShaderSPIRV : Resource() { public final fun setStageCompileError(stage: RenderingDevice.ShaderStage, compileError: String): Unit { TransferContext.writeArguments(LONG to stage.id, STRING to compileError) - TransferContext.callMethod(rawPtr, MethodBindings.setStageCompileErrorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStageCompileErrorPtr, NIL) } /** @@ -189,7 +189,7 @@ public open class RDShaderSPIRV : Resource() { */ public final fun getStageCompileError(stage: RenderingDevice.ShaderStage): String { TransferContext.writeArguments(LONG to stage.id) - TransferContext.callMethod(rawPtr, MethodBindings.getStageCompileErrorPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getStageCompileErrorPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RDShaderSource.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RDShaderSource.kt index 667f206266..f42a453a86 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RDShaderSource.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RDShaderSource.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.String @@ -105,7 +105,7 @@ public open class RDShaderSource : RefCounted() { */ public final fun setStageSource(stage: RenderingDevice.ShaderStage, source: String): Unit { TransferContext.writeArguments(LONG to stage.id, STRING to source) - TransferContext.callMethod(rawPtr, MethodBindings.setStageSourcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStageSourcePtr, NIL) } /** @@ -115,18 +115,18 @@ public open class RDShaderSource : RefCounted() { */ public final fun getStageSource(stage: RenderingDevice.ShaderStage): String { TransferContext.writeArguments(LONG to stage.id) - TransferContext.callMethod(rawPtr, MethodBindings.getStageSourcePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getStageSourcePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setLanguage(language: RenderingDevice.ShaderLanguage): Unit { TransferContext.writeArguments(LONG to language.id) - TransferContext.callMethod(rawPtr, MethodBindings.setLanguagePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLanguagePtr, NIL) } public final fun getLanguage(): RenderingDevice.ShaderLanguage { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLanguagePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLanguagePtr, LONG) return RenderingDevice.ShaderLanguage.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RDTextureFormat.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RDTextureFormat.kt index 7902548a05..8d77bd53d8 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RDTextureFormat.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RDTextureFormat.kt @@ -8,11 +8,11 @@ package godot import godot.RenderingDevice.TextureUsageBitsValue import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -129,111 +129,111 @@ public open class RDTextureFormat : RefCounted() { public final fun setFormat(pMember: RenderingDevice.DataFormat): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setFormatPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFormatPtr, NIL) } public final fun getFormat(): RenderingDevice.DataFormat { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFormatPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFormatPtr, LONG) return RenderingDevice.DataFormat.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setWidth(pMember: Long): Unit { TransferContext.writeArguments(LONG to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setWidthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setWidthPtr, NIL) } public final fun getWidth(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWidthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getWidthPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setHeight(pMember: Long): Unit { TransferContext.writeArguments(LONG to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setHeightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHeightPtr, NIL) } public final fun getHeight(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHeightPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getHeightPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setDepth(pMember: Long): Unit { TransferContext.writeArguments(LONG to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setDepthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDepthPtr, NIL) } public final fun getDepth(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDepthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDepthPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setArrayLayers(pMember: Long): Unit { TransferContext.writeArguments(LONG to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setArrayLayersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setArrayLayersPtr, NIL) } public final fun getArrayLayers(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getArrayLayersPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getArrayLayersPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setMipmaps(pMember: Long): Unit { TransferContext.writeArguments(LONG to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setMipmapsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMipmapsPtr, NIL) } public final fun getMipmaps(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMipmapsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMipmapsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setTextureType(pMember: RenderingDevice.TextureType): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureTypePtr, NIL) } public final fun getTextureType(): RenderingDevice.TextureType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextureTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTextureTypePtr, LONG) return RenderingDevice.TextureType.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setSamples(pMember: RenderingDevice.TextureSamples): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setSamplesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSamplesPtr, NIL) } public final fun getSamples(): RenderingDevice.TextureSamples { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSamplesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSamplesPtr, LONG) return RenderingDevice.TextureSamples.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setUsageBits(pMember: RenderingDevice.TextureUsageBits): Unit { TransferContext.writeArguments(LONG to pMember.flag) - TransferContext.callMethod(rawPtr, MethodBindings.setUsageBitsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUsageBitsPtr, NIL) } public final fun getUsageBits(): RenderingDevice.TextureUsageBits { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUsageBitsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getUsageBitsPtr, LONG) return TextureUsageBitsValue(TransferContext.readReturnValue(LONG) as Long) } public final fun addShareableFormat(format: RenderingDevice.DataFormat): Unit { TransferContext.writeArguments(LONG to format.id) - TransferContext.callMethod(rawPtr, MethodBindings.addShareableFormatPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addShareableFormatPtr, NIL) } public final fun removeShareableFormat(format: RenderingDevice.DataFormat): Unit { TransferContext.writeArguments(LONG to format.id) - TransferContext.callMethod(rawPtr, MethodBindings.removeShareableFormatPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeShareableFormatPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RDTextureView.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RDTextureView.kt index 1beeaee4f0..d08f0e4d11 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RDTextureView.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RDTextureView.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -85,56 +85,56 @@ public open class RDTextureView : RefCounted() { public final fun setFormatOverride(pMember: RenderingDevice.DataFormat): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setFormatOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFormatOverridePtr, NIL) } public final fun getFormatOverride(): RenderingDevice.DataFormat { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFormatOverridePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFormatOverridePtr, LONG) return RenderingDevice.DataFormat.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setSwizzleR(pMember: RenderingDevice.TextureSwizzle): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setSwizzleRPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSwizzleRPtr, NIL) } public final fun getSwizzleR(): RenderingDevice.TextureSwizzle { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSwizzleRPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSwizzleRPtr, LONG) return RenderingDevice.TextureSwizzle.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setSwizzleG(pMember: RenderingDevice.TextureSwizzle): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setSwizzleGPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSwizzleGPtr, NIL) } public final fun getSwizzleG(): RenderingDevice.TextureSwizzle { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSwizzleGPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSwizzleGPtr, LONG) return RenderingDevice.TextureSwizzle.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setSwizzleB(pMember: RenderingDevice.TextureSwizzle): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setSwizzleBPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSwizzleBPtr, NIL) } public final fun getSwizzleB(): RenderingDevice.TextureSwizzle { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSwizzleBPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSwizzleBPtr, LONG) return RenderingDevice.TextureSwizzle.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setSwizzleA(pMember: RenderingDevice.TextureSwizzle): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setSwizzleAPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSwizzleAPtr, NIL) } public final fun getSwizzleA(): RenderingDevice.TextureSwizzle { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSwizzleAPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSwizzleAPtr, LONG) return RenderingDevice.TextureSwizzle.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RDUniform.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RDUniform.kt index 825b674649..cc24f1ac13 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RDUniform.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RDUniform.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.TypeManager import godot.core.VariantArray @@ -15,7 +16,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser._RID import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -55,23 +55,23 @@ public open class RDUniform : RefCounted() { public final fun setUniformType(pMember: RenderingDevice.UniformType): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setUniformTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUniformTypePtr, NIL) } public final fun getUniformType(): RenderingDevice.UniformType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUniformTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getUniformTypePtr, LONG) return RenderingDevice.UniformType.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setBinding(pMember: Int): Unit { TransferContext.writeArguments(LONG to pMember.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setBindingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBindingPtr, NIL) } public final fun getBinding(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBindingPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBindingPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -81,7 +81,7 @@ public open class RDUniform : RefCounted() { */ public final fun addId(id: RID): Unit { TransferContext.writeArguments(_RID to id) - TransferContext.callMethod(rawPtr, MethodBindings.addIdPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addIdPtr, NIL) } /** @@ -89,7 +89,7 @@ public open class RDUniform : RefCounted() { */ public final fun clearIds(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearIdsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearIdsPtr, NIL) } /** @@ -97,7 +97,7 @@ public open class RDUniform : RefCounted() { */ public final fun getIds(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getIdsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getIdsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RDVertexAttribute.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RDVertexAttribute.kt index e79a8affbf..6ca73f2c2d 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RDVertexAttribute.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RDVertexAttribute.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -69,56 +69,56 @@ public open class RDVertexAttribute : RefCounted() { public final fun setLocation(pMember: Long): Unit { TransferContext.writeArguments(LONG to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setLocationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLocationPtr, NIL) } public final fun getLocation(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLocationPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLocationPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setOffset(pMember: Long): Unit { TransferContext.writeArguments(LONG to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOffsetPtr, NIL) } public final fun getOffset(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOffsetPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOffsetPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setFormat(pMember: RenderingDevice.DataFormat): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setFormatPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFormatPtr, NIL) } public final fun getFormat(): RenderingDevice.DataFormat { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFormatPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFormatPtr, LONG) return RenderingDevice.DataFormat.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setStride(pMember: Long): Unit { TransferContext.writeArguments(LONG to pMember) - TransferContext.callMethod(rawPtr, MethodBindings.setStridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStridePtr, NIL) } public final fun getStride(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStridePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getStridePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setFrequency(pMember: RenderingDevice.VertexFrequency): Unit { TransferContext.writeArguments(LONG to pMember.id) - TransferContext.callMethod(rawPtr, MethodBindings.setFrequencyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFrequencyPtr, NIL) } public final fun getFrequency(): RenderingDevice.VertexFrequency { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFrequencyPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFrequencyPtr, LONG) return RenderingDevice.VertexFrequency.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RandomNumberGenerator.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RandomNumberGenerator.kt index 94468439a3..798f5a7e02 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RandomNumberGenerator.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RandomNumberGenerator.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedFloat32Array import godot.core.TypeManager import godot.core.VariantParser.DOUBLE @@ -14,7 +15,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_FLOAT_32_ARRAY import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -93,23 +93,23 @@ public open class RandomNumberGenerator : RefCounted() { public final fun setSeed(seed: Long): Unit { TransferContext.writeArguments(LONG to seed) - TransferContext.callMethod(rawPtr, MethodBindings.setSeedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSeedPtr, NIL) } public final fun getSeed(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSeedPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSeedPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setState(state: Long): Unit { TransferContext.writeArguments(LONG to state) - TransferContext.callMethod(rawPtr, MethodBindings.setStatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStatePtr, NIL) } public final fun getState(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStatePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getStatePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -118,7 +118,7 @@ public open class RandomNumberGenerator : RefCounted() { */ public final fun randi(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.randiPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.randiPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -127,7 +127,7 @@ public open class RandomNumberGenerator : RefCounted() { */ public final fun randf(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.randfPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.randfPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -142,7 +142,7 @@ public open class RandomNumberGenerator : RefCounted() { @JvmOverloads public final fun randfn(mean: Float = 0.0f, deviation: Float = 1.0f): Float { TransferContext.writeArguments(DOUBLE to mean.toDouble(), DOUBLE to deviation.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.randfnPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.randfnPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -151,7 +151,7 @@ public open class RandomNumberGenerator : RefCounted() { */ public final fun randfRange(from: Float, to: Float): Float { TransferContext.writeArguments(DOUBLE to from.toDouble(), DOUBLE to to.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.randfRangePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.randfRangePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -160,7 +160,7 @@ public open class RandomNumberGenerator : RefCounted() { */ public final fun randiRange(from: Int, to: Int): Int { TransferContext.writeArguments(LONG to from.toLong(), LONG to to.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.randiRangePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.randiRangePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -182,7 +182,7 @@ public open class RandomNumberGenerator : RefCounted() { */ public final fun randWeighted(weights: PackedFloat32Array): Long { TransferContext.writeArguments(PACKED_FLOAT_32_ARRAY to weights) - TransferContext.callMethod(rawPtr, MethodBindings.randWeightedPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.randWeightedPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -193,7 +193,7 @@ public open class RandomNumberGenerator : RefCounted() { */ public final fun randomize(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.randomizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.randomizePtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Range.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Range.kt index 463dc90ee7..835e988f2e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Range.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Range.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.Signal1 import godot.core.TypeManager @@ -15,7 +16,6 @@ import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Int @@ -173,43 +173,43 @@ public open class Range : Control() { public final fun getValue(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getValuePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getValuePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun getMin(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMinPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMinPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun getMax(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMaxPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun getStep(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStepPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getStepPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun getPage(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPagePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPagePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun getAsRatio(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAsRatioPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAsRatioPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun setValue(`value`: Double): Unit { TransferContext.writeArguments(DOUBLE to value) - TransferContext.callMethod(rawPtr, MethodBindings.setValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setValuePtr, NIL) } /** @@ -218,75 +218,75 @@ public open class Range : Control() { */ public final fun setValueNoSignal(`value`: Double): Unit { TransferContext.writeArguments(DOUBLE to value) - TransferContext.callMethod(rawPtr, MethodBindings.setValueNoSignalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setValueNoSignalPtr, NIL) } public final fun setMin(minimum: Double): Unit { TransferContext.writeArguments(DOUBLE to minimum) - TransferContext.callMethod(rawPtr, MethodBindings.setMinPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMinPtr, NIL) } public final fun setMax(maximum: Double): Unit { TransferContext.writeArguments(DOUBLE to maximum) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxPtr, NIL) } public final fun setStep(step: Double): Unit { TransferContext.writeArguments(DOUBLE to step) - TransferContext.callMethod(rawPtr, MethodBindings.setStepPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStepPtr, NIL) } public final fun setPage(pagesize: Double): Unit { TransferContext.writeArguments(DOUBLE to pagesize) - TransferContext.callMethod(rawPtr, MethodBindings.setPagePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPagePtr, NIL) } public final fun setAsRatio(`value`: Double): Unit { TransferContext.writeArguments(DOUBLE to value) - TransferContext.callMethod(rawPtr, MethodBindings.setAsRatioPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAsRatioPtr, NIL) } public final fun setUseRoundedValues(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setUseRoundedValuesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseRoundedValuesPtr, NIL) } public final fun isUsingRoundedValues(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUsingRoundedValuesPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUsingRoundedValuesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setExpRatio(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setExpRatioPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExpRatioPtr, NIL) } public final fun isRatioExp(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isRatioExpPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isRatioExpPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAllowGreater(allow: Boolean): Unit { TransferContext.writeArguments(BOOL to allow) - TransferContext.callMethod(rawPtr, MethodBindings.setAllowGreaterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAllowGreaterPtr, NIL) } public final fun isGreaterAllowed(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isGreaterAllowedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isGreaterAllowedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAllowLesser(allow: Boolean): Unit { TransferContext.writeArguments(BOOL to allow) - TransferContext.callMethod(rawPtr, MethodBindings.setAllowLesserPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAllowLesserPtr, NIL) } public final fun isLesserAllowed(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isLesserAllowedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isLesserAllowedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -297,7 +297,7 @@ public open class Range : Control() { */ public final fun share(with: Node?): Unit { TransferContext.writeArguments(OBJECT to with) - TransferContext.callMethod(rawPtr, MethodBindings.sharePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.sharePtr, NIL) } /** @@ -305,7 +305,7 @@ public open class Range : Control() { */ public final fun unshare(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.unsharePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.unsharePtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RayCast2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RayCast2D.kt index e770e4101a..74e29f7a03 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RayCast2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RayCast2D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -19,7 +20,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -153,23 +153,23 @@ public open class RayCast2D : Node2D() { public final fun setEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnabledPtr, NIL) } public final fun isEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setTargetPosition(localPoint: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to localPoint) - TransferContext.callMethod(rawPtr, MethodBindings.setTargetPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTargetPositionPtr, NIL) } public final fun getTargetPosition(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTargetPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getTargetPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -179,7 +179,7 @@ public open class RayCast2D : Node2D() { */ public final fun isColliding(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCollidingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCollidingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -191,7 +191,7 @@ public open class RayCast2D : Node2D() { */ public final fun forceRaycastUpdate(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.forceRaycastUpdatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.forceRaycastUpdatePtr, NIL) } /** @@ -200,7 +200,7 @@ public open class RayCast2D : Node2D() { */ public final fun getCollider(): Object? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColliderPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getColliderPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Object?) } @@ -210,7 +210,7 @@ public open class RayCast2D : Node2D() { */ public final fun getColliderRid(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColliderRidPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getColliderRidPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -236,7 +236,7 @@ public open class RayCast2D : Node2D() { */ public final fun getColliderShape(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColliderShapePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getColliderShapePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -249,7 +249,7 @@ public open class RayCast2D : Node2D() { */ public final fun getCollisionPoint(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionPointPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getCollisionPointPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -261,7 +261,7 @@ public open class RayCast2D : Node2D() { */ public final fun getCollisionNormal(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionNormalPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getCollisionNormalPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -270,7 +270,7 @@ public open class RayCast2D : Node2D() { */ public final fun addExceptionRid(rid: RID): Unit { TransferContext.writeArguments(_RID to rid) - TransferContext.callMethod(rawPtr, MethodBindings.addExceptionRidPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addExceptionRidPtr, NIL) } /** @@ -279,7 +279,7 @@ public open class RayCast2D : Node2D() { */ public final fun addException(node: CollisionObject2D?): Unit { TransferContext.writeArguments(OBJECT to node) - TransferContext.callMethod(rawPtr, MethodBindings.addExceptionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addExceptionPtr, NIL) } /** @@ -287,7 +287,7 @@ public open class RayCast2D : Node2D() { */ public final fun removeExceptionRid(rid: RID): Unit { TransferContext.writeArguments(_RID to rid) - TransferContext.callMethod(rawPtr, MethodBindings.removeExceptionRidPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeExceptionRidPtr, NIL) } /** @@ -296,7 +296,7 @@ public open class RayCast2D : Node2D() { */ public final fun removeException(node: CollisionObject2D?): Unit { TransferContext.writeArguments(OBJECT to node) - TransferContext.callMethod(rawPtr, MethodBindings.removeExceptionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeExceptionPtr, NIL) } /** @@ -304,17 +304,17 @@ public open class RayCast2D : Node2D() { */ public final fun clearExceptions(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearExceptionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearExceptionsPtr, NIL) } public final fun setCollisionMask(mask: Long): Unit { TransferContext.writeArguments(LONG to mask) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionMaskPtr, NIL) } public final fun getCollisionMask(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCollisionMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -324,7 +324,7 @@ public open class RayCast2D : Node2D() { */ public final fun setCollisionMaskValue(layerNumber: Int, `value`: Boolean): Unit { TransferContext.writeArguments(LONG to layerNumber.toLong(), BOOL to value) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionMaskValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionMaskValuePtr, NIL) } /** @@ -333,51 +333,51 @@ public open class RayCast2D : Node2D() { */ public final fun getCollisionMaskValue(layerNumber: Int): Boolean { TransferContext.writeArguments(LONG to layerNumber.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionMaskValuePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getCollisionMaskValuePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setExcludeParentBody(mask: Boolean): Unit { TransferContext.writeArguments(BOOL to mask) - TransferContext.callMethod(rawPtr, MethodBindings.setExcludeParentBodyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExcludeParentBodyPtr, NIL) } public final fun getExcludeParentBody(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getExcludeParentBodyPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getExcludeParentBodyPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCollideWithAreas(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setCollideWithAreasPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollideWithAreasPtr, NIL) } public final fun isCollideWithAreasEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCollideWithAreasEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCollideWithAreasEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCollideWithBodies(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setCollideWithBodiesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollideWithBodiesPtr, NIL) } public final fun isCollideWithBodiesEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCollideWithBodiesEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCollideWithBodiesEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setHitFromInside(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setHitFromInsidePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHitFromInsidePtr, NIL) } public final fun isHitFromInsideEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isHitFromInsideEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isHitFromInsideEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RayCast3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RayCast3D.kt index 9345e75530..25c9943a54 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RayCast3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RayCast3D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.RID import godot.core.TypeManager @@ -21,7 +22,6 @@ import godot.core.VariantParser.VECTOR3 import godot.core.VariantParser._RID import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -226,23 +226,23 @@ public open class RayCast3D : Node3D() { public final fun setEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnabledPtr, NIL) } public final fun isEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setTargetPosition(localPoint: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to localPoint) - TransferContext.callMethod(rawPtr, MethodBindings.setTargetPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTargetPositionPtr, NIL) } public final fun getTargetPosition(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTargetPositionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getTargetPositionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -252,7 +252,7 @@ public open class RayCast3D : Node3D() { */ public final fun isColliding(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCollidingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCollidingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -264,7 +264,7 @@ public open class RayCast3D : Node3D() { */ public final fun forceRaycastUpdate(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.forceRaycastUpdatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.forceRaycastUpdatePtr, NIL) } /** @@ -273,7 +273,7 @@ public open class RayCast3D : Node3D() { */ public final fun getCollider(): Object? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColliderPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getColliderPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Object?) } @@ -283,7 +283,7 @@ public open class RayCast3D : Node3D() { */ public final fun getColliderRid(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColliderRidPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getColliderRidPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -309,7 +309,7 @@ public open class RayCast3D : Node3D() { */ public final fun getColliderShape(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColliderShapePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getColliderShapePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -322,7 +322,7 @@ public open class RayCast3D : Node3D() { */ public final fun getCollisionPoint(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionPointPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getCollisionPointPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -334,7 +334,7 @@ public open class RayCast3D : Node3D() { */ public final fun getCollisionNormal(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionNormalPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getCollisionNormalPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -344,7 +344,7 @@ public open class RayCast3D : Node3D() { */ public final fun getCollisionFaceIndex(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionFaceIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCollisionFaceIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -353,7 +353,7 @@ public open class RayCast3D : Node3D() { */ public final fun addExceptionRid(rid: RID): Unit { TransferContext.writeArguments(_RID to rid) - TransferContext.callMethod(rawPtr, MethodBindings.addExceptionRidPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addExceptionRidPtr, NIL) } /** @@ -362,7 +362,7 @@ public open class RayCast3D : Node3D() { */ public final fun addException(node: CollisionObject3D?): Unit { TransferContext.writeArguments(OBJECT to node) - TransferContext.callMethod(rawPtr, MethodBindings.addExceptionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addExceptionPtr, NIL) } /** @@ -370,7 +370,7 @@ public open class RayCast3D : Node3D() { */ public final fun removeExceptionRid(rid: RID): Unit { TransferContext.writeArguments(_RID to rid) - TransferContext.callMethod(rawPtr, MethodBindings.removeExceptionRidPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeExceptionRidPtr, NIL) } /** @@ -379,7 +379,7 @@ public open class RayCast3D : Node3D() { */ public final fun removeException(node: CollisionObject3D?): Unit { TransferContext.writeArguments(OBJECT to node) - TransferContext.callMethod(rawPtr, MethodBindings.removeExceptionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeExceptionPtr, NIL) } /** @@ -387,17 +387,17 @@ public open class RayCast3D : Node3D() { */ public final fun clearExceptions(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearExceptionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearExceptionsPtr, NIL) } public final fun setCollisionMask(mask: Long): Unit { TransferContext.writeArguments(LONG to mask) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionMaskPtr, NIL) } public final fun getCollisionMask(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCollisionMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -407,7 +407,7 @@ public open class RayCast3D : Node3D() { */ public final fun setCollisionMaskValue(layerNumber: Int, `value`: Boolean): Unit { TransferContext.writeArguments(LONG to layerNumber.toLong(), BOOL to value) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionMaskValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionMaskValuePtr, NIL) } /** @@ -416,84 +416,84 @@ public open class RayCast3D : Node3D() { */ public final fun getCollisionMaskValue(layerNumber: Int): Boolean { TransferContext.writeArguments(LONG to layerNumber.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionMaskValuePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getCollisionMaskValuePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setExcludeParentBody(mask: Boolean): Unit { TransferContext.writeArguments(BOOL to mask) - TransferContext.callMethod(rawPtr, MethodBindings.setExcludeParentBodyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExcludeParentBodyPtr, NIL) } public final fun getExcludeParentBody(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getExcludeParentBodyPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getExcludeParentBodyPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCollideWithAreas(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setCollideWithAreasPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollideWithAreasPtr, NIL) } public final fun isCollideWithAreasEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCollideWithAreasEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCollideWithAreasEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCollideWithBodies(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setCollideWithBodiesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollideWithBodiesPtr, NIL) } public final fun isCollideWithBodiesEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCollideWithBodiesEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCollideWithBodiesEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setHitFromInside(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setHitFromInsidePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHitFromInsidePtr, NIL) } public final fun isHitFromInsideEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isHitFromInsideEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isHitFromInsideEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setHitBackFaces(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setHitBackFacesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHitBackFacesPtr, NIL) } public final fun isHitBackFacesEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isHitBackFacesEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isHitBackFacesEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDebugShapeCustomColor(debugShapeCustomColor: Color): Unit { TransferContext.writeArguments(COLOR to debugShapeCustomColor) - TransferContext.callMethod(rawPtr, MethodBindings.setDebugShapeCustomColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDebugShapeCustomColorPtr, NIL) } public final fun getDebugShapeCustomColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDebugShapeCustomColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getDebugShapeCustomColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setDebugShapeThickness(debugShapeThickness: Int): Unit { TransferContext.writeArguments(LONG to debugShapeThickness.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setDebugShapeThicknessPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDebugShapeThicknessPtr, NIL) } public final fun getDebugShapeThickness(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDebugShapeThicknessPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDebugShapeThicknessPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RectangleShape2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RectangleShape2D.kt index 25650a03d5..a6914877d2 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RectangleShape2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RectangleShape2D.kt @@ -9,12 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -70,12 +70,12 @@ public open class RectangleShape2D : Shape2D() { public final fun setSize(size: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to size) - TransferContext.callMethod(rawPtr, MethodBindings.setSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSizePtr, NIL) } public final fun getSize(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSizePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getSizePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RefCounted.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RefCounted.kt index 742c55d374..0de853f8d7 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RefCounted.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RefCounted.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -54,7 +54,7 @@ public open class RefCounted : Object() { */ public final fun initRef(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.initRefPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.initRefPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -64,7 +64,7 @@ public open class RefCounted : Object() { */ public final fun reference(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.referencePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.referencePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -74,7 +74,7 @@ public open class RefCounted : Object() { */ public final fun unreference(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.unreferencePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.unreferencePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -83,7 +83,7 @@ public open class RefCounted : Object() { */ public final fun getReferenceCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getReferenceCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getReferenceCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ReferenceRect.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ReferenceRect.kt index ac57ca0027..8c440fb1a9 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ReferenceRect.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ReferenceRect.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -16,7 +17,6 @@ import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -97,35 +97,35 @@ public open class ReferenceRect : Control() { public final fun getBorderColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBorderColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getBorderColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setBorderColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setBorderColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBorderColorPtr, NIL) } public final fun getBorderWidth(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBorderWidthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getBorderWidthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setBorderWidth(width: Float): Unit { TransferContext.writeArguments(DOUBLE to width.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setBorderWidthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBorderWidthPtr, NIL) } public final fun getEditorOnly(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEditorOnlyPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getEditorOnlyPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setEditorOnly(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setEditorOnlyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEditorOnlyPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ReflectionProbe.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ReflectionProbe.kt index cb6afdac74..9855ee7b15 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ReflectionProbe.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ReflectionProbe.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -19,7 +20,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -328,155 +328,155 @@ public open class ReflectionProbe : VisualInstance3D() { public final fun setIntensity(intensity: Float): Unit { TransferContext.writeArguments(DOUBLE to intensity.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setIntensityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIntensityPtr, NIL) } public final fun getIntensity(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getIntensityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getIntensityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAmbientMode(ambient: AmbientMode): Unit { TransferContext.writeArguments(LONG to ambient.id) - TransferContext.callMethod(rawPtr, MethodBindings.setAmbientModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAmbientModePtr, NIL) } public final fun getAmbientMode(): AmbientMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAmbientModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAmbientModePtr, LONG) return ReflectionProbe.AmbientMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setAmbientColor(ambient: Color): Unit { TransferContext.writeArguments(COLOR to ambient) - TransferContext.callMethod(rawPtr, MethodBindings.setAmbientColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAmbientColorPtr, NIL) } public final fun getAmbientColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAmbientColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getAmbientColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setAmbientColorEnergy(ambientEnergy: Float): Unit { TransferContext.writeArguments(DOUBLE to ambientEnergy.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAmbientColorEnergyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAmbientColorEnergyPtr, NIL) } public final fun getAmbientColorEnergy(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAmbientColorEnergyPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAmbientColorEnergyPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setMaxDistance(maxDistance: Float): Unit { TransferContext.writeArguments(DOUBLE to maxDistance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxDistancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxDistancePtr, NIL) } public final fun getMaxDistance(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxDistancePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMaxDistancePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setMeshLodThreshold(ratio: Float): Unit { TransferContext.writeArguments(DOUBLE to ratio.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMeshLodThresholdPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMeshLodThresholdPtr, NIL) } public final fun getMeshLodThreshold(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMeshLodThresholdPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMeshLodThresholdPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSize(size: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to size) - TransferContext.callMethod(rawPtr, MethodBindings.setSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSizePtr, NIL) } public final fun getSize(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSizePtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getSizePtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setOriginOffset(originOffset: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to originOffset) - TransferContext.callMethod(rawPtr, MethodBindings.setOriginOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOriginOffsetPtr, NIL) } public final fun getOriginOffset(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOriginOffsetPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getOriginOffsetPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setAsInterior(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setAsInteriorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAsInteriorPtr, NIL) } public final fun isSetAsInterior(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSetAsInteriorPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSetAsInteriorPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setEnableBoxProjection(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setEnableBoxProjectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnableBoxProjectionPtr, NIL) } public final fun isBoxProjectionEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isBoxProjectionEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isBoxProjectionEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setEnableShadows(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setEnableShadowsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnableShadowsPtr, NIL) } public final fun areShadowsEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.areShadowsEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.areShadowsEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCullMask(layers: Long): Unit { TransferContext.writeArguments(LONG to layers) - TransferContext.callMethod(rawPtr, MethodBindings.setCullMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCullMaskPtr, NIL) } public final fun getCullMask(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCullMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCullMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setReflectionMask(layers: Long): Unit { TransferContext.writeArguments(LONG to layers) - TransferContext.callMethod(rawPtr, MethodBindings.setReflectionMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setReflectionMaskPtr, NIL) } public final fun getReflectionMask(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getReflectionMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getReflectionMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setUpdateMode(mode: UpdateMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setUpdateModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUpdateModePtr, NIL) } public final fun getUpdateMode(): UpdateMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUpdateModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getUpdateModePtr, LONG) return ReflectionProbe.UpdateMode.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RegEx.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RegEx.kt index ebc39a3238..2ad0f1526e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RegEx.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RegEx.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedStringArray import godot.core.TypeManager import godot.core.VariantArray @@ -18,7 +19,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -98,7 +98,7 @@ public open class RegEx : RefCounted() { */ public final fun clear(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPtr, NIL) } /** @@ -107,7 +107,7 @@ public open class RegEx : RefCounted() { */ public final fun compile(pattern: String): Error { TransferContext.writeArguments(STRING to pattern) - TransferContext.callMethod(rawPtr, MethodBindings.compilePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.compilePtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -127,7 +127,7 @@ public open class RegEx : RefCounted() { end: Int = -1, ): RegExMatch? { TransferContext.writeArguments(STRING to subject, LONG to offset.toLong(), LONG to end.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.searchPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.searchPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as RegExMatch?) } @@ -147,7 +147,7 @@ public open class RegEx : RefCounted() { end: Int = -1, ): VariantArray { TransferContext.writeArguments(STRING to subject, LONG to offset.toLong(), LONG to end.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.searchAllPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.searchAllPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -170,7 +170,7 @@ public open class RegEx : RefCounted() { end: Int = -1, ): String { TransferContext.writeArguments(STRING to subject, STRING to replacement, BOOL to all, LONG to offset.toLong(), LONG to end.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.subPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.subPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -179,7 +179,7 @@ public open class RegEx : RefCounted() { */ public final fun isValid(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isValidPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isValidPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -188,7 +188,7 @@ public open class RegEx : RefCounted() { */ public final fun getPattern(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPatternPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getPatternPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -197,7 +197,7 @@ public open class RegEx : RefCounted() { */ public final fun getGroupCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGroupCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getGroupCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -207,7 +207,7 @@ public open class RegEx : RefCounted() { */ public final fun getNames(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNamesPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getNamesPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RegExMatch.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RegExMatch.kt index 4cf38bd536..6c199c89bb 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RegExMatch.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RegExMatch.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedStringArray import godot.core.TypeManager @@ -16,7 +17,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Int import kotlin.Long @@ -62,7 +62,7 @@ public open class RegExMatch : RefCounted() { public final fun getSubject(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSubjectPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getSubjectPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -71,19 +71,19 @@ public open class RegExMatch : RefCounted() { */ public final fun getGroupCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGroupCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getGroupCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun getNames(): Dictionary { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNamesPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getNamesPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } public final fun getStrings(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStringsPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getStringsPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -96,7 +96,7 @@ public open class RegExMatch : RefCounted() { @JvmOverloads public final fun getString(name: Any? = 0): String { TransferContext.writeArguments(ANY to name) - TransferContext.callMethod(rawPtr, MethodBindings.getStringPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getStringPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -109,7 +109,7 @@ public open class RegExMatch : RefCounted() { @JvmOverloads public final fun getStart(name: Any? = 0): Int { TransferContext.writeArguments(ANY to name) - TransferContext.callMethod(rawPtr, MethodBindings.getStartPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getStartPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -122,7 +122,7 @@ public open class RegExMatch : RefCounted() { @JvmOverloads public final fun getEnd(name: Any? = 0): Int { TransferContext.writeArguments(ANY to name) - TransferContext.callMethod(rawPtr, MethodBindings.getEndPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getEndPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RemoteTransform2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RemoteTransform2D.kt index 2cd80ab6a7..9230a9c72f 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RemoteTransform2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RemoteTransform2D.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -89,12 +89,12 @@ public open class RemoteTransform2D : Node2D() { public final fun setRemoteNode(path: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to path) - TransferContext.callMethod(rawPtr, MethodBindings.setRemoteNodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRemoteNodePtr, NIL) } public final fun getRemoteNode(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRemoteNodePtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getRemoteNodePtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } @@ -104,50 +104,50 @@ public open class RemoteTransform2D : Node2D() { */ public final fun forceUpdateCache(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.forceUpdateCachePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.forceUpdateCachePtr, NIL) } public final fun setUseGlobalCoordinates(useGlobalCoordinates: Boolean): Unit { TransferContext.writeArguments(BOOL to useGlobalCoordinates) - TransferContext.callMethod(rawPtr, MethodBindings.setUseGlobalCoordinatesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseGlobalCoordinatesPtr, NIL) } public final fun getUseGlobalCoordinates(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUseGlobalCoordinatesPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getUseGlobalCoordinatesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setUpdatePosition(updateRemotePosition: Boolean): Unit { TransferContext.writeArguments(BOOL to updateRemotePosition) - TransferContext.callMethod(rawPtr, MethodBindings.setUpdatePositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUpdatePositionPtr, NIL) } public final fun getUpdatePosition(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUpdatePositionPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getUpdatePositionPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setUpdateRotation(updateRemoteRotation: Boolean): Unit { TransferContext.writeArguments(BOOL to updateRemoteRotation) - TransferContext.callMethod(rawPtr, MethodBindings.setUpdateRotationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUpdateRotationPtr, NIL) } public final fun getUpdateRotation(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUpdateRotationPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getUpdateRotationPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setUpdateScale(updateRemoteScale: Boolean): Unit { TransferContext.writeArguments(BOOL to updateRemoteScale) - TransferContext.callMethod(rawPtr, MethodBindings.setUpdateScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUpdateScalePtr, NIL) } public final fun getUpdateScale(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUpdateScalePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getUpdateScalePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RemoteTransform3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RemoteTransform3D.kt index b7fe5c3973..b378ec9baa 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RemoteTransform3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RemoteTransform3D.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -89,12 +89,12 @@ public open class RemoteTransform3D : Node3D() { public final fun setRemoteNode(path: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to path) - TransferContext.callMethod(rawPtr, MethodBindings.setRemoteNodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRemoteNodePtr, NIL) } public final fun getRemoteNode(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRemoteNodePtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getRemoteNodePtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } @@ -104,50 +104,50 @@ public open class RemoteTransform3D : Node3D() { */ public final fun forceUpdateCache(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.forceUpdateCachePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.forceUpdateCachePtr, NIL) } public final fun setUseGlobalCoordinates(useGlobalCoordinates: Boolean): Unit { TransferContext.writeArguments(BOOL to useGlobalCoordinates) - TransferContext.callMethod(rawPtr, MethodBindings.setUseGlobalCoordinatesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseGlobalCoordinatesPtr, NIL) } public final fun getUseGlobalCoordinates(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUseGlobalCoordinatesPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getUseGlobalCoordinatesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setUpdatePosition(updateRemotePosition: Boolean): Unit { TransferContext.writeArguments(BOOL to updateRemotePosition) - TransferContext.callMethod(rawPtr, MethodBindings.setUpdatePositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUpdatePositionPtr, NIL) } public final fun getUpdatePosition(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUpdatePositionPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getUpdatePositionPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setUpdateRotation(updateRemoteRotation: Boolean): Unit { TransferContext.writeArguments(BOOL to updateRemoteRotation) - TransferContext.callMethod(rawPtr, MethodBindings.setUpdateRotationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUpdateRotationPtr, NIL) } public final fun getUpdateRotation(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUpdateRotationPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getUpdateRotationPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setUpdateScale(updateRemoteScale: Boolean): Unit { TransferContext.writeArguments(BOOL to updateRemoteScale) - TransferContext.callMethod(rawPtr, MethodBindings.setUpdateScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUpdateScalePtr, NIL) } public final fun getUpdateScale(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUpdateScalePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getUpdateScalePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderData.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderData.kt index 606fe87ba5..871d3bea6e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderData.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderData.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.TypeManager import godot.core.VariantParser.OBJECT import godot.core.VariantParser._RID import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -32,7 +32,7 @@ public open class RenderData internal constructor() : Object() { */ public final fun getRenderSceneBuffers(): RenderSceneBuffers? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRenderSceneBuffersPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getRenderSceneBuffersPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as RenderSceneBuffers?) } @@ -41,7 +41,7 @@ public open class RenderData internal constructor() : Object() { */ public final fun getRenderSceneData(): RenderSceneData? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRenderSceneDataPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getRenderSceneDataPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as RenderSceneData?) } @@ -51,7 +51,7 @@ public open class RenderData internal constructor() : Object() { */ public final fun getEnvironment(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnvironmentPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getEnvironmentPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -61,7 +61,7 @@ public open class RenderData internal constructor() : Object() { */ public final fun getCameraAttributes(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCameraAttributesPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getCameraAttributesPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderSceneBuffers.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderSceneBuffers.kt index 338de15601..73a44598e3 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderSceneBuffers.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderSceneBuffers.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -34,7 +34,7 @@ public open class RenderSceneBuffers internal constructor() : RefCounted() { */ public final fun configure(config: RenderSceneBuffersConfiguration?): Unit { TransferContext.writeArguments(OBJECT to config) - TransferContext.callMethod(rawPtr, MethodBindings.configurePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.configurePtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderSceneBuffersConfiguration.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderSceneBuffersConfiguration.kt index 5935df8221..db88c84f1d 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderSceneBuffersConfiguration.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderSceneBuffersConfiguration.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.TypeManager import godot.core.VariantParser.DOUBLE @@ -18,7 +19,6 @@ import godot.core.VariantParser.VECTOR2I import godot.core.VariantParser._RID import godot.core.Vector2i import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -189,101 +189,101 @@ public open class RenderSceneBuffersConfiguration : RefCounted() { public final fun getRenderTarget(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRenderTargetPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getRenderTargetPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } public final fun setRenderTarget(renderTarget: RID): Unit { TransferContext.writeArguments(_RID to renderTarget) - TransferContext.callMethod(rawPtr, MethodBindings.setRenderTargetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRenderTargetPtr, NIL) } public final fun getInternalSize(): Vector2i { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInternalSizePtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getInternalSizePtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } public final fun setInternalSize(internalSize: Vector2i): Unit { TransferContext.writeArguments(VECTOR2I to internalSize) - TransferContext.callMethod(rawPtr, MethodBindings.setInternalSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInternalSizePtr, NIL) } public final fun getTargetSize(): Vector2i { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTargetSizePtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getTargetSizePtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } public final fun setTargetSize(targetSize: Vector2i): Unit { TransferContext.writeArguments(VECTOR2I to targetSize) - TransferContext.callMethod(rawPtr, MethodBindings.setTargetSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTargetSizePtr, NIL) } public final fun getViewCount(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getViewCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getViewCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setViewCount(viewCount: Long): Unit { TransferContext.writeArguments(LONG to viewCount) - TransferContext.callMethod(rawPtr, MethodBindings.setViewCountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setViewCountPtr, NIL) } public final fun getScaling3dMode(): RenderingServer.ViewportScaling3DMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScaling3dModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getScaling3dModePtr, LONG) return RenderingServer.ViewportScaling3DMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setScaling3dMode(scaling3dMode: RenderingServer.ViewportScaling3DMode): Unit { TransferContext.writeArguments(LONG to scaling3dMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setScaling3dModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setScaling3dModePtr, NIL) } public final fun getMsaa3d(): RenderingServer.ViewportMSAA { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMsaa3dPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMsaa3dPtr, LONG) return RenderingServer.ViewportMSAA.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setMsaa3d(msaa3d: RenderingServer.ViewportMSAA): Unit { TransferContext.writeArguments(LONG to msaa3d.id) - TransferContext.callMethod(rawPtr, MethodBindings.setMsaa3dPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMsaa3dPtr, NIL) } public final fun getScreenSpaceAa(): RenderingServer.ViewportScreenSpaceAA { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScreenSpaceAaPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getScreenSpaceAaPtr, LONG) return RenderingServer.ViewportScreenSpaceAA.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setScreenSpaceAa(screenSpaceAa: RenderingServer.ViewportScreenSpaceAA): Unit { TransferContext.writeArguments(LONG to screenSpaceAa.id) - TransferContext.callMethod(rawPtr, MethodBindings.setScreenSpaceAaPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setScreenSpaceAaPtr, NIL) } public final fun getFsrSharpness(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFsrSharpnessPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFsrSharpnessPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setFsrSharpness(fsrSharpness: Float): Unit { TransferContext.writeArguments(DOUBLE to fsrSharpness.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFsrSharpnessPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFsrSharpnessPtr, NIL) } public final fun getTextureMipmapBias(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextureMipmapBiasPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTextureMipmapBiasPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setTextureMipmapBias(textureMipmapBias: Float): Unit { TransferContext.writeArguments(DOUBLE to textureMipmapBias.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureMipmapBiasPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureMipmapBiasPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderSceneBuffersRD.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderSceneBuffersRD.kt index 03ed5404ac..ac98f9d725 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderSceneBuffersRD.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderSceneBuffersRD.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.StringName import godot.core.TypeManager @@ -20,7 +21,6 @@ import godot.core.VariantParser.VECTOR2I import godot.core.VariantParser._RID import godot.core.Vector2i import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -50,7 +50,7 @@ public open class RenderSceneBuffersRD : RenderSceneBuffers() { */ public final fun hasTexture(context: StringName, name: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to context, STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.hasTexturePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasTexturePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -70,7 +70,7 @@ public open class RenderSceneBuffersRD : RenderSceneBuffers() { unique: Boolean, ): RID { TransferContext.writeArguments(STRING_NAME to context, STRING_NAME to name, LONG to dataFormat.id, LONG to usageBits, LONG to textureSamples.id, VECTOR2I to size, LONG to layers, LONG to mipmaps, BOOL to unique) - TransferContext.callMethod(rawPtr, MethodBindings.createTexturePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.createTexturePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -86,7 +86,7 @@ public open class RenderSceneBuffersRD : RenderSceneBuffers() { unique: Boolean, ): RID { TransferContext.writeArguments(STRING_NAME to context, STRING_NAME to name, OBJECT to format, OBJECT to view, BOOL to unique) - TransferContext.callMethod(rawPtr, MethodBindings.createTextureFromFormatPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.createTextureFromFormatPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -102,7 +102,7 @@ public open class RenderSceneBuffersRD : RenderSceneBuffers() { view: RDTextureView?, ): RID { TransferContext.writeArguments(STRING_NAME to context, STRING_NAME to name, STRING_NAME to viewName, OBJECT to view) - TransferContext.callMethod(rawPtr, MethodBindings.createTextureViewPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.createTextureViewPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -111,7 +111,7 @@ public open class RenderSceneBuffersRD : RenderSceneBuffers() { */ public final fun getTexture(context: StringName, name: StringName): RID { TransferContext.writeArguments(STRING_NAME to context, STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.getTexturePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getTexturePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -120,7 +120,7 @@ public open class RenderSceneBuffersRD : RenderSceneBuffers() { */ public final fun getTextureFormat(context: StringName, name: StringName): RDTextureFormat? { TransferContext.writeArguments(STRING_NAME to context, STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.getTextureFormatPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTextureFormatPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as RDTextureFormat?) } @@ -136,7 +136,7 @@ public open class RenderSceneBuffersRD : RenderSceneBuffers() { mipmaps: Long, ): RID { TransferContext.writeArguments(STRING_NAME to context, STRING_NAME to name, LONG to layer, LONG to mipmap, LONG to layers, LONG to mipmaps) - TransferContext.callMethod(rawPtr, MethodBindings.getTextureSlicePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getTextureSlicePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -153,7 +153,7 @@ public open class RenderSceneBuffersRD : RenderSceneBuffers() { view: RDTextureView?, ): RID { TransferContext.writeArguments(STRING_NAME to context, STRING_NAME to name, LONG to layer, LONG to mipmap, LONG to layers, LONG to mipmaps, OBJECT to view) - TransferContext.callMethod(rawPtr, MethodBindings.getTextureSliceViewPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getTextureSliceViewPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -166,7 +166,7 @@ public open class RenderSceneBuffersRD : RenderSceneBuffers() { mipmap: Long, ): Vector2i { TransferContext.writeArguments(STRING_NAME to context, STRING_NAME to name, LONG to mipmap) - TransferContext.callMethod(rawPtr, MethodBindings.getTextureSliceSizePtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getTextureSliceSizePtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -175,7 +175,7 @@ public open class RenderSceneBuffersRD : RenderSceneBuffers() { */ public final fun clearContext(context: StringName): Unit { TransferContext.writeArguments(STRING_NAME to context) - TransferContext.callMethod(rawPtr, MethodBindings.clearContextPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearContextPtr, NIL) } /** @@ -186,7 +186,7 @@ public open class RenderSceneBuffersRD : RenderSceneBuffers() { @JvmOverloads public final fun getColorTexture(msaa: Boolean = false): RID { TransferContext.writeArguments(BOOL to msaa) - TransferContext.callMethod(rawPtr, MethodBindings.getColorTexturePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getColorTexturePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -197,7 +197,7 @@ public open class RenderSceneBuffersRD : RenderSceneBuffers() { @JvmOverloads public final fun getColorLayer(layer: Long, msaa: Boolean = false): RID { TransferContext.writeArguments(LONG to layer, BOOL to msaa) - TransferContext.callMethod(rawPtr, MethodBindings.getColorLayerPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getColorLayerPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -209,7 +209,7 @@ public open class RenderSceneBuffersRD : RenderSceneBuffers() { @JvmOverloads public final fun getDepthTexture(msaa: Boolean = false): RID { TransferContext.writeArguments(BOOL to msaa) - TransferContext.callMethod(rawPtr, MethodBindings.getDepthTexturePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getDepthTexturePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -220,7 +220,7 @@ public open class RenderSceneBuffersRD : RenderSceneBuffers() { @JvmOverloads public final fun getDepthLayer(layer: Long, msaa: Boolean = false): RID { TransferContext.writeArguments(LONG to layer, BOOL to msaa) - TransferContext.callMethod(rawPtr, MethodBindings.getDepthLayerPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getDepthLayerPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -232,7 +232,7 @@ public open class RenderSceneBuffersRD : RenderSceneBuffers() { @JvmOverloads public final fun getVelocityTexture(msaa: Boolean = false): RID { TransferContext.writeArguments(BOOL to msaa) - TransferContext.callMethod(rawPtr, MethodBindings.getVelocityTexturePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getVelocityTexturePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -242,7 +242,7 @@ public open class RenderSceneBuffersRD : RenderSceneBuffers() { @JvmOverloads public final fun getVelocityLayer(layer: Long, msaa: Boolean = false): RID { TransferContext.writeArguments(LONG to layer, BOOL to msaa) - TransferContext.callMethod(rawPtr, MethodBindings.getVelocityLayerPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getVelocityLayerPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -251,7 +251,7 @@ public open class RenderSceneBuffersRD : RenderSceneBuffers() { */ public final fun getRenderTarget(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRenderTargetPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getRenderTargetPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -260,7 +260,7 @@ public open class RenderSceneBuffersRD : RenderSceneBuffers() { */ public final fun getViewCount(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getViewCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getViewCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -270,7 +270,7 @@ public open class RenderSceneBuffersRD : RenderSceneBuffers() { */ public final fun getInternalSize(): Vector2i { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInternalSizePtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getInternalSizePtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -279,7 +279,7 @@ public open class RenderSceneBuffersRD : RenderSceneBuffers() { */ public final fun getTargetSize(): Vector2i { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTargetSizePtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getTargetSizePtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -288,7 +288,7 @@ public open class RenderSceneBuffersRD : RenderSceneBuffers() { */ public final fun getScaling3dMode(): RenderingServer.ViewportScaling3DMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScaling3dModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getScaling3dModePtr, LONG) return RenderingServer.ViewportScaling3DMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -298,7 +298,7 @@ public open class RenderSceneBuffersRD : RenderSceneBuffers() { */ public final fun getFsrSharpness(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFsrSharpnessPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFsrSharpnessPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -307,7 +307,7 @@ public open class RenderSceneBuffersRD : RenderSceneBuffers() { */ public final fun getMsaa3d(): RenderingServer.ViewportMSAA { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMsaa3dPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMsaa3dPtr, LONG) return RenderingServer.ViewportMSAA.from(TransferContext.readReturnValue(LONG) as Long) } @@ -316,7 +316,7 @@ public open class RenderSceneBuffersRD : RenderSceneBuffers() { */ public final fun getTextureSamples(): RenderingDevice.TextureSamples { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextureSamplesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTextureSamplesPtr, LONG) return RenderingDevice.TextureSamples.from(TransferContext.readReturnValue(LONG) as Long) } @@ -325,7 +325,7 @@ public open class RenderSceneBuffersRD : RenderSceneBuffers() { */ public final fun getScreenSpaceAa(): RenderingServer.ViewportScreenSpaceAA { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScreenSpaceAaPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getScreenSpaceAaPtr, LONG) return RenderingServer.ViewportScreenSpaceAA.from(TransferContext.readReturnValue(LONG) as Long) } @@ -334,7 +334,7 @@ public open class RenderSceneBuffersRD : RenderSceneBuffers() { */ public final fun getUseTaa(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUseTaaPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getUseTaaPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -343,7 +343,7 @@ public open class RenderSceneBuffersRD : RenderSceneBuffers() { */ public final fun getUseDebanding(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUseDebandingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getUseDebandingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderSceneData.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderSceneData.kt index ad22a9440c..71c18cbec9 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderSceneData.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderSceneData.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Projection import godot.core.RID import godot.core.Transform3D @@ -18,7 +19,6 @@ import godot.core.VariantParser.VECTOR3 import godot.core.VariantParser._RID import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -40,7 +40,7 @@ public open class RenderSceneData internal constructor() : Object() { */ public final fun getCamTransform(): Transform3D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCamTransformPtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.getCamTransformPtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } @@ -50,7 +50,7 @@ public open class RenderSceneData internal constructor() : Object() { */ public final fun getCamProjection(): Projection { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCamProjectionPtr, PROJECTION) + TransferContext.callMethod(ptr, MethodBindings.getCamProjectionPtr, PROJECTION) return (TransferContext.readReturnValue(PROJECTION) as Projection) } @@ -59,7 +59,7 @@ public open class RenderSceneData internal constructor() : Object() { */ public final fun getViewCount(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getViewCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getViewCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -69,7 +69,7 @@ public open class RenderSceneData internal constructor() : Object() { */ public final fun getViewEyeOffset(view: Long): Vector3 { TransferContext.writeArguments(LONG to view) - TransferContext.callMethod(rawPtr, MethodBindings.getViewEyeOffsetPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getViewEyeOffsetPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -80,7 +80,7 @@ public open class RenderSceneData internal constructor() : Object() { */ public final fun getViewProjection(view: Long): Projection { TransferContext.writeArguments(LONG to view) - TransferContext.callMethod(rawPtr, MethodBindings.getViewProjectionPtr, PROJECTION) + TransferContext.callMethod(ptr, MethodBindings.getViewProjectionPtr, PROJECTION) return (TransferContext.readReturnValue(PROJECTION) as Projection) } @@ -89,7 +89,7 @@ public open class RenderSceneData internal constructor() : Object() { */ public final fun getUniformBuffer(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUniformBufferPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getUniformBufferPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderingDevice.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderingDevice.kt index ecaef9a070..f0ccc3d17e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderingDevice.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderingDevice.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.PackedByteArray import godot.core.PackedColorArray @@ -33,7 +34,6 @@ import godot.core.VariantParser._RID import godot.core.Vector2i import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Float import kotlin.Int @@ -86,7 +86,7 @@ public open class RenderingDevice internal constructor() : Object() { `data`: VariantArray = godot.core.variantArrayOf(), ): RID { TransferContext.writeArguments(OBJECT to format, OBJECT to view, ARRAY to data) - TransferContext.callMethod(rawPtr, MethodBindings.textureCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.textureCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -96,7 +96,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun textureCreateShared(view: RDTextureView?, withTexture: RID): RID { TransferContext.writeArguments(OBJECT to view, _RID to withTexture) - TransferContext.callMethod(rawPtr, MethodBindings.textureCreateSharedPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.textureCreateSharedPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -118,7 +118,7 @@ public open class RenderingDevice internal constructor() : Object() { sliceType: TextureSliceType = RenderingDevice.TextureSliceType.TEXTURE_SLICE_2D, ): RID { TransferContext.writeArguments(OBJECT to view, _RID to withTexture, LONG to layer, LONG to mipmap, LONG to mipmaps, LONG to sliceType.id) - TransferContext.callMethod(rawPtr, MethodBindings.textureCreateSharedFromSlicePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.textureCreateSharedFromSlicePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -139,7 +139,7 @@ public open class RenderingDevice internal constructor() : Object() { layers: Long, ): RID { TransferContext.writeArguments(LONG to type.id, LONG to format.id, LONG to samples.id, LONG to usageFlags.flag, LONG to image, LONG to width, LONG to height, LONG to depth, LONG to layers) - TransferContext.callMethod(rawPtr, MethodBindings.textureCreateFromExtensionPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.textureCreateFromExtensionPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -160,7 +160,7 @@ public open class RenderingDevice internal constructor() : Object() { `data`: PackedByteArray, ): Error { TransferContext.writeArguments(_RID to texture, LONG to layer, PACKED_BYTE_ARRAY to data) - TransferContext.callMethod(rawPtr, MethodBindings.textureUpdatePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.textureUpdatePtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -176,7 +176,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun textureGetData(texture: RID, layer: Long): PackedByteArray { TransferContext.writeArguments(_RID to texture, LONG to layer) - TransferContext.callMethod(rawPtr, MethodBindings.textureGetDataPtr, PACKED_BYTE_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.textureGetDataPtr, PACKED_BYTE_ARRAY) return (TransferContext.readReturnValue(PACKED_BYTE_ARRAY) as PackedByteArray) } @@ -187,7 +187,7 @@ public open class RenderingDevice internal constructor() : Object() { public final fun textureIsFormatSupportedForUsage(format: DataFormat, usageFlags: TextureUsageBits): Boolean { TransferContext.writeArguments(LONG to format.id, LONG to usageFlags.flag) - TransferContext.callMethod(rawPtr, MethodBindings.textureIsFormatSupportedForUsagePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.textureIsFormatSupportedForUsagePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -196,7 +196,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun textureIsShared(texture: RID): Boolean { TransferContext.writeArguments(_RID to texture) - TransferContext.callMethod(rawPtr, MethodBindings.textureIsSharedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.textureIsSharedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -205,7 +205,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun textureIsValid(texture: RID): Boolean { TransferContext.writeArguments(_RID to texture) - TransferContext.callMethod(rawPtr, MethodBindings.textureIsValidPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.textureIsValidPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -237,7 +237,7 @@ public open class RenderingDevice internal constructor() : Object() { dstLayer: Long, ): Error { TransferContext.writeArguments(_RID to fromTexture, _RID to toTexture, VECTOR3 to fromPos, VECTOR3 to toPos, VECTOR3 to size, LONG to srcMipmap, LONG to dstMipmap, LONG to srcLayer, LONG to dstLayer) - TransferContext.callMethod(rawPtr, MethodBindings.textureCopyPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.textureCopyPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -260,7 +260,7 @@ public open class RenderingDevice internal constructor() : Object() { layerCount: Long, ): Error { TransferContext.writeArguments(_RID to texture, COLOR to color, LONG to baseMipmap, LONG to mipmapCount, LONG to baseLayer, LONG to layerCount) - TransferContext.callMethod(rawPtr, MethodBindings.textureClearPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.textureClearPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -285,7 +285,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun textureResolveMultisample(fromTexture: RID, toTexture: RID): Error { TransferContext.writeArguments(_RID to fromTexture, _RID to toTexture) - TransferContext.callMethod(rawPtr, MethodBindings.textureResolveMultisamplePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.textureResolveMultisamplePtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -294,7 +294,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun textureGetFormat(texture: RID): RDTextureFormat? { TransferContext.writeArguments(_RID to texture) - TransferContext.callMethod(rawPtr, MethodBindings.textureGetFormatPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.textureGetFormatPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as RDTextureFormat?) } @@ -306,7 +306,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun textureGetNativeHandle(texture: RID): Long { TransferContext.writeArguments(_RID to texture) - TransferContext.callMethod(rawPtr, MethodBindings.textureGetNativeHandlePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.textureGetNativeHandlePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -320,7 +320,7 @@ public open class RenderingDevice internal constructor() : Object() { public final fun framebufferFormatCreate(attachments: VariantArray, viewCount: Long = 1): Long { TransferContext.writeArguments(ARRAY to attachments, LONG to viewCount) - TransferContext.callMethod(rawPtr, MethodBindings.framebufferFormatCreatePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.framebufferFormatCreatePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -336,7 +336,7 @@ public open class RenderingDevice internal constructor() : Object() { viewCount: Long = 1, ): Long { TransferContext.writeArguments(ARRAY to attachments, ARRAY to passes, LONG to viewCount) - TransferContext.callMethod(rawPtr, MethodBindings.framebufferFormatCreateMultipassPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.framebufferFormatCreateMultipassPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -348,7 +348,7 @@ public open class RenderingDevice internal constructor() : Object() { public final fun framebufferFormatCreateEmpty(samples: TextureSamples = RenderingDevice.TextureSamples.TEXTURE_SAMPLES_1): Long { TransferContext.writeArguments(LONG to samples.id) - TransferContext.callMethod(rawPtr, MethodBindings.framebufferFormatCreateEmptyPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.framebufferFormatCreateEmptyPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -360,7 +360,7 @@ public open class RenderingDevice internal constructor() : Object() { public final fun framebufferFormatGetTextureSamples(format: Long, renderPass: Long = 0): TextureSamples { TransferContext.writeArguments(LONG to format, LONG to renderPass) - TransferContext.callMethod(rawPtr, MethodBindings.framebufferFormatGetTextureSamplesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.framebufferFormatGetTextureSamplesPtr, LONG) return RenderingDevice.TextureSamples.from(TransferContext.readReturnValue(LONG) as Long) } @@ -376,7 +376,7 @@ public open class RenderingDevice internal constructor() : Object() { viewCount: Long = 1, ): RID { TransferContext.writeArguments(ARRAY to textures, LONG to validateWithFormat, LONG to viewCount) - TransferContext.callMethod(rawPtr, MethodBindings.framebufferCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.framebufferCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -393,7 +393,7 @@ public open class RenderingDevice internal constructor() : Object() { viewCount: Long = 1, ): RID { TransferContext.writeArguments(ARRAY to textures, ARRAY to passes, LONG to validateWithFormat, LONG to viewCount) - TransferContext.callMethod(rawPtr, MethodBindings.framebufferCreateMultipassPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.framebufferCreateMultipassPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -409,7 +409,7 @@ public open class RenderingDevice internal constructor() : Object() { validateWithFormat: Long = -1, ): RID { TransferContext.writeArguments(VECTOR2I to size, LONG to samples.id, LONG to validateWithFormat) - TransferContext.callMethod(rawPtr, MethodBindings.framebufferCreateEmptyPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.framebufferCreateEmptyPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -419,7 +419,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun framebufferGetFormat(framebuffer: RID): Long { TransferContext.writeArguments(_RID to framebuffer) - TransferContext.callMethod(rawPtr, MethodBindings.framebufferGetFormatPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.framebufferGetFormatPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -429,7 +429,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun framebufferIsValid(framebuffer: RID): Boolean { TransferContext.writeArguments(_RID to framebuffer) - TransferContext.callMethod(rawPtr, MethodBindings.framebufferIsValidPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.framebufferIsValidPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -440,7 +440,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun samplerCreate(state: RDSamplerState?): RID { TransferContext.writeArguments(OBJECT to state) - TransferContext.callMethod(rawPtr, MethodBindings.samplerCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.samplerCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -451,7 +451,7 @@ public open class RenderingDevice internal constructor() : Object() { public final fun samplerIsFormatSupportedForFilter(format: DataFormat, samplerFilter: SamplerFilter): Boolean { TransferContext.writeArguments(LONG to format.id, LONG to samplerFilter.id) - TransferContext.callMethod(rawPtr, MethodBindings.samplerIsFormatSupportedForFilterPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.samplerIsFormatSupportedForFilterPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -467,7 +467,7 @@ public open class RenderingDevice internal constructor() : Object() { useAsStorage: Boolean = false, ): RID { TransferContext.writeArguments(LONG to sizeBytes, PACKED_BYTE_ARRAY to data, BOOL to useAsStorage) - TransferContext.callMethod(rawPtr, MethodBindings.vertexBufferCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.vertexBufferCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -477,7 +477,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun vertexFormatCreate(vertexDescriptions: VariantArray): Long { TransferContext.writeArguments(ARRAY to vertexDescriptions) - TransferContext.callMethod(rawPtr, MethodBindings.vertexFormatCreatePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.vertexFormatCreatePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -493,7 +493,7 @@ public open class RenderingDevice internal constructor() : Object() { offsets: PackedInt64Array = PackedInt64Array(), ): RID { TransferContext.writeArguments(LONG to vertexCount, LONG to vertexFormat, ARRAY to srcBuffers, PACKED_INT_64_ARRAY to offsets) - TransferContext.callMethod(rawPtr, MethodBindings.vertexArrayCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.vertexArrayCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -510,7 +510,7 @@ public open class RenderingDevice internal constructor() : Object() { useRestartIndices: Boolean = false, ): RID { TransferContext.writeArguments(LONG to sizeIndices, LONG to format.id, PACKED_BYTE_ARRAY to data, BOOL to useRestartIndices) - TransferContext.callMethod(rawPtr, MethodBindings.indexBufferCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.indexBufferCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -525,7 +525,7 @@ public open class RenderingDevice internal constructor() : Object() { indexCount: Long, ): RID { TransferContext.writeArguments(_RID to indexBuffer, LONG to indexOffset, LONG to indexCount) - TransferContext.callMethod(rawPtr, MethodBindings.indexArrayCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.indexArrayCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -542,7 +542,7 @@ public open class RenderingDevice internal constructor() : Object() { public final fun shaderCompileSpirvFromSource(shaderSource: RDShaderSource?, allowCache: Boolean = true): RDShaderSPIRV? { TransferContext.writeArguments(OBJECT to shaderSource, BOOL to allowCache) - TransferContext.callMethod(rawPtr, MethodBindings.shaderCompileSpirvFromSourcePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.shaderCompileSpirvFromSourcePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as RDShaderSPIRV?) } @@ -558,7 +558,7 @@ public open class RenderingDevice internal constructor() : Object() { public final fun shaderCompileBinaryFromSpirv(spirvData: RDShaderSPIRV?, name: String = ""): PackedByteArray { TransferContext.writeArguments(OBJECT to spirvData, STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.shaderCompileBinaryFromSpirvPtr, + TransferContext.callMethod(ptr, MethodBindings.shaderCompileBinaryFromSpirvPtr, PACKED_BYTE_ARRAY) return (TransferContext.readReturnValue(PACKED_BYTE_ARRAY) as PackedByteArray) } @@ -572,7 +572,7 @@ public open class RenderingDevice internal constructor() : Object() { @JvmOverloads public final fun shaderCreateFromSpirv(spirvData: RDShaderSPIRV?, name: String = ""): RID { TransferContext.writeArguments(OBJECT to spirvData, STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.shaderCreateFromSpirvPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.shaderCreateFromSpirvPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -586,7 +586,7 @@ public open class RenderingDevice internal constructor() : Object() { public final fun shaderCreateFromBytecode(binaryData: PackedByteArray, placeholderRid: RID = RID()): RID { TransferContext.writeArguments(PACKED_BYTE_ARRAY to binaryData, _RID to placeholderRid) - TransferContext.callMethod(rawPtr, MethodBindings.shaderCreateFromBytecodePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.shaderCreateFromBytecodePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -597,7 +597,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun shaderCreatePlaceholder(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.shaderCreatePlaceholderPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.shaderCreatePlaceholderPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -608,7 +608,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun shaderGetVertexInputAttributeMask(shader: RID): Long { TransferContext.writeArguments(_RID to shader) - TransferContext.callMethod(rawPtr, MethodBindings.shaderGetVertexInputAttributeMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.shaderGetVertexInputAttributeMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -621,7 +621,7 @@ public open class RenderingDevice internal constructor() : Object() { public final fun uniformBufferCreate(sizeBytes: Long, `data`: PackedByteArray = PackedByteArray()): RID { TransferContext.writeArguments(LONG to sizeBytes, PACKED_BYTE_ARRAY to data) - TransferContext.callMethod(rawPtr, MethodBindings.uniformBufferCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.uniformBufferCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -638,7 +638,7 @@ public open class RenderingDevice internal constructor() : Object() { usage: StorageBufferUsage = RenderingDevice.StorageBufferUsageValue(0), ): RID { TransferContext.writeArguments(LONG to sizeBytes, PACKED_BYTE_ARRAY to data, LONG to usage.flag) - TransferContext.callMethod(rawPtr, MethodBindings.storageBufferCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.storageBufferCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -654,7 +654,7 @@ public open class RenderingDevice internal constructor() : Object() { `data`: PackedByteArray = PackedByteArray(), ): RID { TransferContext.writeArguments(LONG to sizeBytes, LONG to format.id, PACKED_BYTE_ARRAY to data) - TransferContext.callMethod(rawPtr, MethodBindings.textureBufferCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.textureBufferCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -669,7 +669,7 @@ public open class RenderingDevice internal constructor() : Object() { shaderSet: Long, ): RID { TransferContext.writeArguments(ARRAY to uniforms, _RID to shader, LONG to shaderSet) - TransferContext.callMethod(rawPtr, MethodBindings.uniformSetCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.uniformSetCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -678,7 +678,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun uniformSetIsValid(uniformSet: RID): Boolean { TransferContext.writeArguments(_RID to uniformSet) - TransferContext.callMethod(rawPtr, MethodBindings.uniformSetIsValidPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.uniformSetIsValidPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -697,7 +697,7 @@ public open class RenderingDevice internal constructor() : Object() { size: Long, ): Error { TransferContext.writeArguments(_RID to srcBuffer, _RID to dstBuffer, LONG to srcOffset, LONG to dstOffset, LONG to size) - TransferContext.callMethod(rawPtr, MethodBindings.bufferCopyPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.bufferCopyPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -716,7 +716,7 @@ public open class RenderingDevice internal constructor() : Object() { `data`: PackedByteArray, ): Error { TransferContext.writeArguments(_RID to buffer, LONG to offset, LONG to sizeBytes, PACKED_BYTE_ARRAY to data) - TransferContext.callMethod(rawPtr, MethodBindings.bufferUpdatePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.bufferUpdatePtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -734,7 +734,7 @@ public open class RenderingDevice internal constructor() : Object() { sizeBytes: Long, ): Error { TransferContext.writeArguments(_RID to buffer, LONG to offset, LONG to sizeBytes) - TransferContext.callMethod(rawPtr, MethodBindings.bufferClearPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.bufferClearPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -749,7 +749,7 @@ public open class RenderingDevice internal constructor() : Object() { sizeBytes: Long = 0, ): PackedByteArray { TransferContext.writeArguments(_RID to buffer, LONG to offsetBytes, LONG to sizeBytes) - TransferContext.callMethod(rawPtr, MethodBindings.bufferGetDataPtr, PACKED_BYTE_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.bufferGetDataPtr, PACKED_BYTE_ARRAY) return (TransferContext.readReturnValue(PACKED_BYTE_ARRAY) as PackedByteArray) } @@ -775,7 +775,7 @@ public open class RenderingDevice internal constructor() : Object() { godot.core.variantArrayOf(), ): RID { TransferContext.writeArguments(_RID to shader, LONG to framebufferFormat, LONG to vertexFormat, LONG to primitive.id, OBJECT to rasterizationState, OBJECT to multisampleState, OBJECT to stencilState, OBJECT to colorBlendState, LONG to dynamicStateFlags.flag, LONG to forRenderPass, ARRAY to specializationConstants) - TransferContext.callMethod(rawPtr, MethodBindings.renderPipelineCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.renderPipelineCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -785,7 +785,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun renderPipelineIsValid(renderPipeline: RID): Boolean { TransferContext.writeArguments(_RID to renderPipeline) - TransferContext.callMethod(rawPtr, MethodBindings.renderPipelineIsValidPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.renderPipelineIsValidPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -799,7 +799,7 @@ public open class RenderingDevice internal constructor() : Object() { specializationConstants: VariantArray = godot.core.variantArrayOf()): RID { TransferContext.writeArguments(_RID to shader, ARRAY to specializationConstants) - TransferContext.callMethod(rawPtr, MethodBindings.computePipelineCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.computePipelineCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -809,7 +809,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun computePipelineIsValid(computePipeline: RID): Boolean { TransferContext.writeArguments(_RID to computePipeline) - TransferContext.callMethod(rawPtr, MethodBindings.computePipelineIsValidPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.computePipelineIsValidPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -824,7 +824,7 @@ public open class RenderingDevice internal constructor() : Object() { @JvmOverloads public final fun screenGetWidth(screen: Int = 0): Int { TransferContext.writeArguments(LONG to screen.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.screenGetWidthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.screenGetWidthPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -839,7 +839,7 @@ public open class RenderingDevice internal constructor() : Object() { @JvmOverloads public final fun screenGetHeight(screen: Int = 0): Int { TransferContext.writeArguments(LONG to screen.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.screenGetHeightPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.screenGetHeightPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -852,7 +852,7 @@ public open class RenderingDevice internal constructor() : Object() { @JvmOverloads public final fun screenGetFramebufferFormat(screen: Int = 0): Long { TransferContext.writeArguments(LONG to screen.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.screenGetFramebufferFormatPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.screenGetFramebufferFormatPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -866,7 +866,7 @@ public open class RenderingDevice internal constructor() : Object() { public final fun drawListBeginForScreen(screen: Int = 0, clearColor: Color = Color(Color(0, 0, 0, 1))): Long { TransferContext.writeArguments(LONG to screen.toLong(), COLOR to clearColor) - TransferContext.callMethod(rawPtr, MethodBindings.drawListBeginForScreenPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.drawListBeginForScreenPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -910,7 +910,7 @@ public open class RenderingDevice internal constructor() : Object() { region: Rect2 = Rect2(0.0, 0.0, 0.0, 0.0), ): Long { TransferContext.writeArguments(_RID to framebuffer, LONG to initialColorAction.id, LONG to finalColorAction.id, LONG to initialDepthAction.id, LONG to finalDepthAction.id, PACKED_COLOR_ARRAY to clearColorValues, DOUBLE to clearDepth.toDouble(), LONG to clearStencil, RECT2 to region) - TransferContext.callMethod(rawPtr, MethodBindings.drawListBeginPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.drawListBeginPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -932,7 +932,7 @@ public open class RenderingDevice internal constructor() : Object() { storageTextures: VariantArray = godot.core.variantArrayOf(), ): PackedInt64Array { TransferContext.writeArguments(_RID to framebuffer, LONG to splits, LONG to initialColorAction.id, LONG to finalColorAction.id, LONG to initialDepthAction.id, LONG to finalDepthAction.id, PACKED_COLOR_ARRAY to clearColorValues, DOUBLE to clearDepth.toDouble(), LONG to clearStencil, RECT2 to region, ARRAY to storageTextures) - TransferContext.callMethod(rawPtr, MethodBindings.drawListBeginSplitPtr, PACKED_INT_64_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.drawListBeginSplitPtr, PACKED_INT_64_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_64_ARRAY) as PackedInt64Array) } @@ -942,7 +942,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun drawListSetBlendConstants(drawList: Long, color: Color): Unit { TransferContext.writeArguments(LONG to drawList, COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.drawListSetBlendConstantsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawListSetBlendConstantsPtr, NIL) } /** @@ -950,7 +950,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun drawListBindRenderPipeline(drawList: Long, renderPipeline: RID): Unit { TransferContext.writeArguments(LONG to drawList, _RID to renderPipeline) - TransferContext.callMethod(rawPtr, MethodBindings.drawListBindRenderPipelinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawListBindRenderPipelinePtr, NIL) } /** @@ -963,7 +963,7 @@ public open class RenderingDevice internal constructor() : Object() { setIndex: Long, ): Unit { TransferContext.writeArguments(LONG to drawList, _RID to uniformSet, LONG to setIndex) - TransferContext.callMethod(rawPtr, MethodBindings.drawListBindUniformSetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawListBindUniformSetPtr, NIL) } /** @@ -971,7 +971,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun drawListBindVertexArray(drawList: Long, vertexArray: RID): Unit { TransferContext.writeArguments(LONG to drawList, _RID to vertexArray) - TransferContext.callMethod(rawPtr, MethodBindings.drawListBindVertexArrayPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawListBindVertexArrayPtr, NIL) } /** @@ -979,7 +979,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun drawListBindIndexArray(drawList: Long, indexArray: RID): Unit { TransferContext.writeArguments(LONG to drawList, _RID to indexArray) - TransferContext.callMethod(rawPtr, MethodBindings.drawListBindIndexArrayPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawListBindIndexArrayPtr, NIL) } /** @@ -993,7 +993,7 @@ public open class RenderingDevice internal constructor() : Object() { sizeBytes: Long, ): Unit { TransferContext.writeArguments(LONG to drawList, PACKED_BYTE_ARRAY to buffer, LONG to sizeBytes) - TransferContext.callMethod(rawPtr, MethodBindings.drawListSetPushConstantPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawListSetPushConstantPtr, NIL) } /** @@ -1008,7 +1008,7 @@ public open class RenderingDevice internal constructor() : Object() { proceduralVertexCount: Long = 0, ): Unit { TransferContext.writeArguments(LONG to drawList, BOOL to useIndices, LONG to instances, LONG to proceduralVertexCount) - TransferContext.callMethod(rawPtr, MethodBindings.drawListDrawPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawListDrawPtr, NIL) } /** @@ -1022,7 +1022,7 @@ public open class RenderingDevice internal constructor() : Object() { public final fun drawListEnableScissor(drawList: Long, rect: Rect2 = Rect2(0.0, 0.0, 0.0, 0.0)): Unit { TransferContext.writeArguments(LONG to drawList, RECT2 to rect) - TransferContext.callMethod(rawPtr, MethodBindings.drawListEnableScissorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawListEnableScissorPtr, NIL) } /** @@ -1031,7 +1031,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun drawListDisableScissor(drawList: Long): Unit { TransferContext.writeArguments(LONG to drawList) - TransferContext.callMethod(rawPtr, MethodBindings.drawListDisableScissorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawListDisableScissorPtr, NIL) } /** @@ -1039,7 +1039,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun drawListSwitchToNextPass(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.drawListSwitchToNextPassPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.drawListSwitchToNextPassPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -1048,7 +1048,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun drawListSwitchToNextPassSplit(splits: Long): PackedInt64Array { TransferContext.writeArguments(LONG to splits) - TransferContext.callMethod(rawPtr, MethodBindings.drawListSwitchToNextPassSplitPtr, + TransferContext.callMethod(ptr, MethodBindings.drawListSwitchToNextPassSplitPtr, PACKED_INT_64_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_64_ARRAY) as PackedInt64Array) } @@ -1058,7 +1058,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun drawListEnd(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.drawListEndPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawListEndPtr, NIL) } /** @@ -1085,7 +1085,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun computeListBegin(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.computeListBeginPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.computeListBeginPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -1096,7 +1096,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun computeListBindComputePipeline(computeList: Long, computePipeline: RID): Unit { TransferContext.writeArguments(LONG to computeList, _RID to computePipeline) - TransferContext.callMethod(rawPtr, MethodBindings.computeListBindComputePipelinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.computeListBindComputePipelinePtr, NIL) } /** @@ -1110,7 +1110,7 @@ public open class RenderingDevice internal constructor() : Object() { sizeBytes: Long, ): Unit { TransferContext.writeArguments(LONG to computeList, PACKED_BYTE_ARRAY to buffer, LONG to sizeBytes) - TransferContext.callMethod(rawPtr, MethodBindings.computeListSetPushConstantPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.computeListSetPushConstantPtr, NIL) } /** @@ -1124,7 +1124,7 @@ public open class RenderingDevice internal constructor() : Object() { setIndex: Long, ): Unit { TransferContext.writeArguments(LONG to computeList, _RID to uniformSet, LONG to setIndex) - TransferContext.callMethod(rawPtr, MethodBindings.computeListBindUniformSetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.computeListBindUniformSetPtr, NIL) } /** @@ -1138,7 +1138,7 @@ public open class RenderingDevice internal constructor() : Object() { zGroups: Long, ): Unit { TransferContext.writeArguments(LONG to computeList, LONG to xGroups, LONG to yGroups, LONG to zGroups) - TransferContext.callMethod(rawPtr, MethodBindings.computeListDispatchPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.computeListDispatchPtr, NIL) } /** @@ -1152,7 +1152,7 @@ public open class RenderingDevice internal constructor() : Object() { offset: Long, ): Unit { TransferContext.writeArguments(LONG to computeList, _RID to buffer, LONG to offset) - TransferContext.callMethod(rawPtr, MethodBindings.computeListDispatchIndirectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.computeListDispatchIndirectPtr, NIL) } /** @@ -1160,7 +1160,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun computeListAddBarrier(computeList: Long): Unit { TransferContext.writeArguments(LONG to computeList) - TransferContext.callMethod(rawPtr, MethodBindings.computeListAddBarrierPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.computeListAddBarrierPtr, NIL) } /** @@ -1168,7 +1168,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun computeListEnd(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.computeListEndPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.computeListEndPtr, NIL) } /** @@ -1178,7 +1178,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun freeRid(rid: RID): Unit { TransferContext.writeArguments(_RID to rid) - TransferContext.callMethod(rawPtr, MethodBindings.freeRidPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.freeRidPtr, NIL) } /** @@ -1188,7 +1188,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun captureTimestamp(name: String): Unit { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.captureTimestampPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.captureTimestampPtr, NIL) } /** @@ -1196,7 +1196,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun getCapturedTimestampsCount(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCapturedTimestampsCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCapturedTimestampsCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -1206,7 +1206,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun getCapturedTimestampsFrame(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCapturedTimestampsFramePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCapturedTimestampsFramePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -1216,7 +1216,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun getCapturedTimestampGpuTime(index: Long): Long { TransferContext.writeArguments(LONG to index) - TransferContext.callMethod(rawPtr, MethodBindings.getCapturedTimestampGpuTimePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCapturedTimestampGpuTimePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -1226,7 +1226,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun getCapturedTimestampCpuTime(index: Long): Long { TransferContext.writeArguments(LONG to index) - TransferContext.callMethod(rawPtr, MethodBindings.getCapturedTimestampCpuTimePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCapturedTimestampCpuTimePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -1236,7 +1236,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun getCapturedTimestampName(index: Long): String { TransferContext.writeArguments(LONG to index) - TransferContext.callMethod(rawPtr, MethodBindings.getCapturedTimestampNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getCapturedTimestampNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -1249,7 +1249,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun limitGet(limit: Limit): Long { TransferContext.writeArguments(LONG to limit.id) - TransferContext.callMethod(rawPtr, MethodBindings.limitGetPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.limitGetPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -1260,7 +1260,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun getFrameDelay(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFrameDelayPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFrameDelayPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -1271,7 +1271,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun submit(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.submitPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.submitPtr, NIL) } /** @@ -1282,7 +1282,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun sync(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.syncPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.syncPtr, NIL) } /** @@ -1293,7 +1293,7 @@ public open class RenderingDevice internal constructor() : Object() { RenderingDevice.BarrierMask.BARRIER_MASK_ALL_BARRIERS, to: BarrierMask = RenderingDevice.BarrierMask.BARRIER_MASK_ALL_BARRIERS): Unit { TransferContext.writeArguments(LONG to from.flag, LONG to to.flag) - TransferContext.callMethod(rawPtr, MethodBindings.barrierPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.barrierPtr, NIL) } /** @@ -1301,7 +1301,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun fullBarrier(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.fullBarrierPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fullBarrierPtr, NIL) } /** @@ -1310,7 +1310,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun createLocalDevice(): RenderingDevice? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.createLocalDevicePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.createLocalDevicePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as RenderingDevice?) } @@ -1328,7 +1328,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun setResourceName(id: RID, name: String): Unit { TransferContext.writeArguments(_RID to id, STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.setResourceNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setResourceNamePtr, NIL) } /** @@ -1341,7 +1341,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun drawCommandBeginLabel(name: String, color: Color): Unit { TransferContext.writeArguments(STRING to name, COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.drawCommandBeginLabelPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawCommandBeginLabelPtr, NIL) } /** @@ -1349,7 +1349,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun drawCommandInsertLabel(name: String, color: Color): Unit { TransferContext.writeArguments(STRING to name, COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.drawCommandInsertLabelPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawCommandInsertLabelPtr, NIL) } /** @@ -1357,7 +1357,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun drawCommandEndLabel(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.drawCommandEndLabelPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawCommandEndLabelPtr, NIL) } /** @@ -1366,7 +1366,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun getDeviceVendorName(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDeviceVendorNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getDeviceVendorNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -1376,7 +1376,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun getDeviceName(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDeviceNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getDeviceNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -1388,7 +1388,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun getDevicePipelineCacheUuid(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDevicePipelineCacheUuidPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getDevicePipelineCacheUuidPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -1400,7 +1400,7 @@ public open class RenderingDevice internal constructor() : Object() { */ public final fun getMemoryUsage(type: MemoryType): Long { TransferContext.writeArguments(LONG to type.id) - TransferContext.callMethod(rawPtr, MethodBindings.getMemoryUsagePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMemoryUsagePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -1415,7 +1415,7 @@ public open class RenderingDevice internal constructor() : Object() { index: Long, ): Long { TransferContext.writeArguments(LONG to resource.id, _RID to rid, LONG to index) - TransferContext.callMethod(rawPtr, MethodBindings.getDriverResourcePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDriverResourcePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderingServer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderingServer.kt index a66748106b..39217a67f0 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderingServer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RenderingServer.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.AABB import godot.core.Basis import godot.core.Callable @@ -61,7 +62,6 @@ import godot.core.Vector2i import godot.core.Vector3 import godot.core.Vector3i import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -201,7 +201,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun texture2dCreate(image: Image?): RID { TransferContext.writeArguments(OBJECT to image) - TransferContext.callMethod(rawPtr, MethodBindings.texture2dCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.texture2dCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -217,7 +217,7 @@ public object RenderingServer : Object() { public final fun texture2dLayeredCreate(layers: VariantArray, layeredType: TextureLayeredType): RID { TransferContext.writeArguments(ARRAY to layers, LONG to layeredType.id) - TransferContext.callMethod(rawPtr, MethodBindings.texture2dLayeredCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.texture2dLayeredCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -234,7 +234,7 @@ public object RenderingServer : Object() { `data`: VariantArray, ): RID { TransferContext.writeArguments(LONG to format.id, LONG to width.toLong(), LONG to height.toLong(), LONG to depth.toLong(), BOOL to mipmaps, ARRAY to data) - TransferContext.callMethod(rawPtr, MethodBindings.texture3dCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.texture3dCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -244,7 +244,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun textureProxyCreate(base: RID): RID { TransferContext.writeArguments(_RID to base) - TransferContext.callMethod(rawPtr, MethodBindings.textureProxyCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.textureProxyCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -262,7 +262,7 @@ public object RenderingServer : Object() { layer: Int, ): Unit { TransferContext.writeArguments(_RID to texture, OBJECT to image, LONG to layer.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.texture2dUpdatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.texture2dUpdatePtr, NIL) } /** @@ -275,7 +275,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun texture3dUpdate(texture: RID, `data`: VariantArray): Unit { TransferContext.writeArguments(_RID to texture, ARRAY to data) - TransferContext.callMethod(rawPtr, MethodBindings.texture3dUpdatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.texture3dUpdatePtr, NIL) } /** @@ -284,7 +284,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun textureProxyUpdate(texture: RID, proxyTo: RID): Unit { TransferContext.writeArguments(_RID to texture, _RID to proxyTo) - TransferContext.callMethod(rawPtr, MethodBindings.textureProxyUpdatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.textureProxyUpdatePtr, NIL) } /** @@ -299,7 +299,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun texture2dPlaceholderCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.texture2dPlaceholderCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.texture2dPlaceholderCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -313,7 +313,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun texture2dLayeredPlaceholderCreate(layeredType: TextureLayeredType): RID { TransferContext.writeArguments(LONG to layeredType.id) - TransferContext.callMethod(rawPtr, MethodBindings.texture2dLayeredPlaceholderCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.texture2dLayeredPlaceholderCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -328,7 +328,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun texture3dPlaceholderCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.texture3dPlaceholderCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.texture3dPlaceholderCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -344,7 +344,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun texture2dGet(texture: RID): Image? { TransferContext.writeArguments(_RID to texture) - TransferContext.callMethod(rawPtr, MethodBindings.texture2dGetPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.texture2dGetPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Image?) } @@ -354,7 +354,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun texture2dLayerGet(texture: RID, layer: Int): Image? { TransferContext.writeArguments(_RID to texture, LONG to layer.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.texture2dLayerGetPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.texture2dLayerGetPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Image?) } @@ -364,7 +364,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun texture3dGet(texture: RID): VariantArray { TransferContext.writeArguments(_RID to texture) - TransferContext.callMethod(rawPtr, MethodBindings.texture3dGetPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.texture3dGetPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -375,7 +375,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun textureReplace(texture: RID, byTexture: RID): Unit { TransferContext.writeArguments(_RID to texture, _RID to byTexture) - TransferContext.callMethod(rawPtr, MethodBindings.textureReplacePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.textureReplacePtr, NIL) } @JvmStatic @@ -385,19 +385,19 @@ public object RenderingServer : Object() { height: Int, ): Unit { TransferContext.writeArguments(_RID to texture, LONG to width.toLong(), LONG to height.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.textureSetSizeOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.textureSetSizeOverridePtr, NIL) } @JvmStatic public final fun textureSetPath(texture: RID, path: String): Unit { TransferContext.writeArguments(_RID to texture, STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.textureSetPathPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.textureSetPathPtr, NIL) } @JvmStatic public final fun textureGetPath(texture: RID): String { TransferContext.writeArguments(_RID to texture) - TransferContext.callMethod(rawPtr, MethodBindings.textureGetPathPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.textureGetPathPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -407,14 +407,14 @@ public object RenderingServer : Object() { @JvmStatic public final fun textureGetFormat(texture: RID): Image.Format { TransferContext.writeArguments(_RID to texture) - TransferContext.callMethod(rawPtr, MethodBindings.textureGetFormatPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.textureGetFormatPtr, LONG) return Image.Format.from(TransferContext.readReturnValue(LONG) as Long) } @JvmStatic public final fun textureSetForceRedrawIfVisible(texture: RID, enable: Boolean): Unit { TransferContext.writeArguments(_RID to texture, BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.textureSetForceRedrawIfVisiblePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.textureSetForceRedrawIfVisiblePtr, NIL) } /** @@ -426,7 +426,7 @@ public object RenderingServer : Object() { public final fun textureRdCreate(rdTexture: RID, layerType: TextureLayeredType = RenderingServer.TextureLayeredType.TEXTURE_LAYERED_2D_ARRAY): RID { TransferContext.writeArguments(_RID to rdTexture, LONG to layerType.id) - TransferContext.callMethod(rawPtr, MethodBindings.textureRdCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.textureRdCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -437,7 +437,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun textureGetRdTexture(texture: RID, srgb: Boolean = false): RID { TransferContext.writeArguments(_RID to texture, BOOL to srgb) - TransferContext.callMethod(rawPtr, MethodBindings.textureGetRdTexturePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.textureGetRdTexturePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -451,7 +451,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun textureGetNativeHandle(texture: RID, srgb: Boolean = false): Long { TransferContext.writeArguments(_RID to texture, BOOL to srgb) - TransferContext.callMethod(rawPtr, MethodBindings.textureGetNativeHandlePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.textureGetNativeHandlePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -465,7 +465,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun shaderCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.shaderCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.shaderCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -475,7 +475,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun shaderSetCode(shader: RID, code: String): Unit { TransferContext.writeArguments(_RID to shader, STRING to code) - TransferContext.callMethod(rawPtr, MethodBindings.shaderSetCodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.shaderSetCodePtr, NIL) } /** @@ -485,7 +485,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun shaderSetPathHint(shader: RID, path: String): Unit { TransferContext.writeArguments(_RID to shader, STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.shaderSetPathHintPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.shaderSetPathHintPtr, NIL) } /** @@ -494,7 +494,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun shaderGetCode(shader: RID): String { TransferContext.writeArguments(_RID to shader) - TransferContext.callMethod(rawPtr, MethodBindings.shaderGetCodePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.shaderGetCodePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -504,7 +504,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun getShaderParameterList(shader: RID): VariantArray> { TransferContext.writeArguments(_RID to shader) - TransferContext.callMethod(rawPtr, MethodBindings.getShaderParameterListPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getShaderParameterListPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray>) } @@ -515,7 +515,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun shaderGetParameterDefault(shader: RID, name: StringName): Any? { TransferContext.writeArguments(_RID to shader, STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.shaderGetParameterDefaultPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.shaderGetParameterDefaultPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -532,7 +532,7 @@ public object RenderingServer : Object() { index: Int = 0, ): Unit { TransferContext.writeArguments(_RID to shader, STRING_NAME to name, _RID to texture, LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.shaderSetDefaultTextureParameterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.shaderSetDefaultTextureParameterPtr, NIL) } /** @@ -547,7 +547,7 @@ public object RenderingServer : Object() { index: Int = 0, ): RID { TransferContext.writeArguments(_RID to shader, STRING_NAME to name, LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.shaderGetDefaultTextureParameterPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.shaderGetDefaultTextureParameterPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -561,7 +561,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun materialCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.materialCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.materialCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -571,7 +571,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun materialSetShader(shaderMaterial: RID, shader: RID): Unit { TransferContext.writeArguments(_RID to shaderMaterial, _RID to shader) - TransferContext.callMethod(rawPtr, MethodBindings.materialSetShaderPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.materialSetShaderPtr, NIL) } /** @@ -584,7 +584,7 @@ public object RenderingServer : Object() { `value`: Any?, ): Unit { TransferContext.writeArguments(_RID to material, STRING_NAME to parameter, ANY to value) - TransferContext.callMethod(rawPtr, MethodBindings.materialSetParamPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.materialSetParamPtr, NIL) } /** @@ -593,7 +593,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun materialGetParam(material: RID, parameter: StringName): Any? { TransferContext.writeArguments(_RID to material, STRING_NAME to parameter) - TransferContext.callMethod(rawPtr, MethodBindings.materialGetParamPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.materialGetParamPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -603,7 +603,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun materialSetRenderPriority(material: RID, priority: Int): Unit { TransferContext.writeArguments(_RID to material, LONG to priority.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.materialSetRenderPriorityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.materialSetRenderPriorityPtr, NIL) } /** @@ -612,7 +612,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun materialSetNextPass(material: RID, nextMaterial: RID): Unit { TransferContext.writeArguments(_RID to material, _RID to nextMaterial) - TransferContext.callMethod(rawPtr, MethodBindings.materialSetNextPassPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.materialSetNextPassPtr, NIL) } @JvmOverloads @@ -620,7 +620,7 @@ public object RenderingServer : Object() { public final fun meshCreateFromSurfaces(surfaces: VariantArray>, blendShapeCount: Int = 0): RID { TransferContext.writeArguments(ARRAY to surfaces, LONG to blendShapeCount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.meshCreateFromSurfacesPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.meshCreateFromSurfacesPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -636,7 +636,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun meshCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.meshCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.meshCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -650,7 +650,7 @@ public object RenderingServer : Object() { arrayIndex: Int, ): Long { TransferContext.writeArguments(LONG to format.flag, LONG to vertexCount.toLong(), LONG to arrayIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.meshSurfaceGetFormatOffsetPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.meshSurfaceGetFormatOffsetPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -662,7 +662,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun meshSurfaceGetFormatVertexStride(format: ArrayFormat, vertexCount: Int): Long { TransferContext.writeArguments(LONG to format.flag, LONG to vertexCount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.meshSurfaceGetFormatVertexStridePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.meshSurfaceGetFormatVertexStridePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -675,8 +675,7 @@ public object RenderingServer : Object() { public final fun meshSurfaceGetFormatNormalTangentStride(format: ArrayFormat, vertexCount: Int): Long { TransferContext.writeArguments(LONG to format.flag, LONG to vertexCount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.meshSurfaceGetFormatNormalTangentStridePtr, - LONG) + TransferContext.callMethod(ptr, MethodBindings.meshSurfaceGetFormatNormalTangentStridePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -687,7 +686,7 @@ public object RenderingServer : Object() { public final fun meshSurfaceGetFormatAttributeStride(format: ArrayFormat, vertexCount: Int): Long { TransferContext.writeArguments(LONG to format.flag, LONG to vertexCount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.meshSurfaceGetFormatAttributeStridePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.meshSurfaceGetFormatAttributeStridePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -697,14 +696,14 @@ public object RenderingServer : Object() { @JvmStatic public final fun meshSurfaceGetFormatSkinStride(format: ArrayFormat, vertexCount: Int): Long { TransferContext.writeArguments(LONG to format.flag, LONG to vertexCount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.meshSurfaceGetFormatSkinStridePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.meshSurfaceGetFormatSkinStridePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @JvmStatic public final fun meshAddSurface(mesh: RID, surface: Dictionary): Unit { TransferContext.writeArguments(_RID to mesh, DICTIONARY to surface) - TransferContext.callMethod(rawPtr, MethodBindings.meshAddSurfacePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.meshAddSurfacePtr, NIL) } @JvmOverloads @@ -718,7 +717,7 @@ public object RenderingServer : Object() { compressFormat: ArrayFormat = RenderingServer.ArrayFormat.ARRAY_FLAG_FORMAT_VERSION_1, ): Unit { TransferContext.writeArguments(_RID to mesh, LONG to primitive.id, ARRAY to arrays, ARRAY to blendShapes, DICTIONARY to lods, LONG to compressFormat.flag) - TransferContext.callMethod(rawPtr, MethodBindings.meshAddSurfaceFromArraysPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.meshAddSurfaceFromArraysPtr, NIL) } /** @@ -727,7 +726,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun meshGetBlendShapeCount(mesh: RID): Int { TransferContext.writeArguments(_RID to mesh) - TransferContext.callMethod(rawPtr, MethodBindings.meshGetBlendShapeCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.meshGetBlendShapeCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -737,7 +736,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun meshSetBlendShapeMode(mesh: RID, mode: BlendShapeMode): Unit { TransferContext.writeArguments(_RID to mesh, LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.meshSetBlendShapeModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.meshSetBlendShapeModePtr, NIL) } /** @@ -746,7 +745,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun meshGetBlendShapeMode(mesh: RID): BlendShapeMode { TransferContext.writeArguments(_RID to mesh) - TransferContext.callMethod(rawPtr, MethodBindings.meshGetBlendShapeModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.meshGetBlendShapeModePtr, LONG) return RenderingServer.BlendShapeMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -760,7 +759,7 @@ public object RenderingServer : Object() { material: RID, ): Unit { TransferContext.writeArguments(_RID to mesh, LONG to surface.toLong(), _RID to material) - TransferContext.callMethod(rawPtr, MethodBindings.meshSurfaceSetMaterialPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.meshSurfaceSetMaterialPtr, NIL) } /** @@ -769,14 +768,14 @@ public object RenderingServer : Object() { @JvmStatic public final fun meshSurfaceGetMaterial(mesh: RID, surface: Int): RID { TransferContext.writeArguments(_RID to mesh, LONG to surface.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.meshSurfaceGetMaterialPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.meshSurfaceGetMaterialPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @JvmStatic public final fun meshGetSurface(mesh: RID, surface: Int): Dictionary { TransferContext.writeArguments(_RID to mesh, LONG to surface.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.meshGetSurfacePtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.meshGetSurfacePtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -786,7 +785,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun meshSurfaceGetArrays(mesh: RID, surface: Int): VariantArray { TransferContext.writeArguments(_RID to mesh, LONG to surface.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.meshSurfaceGetArraysPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.meshSurfaceGetArraysPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -797,7 +796,7 @@ public object RenderingServer : Object() { public final fun meshSurfaceGetBlendShapeArrays(mesh: RID, surface: Int): VariantArray> { TransferContext.writeArguments(_RID to mesh, LONG to surface.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.meshSurfaceGetBlendShapeArraysPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.meshSurfaceGetBlendShapeArraysPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray>) } @@ -807,7 +806,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun meshGetSurfaceCount(mesh: RID): Int { TransferContext.writeArguments(_RID to mesh) - TransferContext.callMethod(rawPtr, MethodBindings.meshGetSurfaceCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.meshGetSurfaceCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -817,7 +816,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun meshSetCustomAabb(mesh: RID, aabb: AABB): Unit { TransferContext.writeArguments(_RID to mesh, godot.core.VariantParser.AABB to aabb) - TransferContext.callMethod(rawPtr, MethodBindings.meshSetCustomAabbPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.meshSetCustomAabbPtr, NIL) } /** @@ -826,7 +825,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun meshGetCustomAabb(mesh: RID): AABB { TransferContext.writeArguments(_RID to mesh) - TransferContext.callMethod(rawPtr, MethodBindings.meshGetCustomAabbPtr, + TransferContext.callMethod(ptr, MethodBindings.meshGetCustomAabbPtr, godot.core.VariantParser.AABB) return (TransferContext.readReturnValue(godot.core.VariantParser.AABB) as AABB) } @@ -837,7 +836,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun meshClear(mesh: RID): Unit { TransferContext.writeArguments(_RID to mesh) - TransferContext.callMethod(rawPtr, MethodBindings.meshClearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.meshClearPtr, NIL) } @JvmStatic @@ -848,7 +847,7 @@ public object RenderingServer : Object() { `data`: PackedByteArray, ): Unit { TransferContext.writeArguments(_RID to mesh, LONG to surface.toLong(), LONG to offset.toLong(), PACKED_BYTE_ARRAY to data) - TransferContext.callMethod(rawPtr, MethodBindings.meshSurfaceUpdateVertexRegionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.meshSurfaceUpdateVertexRegionPtr, NIL) } @JvmStatic @@ -859,7 +858,7 @@ public object RenderingServer : Object() { `data`: PackedByteArray, ): Unit { TransferContext.writeArguments(_RID to mesh, LONG to surface.toLong(), LONG to offset.toLong(), PACKED_BYTE_ARRAY to data) - TransferContext.callMethod(rawPtr, MethodBindings.meshSurfaceUpdateAttributeRegionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.meshSurfaceUpdateAttributeRegionPtr, NIL) } @JvmStatic @@ -870,13 +869,13 @@ public object RenderingServer : Object() { `data`: PackedByteArray, ): Unit { TransferContext.writeArguments(_RID to mesh, LONG to surface.toLong(), LONG to offset.toLong(), PACKED_BYTE_ARRAY to data) - TransferContext.callMethod(rawPtr, MethodBindings.meshSurfaceUpdateSkinRegionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.meshSurfaceUpdateSkinRegionPtr, NIL) } @JvmStatic public final fun meshSetShadowMesh(mesh: RID, shadowMesh: RID): Unit { TransferContext.writeArguments(_RID to mesh, _RID to shadowMesh) - TransferContext.callMethod(rawPtr, MethodBindings.meshSetShadowMeshPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.meshSetShadowMeshPtr, NIL) } /** @@ -891,7 +890,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun multimeshCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.multimeshCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.multimeshCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -905,7 +904,7 @@ public object RenderingServer : Object() { customDataFormat: Boolean = false, ): Unit { TransferContext.writeArguments(_RID to multimesh, LONG to instances.toLong(), LONG to transformFormat.id, BOOL to colorFormat, BOOL to customDataFormat) - TransferContext.callMethod(rawPtr, MethodBindings.multimeshAllocateDataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.multimeshAllocateDataPtr, NIL) } /** @@ -914,7 +913,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun multimeshGetInstanceCount(multimesh: RID): Int { TransferContext.writeArguments(_RID to multimesh) - TransferContext.callMethod(rawPtr, MethodBindings.multimeshGetInstanceCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.multimeshGetInstanceCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -924,7 +923,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun multimeshSetMesh(multimesh: RID, mesh: RID): Unit { TransferContext.writeArguments(_RID to multimesh, _RID to mesh) - TransferContext.callMethod(rawPtr, MethodBindings.multimeshSetMeshPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.multimeshSetMeshPtr, NIL) } /** @@ -937,7 +936,7 @@ public object RenderingServer : Object() { transform: Transform3D, ): Unit { TransferContext.writeArguments(_RID to multimesh, LONG to index.toLong(), TRANSFORM3D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.multimeshInstanceSetTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.multimeshInstanceSetTransformPtr, NIL) } /** @@ -951,7 +950,7 @@ public object RenderingServer : Object() { transform: Transform2D, ): Unit { TransferContext.writeArguments(_RID to multimesh, LONG to index.toLong(), TRANSFORM2D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.multimeshInstanceSetTransform2dPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.multimeshInstanceSetTransform2dPtr, NIL) } /** @@ -965,7 +964,7 @@ public object RenderingServer : Object() { color: Color, ): Unit { TransferContext.writeArguments(_RID to multimesh, LONG to index.toLong(), COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.multimeshInstanceSetColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.multimeshInstanceSetColorPtr, NIL) } /** @@ -979,7 +978,7 @@ public object RenderingServer : Object() { customData: Color, ): Unit { TransferContext.writeArguments(_RID to multimesh, LONG to index.toLong(), COLOR to customData) - TransferContext.callMethod(rawPtr, MethodBindings.multimeshInstanceSetCustomDataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.multimeshInstanceSetCustomDataPtr, NIL) } /** @@ -988,7 +987,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun multimeshGetMesh(multimesh: RID): RID { TransferContext.writeArguments(_RID to multimesh) - TransferContext.callMethod(rawPtr, MethodBindings.multimeshGetMeshPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.multimeshGetMeshPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -999,7 +998,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun multimeshGetAabb(multimesh: RID): AABB { TransferContext.writeArguments(_RID to multimesh) - TransferContext.callMethod(rawPtr, MethodBindings.multimeshGetAabbPtr, + TransferContext.callMethod(ptr, MethodBindings.multimeshGetAabbPtr, godot.core.VariantParser.AABB) return (TransferContext.readReturnValue(godot.core.VariantParser.AABB) as AABB) } @@ -1010,7 +1009,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun multimeshSetCustomAabb(multimesh: RID, aabb: AABB): Unit { TransferContext.writeArguments(_RID to multimesh, godot.core.VariantParser.AABB to aabb) - TransferContext.callMethod(rawPtr, MethodBindings.multimeshSetCustomAabbPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.multimeshSetCustomAabbPtr, NIL) } /** @@ -1019,7 +1018,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun multimeshGetCustomAabb(multimesh: RID): AABB { TransferContext.writeArguments(_RID to multimesh) - TransferContext.callMethod(rawPtr, MethodBindings.multimeshGetCustomAabbPtr, + TransferContext.callMethod(ptr, MethodBindings.multimeshGetCustomAabbPtr, godot.core.VariantParser.AABB) return (TransferContext.readReturnValue(godot.core.VariantParser.AABB) as AABB) } @@ -1030,7 +1029,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun multimeshInstanceGetTransform(multimesh: RID, index: Int): Transform3D { TransferContext.writeArguments(_RID to multimesh, LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.multimeshInstanceGetTransformPtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.multimeshInstanceGetTransformPtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } @@ -1041,8 +1040,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun multimeshInstanceGetTransform2d(multimesh: RID, index: Int): Transform2D { TransferContext.writeArguments(_RID to multimesh, LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.multimeshInstanceGetTransform2dPtr, - TRANSFORM2D) + TransferContext.callMethod(ptr, MethodBindings.multimeshInstanceGetTransform2dPtr, TRANSFORM2D) return (TransferContext.readReturnValue(TRANSFORM2D) as Transform2D) } @@ -1052,7 +1050,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun multimeshInstanceGetColor(multimesh: RID, index: Int): Color { TransferContext.writeArguments(_RID to multimesh, LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.multimeshInstanceGetColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.multimeshInstanceGetColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } @@ -1062,7 +1060,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun multimeshInstanceGetCustomData(multimesh: RID, index: Int): Color { TransferContext.writeArguments(_RID to multimesh, LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.multimeshInstanceGetCustomDataPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.multimeshInstanceGetCustomDataPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } @@ -1073,7 +1071,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun multimeshSetVisibleInstances(multimesh: RID, visible: Int): Unit { TransferContext.writeArguments(_RID to multimesh, LONG to visible.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.multimeshSetVisibleInstancesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.multimeshSetVisibleInstancesPtr, NIL) } /** @@ -1082,7 +1080,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun multimeshGetVisibleInstances(multimesh: RID): Int { TransferContext.writeArguments(_RID to multimesh) - TransferContext.callMethod(rawPtr, MethodBindings.multimeshGetVisibleInstancesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.multimeshGetVisibleInstancesPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1110,7 +1108,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun multimeshSetBuffer(multimesh: RID, buffer: PackedFloat32Array): Unit { TransferContext.writeArguments(_RID to multimesh, PACKED_FLOAT_32_ARRAY to buffer) - TransferContext.callMethod(rawPtr, MethodBindings.multimeshSetBufferPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.multimeshSetBufferPtr, NIL) } /** @@ -1123,7 +1121,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun multimeshGetBuffer(multimesh: RID): PackedFloat32Array { TransferContext.writeArguments(_RID to multimesh) - TransferContext.callMethod(rawPtr, MethodBindings.multimeshGetBufferPtr, PACKED_FLOAT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.multimeshGetBufferPtr, PACKED_FLOAT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_FLOAT_32_ARRAY) as PackedFloat32Array) } @@ -1136,7 +1134,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun skeletonCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.skeletonCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.skeletonCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -1148,7 +1146,7 @@ public object RenderingServer : Object() { is2dSkeleton: Boolean = false, ): Unit { TransferContext.writeArguments(_RID to skeleton, LONG to bones.toLong(), BOOL to is2dSkeleton) - TransferContext.callMethod(rawPtr, MethodBindings.skeletonAllocateDataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.skeletonAllocateDataPtr, NIL) } /** @@ -1157,7 +1155,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun skeletonGetBoneCount(skeleton: RID): Int { TransferContext.writeArguments(_RID to skeleton) - TransferContext.callMethod(rawPtr, MethodBindings.skeletonGetBoneCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.skeletonGetBoneCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1171,7 +1169,7 @@ public object RenderingServer : Object() { transform: Transform3D, ): Unit { TransferContext.writeArguments(_RID to skeleton, LONG to bone.toLong(), TRANSFORM3D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.skeletonBoneSetTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.skeletonBoneSetTransformPtr, NIL) } /** @@ -1180,7 +1178,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun skeletonBoneGetTransform(skeleton: RID, bone: Int): Transform3D { TransferContext.writeArguments(_RID to skeleton, LONG to bone.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.skeletonBoneGetTransformPtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.skeletonBoneGetTransformPtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } @@ -1194,7 +1192,7 @@ public object RenderingServer : Object() { transform: Transform2D, ): Unit { TransferContext.writeArguments(_RID to skeleton, LONG to bone.toLong(), TRANSFORM2D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.skeletonBoneSetTransform2dPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.skeletonBoneSetTransform2dPtr, NIL) } /** @@ -1203,14 +1201,14 @@ public object RenderingServer : Object() { @JvmStatic public final fun skeletonBoneGetTransform2d(skeleton: RID, bone: Int): Transform2D { TransferContext.writeArguments(_RID to skeleton, LONG to bone.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.skeletonBoneGetTransform2dPtr, TRANSFORM2D) + TransferContext.callMethod(ptr, MethodBindings.skeletonBoneGetTransform2dPtr, TRANSFORM2D) return (TransferContext.readReturnValue(TRANSFORM2D) as Transform2D) } @JvmStatic public final fun skeletonSetBaseTransform2d(skeleton: RID, baseTransform: Transform2D): Unit { TransferContext.writeArguments(_RID to skeleton, TRANSFORM2D to baseTransform) - TransferContext.callMethod(rawPtr, MethodBindings.skeletonSetBaseTransform2dPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.skeletonSetBaseTransform2dPtr, NIL) } /** @@ -1225,7 +1223,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun directionalLightCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.directionalLightCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.directionalLightCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -1241,7 +1239,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun omniLightCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.omniLightCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.omniLightCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -1256,7 +1254,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun spotLightCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.spotLightCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.spotLightCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -1266,7 +1264,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun lightSetColor(light: RID, color: Color): Unit { TransferContext.writeArguments(_RID to light, COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.lightSetColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.lightSetColorPtr, NIL) } /** @@ -1280,7 +1278,7 @@ public object RenderingServer : Object() { `value`: Float, ): Unit { TransferContext.writeArguments(_RID to light, LONG to param.id, DOUBLE to value.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.lightSetParamPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.lightSetParamPtr, NIL) } /** @@ -1289,7 +1287,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun lightSetShadow(light: RID, enabled: Boolean): Unit { TransferContext.writeArguments(_RID to light, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.lightSetShadowPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.lightSetShadowPtr, NIL) } /** @@ -1299,7 +1297,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun lightSetProjector(light: RID, texture: RID): Unit { TransferContext.writeArguments(_RID to light, _RID to texture) - TransferContext.callMethod(rawPtr, MethodBindings.lightSetProjectorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.lightSetProjectorPtr, NIL) } /** @@ -1309,7 +1307,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun lightSetNegative(light: RID, enable: Boolean): Unit { TransferContext.writeArguments(_RID to light, BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.lightSetNegativePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.lightSetNegativePtr, NIL) } /** @@ -1319,7 +1317,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun lightSetCullMask(light: RID, mask: Long): Unit { TransferContext.writeArguments(_RID to light, LONG to mask) - TransferContext.callMethod(rawPtr, MethodBindings.lightSetCullMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.lightSetCullMaskPtr, NIL) } /** @@ -1336,7 +1334,7 @@ public object RenderingServer : Object() { length: Float, ): Unit { TransferContext.writeArguments(_RID to decal, BOOL to enabled, DOUBLE to begin.toDouble(), DOUBLE to shadow.toDouble(), DOUBLE to length.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.lightSetDistanceFadePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.lightSetDistanceFadePtr, NIL) } /** @@ -1348,7 +1346,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun lightSetReverseCullFaceMode(light: RID, enabled: Boolean): Unit { TransferContext.writeArguments(_RID to light, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.lightSetReverseCullFaceModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.lightSetReverseCullFaceModePtr, NIL) } /** @@ -1357,7 +1355,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun lightSetBakeMode(light: RID, bakeMode: LightBakeMode): Unit { TransferContext.writeArguments(_RID to light, LONG to bakeMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.lightSetBakeModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.lightSetBakeModePtr, NIL) } /** @@ -1367,7 +1365,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun lightSetMaxSdfgiCascade(light: RID, cascade: Long): Unit { TransferContext.writeArguments(_RID to light, LONG to cascade) - TransferContext.callMethod(rawPtr, MethodBindings.lightSetMaxSdfgiCascadePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.lightSetMaxSdfgiCascadePtr, NIL) } /** @@ -1377,7 +1375,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun lightOmniSetShadowMode(light: RID, mode: LightOmniShadowMode): Unit { TransferContext.writeArguments(_RID to light, LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.lightOmniSetShadowModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.lightOmniSetShadowModePtr, NIL) } /** @@ -1388,7 +1386,7 @@ public object RenderingServer : Object() { public final fun lightDirectionalSetShadowMode(light: RID, mode: LightDirectionalShadowMode): Unit { TransferContext.writeArguments(_RID to light, LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.lightDirectionalSetShadowModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.lightDirectionalSetShadowModePtr, NIL) } /** @@ -1398,7 +1396,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun lightDirectionalSetBlendSplits(light: RID, enable: Boolean): Unit { TransferContext.writeArguments(_RID to light, BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.lightDirectionalSetBlendSplitsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.lightDirectionalSetBlendSplitsPtr, NIL) } /** @@ -1409,7 +1407,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun lightDirectionalSetSkyMode(light: RID, mode: LightDirectionalSkyMode): Unit { TransferContext.writeArguments(_RID to light, LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.lightDirectionalSetSkyModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.lightDirectionalSetSkyModePtr, NIL) } /** @@ -1419,7 +1417,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun lightProjectorsSetFilter(filter: LightProjectorFilter): Unit { TransferContext.writeArguments(LONG to filter.id) - TransferContext.callMethod(rawPtr, MethodBindings.lightProjectorsSetFilterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.lightProjectorsSetFilterPtr, NIL) } /** @@ -1430,7 +1428,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun positionalSoftShadowFilterSetQuality(quality: ShadowQuality): Unit { TransferContext.writeArguments(LONG to quality.id) - TransferContext.callMethod(rawPtr, MethodBindings.positionalSoftShadowFilterSetQualityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.positionalSoftShadowFilterSetQualityPtr, NIL) } /** @@ -1441,7 +1439,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun directionalSoftShadowFilterSetQuality(quality: ShadowQuality): Unit { TransferContext.writeArguments(LONG to quality.id) - TransferContext.callMethod(rawPtr, MethodBindings.directionalSoftShadowFilterSetQualityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.directionalSoftShadowFilterSetQualityPtr, NIL) } /** @@ -1452,7 +1450,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun directionalShadowAtlasSetSize(size: Int, is16bits: Boolean): Unit { TransferContext.writeArguments(LONG to size.toLong(), BOOL to is16bits) - TransferContext.callMethod(rawPtr, MethodBindings.directionalShadowAtlasSetSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.directionalShadowAtlasSetSizePtr, NIL) } /** @@ -1467,7 +1465,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun reflectionProbeCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.reflectionProbeCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.reflectionProbeCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -1478,7 +1476,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun reflectionProbeSetUpdateMode(probe: RID, mode: ReflectionProbeUpdateMode): Unit { TransferContext.writeArguments(_RID to probe, LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.reflectionProbeSetUpdateModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.reflectionProbeSetUpdateModePtr, NIL) } /** @@ -1488,7 +1486,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun reflectionProbeSetIntensity(probe: RID, intensity: Float): Unit { TransferContext.writeArguments(_RID to probe, DOUBLE to intensity.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.reflectionProbeSetIntensityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.reflectionProbeSetIntensityPtr, NIL) } /** @@ -1498,7 +1496,7 @@ public object RenderingServer : Object() { public final fun reflectionProbeSetAmbientMode(probe: RID, mode: ReflectionProbeAmbientMode): Unit { TransferContext.writeArguments(_RID to probe, LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.reflectionProbeSetAmbientModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.reflectionProbeSetAmbientModePtr, NIL) } /** @@ -1508,7 +1506,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun reflectionProbeSetAmbientColor(probe: RID, color: Color): Unit { TransferContext.writeArguments(_RID to probe, COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.reflectionProbeSetAmbientColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.reflectionProbeSetAmbientColorPtr, NIL) } /** @@ -1518,7 +1516,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun reflectionProbeSetAmbientEnergy(probe: RID, energy: Float): Unit { TransferContext.writeArguments(_RID to probe, DOUBLE to energy.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.reflectionProbeSetAmbientEnergyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.reflectionProbeSetAmbientEnergyPtr, NIL) } /** @@ -1528,7 +1526,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun reflectionProbeSetMaxDistance(probe: RID, distance: Float): Unit { TransferContext.writeArguments(_RID to probe, DOUBLE to distance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.reflectionProbeSetMaxDistancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.reflectionProbeSetMaxDistancePtr, NIL) } /** @@ -1538,7 +1536,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun reflectionProbeSetSize(probe: RID, size: Vector3): Unit { TransferContext.writeArguments(_RID to probe, VECTOR3 to size) - TransferContext.callMethod(rawPtr, MethodBindings.reflectionProbeSetSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.reflectionProbeSetSizePtr, NIL) } /** @@ -1548,7 +1546,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun reflectionProbeSetOriginOffset(probe: RID, offset: Vector3): Unit { TransferContext.writeArguments(_RID to probe, VECTOR3 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.reflectionProbeSetOriginOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.reflectionProbeSetOriginOffsetPtr, NIL) } /** @@ -1557,7 +1555,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun reflectionProbeSetAsInterior(probe: RID, enable: Boolean): Unit { TransferContext.writeArguments(_RID to probe, BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.reflectionProbeSetAsInteriorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.reflectionProbeSetAsInteriorPtr, NIL) } /** @@ -1567,7 +1565,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun reflectionProbeSetEnableBoxProjection(probe: RID, enable: Boolean): Unit { TransferContext.writeArguments(_RID to probe, BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.reflectionProbeSetEnableBoxProjectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.reflectionProbeSetEnableBoxProjectionPtr, NIL) } /** @@ -1577,7 +1575,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun reflectionProbeSetEnableShadows(probe: RID, enable: Boolean): Unit { TransferContext.writeArguments(_RID to probe, BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.reflectionProbeSetEnableShadowsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.reflectionProbeSetEnableShadowsPtr, NIL) } /** @@ -1587,7 +1585,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun reflectionProbeSetCullMask(probe: RID, layers: Long): Unit { TransferContext.writeArguments(_RID to probe, LONG to layers) - TransferContext.callMethod(rawPtr, MethodBindings.reflectionProbeSetCullMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.reflectionProbeSetCullMaskPtr, NIL) } /** @@ -1597,7 +1595,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun reflectionProbeSetReflectionMask(probe: RID, layers: Long): Unit { TransferContext.writeArguments(_RID to probe, LONG to layers) - TransferContext.callMethod(rawPtr, MethodBindings.reflectionProbeSetReflectionMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.reflectionProbeSetReflectionMaskPtr, NIL) } /** @@ -1608,7 +1606,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun reflectionProbeSetResolution(probe: RID, resolution: Int): Unit { TransferContext.writeArguments(_RID to probe, LONG to resolution.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.reflectionProbeSetResolutionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.reflectionProbeSetResolutionPtr, NIL) } /** @@ -1619,7 +1617,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun reflectionProbeSetMeshLodThreshold(probe: RID, pixels: Float): Unit { TransferContext.writeArguments(_RID to probe, DOUBLE to pixels.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.reflectionProbeSetMeshLodThresholdPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.reflectionProbeSetMeshLodThresholdPtr, NIL) } /** @@ -1634,7 +1632,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun decalCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.decalCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.decalCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -1644,7 +1642,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun decalSetSize(decal: RID, size: Vector3): Unit { TransferContext.writeArguments(_RID to decal, VECTOR3 to size) - TransferContext.callMethod(rawPtr, MethodBindings.decalSetSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.decalSetSizePtr, NIL) } /** @@ -1658,7 +1656,7 @@ public object RenderingServer : Object() { texture: RID, ): Unit { TransferContext.writeArguments(_RID to decal, LONG to type.id, _RID to texture) - TransferContext.callMethod(rawPtr, MethodBindings.decalSetTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.decalSetTexturePtr, NIL) } /** @@ -1668,7 +1666,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun decalSetEmissionEnergy(decal: RID, energy: Float): Unit { TransferContext.writeArguments(_RID to decal, DOUBLE to energy.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.decalSetEmissionEnergyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.decalSetEmissionEnergyPtr, NIL) } /** @@ -1678,7 +1676,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun decalSetAlbedoMix(decal: RID, albedoMix: Float): Unit { TransferContext.writeArguments(_RID to decal, DOUBLE to albedoMix.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.decalSetAlbedoMixPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.decalSetAlbedoMixPtr, NIL) } /** @@ -1688,7 +1686,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun decalSetModulate(decal: RID, color: Color): Unit { TransferContext.writeArguments(_RID to decal, COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.decalSetModulatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.decalSetModulatePtr, NIL) } /** @@ -1697,7 +1695,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun decalSetCullMask(decal: RID, mask: Long): Unit { TransferContext.writeArguments(_RID to decal, LONG to mask) - TransferContext.callMethod(rawPtr, MethodBindings.decalSetCullMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.decalSetCullMaskPtr, NIL) } /** @@ -1712,7 +1710,7 @@ public object RenderingServer : Object() { length: Float, ): Unit { TransferContext.writeArguments(_RID to decal, BOOL to enabled, DOUBLE to begin.toDouble(), DOUBLE to length.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.decalSetDistanceFadePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.decalSetDistanceFadePtr, NIL) } /** @@ -1726,7 +1724,7 @@ public object RenderingServer : Object() { below: Float, ): Unit { TransferContext.writeArguments(_RID to decal, DOUBLE to above.toDouble(), DOUBLE to below.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.decalSetFadePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.decalSetFadePtr, NIL) } /** @@ -1736,7 +1734,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun decalSetNormalFade(decal: RID, fade: Float): Unit { TransferContext.writeArguments(_RID to decal, DOUBLE to fade.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.decalSetNormalFadePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.decalSetNormalFadePtr, NIL) } /** @@ -1746,7 +1744,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun decalsSetFilter(filter: DecalFilter): Unit { TransferContext.writeArguments(LONG to filter.id) - TransferContext.callMethod(rawPtr, MethodBindings.decalsSetFilterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.decalsSetFilterPtr, NIL) } /** @@ -1760,7 +1758,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun giSetUseHalfResolution(halfResolution: Boolean): Unit { TransferContext.writeArguments(BOOL to halfResolution) - TransferContext.callMethod(rawPtr, MethodBindings.giSetUseHalfResolutionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.giSetUseHalfResolutionPtr, NIL) } /** @@ -1774,7 +1772,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun voxelGiCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.voxelGiCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.voxelGiCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -1790,48 +1788,48 @@ public object RenderingServer : Object() { levelCounts: PackedInt32Array, ): Unit { TransferContext.writeArguments(_RID to voxelGi, TRANSFORM3D to toCellXform, godot.core.VariantParser.AABB to aabb, VECTOR3I to octreeSize, PACKED_BYTE_ARRAY to octreeCells, PACKED_BYTE_ARRAY to dataCells, PACKED_BYTE_ARRAY to distanceField, PACKED_INT_32_ARRAY to levelCounts) - TransferContext.callMethod(rawPtr, MethodBindings.voxelGiAllocateDataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.voxelGiAllocateDataPtr, NIL) } @JvmStatic public final fun voxelGiGetOctreeSize(voxelGi: RID): Vector3i { TransferContext.writeArguments(_RID to voxelGi) - TransferContext.callMethod(rawPtr, MethodBindings.voxelGiGetOctreeSizePtr, VECTOR3I) + TransferContext.callMethod(ptr, MethodBindings.voxelGiGetOctreeSizePtr, VECTOR3I) return (TransferContext.readReturnValue(VECTOR3I) as Vector3i) } @JvmStatic public final fun voxelGiGetOctreeCells(voxelGi: RID): PackedByteArray { TransferContext.writeArguments(_RID to voxelGi) - TransferContext.callMethod(rawPtr, MethodBindings.voxelGiGetOctreeCellsPtr, PACKED_BYTE_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.voxelGiGetOctreeCellsPtr, PACKED_BYTE_ARRAY) return (TransferContext.readReturnValue(PACKED_BYTE_ARRAY) as PackedByteArray) } @JvmStatic public final fun voxelGiGetDataCells(voxelGi: RID): PackedByteArray { TransferContext.writeArguments(_RID to voxelGi) - TransferContext.callMethod(rawPtr, MethodBindings.voxelGiGetDataCellsPtr, PACKED_BYTE_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.voxelGiGetDataCellsPtr, PACKED_BYTE_ARRAY) return (TransferContext.readReturnValue(PACKED_BYTE_ARRAY) as PackedByteArray) } @JvmStatic public final fun voxelGiGetDistanceField(voxelGi: RID): PackedByteArray { TransferContext.writeArguments(_RID to voxelGi) - TransferContext.callMethod(rawPtr, MethodBindings.voxelGiGetDistanceFieldPtr, PACKED_BYTE_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.voxelGiGetDistanceFieldPtr, PACKED_BYTE_ARRAY) return (TransferContext.readReturnValue(PACKED_BYTE_ARRAY) as PackedByteArray) } @JvmStatic public final fun voxelGiGetLevelCounts(voxelGi: RID): PackedInt32Array { TransferContext.writeArguments(_RID to voxelGi) - TransferContext.callMethod(rawPtr, MethodBindings.voxelGiGetLevelCountsPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.voxelGiGetLevelCountsPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } @JvmStatic public final fun voxelGiGetToCellXform(voxelGi: RID): Transform3D { TransferContext.writeArguments(_RID to voxelGi) - TransferContext.callMethod(rawPtr, MethodBindings.voxelGiGetToCellXformPtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.voxelGiGetToCellXformPtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } @@ -1841,7 +1839,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun voxelGiSetDynamicRange(voxelGi: RID, range: Float): Unit { TransferContext.writeArguments(_RID to voxelGi, DOUBLE to range.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.voxelGiSetDynamicRangePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.voxelGiSetDynamicRangePtr, NIL) } /** @@ -1850,7 +1848,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun voxelGiSetPropagation(voxelGi: RID, amount: Float): Unit { TransferContext.writeArguments(_RID to voxelGi, DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.voxelGiSetPropagationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.voxelGiSetPropagationPtr, NIL) } /** @@ -1859,7 +1857,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun voxelGiSetEnergy(voxelGi: RID, energy: Float): Unit { TransferContext.writeArguments(_RID to voxelGi, DOUBLE to energy.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.voxelGiSetEnergyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.voxelGiSetEnergyPtr, NIL) } /** @@ -1871,7 +1869,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun voxelGiSetBakedExposureNormalization(voxelGi: RID, bakedExposure: Float): Unit { TransferContext.writeArguments(_RID to voxelGi, DOUBLE to bakedExposure.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.voxelGiSetBakedExposureNormalizationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.voxelGiSetBakedExposureNormalizationPtr, NIL) } /** @@ -1880,7 +1878,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun voxelGiSetBias(voxelGi: RID, bias: Float): Unit { TransferContext.writeArguments(_RID to voxelGi, DOUBLE to bias.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.voxelGiSetBiasPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.voxelGiSetBiasPtr, NIL) } /** @@ -1889,7 +1887,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun voxelGiSetNormalBias(voxelGi: RID, bias: Float): Unit { TransferContext.writeArguments(_RID to voxelGi, DOUBLE to bias.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.voxelGiSetNormalBiasPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.voxelGiSetNormalBiasPtr, NIL) } /** @@ -1898,7 +1896,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun voxelGiSetInterior(voxelGi: RID, enable: Boolean): Unit { TransferContext.writeArguments(_RID to voxelGi, BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.voxelGiSetInteriorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.voxelGiSetInteriorPtr, NIL) } /** @@ -1907,7 +1905,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun voxelGiSetUseTwoBounces(voxelGi: RID, enable: Boolean): Unit { TransferContext.writeArguments(_RID to voxelGi, BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.voxelGiSetUseTwoBouncesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.voxelGiSetUseTwoBouncesPtr, NIL) } /** @@ -1917,7 +1915,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun voxelGiSetQuality(quality: VoxelGIQuality): Unit { TransferContext.writeArguments(LONG to quality.id) - TransferContext.callMethod(rawPtr, MethodBindings.voxelGiSetQualityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.voxelGiSetQualityPtr, NIL) } /** @@ -1931,7 +1929,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun lightmapCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.lightmapCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.lightmapCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -1947,19 +1945,19 @@ public object RenderingServer : Object() { usesSh: Boolean, ): Unit { TransferContext.writeArguments(_RID to lightmap, _RID to light, BOOL to usesSh) - TransferContext.callMethod(rawPtr, MethodBindings.lightmapSetTexturesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.lightmapSetTexturesPtr, NIL) } @JvmStatic public final fun lightmapSetProbeBounds(lightmap: RID, bounds: AABB): Unit { TransferContext.writeArguments(_RID to lightmap, godot.core.VariantParser.AABB to bounds) - TransferContext.callMethod(rawPtr, MethodBindings.lightmapSetProbeBoundsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.lightmapSetProbeBoundsPtr, NIL) } @JvmStatic public final fun lightmapSetProbeInterior(lightmap: RID, interior: Boolean): Unit { TransferContext.writeArguments(_RID to lightmap, BOOL to interior) - TransferContext.callMethod(rawPtr, MethodBindings.lightmapSetProbeInteriorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.lightmapSetProbeInteriorPtr, NIL) } @JvmStatic @@ -1971,13 +1969,13 @@ public object RenderingServer : Object() { bspTree: PackedInt32Array, ): Unit { TransferContext.writeArguments(_RID to lightmap, PACKED_VECTOR3_ARRAY to points, PACKED_COLOR_ARRAY to pointSh, PACKED_INT_32_ARRAY to tetrahedra, PACKED_INT_32_ARRAY to bspTree) - TransferContext.callMethod(rawPtr, MethodBindings.lightmapSetProbeCaptureDataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.lightmapSetProbeCaptureDataPtr, NIL) } @JvmStatic public final fun lightmapGetProbeCapturePoints(lightmap: RID): PackedVector3Array { TransferContext.writeArguments(_RID to lightmap) - TransferContext.callMethod(rawPtr, MethodBindings.lightmapGetProbeCapturePointsPtr, + TransferContext.callMethod(ptr, MethodBindings.lightmapGetProbeCapturePointsPtr, PACKED_VECTOR3_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR3_ARRAY) as PackedVector3Array) } @@ -1985,15 +1983,14 @@ public object RenderingServer : Object() { @JvmStatic public final fun lightmapGetProbeCaptureSh(lightmap: RID): PackedColorArray { TransferContext.writeArguments(_RID to lightmap) - TransferContext.callMethod(rawPtr, MethodBindings.lightmapGetProbeCaptureShPtr, - PACKED_COLOR_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.lightmapGetProbeCaptureShPtr, PACKED_COLOR_ARRAY) return (TransferContext.readReturnValue(PACKED_COLOR_ARRAY) as PackedColorArray) } @JvmStatic public final fun lightmapGetProbeCaptureTetrahedra(lightmap: RID): PackedInt32Array { TransferContext.writeArguments(_RID to lightmap) - TransferContext.callMethod(rawPtr, MethodBindings.lightmapGetProbeCaptureTetrahedraPtr, + TransferContext.callMethod(ptr, MethodBindings.lightmapGetProbeCaptureTetrahedraPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } @@ -2001,7 +1998,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun lightmapGetProbeCaptureBspTree(lightmap: RID): PackedInt32Array { TransferContext.writeArguments(_RID to lightmap) - TransferContext.callMethod(rawPtr, MethodBindings.lightmapGetProbeCaptureBspTreePtr, + TransferContext.callMethod(ptr, MethodBindings.lightmapGetProbeCaptureBspTreePtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } @@ -2016,13 +2013,13 @@ public object RenderingServer : Object() { public final fun lightmapSetBakedExposureNormalization(lightmap: RID, bakedExposure: Float): Unit { TransferContext.writeArguments(_RID to lightmap, DOUBLE to bakedExposure.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.lightmapSetBakedExposureNormalizationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.lightmapSetBakedExposureNormalizationPtr, NIL) } @JvmStatic public final fun lightmapSetProbeCaptureUpdateSpeed(speed: Float): Unit { TransferContext.writeArguments(DOUBLE to speed.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.lightmapSetProbeCaptureUpdateSpeedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.lightmapSetProbeCaptureUpdateSpeedPtr, NIL) } /** @@ -2041,7 +2038,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun particlesCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.particlesCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.particlesCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -2052,7 +2049,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun particlesSetMode(particles: RID, mode: ParticlesMode): Unit { TransferContext.writeArguments(_RID to particles, LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.particlesSetModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.particlesSetModePtr, NIL) } /** @@ -2062,7 +2059,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun particlesSetEmitting(particles: RID, emitting: Boolean): Unit { TransferContext.writeArguments(_RID to particles, BOOL to emitting) - TransferContext.callMethod(rawPtr, MethodBindings.particlesSetEmittingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.particlesSetEmittingPtr, NIL) } /** @@ -2071,7 +2068,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun particlesGetEmitting(particles: RID): Boolean { TransferContext.writeArguments(_RID to particles) - TransferContext.callMethod(rawPtr, MethodBindings.particlesGetEmittingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.particlesGetEmittingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -2082,7 +2079,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun particlesSetAmount(particles: RID, amount: Int): Unit { TransferContext.writeArguments(_RID to particles, LONG to amount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.particlesSetAmountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.particlesSetAmountPtr, NIL) } /** @@ -2091,7 +2088,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun particlesSetAmountRatio(particles: RID, ratio: Float): Unit { TransferContext.writeArguments(_RID to particles, DOUBLE to ratio.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.particlesSetAmountRatioPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.particlesSetAmountRatioPtr, NIL) } /** @@ -2100,7 +2097,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun particlesSetLifetime(particles: RID, lifetime: Double): Unit { TransferContext.writeArguments(_RID to particles, DOUBLE to lifetime) - TransferContext.callMethod(rawPtr, MethodBindings.particlesSetLifetimePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.particlesSetLifetimePtr, NIL) } /** @@ -2109,7 +2106,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun particlesSetOneShot(particles: RID, oneShot: Boolean): Unit { TransferContext.writeArguments(_RID to particles, BOOL to oneShot) - TransferContext.callMethod(rawPtr, MethodBindings.particlesSetOneShotPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.particlesSetOneShotPtr, NIL) } /** @@ -2120,7 +2117,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun particlesSetPreProcessTime(particles: RID, time: Double): Unit { TransferContext.writeArguments(_RID to particles, DOUBLE to time) - TransferContext.callMethod(rawPtr, MethodBindings.particlesSetPreProcessTimePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.particlesSetPreProcessTimePtr, NIL) } /** @@ -2129,7 +2126,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun particlesSetExplosivenessRatio(particles: RID, ratio: Float): Unit { TransferContext.writeArguments(_RID to particles, DOUBLE to ratio.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.particlesSetExplosivenessRatioPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.particlesSetExplosivenessRatioPtr, NIL) } /** @@ -2139,7 +2136,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun particlesSetRandomnessRatio(particles: RID, ratio: Float): Unit { TransferContext.writeArguments(_RID to particles, DOUBLE to ratio.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.particlesSetRandomnessRatioPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.particlesSetRandomnessRatioPtr, NIL) } /** @@ -2149,7 +2146,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun particlesSetInterpToEnd(particles: RID, factor: Float): Unit { TransferContext.writeArguments(_RID to particles, DOUBLE to factor.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.particlesSetInterpToEndPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.particlesSetInterpToEndPtr, NIL) } /** @@ -2159,7 +2156,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun particlesSetEmitterVelocity(particles: RID, velocity: Vector3): Unit { TransferContext.writeArguments(_RID to particles, VECTOR3 to velocity) - TransferContext.callMethod(rawPtr, MethodBindings.particlesSetEmitterVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.particlesSetEmitterVelocityPtr, NIL) } /** @@ -2169,7 +2166,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun particlesSetCustomAabb(particles: RID, aabb: AABB): Unit { TransferContext.writeArguments(_RID to particles, godot.core.VariantParser.AABB to aabb) - TransferContext.callMethod(rawPtr, MethodBindings.particlesSetCustomAabbPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.particlesSetCustomAabbPtr, NIL) } /** @@ -2178,7 +2175,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun particlesSetSpeedScale(particles: RID, scale: Double): Unit { TransferContext.writeArguments(_RID to particles, DOUBLE to scale) - TransferContext.callMethod(rawPtr, MethodBindings.particlesSetSpeedScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.particlesSetSpeedScalePtr, NIL) } /** @@ -2188,7 +2185,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun particlesSetUseLocalCoordinates(particles: RID, enable: Boolean): Unit { TransferContext.writeArguments(_RID to particles, BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.particlesSetUseLocalCoordinatesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.particlesSetUseLocalCoordinatesPtr, NIL) } /** @@ -2199,7 +2196,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun particlesSetProcessMaterial(particles: RID, material: RID): Unit { TransferContext.writeArguments(_RID to particles, _RID to material) - TransferContext.callMethod(rawPtr, MethodBindings.particlesSetProcessMaterialPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.particlesSetProcessMaterialPtr, NIL) } /** @@ -2209,13 +2206,13 @@ public object RenderingServer : Object() { @JvmStatic public final fun particlesSetFixedFps(particles: RID, fps: Int): Unit { TransferContext.writeArguments(_RID to particles, LONG to fps.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.particlesSetFixedFpsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.particlesSetFixedFpsPtr, NIL) } @JvmStatic public final fun particlesSetInterpolate(particles: RID, enable: Boolean): Unit { TransferContext.writeArguments(_RID to particles, BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.particlesSetInterpolatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.particlesSetInterpolatePtr, NIL) } /** @@ -2225,20 +2222,20 @@ public object RenderingServer : Object() { @JvmStatic public final fun particlesSetFractionalDelta(particles: RID, enable: Boolean): Unit { TransferContext.writeArguments(_RID to particles, BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.particlesSetFractionalDeltaPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.particlesSetFractionalDeltaPtr, NIL) } @JvmStatic public final fun particlesSetCollisionBaseSize(particles: RID, size: Float): Unit { TransferContext.writeArguments(_RID to particles, DOUBLE to size.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.particlesSetCollisionBaseSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.particlesSetCollisionBaseSizePtr, NIL) } @JvmStatic public final fun particlesSetTransformAlign(particles: RID, align: ParticlesTransformAlign): Unit { TransferContext.writeArguments(_RID to particles, LONG to align.id) - TransferContext.callMethod(rawPtr, MethodBindings.particlesSetTransformAlignPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.particlesSetTransformAlignPtr, NIL) } /** @@ -2252,14 +2249,14 @@ public object RenderingServer : Object() { lengthSec: Float, ): Unit { TransferContext.writeArguments(_RID to particles, BOOL to enable, DOUBLE to lengthSec.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.particlesSetTrailsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.particlesSetTrailsPtr, NIL) } @JvmStatic public final fun particlesSetTrailBindPoses(particles: RID, bindPoses: VariantArray): Unit { TransferContext.writeArguments(_RID to particles, ARRAY to bindPoses) - TransferContext.callMethod(rawPtr, MethodBindings.particlesSetTrailBindPosesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.particlesSetTrailBindPosesPtr, NIL) } /** @@ -2268,7 +2265,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun particlesIsInactive(particles: RID): Boolean { TransferContext.writeArguments(_RID to particles) - TransferContext.callMethod(rawPtr, MethodBindings.particlesIsInactivePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.particlesIsInactivePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -2280,7 +2277,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun particlesRequestProcess(particles: RID): Unit { TransferContext.writeArguments(_RID to particles) - TransferContext.callMethod(rawPtr, MethodBindings.particlesRequestProcessPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.particlesRequestProcessPtr, NIL) } /** @@ -2289,13 +2286,13 @@ public object RenderingServer : Object() { @JvmStatic public final fun particlesRestart(particles: RID): Unit { TransferContext.writeArguments(_RID to particles) - TransferContext.callMethod(rawPtr, MethodBindings.particlesRestartPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.particlesRestartPtr, NIL) } @JvmStatic public final fun particlesSetSubemitter(particles: RID, subemitterParticles: RID): Unit { TransferContext.writeArguments(_RID to particles, _RID to subemitterParticles) - TransferContext.callMethod(rawPtr, MethodBindings.particlesSetSubemitterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.particlesSetSubemitterPtr, NIL) } /** @@ -2311,7 +2308,7 @@ public object RenderingServer : Object() { emitFlags: Long, ): Unit { TransferContext.writeArguments(_RID to particles, TRANSFORM3D to transform, VECTOR3 to velocity, COLOR to color, COLOR to custom, LONG to emitFlags) - TransferContext.callMethod(rawPtr, MethodBindings.particlesEmitPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.particlesEmitPtr, NIL) } /** @@ -2321,7 +2318,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun particlesSetDrawOrder(particles: RID, order: ParticlesDrawOrder): Unit { TransferContext.writeArguments(_RID to particles, LONG to order.id) - TransferContext.callMethod(rawPtr, MethodBindings.particlesSetDrawOrderPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.particlesSetDrawOrderPtr, NIL) } /** @@ -2330,7 +2327,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun particlesSetDrawPasses(particles: RID, count: Int): Unit { TransferContext.writeArguments(_RID to particles, LONG to count.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.particlesSetDrawPassesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.particlesSetDrawPassesPtr, NIL) } /** @@ -2344,7 +2341,7 @@ public object RenderingServer : Object() { mesh: RID, ): Unit { TransferContext.writeArguments(_RID to particles, LONG to pass.toLong(), _RID to mesh) - TransferContext.callMethod(rawPtr, MethodBindings.particlesSetDrawPassMeshPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.particlesSetDrawPassMeshPtr, NIL) } /** @@ -2354,7 +2351,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun particlesGetCurrentAabb(particles: RID): AABB { TransferContext.writeArguments(_RID to particles) - TransferContext.callMethod(rawPtr, MethodBindings.particlesGetCurrentAabbPtr, + TransferContext.callMethod(ptr, MethodBindings.particlesGetCurrentAabbPtr, godot.core.VariantParser.AABB) return (TransferContext.readReturnValue(godot.core.VariantParser.AABB) as AABB) } @@ -2365,7 +2362,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun particlesSetEmissionTransform(particles: RID, transform: Transform3D): Unit { TransferContext.writeArguments(_RID to particles, TRANSFORM3D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.particlesSetEmissionTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.particlesSetEmissionTransformPtr, NIL) } /** @@ -2377,7 +2374,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun particlesCollisionCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.particlesCollisionCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.particlesCollisionCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -2389,7 +2386,7 @@ public object RenderingServer : Object() { public final fun particlesCollisionSetCollisionType(particlesCollision: RID, type: ParticlesCollisionType): Unit { TransferContext.writeArguments(_RID to particlesCollision, LONG to type.id) - TransferContext.callMethod(rawPtr, MethodBindings.particlesCollisionSetCollisionTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.particlesCollisionSetCollisionTypePtr, NIL) } /** @@ -2400,7 +2397,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun particlesCollisionSetCullMask(particlesCollision: RID, mask: Long): Unit { TransferContext.writeArguments(_RID to particlesCollision, LONG to mask) - TransferContext.callMethod(rawPtr, MethodBindings.particlesCollisionSetCullMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.particlesCollisionSetCullMaskPtr, NIL) } /** @@ -2411,7 +2408,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun particlesCollisionSetSphereRadius(particlesCollision: RID, radius: Float): Unit { TransferContext.writeArguments(_RID to particlesCollision, DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.particlesCollisionSetSphereRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.particlesCollisionSetSphereRadiusPtr, NIL) } /** @@ -2424,7 +2421,7 @@ public object RenderingServer : Object() { public final fun particlesCollisionSetBoxExtents(particlesCollision: RID, extents: Vector3): Unit { TransferContext.writeArguments(_RID to particlesCollision, VECTOR3 to extents) - TransferContext.callMethod(rawPtr, MethodBindings.particlesCollisionSetBoxExtentsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.particlesCollisionSetBoxExtentsPtr, NIL) } /** @@ -2435,8 +2432,7 @@ public object RenderingServer : Object() { public final fun particlesCollisionSetAttractorStrength(particlesCollision: RID, strength: Float): Unit { TransferContext.writeArguments(_RID to particlesCollision, DOUBLE to strength.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.particlesCollisionSetAttractorStrengthPtr, - NIL) + TransferContext.callMethod(ptr, MethodBindings.particlesCollisionSetAttractorStrengthPtr, NIL) } /** @@ -2448,8 +2444,8 @@ public object RenderingServer : Object() { public final fun particlesCollisionSetAttractorDirectionality(particlesCollision: RID, amount: Float): Unit { TransferContext.writeArguments(_RID to particlesCollision, DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, - MethodBindings.particlesCollisionSetAttractorDirectionalityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.particlesCollisionSetAttractorDirectionalityPtr, + NIL) } /** @@ -2461,7 +2457,7 @@ public object RenderingServer : Object() { public final fun particlesCollisionSetAttractorAttenuation(particlesCollision: RID, curve: Float): Unit { TransferContext.writeArguments(_RID to particlesCollision, DOUBLE to curve.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.particlesCollisionSetAttractorAttenuationPtr, + TransferContext.callMethod(ptr, MethodBindings.particlesCollisionSetAttractorAttenuationPtr, NIL) } @@ -2473,7 +2469,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun particlesCollisionSetFieldTexture(particlesCollision: RID, texture: RID): Unit { TransferContext.writeArguments(_RID to particlesCollision, _RID to texture) - TransferContext.callMethod(rawPtr, MethodBindings.particlesCollisionSetFieldTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.particlesCollisionSetFieldTexturePtr, NIL) } /** @@ -2484,7 +2480,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun particlesCollisionHeightFieldUpdate(particlesCollision: RID): Unit { TransferContext.writeArguments(_RID to particlesCollision) - TransferContext.callMethod(rawPtr, MethodBindings.particlesCollisionHeightFieldUpdatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.particlesCollisionHeightFieldUpdatePtr, NIL) } /** @@ -2495,7 +2491,7 @@ public object RenderingServer : Object() { public final fun particlesCollisionSetHeightFieldResolution(particlesCollision: RID, resolution: ParticlesCollisionHeightfieldResolution): Unit { TransferContext.writeArguments(_RID to particlesCollision, LONG to resolution.id) - TransferContext.callMethod(rawPtr, MethodBindings.particlesCollisionSetHeightFieldResolutionPtr, + TransferContext.callMethod(ptr, MethodBindings.particlesCollisionSetHeightFieldResolutionPtr, NIL) } @@ -2509,7 +2505,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun fogVolumeCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.fogVolumeCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.fogVolumeCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -2521,7 +2517,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun fogVolumeSetShape(fogVolume: RID, shape: FogVolumeShape): Unit { TransferContext.writeArguments(_RID to fogVolume, LONG to shape.id) - TransferContext.callMethod(rawPtr, MethodBindings.fogVolumeSetShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fogVolumeSetShapePtr, NIL) } /** @@ -2532,7 +2528,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun fogVolumeSetSize(fogVolume: RID, size: Vector3): Unit { TransferContext.writeArguments(_RID to fogVolume, VECTOR3 to size) - TransferContext.callMethod(rawPtr, MethodBindings.fogVolumeSetSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fogVolumeSetSizePtr, NIL) } /** @@ -2542,7 +2538,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun fogVolumeSetMaterial(fogVolume: RID, material: RID): Unit { TransferContext.writeArguments(_RID to fogVolume, _RID to material) - TransferContext.callMethod(rawPtr, MethodBindings.fogVolumeSetMaterialPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fogVolumeSetMaterialPtr, NIL) } /** @@ -2558,14 +2554,14 @@ public object RenderingServer : Object() { @JvmStatic public final fun visibilityNotifierCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.visibilityNotifierCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.visibilityNotifierCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @JvmStatic public final fun visibilityNotifierSetAabb(notifier: RID, aabb: AABB): Unit { TransferContext.writeArguments(_RID to notifier, godot.core.VariantParser.AABB to aabb) - TransferContext.callMethod(rawPtr, MethodBindings.visibilityNotifierSetAabbPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.visibilityNotifierSetAabbPtr, NIL) } @JvmStatic @@ -2575,7 +2571,7 @@ public object RenderingServer : Object() { exitCallable: Callable, ): Unit { TransferContext.writeArguments(_RID to notifier, CALLABLE to enterCallable, CALLABLE to exitCallable) - TransferContext.callMethod(rawPtr, MethodBindings.visibilityNotifierSetCallbacksPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.visibilityNotifierSetCallbacksPtr, NIL) } /** @@ -2589,7 +2585,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun occluderCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.occluderCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.occluderCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -2604,7 +2600,7 @@ public object RenderingServer : Object() { indices: PackedInt32Array, ): Unit { TransferContext.writeArguments(_RID to occluder, PACKED_VECTOR3_ARRAY to vertices, PACKED_INT_32_ARRAY to indices) - TransferContext.callMethod(rawPtr, MethodBindings.occluderSetMeshPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.occluderSetMeshPtr, NIL) } /** @@ -2617,7 +2613,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun cameraCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.cameraCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.cameraCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -2633,7 +2629,7 @@ public object RenderingServer : Object() { zFar: Float, ): Unit { TransferContext.writeArguments(_RID to camera, DOUBLE to fovyDegrees.toDouble(), DOUBLE to zNear.toDouble(), DOUBLE to zFar.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.cameraSetPerspectivePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.cameraSetPerspectivePtr, NIL) } /** @@ -2648,7 +2644,7 @@ public object RenderingServer : Object() { zFar: Float, ): Unit { TransferContext.writeArguments(_RID to camera, DOUBLE to size.toDouble(), DOUBLE to zNear.toDouble(), DOUBLE to zFar.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.cameraSetOrthogonalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.cameraSetOrthogonalPtr, NIL) } /** @@ -2664,7 +2660,7 @@ public object RenderingServer : Object() { zFar: Float, ): Unit { TransferContext.writeArguments(_RID to camera, DOUBLE to size.toDouble(), VECTOR2 to offset, DOUBLE to zNear.toDouble(), DOUBLE to zFar.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.cameraSetFrustumPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.cameraSetFrustumPtr, NIL) } /** @@ -2673,7 +2669,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun cameraSetTransform(camera: RID, transform: Transform3D): Unit { TransferContext.writeArguments(_RID to camera, TRANSFORM3D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.cameraSetTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.cameraSetTransformPtr, NIL) } /** @@ -2683,7 +2679,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun cameraSetCullMask(camera: RID, layers: Long): Unit { TransferContext.writeArguments(_RID to camera, LONG to layers) - TransferContext.callMethod(rawPtr, MethodBindings.cameraSetCullMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.cameraSetCullMaskPtr, NIL) } /** @@ -2692,7 +2688,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun cameraSetEnvironment(camera: RID, env: RID): Unit { TransferContext.writeArguments(_RID to camera, _RID to env) - TransferContext.callMethod(rawPtr, MethodBindings.cameraSetEnvironmentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.cameraSetEnvironmentPtr, NIL) } /** @@ -2701,7 +2697,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun cameraSetCameraAttributes(camera: RID, effects: RID): Unit { TransferContext.writeArguments(_RID to camera, _RID to effects) - TransferContext.callMethod(rawPtr, MethodBindings.cameraSetCameraAttributesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.cameraSetCameraAttributesPtr, NIL) } /** @@ -2710,7 +2706,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun cameraSetCompositor(camera: RID, compositor: RID): Unit { TransferContext.writeArguments(_RID to camera, _RID to compositor) - TransferContext.callMethod(rawPtr, MethodBindings.cameraSetCompositorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.cameraSetCompositorPtr, NIL) } /** @@ -2720,7 +2716,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun cameraSetUseVerticalAspect(camera: RID, enable: Boolean): Unit { TransferContext.writeArguments(_RID to camera, BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.cameraSetUseVerticalAspectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.cameraSetUseVerticalAspectPtr, NIL) } /** @@ -2733,7 +2729,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.viewportCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.viewportCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -2743,7 +2739,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportSetUseXr(viewport: RID, useXr: Boolean): Unit { TransferContext.writeArguments(_RID to viewport, BOOL to useXr) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetUseXrPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportSetUseXrPtr, NIL) } /** @@ -2756,7 +2752,7 @@ public object RenderingServer : Object() { height: Int, ): Unit { TransferContext.writeArguments(_RID to viewport, LONG to width.toLong(), LONG to height.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportSetSizePtr, NIL) } /** @@ -2765,7 +2761,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportSetActive(viewport: RID, active: Boolean): Unit { TransferContext.writeArguments(_RID to viewport, BOOL to active) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetActivePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportSetActivePtr, NIL) } /** @@ -2774,7 +2770,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportSetParentViewport(viewport: RID, parentViewport: RID): Unit { TransferContext.writeArguments(_RID to viewport, _RID to parentViewport) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetParentViewportPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportSetParentViewportPtr, NIL) } /** @@ -2805,7 +2801,7 @@ public object RenderingServer : Object() { screen: Int = 0, ): Unit { TransferContext.writeArguments(_RID to viewport, RECT2 to rect, LONG to screen.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.viewportAttachToScreenPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportAttachToScreenPtr, NIL) } /** @@ -2822,7 +2818,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportSetRenderDirectToScreen(viewport: RID, enabled: Boolean): Unit { TransferContext.writeArguments(_RID to viewport, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetRenderDirectToScreenPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportSetRenderDirectToScreenPtr, NIL) } /** @@ -2832,7 +2828,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportSetCanvasCullMask(viewport: RID, canvasCullMask: Long): Unit { TransferContext.writeArguments(_RID to viewport, LONG to canvasCullMask) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetCanvasCullMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportSetCanvasCullMaskPtr, NIL) } /** @@ -2846,7 +2842,7 @@ public object RenderingServer : Object() { public final fun viewportSetScaling3dMode(viewport: RID, scaling3dMode: ViewportScaling3DMode): Unit { TransferContext.writeArguments(_RID to viewport, LONG to scaling3dMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetScaling3dModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportSetScaling3dModePtr, NIL) } /** @@ -2863,7 +2859,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportSetScaling3dScale(viewport: RID, scale: Float): Unit { TransferContext.writeArguments(_RID to viewport, DOUBLE to scale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetScaling3dScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportSetScaling3dScalePtr, NIL) } /** @@ -2874,7 +2870,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportSetFsrSharpness(viewport: RID, sharpness: Float): Unit { TransferContext.writeArguments(_RID to viewport, DOUBLE to sharpness.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetFsrSharpnessPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportSetFsrSharpnessPtr, NIL) } /** @@ -2892,7 +2888,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportSetTextureMipmapBias(viewport: RID, mipmapBias: Float): Unit { TransferContext.writeArguments(_RID to viewport, DOUBLE to mipmapBias.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetTextureMipmapBiasPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportSetTextureMipmapBiasPtr, NIL) } /** @@ -2901,7 +2897,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportSetUpdateMode(viewport: RID, updateMode: ViewportUpdateMode): Unit { TransferContext.writeArguments(_RID to viewport, LONG to updateMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetUpdateModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportSetUpdateModePtr, NIL) } /** @@ -2912,7 +2908,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportGetUpdateMode(viewport: RID): ViewportUpdateMode { TransferContext.writeArguments(_RID to viewport) - TransferContext.callMethod(rawPtr, MethodBindings.viewportGetUpdateModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.viewportGetUpdateModePtr, LONG) return RenderingServer.ViewportUpdateMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -2922,7 +2918,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportSetClearMode(viewport: RID, clearMode: ViewportClearMode): Unit { TransferContext.writeArguments(_RID to viewport, LONG to clearMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetClearModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportSetClearModePtr, NIL) } /** @@ -2931,7 +2927,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportGetRenderTarget(viewport: RID): RID { TransferContext.writeArguments(_RID to viewport) - TransferContext.callMethod(rawPtr, MethodBindings.viewportGetRenderTargetPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.viewportGetRenderTargetPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -2941,7 +2937,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportGetTexture(viewport: RID): RID { TransferContext.writeArguments(_RID to viewport) - TransferContext.callMethod(rawPtr, MethodBindings.viewportGetTexturePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.viewportGetTexturePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -2951,7 +2947,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportSetDisable3d(viewport: RID, disable: Boolean): Unit { TransferContext.writeArguments(_RID to viewport, BOOL to disable) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetDisable3dPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportSetDisable3dPtr, NIL) } /** @@ -2960,7 +2956,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportSetDisable2d(viewport: RID, disable: Boolean): Unit { TransferContext.writeArguments(_RID to viewport, BOOL to disable) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetDisable2dPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportSetDisable2dPtr, NIL) } /** @@ -2974,7 +2970,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportSetEnvironmentMode(viewport: RID, mode: ViewportEnvironmentMode): Unit { TransferContext.writeArguments(_RID to viewport, LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetEnvironmentModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportSetEnvironmentModePtr, NIL) } /** @@ -2983,7 +2979,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportAttachCamera(viewport: RID, camera: RID): Unit { TransferContext.writeArguments(_RID to viewport, _RID to camera) - TransferContext.callMethod(rawPtr, MethodBindings.viewportAttachCameraPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportAttachCameraPtr, NIL) } /** @@ -2993,7 +2989,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportSetScenario(viewport: RID, scenario: RID): Unit { TransferContext.writeArguments(_RID to viewport, _RID to scenario) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetScenarioPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportSetScenarioPtr, NIL) } /** @@ -3002,7 +2998,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportAttachCanvas(viewport: RID, canvas: RID): Unit { TransferContext.writeArguments(_RID to viewport, _RID to canvas) - TransferContext.callMethod(rawPtr, MethodBindings.viewportAttachCanvasPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportAttachCanvasPtr, NIL) } /** @@ -3011,7 +3007,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportRemoveCanvas(viewport: RID, canvas: RID): Unit { TransferContext.writeArguments(_RID to viewport, _RID to canvas) - TransferContext.callMethod(rawPtr, MethodBindings.viewportRemoveCanvasPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportRemoveCanvasPtr, NIL) } /** @@ -3023,7 +3019,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportSetSnap2dTransformsToPixel(viewport: RID, enabled: Boolean): Unit { TransferContext.writeArguments(_RID to viewport, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetSnap2dTransformsToPixelPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportSetSnap2dTransformsToPixelPtr, NIL) } /** @@ -3035,7 +3031,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportSetSnap2dVerticesToPixel(viewport: RID, enabled: Boolean): Unit { TransferContext.writeArguments(_RID to viewport, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetSnap2dVerticesToPixelPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportSetSnap2dVerticesToPixelPtr, NIL) } /** @@ -3046,7 +3042,7 @@ public object RenderingServer : Object() { public final fun viewportSetDefaultCanvasItemTextureFilter(viewport: RID, filter: CanvasItemTextureFilter): Unit { TransferContext.writeArguments(_RID to viewport, LONG to filter.id) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetDefaultCanvasItemTextureFilterPtr, + TransferContext.callMethod(ptr, MethodBindings.viewportSetDefaultCanvasItemTextureFilterPtr, NIL) } @@ -3058,7 +3054,7 @@ public object RenderingServer : Object() { public final fun viewportSetDefaultCanvasItemTextureRepeat(viewport: RID, repeat: CanvasItemTextureRepeat): Unit { TransferContext.writeArguments(_RID to viewport, LONG to repeat.id) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetDefaultCanvasItemTextureRepeatPtr, + TransferContext.callMethod(ptr, MethodBindings.viewportSetDefaultCanvasItemTextureRepeatPtr, NIL) } @@ -3072,7 +3068,7 @@ public object RenderingServer : Object() { offset: Transform2D, ): Unit { TransferContext.writeArguments(_RID to viewport, _RID to canvas, TRANSFORM2D to offset) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetCanvasTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportSetCanvasTransformPtr, NIL) } /** @@ -3088,7 +3084,7 @@ public object RenderingServer : Object() { sublayer: Int, ): Unit { TransferContext.writeArguments(_RID to viewport, _RID to canvas, LONG to layer.toLong(), LONG to sublayer.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetCanvasStackingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportSetCanvasStackingPtr, NIL) } /** @@ -3097,7 +3093,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportSetTransparentBackground(viewport: RID, enabled: Boolean): Unit { TransferContext.writeArguments(_RID to viewport, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetTransparentBackgroundPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportSetTransparentBackgroundPtr, NIL) } /** @@ -3106,7 +3102,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportSetGlobalCanvasTransform(viewport: RID, transform: Transform2D): Unit { TransferContext.writeArguments(_RID to viewport, TRANSFORM2D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetGlobalCanvasTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportSetGlobalCanvasTransformPtr, NIL) } /** @@ -3122,7 +3118,7 @@ public object RenderingServer : Object() { scale: ViewportSDFScale, ): Unit { TransferContext.writeArguments(_RID to viewport, LONG to oversize.id, LONG to scale.id) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetSdfOversizeAndScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportSetSdfOversizeAndScalePtr, NIL) } /** @@ -3143,7 +3139,7 @@ public object RenderingServer : Object() { use16Bits: Boolean = false, ): Unit { TransferContext.writeArguments(_RID to viewport, LONG to size.toLong(), BOOL to use16Bits) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetPositionalShadowAtlasSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportSetPositionalShadowAtlasSizePtr, NIL) } /** @@ -3157,7 +3153,7 @@ public object RenderingServer : Object() { subdivision: Int, ): Unit { TransferContext.writeArguments(_RID to viewport, LONG to quadrant.toLong(), LONG to subdivision.toLong()) - TransferContext.callMethod(rawPtr, + TransferContext.callMethod(ptr, MethodBindings.viewportSetPositionalShadowAtlasQuadrantSubdivisionPtr, NIL) } @@ -3168,7 +3164,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportSetMsaa3d(viewport: RID, msaa: ViewportMSAA): Unit { TransferContext.writeArguments(_RID to viewport, LONG to msaa.id) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetMsaa3dPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportSetMsaa3dPtr, NIL) } /** @@ -3178,7 +3174,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportSetMsaa2d(viewport: RID, msaa: ViewportMSAA): Unit { TransferContext.writeArguments(_RID to viewport, LONG to msaa.id) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetMsaa2dPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportSetMsaa2dPtr, NIL) } /** @@ -3198,7 +3194,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportSetUseHdr2d(viewport: RID, enabled: Boolean): Unit { TransferContext.writeArguments(_RID to viewport, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetUseHdr2dPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportSetUseHdr2dPtr, NIL) } /** @@ -3207,7 +3203,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportSetScreenSpaceAa(viewport: RID, mode: ViewportScreenSpaceAA): Unit { TransferContext.writeArguments(_RID to viewport, LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetScreenSpaceAaPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportSetScreenSpaceAaPtr, NIL) } /** @@ -3217,7 +3213,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportSetUseTaa(viewport: RID, enable: Boolean): Unit { TransferContext.writeArguments(_RID to viewport, BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetUseTaaPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportSetUseTaaPtr, NIL) } /** @@ -3227,7 +3223,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportSetUseDebanding(viewport: RID, enable: Boolean): Unit { TransferContext.writeArguments(_RID to viewport, BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetUseDebandingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportSetUseDebandingPtr, NIL) } /** @@ -3237,7 +3233,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportSetUseOcclusionCulling(viewport: RID, enable: Boolean): Unit { TransferContext.writeArguments(_RID to viewport, BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetUseOcclusionCullingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportSetUseOcclusionCullingPtr, NIL) } /** @@ -3247,7 +3243,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportSetOcclusionRaysPerThread(raysPerThread: Int): Unit { TransferContext.writeArguments(LONG to raysPerThread.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetOcclusionRaysPerThreadPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportSetOcclusionRaysPerThreadPtr, NIL) } /** @@ -3259,8 +3255,7 @@ public object RenderingServer : Object() { fun viewportSetOcclusionCullingBuildQuality(quality: ViewportOcclusionCullingBuildQuality): Unit { TransferContext.writeArguments(LONG to quality.id) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetOcclusionCullingBuildQualityPtr, - NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportSetOcclusionCullingBuildQualityPtr, NIL) } /** @@ -3292,7 +3287,7 @@ public object RenderingServer : Object() { info: ViewportRenderInfo, ): Int { TransferContext.writeArguments(_RID to viewport, LONG to type.id, LONG to info.id) - TransferContext.callMethod(rawPtr, MethodBindings.viewportGetRenderInfoPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.viewportGetRenderInfoPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -3302,7 +3297,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportSetDebugDraw(viewport: RID, draw: ViewportDebugDraw): Unit { TransferContext.writeArguments(_RID to viewport, LONG to draw.id) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetDebugDrawPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportSetDebugDrawPtr, NIL) } /** @@ -3313,7 +3308,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportSetMeasureRenderTime(viewport: RID, enable: Boolean): Unit { TransferContext.writeArguments(_RID to viewport, BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetMeasureRenderTimePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportSetMeasureRenderTimePtr, NIL) } /** @@ -3329,7 +3324,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportGetMeasuredRenderTimeCpu(viewport: RID): Double { TransferContext.writeArguments(_RID to viewport) - TransferContext.callMethod(rawPtr, MethodBindings.viewportGetMeasuredRenderTimeCpuPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.viewportGetMeasuredRenderTimeCpuPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -3350,7 +3345,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportGetMeasuredRenderTimeGpu(viewport: RID): Double { TransferContext.writeArguments(_RID to viewport) - TransferContext.callMethod(rawPtr, MethodBindings.viewportGetMeasuredRenderTimeGpuPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.viewportGetMeasuredRenderTimeGpuPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -3361,7 +3356,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportSetVrsMode(viewport: RID, mode: ViewportVRSMode): Unit { TransferContext.writeArguments(_RID to viewport, LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetVrsModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportSetVrsModePtr, NIL) } /** @@ -3375,7 +3370,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportSetVrsUpdateMode(viewport: RID, mode: ViewportVRSUpdateMode): Unit { TransferContext.writeArguments(_RID to viewport, LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetVrsUpdateModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportSetVrsUpdateModePtr, NIL) } /** @@ -3385,7 +3380,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun viewportSetVrsTexture(viewport: RID, texture: RID): Unit { TransferContext.writeArguments(_RID to viewport, _RID to texture) - TransferContext.callMethod(rawPtr, MethodBindings.viewportSetVrsTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.viewportSetVrsTexturePtr, NIL) } /** @@ -3397,7 +3392,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun skyCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.skyCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.skyCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -3408,7 +3403,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun skySetRadianceSize(sky: RID, radianceSize: Int): Unit { TransferContext.writeArguments(_RID to sky, LONG to radianceSize.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.skySetRadianceSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.skySetRadianceSizePtr, NIL) } /** @@ -3417,7 +3412,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun skySetMode(sky: RID, mode: SkyMode): Unit { TransferContext.writeArguments(_RID to sky, LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.skySetModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.skySetModePtr, NIL) } /** @@ -3426,7 +3421,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun skySetMaterial(sky: RID, material: RID): Unit { TransferContext.writeArguments(_RID to sky, _RID to material) - TransferContext.callMethod(rawPtr, MethodBindings.skySetMaterialPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.skySetMaterialPtr, NIL) } /** @@ -3451,7 +3446,7 @@ public object RenderingServer : Object() { size: Vector2i, ): Image? { TransferContext.writeArguments(_RID to sky, DOUBLE to energy.toDouble(), BOOL to bakeIrradiance, VECTOR2I to size) - TransferContext.callMethod(rawPtr, MethodBindings.skyBakePanoramaPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.skyBakePanoramaPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Image?) } @@ -3464,7 +3459,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun compositorEffectCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.compositorEffectCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.compositorEffectCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -3474,7 +3469,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun compositorEffectSetEnabled(effect: RID, enabled: Boolean): Unit { TransferContext.writeArguments(_RID to effect, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.compositorEffectSetEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.compositorEffectSetEnabledPtr, NIL) } /** @@ -3488,7 +3483,7 @@ public object RenderingServer : Object() { callback: Callable, ): Unit { TransferContext.writeArguments(_RID to effect, LONG to callbackType.id, CALLABLE to callback) - TransferContext.callMethod(rawPtr, MethodBindings.compositorEffectSetCallbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.compositorEffectSetCallbackPtr, NIL) } /** @@ -3501,7 +3496,7 @@ public object RenderingServer : Object() { `set`: Boolean, ): Unit { TransferContext.writeArguments(_RID to effect, LONG to flag.id, BOOL to set) - TransferContext.callMethod(rawPtr, MethodBindings.compositorEffectSetFlagPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.compositorEffectSetFlagPtr, NIL) } /** @@ -3513,7 +3508,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun compositorCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.compositorCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.compositorCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -3525,7 +3520,7 @@ public object RenderingServer : Object() { public final fun compositorSetCompositorEffects(compositor: RID, effects: VariantArray): Unit { TransferContext.writeArguments(_RID to compositor, ARRAY to effects) - TransferContext.callMethod(rawPtr, MethodBindings.compositorSetCompositorEffectsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.compositorSetCompositorEffectsPtr, NIL) } /** @@ -3538,7 +3533,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun environmentCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.environmentCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.environmentCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -3548,7 +3543,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun environmentSetBackground(env: RID, bg: EnvironmentBG): Unit { TransferContext.writeArguments(_RID to env, LONG to bg.id) - TransferContext.callMethod(rawPtr, MethodBindings.environmentSetBackgroundPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.environmentSetBackgroundPtr, NIL) } /** @@ -3558,7 +3553,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun environmentSetSky(env: RID, sky: RID): Unit { TransferContext.writeArguments(_RID to env, _RID to sky) - TransferContext.callMethod(rawPtr, MethodBindings.environmentSetSkyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.environmentSetSkyPtr, NIL) } /** @@ -3567,7 +3562,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun environmentSetSkyCustomFov(env: RID, scale: Float): Unit { TransferContext.writeArguments(_RID to env, DOUBLE to scale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.environmentSetSkyCustomFovPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.environmentSetSkyCustomFovPtr, NIL) } /** @@ -3577,7 +3572,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun environmentSetSkyOrientation(env: RID, orientation: Basis): Unit { TransferContext.writeArguments(_RID to env, BASIS to orientation) - TransferContext.callMethod(rawPtr, MethodBindings.environmentSetSkyOrientationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.environmentSetSkyOrientationPtr, NIL) } /** @@ -3587,7 +3582,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun environmentSetBgColor(env: RID, color: Color): Unit { TransferContext.writeArguments(_RID to env, COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.environmentSetBgColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.environmentSetBgColorPtr, NIL) } /** @@ -3600,7 +3595,7 @@ public object RenderingServer : Object() { exposureValue: Float, ): Unit { TransferContext.writeArguments(_RID to env, DOUBLE to multiplier.toDouble(), DOUBLE to exposureValue.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.environmentSetBgEnergyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.environmentSetBgEnergyPtr, NIL) } /** @@ -3609,7 +3604,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun environmentSetCanvasMaxLayer(env: RID, maxLayer: Int): Unit { TransferContext.writeArguments(_RID to env, LONG to maxLayer.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.environmentSetCanvasMaxLayerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.environmentSetCanvasMaxLayerPtr, NIL) } /** @@ -3628,7 +3623,7 @@ public object RenderingServer : Object() { RenderingServer.EnvironmentReflectionSource.ENV_REFLECTION_SOURCE_BG, ): Unit { TransferContext.writeArguments(_RID to env, COLOR to color, LONG to ambient.id, DOUBLE to energy.toDouble(), DOUBLE to skyContibution.toDouble(), LONG to reflectionSource.id) - TransferContext.callMethod(rawPtr, MethodBindings.environmentSetAmbientLightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.environmentSetAmbientLightPtr, NIL) } /** @@ -3652,7 +3647,7 @@ public object RenderingServer : Object() { glowMap: RID, ): Unit { TransferContext.writeArguments(_RID to env, BOOL to enable, PACKED_FLOAT_32_ARRAY to levels, DOUBLE to intensity.toDouble(), DOUBLE to strength.toDouble(), DOUBLE to mix.toDouble(), DOUBLE to bloomThreshold.toDouble(), LONG to blendMode.id, DOUBLE to hdrBleedThreshold.toDouble(), DOUBLE to hdrBleedScale.toDouble(), DOUBLE to hdrLuminanceCap.toDouble(), DOUBLE to glowMapStrength.toDouble(), _RID to glowMap) - TransferContext.callMethod(rawPtr, MethodBindings.environmentSetGlowPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.environmentSetGlowPtr, NIL) } /** @@ -3667,7 +3662,7 @@ public object RenderingServer : Object() { white: Float, ): Unit { TransferContext.writeArguments(_RID to env, LONG to toneMapper.id, DOUBLE to exposure.toDouble(), DOUBLE to white.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.environmentSetTonemapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.environmentSetTonemapPtr, NIL) } /** @@ -3685,7 +3680,7 @@ public object RenderingServer : Object() { colorCorrection: RID, ): Unit { TransferContext.writeArguments(_RID to env, BOOL to enable, DOUBLE to brightness.toDouble(), DOUBLE to contrast.toDouble(), DOUBLE to saturation.toDouble(), BOOL to use1dColorCorrection, _RID to colorCorrection) - TransferContext.callMethod(rawPtr, MethodBindings.environmentSetAdjustmentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.environmentSetAdjustmentPtr, NIL) } /** @@ -3702,7 +3697,7 @@ public object RenderingServer : Object() { depthTolerance: Float, ): Unit { TransferContext.writeArguments(_RID to env, BOOL to enable, LONG to maxSteps.toLong(), DOUBLE to fadeIn.toDouble(), DOUBLE to fadeOut.toDouble(), DOUBLE to depthTolerance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.environmentSetSsrPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.environmentSetSsrPtr, NIL) } /** @@ -3723,7 +3718,7 @@ public object RenderingServer : Object() { aoChannelAffect: Float, ): Unit { TransferContext.writeArguments(_RID to env, BOOL to enable, DOUBLE to radius.toDouble(), DOUBLE to intensity.toDouble(), DOUBLE to power.toDouble(), DOUBLE to detail.toDouble(), DOUBLE to horizon.toDouble(), DOUBLE to sharpness.toDouble(), DOUBLE to lightAffect.toDouble(), DOUBLE to aoChannelAffect.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.environmentSetSsaoPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.environmentSetSsaoPtr, NIL) } /** @@ -3746,7 +3741,7 @@ public object RenderingServer : Object() { fogMode: EnvironmentFogMode = RenderingServer.EnvironmentFogMode.ENV_FOG_MODE_EXPONENTIAL, ): Unit { TransferContext.writeArguments(_RID to env, BOOL to enable, COLOR to lightColor, DOUBLE to lightEnergy.toDouble(), DOUBLE to sunScatter.toDouble(), DOUBLE to density.toDouble(), DOUBLE to height.toDouble(), DOUBLE to heightDensity.toDouble(), DOUBLE to aerialPerspective.toDouble(), DOUBLE to skyAffect.toDouble(), LONG to fogMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.environmentSetFogPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.environmentSetFogPtr, NIL) } /** @@ -3768,7 +3763,7 @@ public object RenderingServer : Object() { probeBias: Float, ): Unit { TransferContext.writeArguments(_RID to env, BOOL to enable, LONG to cascades.toLong(), DOUBLE to minCellSize.toDouble(), LONG to yScale.id, BOOL to useOcclusion, DOUBLE to bounceFeedback.toDouble(), BOOL to readSky, DOUBLE to energy.toDouble(), DOUBLE to normalBias.toDouble(), DOUBLE to probeBias.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.environmentSetSdfgiPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.environmentSetSdfgiPtr, NIL) } /** @@ -3793,7 +3788,7 @@ public object RenderingServer : Object() { skyAffect: Float, ): Unit { TransferContext.writeArguments(_RID to env, BOOL to enable, DOUBLE to density.toDouble(), COLOR to albedo, COLOR to emission, DOUBLE to emissionEnergy.toDouble(), DOUBLE to anisotropy.toDouble(), DOUBLE to length.toDouble(), DOUBLE to pDetailSpread.toDouble(), DOUBLE to giInject.toDouble(), BOOL to temporalReprojection, DOUBLE to temporalReprojectionAmount.toDouble(), DOUBLE to ambientInject.toDouble(), DOUBLE to skyAffect.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.environmentSetVolumetricFogPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.environmentSetVolumetricFogPtr, NIL) } /** @@ -3803,14 +3798,14 @@ public object RenderingServer : Object() { @JvmStatic public final fun environmentGlowSetUseBicubicUpscale(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.environmentGlowSetUseBicubicUpscalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.environmentGlowSetUseBicubicUpscalePtr, NIL) } @JvmStatic public final fun environmentSetSsrRoughnessQuality(quality: EnvironmentSSRRoughnessQuality): Unit { TransferContext.writeArguments(LONG to quality.id) - TransferContext.callMethod(rawPtr, MethodBindings.environmentSetSsrRoughnessQualityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.environmentSetSsrRoughnessQualityPtr, NIL) } /** @@ -3827,7 +3822,7 @@ public object RenderingServer : Object() { fadeoutTo: Float, ): Unit { TransferContext.writeArguments(LONG to quality.id, BOOL to halfSize, DOUBLE to adaptiveTarget.toDouble(), LONG to blurPasses.toLong(), DOUBLE to fadeoutFrom.toDouble(), DOUBLE to fadeoutTo.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.environmentSetSsaoQualityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.environmentSetSsaoQualityPtr, NIL) } /** @@ -3844,7 +3839,7 @@ public object RenderingServer : Object() { fadeoutTo: Float, ): Unit { TransferContext.writeArguments(LONG to quality.id, BOOL to halfSize, DOUBLE to adaptiveTarget.toDouble(), LONG to blurPasses.toLong(), DOUBLE to fadeoutFrom.toDouble(), DOUBLE to fadeoutTo.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.environmentSetSsilQualityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.environmentSetSsilQualityPtr, NIL) } /** @@ -3854,7 +3849,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun environmentSetSdfgiRayCount(rayCount: EnvironmentSDFGIRayCount): Unit { TransferContext.writeArguments(LONG to rayCount.id) - TransferContext.callMethod(rawPtr, MethodBindings.environmentSetSdfgiRayCountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.environmentSetSdfgiRayCountPtr, NIL) } /** @@ -3865,7 +3860,7 @@ public object RenderingServer : Object() { public final fun environmentSetSdfgiFramesToConverge(frames: EnvironmentSDFGIFramesToConverge): Unit { TransferContext.writeArguments(LONG to frames.id) - TransferContext.callMethod(rawPtr, MethodBindings.environmentSetSdfgiFramesToConvergePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.environmentSetSdfgiFramesToConvergePtr, NIL) } /** @@ -3878,8 +3873,7 @@ public object RenderingServer : Object() { fun environmentSetSdfgiFramesToUpdateLight(frames: EnvironmentSDFGIFramesToUpdateLight): Unit { TransferContext.writeArguments(LONG to frames.id) - TransferContext.callMethod(rawPtr, MethodBindings.environmentSetSdfgiFramesToUpdateLightPtr, - NIL) + TransferContext.callMethod(ptr, MethodBindings.environmentSetSdfgiFramesToUpdateLightPtr, NIL) } /** @@ -3890,7 +3884,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun environmentSetVolumetricFogVolumeSize(size: Int, depth: Int): Unit { TransferContext.writeArguments(LONG to size.toLong(), LONG to depth.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.environmentSetVolumetricFogVolumeSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.environmentSetVolumetricFogVolumeSizePtr, NIL) } /** @@ -3900,8 +3894,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun environmentSetVolumetricFogFilterActive(active: Boolean): Unit { TransferContext.writeArguments(BOOL to active) - TransferContext.callMethod(rawPtr, MethodBindings.environmentSetVolumetricFogFilterActivePtr, - NIL) + TransferContext.callMethod(ptr, MethodBindings.environmentSetVolumetricFogFilterActivePtr, NIL) } /** @@ -3924,7 +3917,7 @@ public object RenderingServer : Object() { size: Vector2i, ): Image? { TransferContext.writeArguments(_RID to environment, BOOL to bakeIrradiance, VECTOR2I to size) - TransferContext.callMethod(rawPtr, MethodBindings.environmentBakePanoramaPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.environmentBakePanoramaPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Image?) } @@ -3942,7 +3935,7 @@ public object RenderingServer : Object() { limit: Float, ): Unit { TransferContext.writeArguments(BOOL to enable, DOUBLE to amount.toDouble(), DOUBLE to limit.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.screenSpaceRoughnessLimiterSetActivePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.screenSpaceRoughnessLimiterSetActivePtr, NIL) } /** @@ -3952,7 +3945,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun subSurfaceScatteringSetQuality(quality: SubSurfaceScatteringQuality): Unit { TransferContext.writeArguments(LONG to quality.id) - TransferContext.callMethod(rawPtr, MethodBindings.subSurfaceScatteringSetQualityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.subSurfaceScatteringSetQualityPtr, NIL) } /** @@ -3963,7 +3956,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun subSurfaceScatteringSetScale(scale: Float, depthScale: Float): Unit { TransferContext.writeArguments(DOUBLE to scale.toDouble(), DOUBLE to depthScale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.subSurfaceScatteringSetScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.subSurfaceScatteringSetScalePtr, NIL) } /** @@ -3977,7 +3970,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun cameraAttributesCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.cameraAttributesCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.cameraAttributesCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -3990,7 +3983,7 @@ public object RenderingServer : Object() { public final fun cameraAttributesSetDofBlurQuality(quality: DOFBlurQuality, useJitter: Boolean): Unit { TransferContext.writeArguments(LONG to quality.id, BOOL to useJitter) - TransferContext.callMethod(rawPtr, MethodBindings.cameraAttributesSetDofBlurQualityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.cameraAttributesSetDofBlurQualityPtr, NIL) } /** @@ -4000,7 +3993,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun cameraAttributesSetDofBlurBokehShape(shape: DOFBokehShape): Unit { TransferContext.writeArguments(LONG to shape.id) - TransferContext.callMethod(rawPtr, MethodBindings.cameraAttributesSetDofBlurBokehShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.cameraAttributesSetDofBlurBokehShapePtr, NIL) } /** @@ -4019,7 +4012,7 @@ public object RenderingServer : Object() { amount: Float, ): Unit { TransferContext.writeArguments(_RID to cameraAttributes, BOOL to farEnable, DOUBLE to farDistance.toDouble(), DOUBLE to farTransition.toDouble(), BOOL to nearEnable, DOUBLE to nearDistance.toDouble(), DOUBLE to nearTransition.toDouble(), DOUBLE to amount.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.cameraAttributesSetDofBlurPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.cameraAttributesSetDofBlurPtr, NIL) } /** @@ -4045,7 +4038,7 @@ public object RenderingServer : Object() { normalization: Float, ): Unit { TransferContext.writeArguments(_RID to cameraAttributes, DOUBLE to multiplier.toDouble(), DOUBLE to normalization.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.cameraAttributesSetExposurePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.cameraAttributesSetExposurePtr, NIL) } /** @@ -4062,7 +4055,7 @@ public object RenderingServer : Object() { scale: Float, ): Unit { TransferContext.writeArguments(_RID to cameraAttributes, BOOL to enable, DOUBLE to minSensitivity.toDouble(), DOUBLE to maxSensitivity.toDouble(), DOUBLE to speed.toDouble(), DOUBLE to scale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.cameraAttributesSetAutoExposurePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.cameraAttributesSetAutoExposurePtr, NIL) } /** @@ -4075,7 +4068,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun scenarioCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.scenarioCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.scenarioCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -4085,7 +4078,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun scenarioSetEnvironment(scenario: RID, environment: RID): Unit { TransferContext.writeArguments(_RID to scenario, _RID to environment) - TransferContext.callMethod(rawPtr, MethodBindings.scenarioSetEnvironmentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.scenarioSetEnvironmentPtr, NIL) } /** @@ -4095,7 +4088,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun scenarioSetFallbackEnvironment(scenario: RID, environment: RID): Unit { TransferContext.writeArguments(_RID to scenario, _RID to environment) - TransferContext.callMethod(rawPtr, MethodBindings.scenarioSetFallbackEnvironmentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.scenarioSetFallbackEnvironmentPtr, NIL) } /** @@ -4105,7 +4098,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun scenarioSetCameraAttributes(scenario: RID, effects: RID): Unit { TransferContext.writeArguments(_RID to scenario, _RID to effects) - TransferContext.callMethod(rawPtr, MethodBindings.scenarioSetCameraAttributesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.scenarioSetCameraAttributesPtr, NIL) } /** @@ -4114,7 +4107,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun scenarioSetCompositor(scenario: RID, compositor: RID): Unit { TransferContext.writeArguments(_RID to scenario, _RID to compositor) - TransferContext.callMethod(rawPtr, MethodBindings.scenarioSetCompositorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.scenarioSetCompositorPtr, NIL) } /** @@ -4128,7 +4121,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun instanceCreate2(base: RID, scenario: RID): RID { TransferContext.writeArguments(_RID to base, _RID to scenario) - TransferContext.callMethod(rawPtr, MethodBindings.instanceCreate2Ptr, _RID) + TransferContext.callMethod(ptr, MethodBindings.instanceCreate2Ptr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -4145,7 +4138,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun instanceCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.instanceCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.instanceCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -4158,7 +4151,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun instanceSetBase(instance: RID, base: RID): Unit { TransferContext.writeArguments(_RID to instance, _RID to base) - TransferContext.callMethod(rawPtr, MethodBindings.instanceSetBasePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.instanceSetBasePtr, NIL) } /** @@ -4168,7 +4161,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun instanceSetScenario(instance: RID, scenario: RID): Unit { TransferContext.writeArguments(_RID to instance, _RID to scenario) - TransferContext.callMethod(rawPtr, MethodBindings.instanceSetScenarioPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.instanceSetScenarioPtr, NIL) } /** @@ -4178,7 +4171,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun instanceSetLayerMask(instance: RID, mask: Long): Unit { TransferContext.writeArguments(_RID to instance, LONG to mask) - TransferContext.callMethod(rawPtr, MethodBindings.instanceSetLayerMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.instanceSetLayerMaskPtr, NIL) } /** @@ -4192,7 +4185,7 @@ public object RenderingServer : Object() { useAabbCenter: Boolean, ): Unit { TransferContext.writeArguments(_RID to instance, DOUBLE to sortingOffset.toDouble(), BOOL to useAabbCenter) - TransferContext.callMethod(rawPtr, MethodBindings.instanceSetPivotDataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.instanceSetPivotDataPtr, NIL) } /** @@ -4201,7 +4194,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun instanceSetTransform(instance: RID, transform: Transform3D): Unit { TransferContext.writeArguments(_RID to instance, TRANSFORM3D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.instanceSetTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.instanceSetTransformPtr, NIL) } /** @@ -4211,7 +4204,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun instanceAttachObjectInstanceId(instance: RID, id: Long): Unit { TransferContext.writeArguments(_RID to instance, LONG to id) - TransferContext.callMethod(rawPtr, MethodBindings.instanceAttachObjectInstanceIdPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.instanceAttachObjectInstanceIdPtr, NIL) } /** @@ -4224,7 +4217,7 @@ public object RenderingServer : Object() { weight: Float, ): Unit { TransferContext.writeArguments(_RID to instance, LONG to shape.toLong(), DOUBLE to weight.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.instanceSetBlendShapeWeightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.instanceSetBlendShapeWeightPtr, NIL) } /** @@ -4238,7 +4231,7 @@ public object RenderingServer : Object() { material: RID, ): Unit { TransferContext.writeArguments(_RID to instance, LONG to surface.toLong(), _RID to material) - TransferContext.callMethod(rawPtr, MethodBindings.instanceSetSurfaceOverrideMaterialPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.instanceSetSurfaceOverrideMaterialPtr, NIL) } /** @@ -4247,7 +4240,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun instanceSetVisible(instance: RID, visible: Boolean): Unit { TransferContext.writeArguments(_RID to instance, BOOL to visible) - TransferContext.callMethod(rawPtr, MethodBindings.instanceSetVisiblePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.instanceSetVisiblePtr, NIL) } /** @@ -4265,7 +4258,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun instanceGeometrySetTransparency(instance: RID, transparency: Float): Unit { TransferContext.writeArguments(_RID to instance, DOUBLE to transparency.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.instanceGeometrySetTransparencyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.instanceGeometrySetTransparencyPtr, NIL) } /** @@ -4275,7 +4268,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun instanceSetCustomAabb(instance: RID, aabb: AABB): Unit { TransferContext.writeArguments(_RID to instance, godot.core.VariantParser.AABB to aabb) - TransferContext.callMethod(rawPtr, MethodBindings.instanceSetCustomAabbPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.instanceSetCustomAabbPtr, NIL) } /** @@ -4284,7 +4277,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun instanceAttachSkeleton(instance: RID, skeleton: RID): Unit { TransferContext.writeArguments(_RID to instance, _RID to skeleton) - TransferContext.callMethod(rawPtr, MethodBindings.instanceAttachSkeletonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.instanceAttachSkeletonPtr, NIL) } /** @@ -4295,7 +4288,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun instanceSetExtraVisibilityMargin(instance: RID, margin: Float): Unit { TransferContext.writeArguments(_RID to instance, DOUBLE to margin.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.instanceSetExtraVisibilityMarginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.instanceSetExtraVisibilityMarginPtr, NIL) } /** @@ -4304,7 +4297,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun instanceSetVisibilityParent(instance: RID, parent: RID): Unit { TransferContext.writeArguments(_RID to instance, _RID to parent) - TransferContext.callMethod(rawPtr, MethodBindings.instanceSetVisibilityParentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.instanceSetVisibilityParentPtr, NIL) } /** @@ -4315,7 +4308,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun instanceSetIgnoreCulling(instance: RID, enabled: Boolean): Unit { TransferContext.writeArguments(_RID to instance, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.instanceSetIgnoreCullingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.instanceSetIgnoreCullingPtr, NIL) } /** @@ -4328,7 +4321,7 @@ public object RenderingServer : Object() { enabled: Boolean, ): Unit { TransferContext.writeArguments(_RID to instance, LONG to flag.id, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.instanceGeometrySetFlagPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.instanceGeometrySetFlagPtr, NIL) } /** @@ -4339,7 +4332,7 @@ public object RenderingServer : Object() { public final fun instanceGeometrySetCastShadowsSetting(instance: RID, shadowCastingSetting: ShadowCastingSetting): Unit { TransferContext.writeArguments(_RID to instance, LONG to shadowCastingSetting.id) - TransferContext.callMethod(rawPtr, MethodBindings.instanceGeometrySetCastShadowsSettingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.instanceGeometrySetCastShadowsSettingPtr, NIL) } /** @@ -4349,7 +4342,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun instanceGeometrySetMaterialOverride(instance: RID, material: RID): Unit { TransferContext.writeArguments(_RID to instance, _RID to material) - TransferContext.callMethod(rawPtr, MethodBindings.instanceGeometrySetMaterialOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.instanceGeometrySetMaterialOverridePtr, NIL) } /** @@ -4359,7 +4352,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun instanceGeometrySetMaterialOverlay(instance: RID, material: RID): Unit { TransferContext.writeArguments(_RID to instance, _RID to material) - TransferContext.callMethod(rawPtr, MethodBindings.instanceGeometrySetMaterialOverlayPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.instanceGeometrySetMaterialOverlayPtr, NIL) } /** @@ -4376,7 +4369,7 @@ public object RenderingServer : Object() { fadeMode: VisibilityRangeFadeMode, ): Unit { TransferContext.writeArguments(_RID to instance, DOUBLE to min.toDouble(), DOUBLE to max.toDouble(), DOUBLE to minMargin.toDouble(), DOUBLE to maxMargin.toDouble(), LONG to fadeMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.instanceGeometrySetVisibilityRangePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.instanceGeometrySetVisibilityRangePtr, NIL) } /** @@ -4392,7 +4385,7 @@ public object RenderingServer : Object() { lightmapSlice: Int, ): Unit { TransferContext.writeArguments(_RID to instance, _RID to lightmap, RECT2 to lightmapUvScale, LONG to lightmapSlice.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.instanceGeometrySetLightmapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.instanceGeometrySetLightmapPtr, NIL) } /** @@ -4402,7 +4395,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun instanceGeometrySetLodBias(instance: RID, lodBias: Float): Unit { TransferContext.writeArguments(_RID to instance, DOUBLE to lodBias.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.instanceGeometrySetLodBiasPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.instanceGeometrySetLodBiasPtr, NIL) } /** @@ -4416,7 +4409,7 @@ public object RenderingServer : Object() { `value`: Any?, ): Unit { TransferContext.writeArguments(_RID to instance, STRING_NAME to parameter, ANY to value) - TransferContext.callMethod(rawPtr, MethodBindings.instanceGeometrySetShaderParameterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.instanceGeometrySetShaderParameterPtr, NIL) } /** @@ -4427,7 +4420,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun instanceGeometryGetShaderParameter(instance: RID, parameter: StringName): Any? { TransferContext.writeArguments(_RID to instance, STRING_NAME to parameter) - TransferContext.callMethod(rawPtr, MethodBindings.instanceGeometryGetShaderParameterPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.instanceGeometryGetShaderParameterPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -4439,7 +4432,7 @@ public object RenderingServer : Object() { public final fun instanceGeometryGetShaderParameterDefaultValue(instance: RID, parameter: StringName): Any? { TransferContext.writeArguments(_RID to instance, STRING_NAME to parameter) - TransferContext.callMethod(rawPtr, + TransferContext.callMethod(ptr, MethodBindings.instanceGeometryGetShaderParameterDefaultValuePtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -4454,8 +4447,7 @@ public object RenderingServer : Object() { public final fun instanceGeometryGetShaderParameterList(instance: RID): VariantArray> { TransferContext.writeArguments(_RID to instance) - TransferContext.callMethod(rawPtr, MethodBindings.instanceGeometryGetShaderParameterListPtr, - ARRAY) + TransferContext.callMethod(ptr, MethodBindings.instanceGeometryGetShaderParameterListPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray>) } @@ -4472,7 +4464,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun instancesCullAabb(aabb: AABB, scenario: RID = RID()): PackedInt64Array { TransferContext.writeArguments(godot.core.VariantParser.AABB to aabb, _RID to scenario) - TransferContext.callMethod(rawPtr, MethodBindings.instancesCullAabbPtr, PACKED_INT_64_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.instancesCullAabbPtr, PACKED_INT_64_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_64_ARRAY) as PackedInt64Array) } @@ -4493,7 +4485,7 @@ public object RenderingServer : Object() { scenario: RID = RID(), ): PackedInt64Array { TransferContext.writeArguments(VECTOR3 to from, VECTOR3 to to, _RID to scenario) - TransferContext.callMethod(rawPtr, MethodBindings.instancesCullRayPtr, PACKED_INT_64_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.instancesCullRayPtr, PACKED_INT_64_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_64_ARRAY) as PackedInt64Array) } @@ -4511,7 +4503,7 @@ public object RenderingServer : Object() { public final fun instancesCullConvex(convex: VariantArray, scenario: RID = RID()): PackedInt64Array { TransferContext.writeArguments(ARRAY to convex, _RID to scenario) - TransferContext.callMethod(rawPtr, MethodBindings.instancesCullConvexPtr, PACKED_INT_64_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.instancesCullConvexPtr, PACKED_INT_64_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_64_ARRAY) as PackedInt64Array) } @@ -4527,7 +4519,7 @@ public object RenderingServer : Object() { imageSize: Vector2i, ): VariantArray { TransferContext.writeArguments(_RID to base, ARRAY to materialOverrides, VECTOR2I to imageSize) - TransferContext.callMethod(rawPtr, MethodBindings.bakeRenderUv2Ptr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.bakeRenderUv2Ptr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -4541,7 +4533,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.canvasCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.canvasCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -4555,7 +4547,7 @@ public object RenderingServer : Object() { mirroring: Vector2, ): Unit { TransferContext.writeArguments(_RID to canvas, _RID to item, VECTOR2 to mirroring) - TransferContext.callMethod(rawPtr, MethodBindings.canvasSetItemMirroringPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasSetItemMirroringPtr, NIL) } /** @@ -4570,7 +4562,7 @@ public object RenderingServer : Object() { repeatTimes: Int, ): Unit { TransferContext.writeArguments(_RID to item, VECTOR2 to repeatSize, LONG to repeatTimes.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.canvasSetItemRepeatPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasSetItemRepeatPtr, NIL) } /** @@ -4579,13 +4571,13 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasSetModulate(canvas: RID, color: Color): Unit { TransferContext.writeArguments(_RID to canvas, COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.canvasSetModulatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasSetModulatePtr, NIL) } @JvmStatic public final fun canvasSetDisableScale(disable: Boolean): Unit { TransferContext.writeArguments(BOOL to disable) - TransferContext.callMethod(rawPtr, MethodBindings.canvasSetDisableScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasSetDisableScalePtr, NIL) } /** @@ -4599,7 +4591,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasTextureCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.canvasTextureCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.canvasTextureCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -4615,7 +4607,7 @@ public object RenderingServer : Object() { texture: RID, ): Unit { TransferContext.writeArguments(_RID to canvasTexture, LONG to channel.id, _RID to texture) - TransferContext.callMethod(rawPtr, MethodBindings.canvasTextureSetChannelPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasTextureSetChannelPtr, NIL) } /** @@ -4630,7 +4622,7 @@ public object RenderingServer : Object() { shininess: Float, ): Unit { TransferContext.writeArguments(_RID to canvasTexture, COLOR to baseColor, DOUBLE to shininess.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.canvasTextureSetShadingParametersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasTextureSetShadingParametersPtr, NIL) } /** @@ -4641,7 +4633,7 @@ public object RenderingServer : Object() { public final fun canvasTextureSetTextureFilter(canvasTexture: RID, filter: CanvasItemTextureFilter): Unit { TransferContext.writeArguments(_RID to canvasTexture, LONG to filter.id) - TransferContext.callMethod(rawPtr, MethodBindings.canvasTextureSetTextureFilterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasTextureSetTextureFilterPtr, NIL) } /** @@ -4652,7 +4644,7 @@ public object RenderingServer : Object() { public final fun canvasTextureSetTextureRepeat(canvasTexture: RID, repeat: CanvasItemTextureRepeat): Unit { TransferContext.writeArguments(_RID to canvasTexture, LONG to repeat.id) - TransferContext.callMethod(rawPtr, MethodBindings.canvasTextureSetTextureRepeatPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasTextureSetTextureRepeatPtr, NIL) } /** @@ -4665,7 +4657,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasItemCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.canvasItemCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -4676,7 +4668,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasItemSetParent(item: RID, parent: RID): Unit { TransferContext.writeArguments(_RID to item, _RID to parent) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemSetParentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemSetParentPtr, NIL) } /** @@ -4687,7 +4679,7 @@ public object RenderingServer : Object() { public final fun canvasItemSetDefaultTextureFilter(item: RID, filter: CanvasItemTextureFilter): Unit { TransferContext.writeArguments(_RID to item, LONG to filter.id) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemSetDefaultTextureFilterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemSetDefaultTextureFilterPtr, NIL) } /** @@ -4698,7 +4690,7 @@ public object RenderingServer : Object() { public final fun canvasItemSetDefaultTextureRepeat(item: RID, repeat: CanvasItemTextureRepeat): Unit { TransferContext.writeArguments(_RID to item, LONG to repeat.id) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemSetDefaultTextureRepeatPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemSetDefaultTextureRepeatPtr, NIL) } /** @@ -4707,7 +4699,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasItemSetVisible(item: RID, visible: Boolean): Unit { TransferContext.writeArguments(_RID to item, BOOL to visible) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemSetVisiblePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemSetVisiblePtr, NIL) } /** @@ -4717,7 +4709,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasItemSetLightMask(item: RID, mask: Int): Unit { TransferContext.writeArguments(_RID to item, LONG to mask.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemSetLightMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemSetLightMaskPtr, NIL) } /** @@ -4727,7 +4719,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasItemSetVisibilityLayer(item: RID, visibilityLayer: Long): Unit { TransferContext.writeArguments(_RID to item, LONG to visibilityLayer) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemSetVisibilityLayerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemSetVisibilityLayerPtr, NIL) } /** @@ -4738,7 +4730,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasItemSetTransform(item: RID, transform: Transform2D): Unit { TransferContext.writeArguments(_RID to item, TRANSFORM2D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemSetTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemSetTransformPtr, NIL) } /** @@ -4752,7 +4744,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasItemSetClip(item: RID, clip: Boolean): Unit { TransferContext.writeArguments(_RID to item, BOOL to clip) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemSetClipPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemSetClipPtr, NIL) } /** @@ -4763,7 +4755,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasItemSetDistanceFieldMode(item: RID, enabled: Boolean): Unit { TransferContext.writeArguments(_RID to item, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemSetDistanceFieldModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemSetDistanceFieldModePtr, NIL) } /** @@ -4780,7 +4772,7 @@ public object RenderingServer : Object() { rect: Rect2 = Rect2(0.0, 0.0, 0.0, 0.0), ): Unit { TransferContext.writeArguments(_RID to item, BOOL to useCustomRect, RECT2 to rect) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemSetCustomRectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemSetCustomRectPtr, NIL) } /** @@ -4790,7 +4782,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasItemSetModulate(item: RID, color: Color): Unit { TransferContext.writeArguments(_RID to item, COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemSetModulatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemSetModulatePtr, NIL) } /** @@ -4800,7 +4792,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasItemSetSelfModulate(item: RID, color: Color): Unit { TransferContext.writeArguments(_RID to item, COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemSetSelfModulatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemSetSelfModulatePtr, NIL) } /** @@ -4810,7 +4802,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasItemSetDrawBehindParent(item: RID, enabled: Boolean): Unit { TransferContext.writeArguments(_RID to item, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemSetDrawBehindParentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemSetDrawBehindParentPtr, NIL) } /** @@ -4819,7 +4811,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasItemSetInterpolated(item: RID, interpolated: Boolean): Unit { TransferContext.writeArguments(_RID to item, BOOL to interpolated) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemSetInterpolatedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemSetInterpolatedPtr, NIL) } /** @@ -4830,7 +4822,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasItemResetPhysicsInterpolation(item: RID): Unit { TransferContext.writeArguments(_RID to item) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemResetPhysicsInterpolationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemResetPhysicsInterpolationPtr, NIL) } /** @@ -4842,8 +4834,7 @@ public object RenderingServer : Object() { public final fun canvasItemTransformPhysicsInterpolation(item: RID, transform: Transform2D): Unit { TransferContext.writeArguments(_RID to item, TRANSFORM2D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemTransformPhysicsInterpolationPtr, - NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemTransformPhysicsInterpolationPtr, NIL) } /** @@ -4861,7 +4852,7 @@ public object RenderingServer : Object() { antialiased: Boolean = false, ): Unit { TransferContext.writeArguments(_RID to item, VECTOR2 to from, VECTOR2 to to, COLOR to color, DOUBLE to width.toDouble(), BOOL to antialiased) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemAddLinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemAddLinePtr, NIL) } /** @@ -4878,7 +4869,7 @@ public object RenderingServer : Object() { antialiased: Boolean = false, ): Unit { TransferContext.writeArguments(_RID to item, PACKED_VECTOR2_ARRAY to points, PACKED_COLOR_ARRAY to colors, DOUBLE to width.toDouble(), BOOL to antialiased) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemAddPolylinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemAddPolylinePtr, NIL) } /** @@ -4895,7 +4886,7 @@ public object RenderingServer : Object() { antialiased: Boolean = false, ): Unit { TransferContext.writeArguments(_RID to item, PACKED_VECTOR2_ARRAY to points, PACKED_COLOR_ARRAY to colors, DOUBLE to width.toDouble(), BOOL to antialiased) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemAddMultilinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemAddMultilinePtr, NIL) } /** @@ -4911,7 +4902,7 @@ public object RenderingServer : Object() { antialiased: Boolean = false, ): Unit { TransferContext.writeArguments(_RID to item, RECT2 to rect, COLOR to color, BOOL to antialiased) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemAddRectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemAddRectPtr, NIL) } /** @@ -4928,7 +4919,7 @@ public object RenderingServer : Object() { antialiased: Boolean = false, ): Unit { TransferContext.writeArguments(_RID to item, VECTOR2 to pos, DOUBLE to radius.toDouble(), COLOR to color, BOOL to antialiased) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemAddCirclePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemAddCirclePtr, NIL) } /** @@ -4946,7 +4937,7 @@ public object RenderingServer : Object() { transpose: Boolean = false, ): Unit { TransferContext.writeArguments(_RID to item, RECT2 to rect, _RID to texture, BOOL to tile, COLOR to modulate, BOOL to transpose) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemAddTextureRectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemAddTextureRectPtr, NIL) } /** @@ -4965,7 +4956,7 @@ public object RenderingServer : Object() { scale: Float = 1.0f, ): Unit { TransferContext.writeArguments(_RID to item, RECT2 to rect, _RID to texture, RECT2 to srcRect, COLOR to modulate, LONG to outlineSize.toLong(), DOUBLE to pxRange.toDouble(), DOUBLE to scale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemAddMsdfTextureRectRegionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemAddMsdfTextureRectRegionPtr, NIL) } /** @@ -4980,7 +4971,7 @@ public object RenderingServer : Object() { modulate: Color, ): Unit { TransferContext.writeArguments(_RID to item, RECT2 to rect, _RID to texture, RECT2 to srcRect, COLOR to modulate) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemAddLcdTextureRectRegionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemAddLcdTextureRectRegionPtr, NIL) } /** @@ -4999,7 +4990,7 @@ public object RenderingServer : Object() { clipUv: Boolean = true, ): Unit { TransferContext.writeArguments(_RID to item, RECT2 to rect, _RID to texture, RECT2 to srcRect, COLOR to modulate, BOOL to transpose, BOOL to clipUv) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemAddTextureRectRegionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemAddTextureRectRegionPtr, NIL) } /** @@ -5020,7 +5011,7 @@ public object RenderingServer : Object() { modulate: Color = Color(Color(1, 1, 1, 1)), ): Unit { TransferContext.writeArguments(_RID to item, RECT2 to rect, RECT2 to source, _RID to texture, VECTOR2 to topleft, VECTOR2 to bottomright, LONG to xAxisMode.id, LONG to yAxisMode.id, BOOL to drawCenter, COLOR to modulate) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemAddNinePatchPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemAddNinePatchPtr, NIL) } /** @@ -5036,7 +5027,7 @@ public object RenderingServer : Object() { texture: RID, ): Unit { TransferContext.writeArguments(_RID to item, PACKED_VECTOR2_ARRAY to points, PACKED_COLOR_ARRAY to colors, PACKED_VECTOR2_ARRAY to uvs, _RID to texture) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemAddPrimitivePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemAddPrimitivePtr, NIL) } /** @@ -5054,7 +5045,7 @@ public object RenderingServer : Object() { texture: RID = RID(), ): Unit { TransferContext.writeArguments(_RID to item, PACKED_VECTOR2_ARRAY to points, PACKED_COLOR_ARRAY to colors, PACKED_VECTOR2_ARRAY to uvs, _RID to texture) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemAddPolygonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemAddPolygonPtr, NIL) } /** @@ -5077,7 +5068,7 @@ public object RenderingServer : Object() { count: Int = -1, ): Unit { TransferContext.writeArguments(_RID to item, PACKED_INT_32_ARRAY to indices, PACKED_VECTOR2_ARRAY to points, PACKED_COLOR_ARRAY to colors, PACKED_VECTOR2_ARRAY to uvs, PACKED_INT_32_ARRAY to bones, PACKED_FLOAT_32_ARRAY to weights, _RID to texture, LONG to count.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemAddTriangleArrayPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemAddTriangleArrayPtr, NIL) } /** @@ -5094,7 +5085,7 @@ public object RenderingServer : Object() { texture: RID = RID(), ): Unit { TransferContext.writeArguments(_RID to item, _RID to mesh, TRANSFORM2D to transform, COLOR to modulate, _RID to texture) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemAddMeshPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemAddMeshPtr, NIL) } /** @@ -5109,7 +5100,7 @@ public object RenderingServer : Object() { texture: RID = RID(), ): Unit { TransferContext.writeArguments(_RID to item, _RID to mesh, _RID to texture) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemAddMultimeshPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemAddMultimeshPtr, NIL) } /** @@ -5122,7 +5113,7 @@ public object RenderingServer : Object() { texture: RID, ): Unit { TransferContext.writeArguments(_RID to item, _RID to particles, _RID to texture) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemAddParticlesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemAddParticlesPtr, NIL) } /** @@ -5131,7 +5122,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasItemAddSetTransform(item: RID, transform: Transform2D): Unit { TransferContext.writeArguments(_RID to item, TRANSFORM2D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemAddSetTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemAddSetTransformPtr, NIL) } /** @@ -5141,7 +5132,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasItemAddClipIgnore(item: RID, ignore: Boolean): Unit { TransferContext.writeArguments(_RID to item, BOOL to ignore) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemAddClipIgnorePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemAddClipIgnorePtr, NIL) } /** @@ -5159,7 +5150,7 @@ public object RenderingServer : Object() { offset: Double = 0.0, ): Unit { TransferContext.writeArguments(_RID to item, DOUBLE to animationLength, DOUBLE to sliceBegin, DOUBLE to sliceEnd, DOUBLE to offset) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemAddAnimationSlicePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemAddAnimationSlicePtr, NIL) } /** @@ -5170,7 +5161,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasItemSetSortChildrenByY(item: RID, enabled: Boolean): Unit { TransferContext.writeArguments(_RID to item, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemSetSortChildrenByYPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemSetSortChildrenByYPtr, NIL) } /** @@ -5179,7 +5170,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasItemSetZIndex(item: RID, zIndex: Int): Unit { TransferContext.writeArguments(_RID to item, LONG to zIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemSetZIndexPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemSetZIndexPtr, NIL) } /** @@ -5188,7 +5179,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasItemSetZAsRelativeToParent(item: RID, enabled: Boolean): Unit { TransferContext.writeArguments(_RID to item, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemSetZAsRelativeToParentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemSetZAsRelativeToParentPtr, NIL) } /** @@ -5201,7 +5192,7 @@ public object RenderingServer : Object() { rect: Rect2, ): Unit { TransferContext.writeArguments(_RID to item, BOOL to enabled, RECT2 to rect) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemSetCopyToBackbufferPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemSetCopyToBackbufferPtr, NIL) } /** @@ -5210,7 +5201,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasItemClear(item: RID): Unit { TransferContext.writeArguments(_RID to item) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemClearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemClearPtr, NIL) } /** @@ -5219,7 +5210,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasItemSetDrawIndex(item: RID, index: Int): Unit { TransferContext.writeArguments(_RID to item, LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemSetDrawIndexPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemSetDrawIndexPtr, NIL) } /** @@ -5229,7 +5220,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasItemSetMaterial(item: RID, material: RID): Unit { TransferContext.writeArguments(_RID to item, _RID to material) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemSetMaterialPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemSetMaterialPtr, NIL) } /** @@ -5238,7 +5229,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasItemSetUseParentMaterial(item: RID, enabled: Boolean): Unit { TransferContext.writeArguments(_RID to item, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemSetUseParentMaterialPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemSetUseParentMaterialPtr, NIL) } /** @@ -5257,7 +5248,7 @@ public object RenderingServer : Object() { exitCallable: Callable, ): Unit { TransferContext.writeArguments(_RID to item, BOOL to enable, RECT2 to area, CALLABLE to enterCallable, CALLABLE to exitCallable) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemSetVisibilityNotifierPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemSetVisibilityNotifierPtr, NIL) } /** @@ -5277,7 +5268,7 @@ public object RenderingServer : Object() { blurMipmaps: Boolean = false, ): Unit { TransferContext.writeArguments(_RID to item, LONG to mode.id, DOUBLE to clearMargin.toDouble(), BOOL to fitEmpty, DOUBLE to fitMargin.toDouble(), BOOL to blurMipmaps) - TransferContext.callMethod(rawPtr, MethodBindings.canvasItemSetCanvasGroupModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasItemSetCanvasGroupModePtr, NIL) } /** @@ -5289,7 +5280,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun debugCanvasItemGetRect(item: RID): Rect2 { TransferContext.writeArguments(_RID to item) - TransferContext.callMethod(rawPtr, MethodBindings.debugCanvasItemGetRectPtr, RECT2) + TransferContext.callMethod(ptr, MethodBindings.debugCanvasItemGetRectPtr, RECT2) return (TransferContext.readReturnValue(RECT2) as Rect2) } @@ -5303,7 +5294,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasLightCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.canvasLightCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.canvasLightCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -5313,7 +5304,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasLightAttachToCanvas(light: RID, canvas: RID): Unit { TransferContext.writeArguments(_RID to light, _RID to canvas) - TransferContext.callMethod(rawPtr, MethodBindings.canvasLightAttachToCanvasPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasLightAttachToCanvasPtr, NIL) } /** @@ -5322,7 +5313,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasLightSetEnabled(light: RID, enabled: Boolean): Unit { TransferContext.writeArguments(_RID to light, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.canvasLightSetEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasLightSetEnabledPtr, NIL) } /** @@ -5331,7 +5322,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasLightSetTextureScale(light: RID, scale: Float): Unit { TransferContext.writeArguments(_RID to light, DOUBLE to scale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.canvasLightSetTextureScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasLightSetTextureScalePtr, NIL) } /** @@ -5340,7 +5331,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasLightSetTransform(light: RID, transform: Transform2D): Unit { TransferContext.writeArguments(_RID to light, TRANSFORM2D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.canvasLightSetTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasLightSetTransformPtr, NIL) } /** @@ -5349,7 +5340,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasLightSetTexture(light: RID, texture: RID): Unit { TransferContext.writeArguments(_RID to light, _RID to texture) - TransferContext.callMethod(rawPtr, MethodBindings.canvasLightSetTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasLightSetTexturePtr, NIL) } /** @@ -5358,7 +5349,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasLightSetTextureOffset(light: RID, offset: Vector2): Unit { TransferContext.writeArguments(_RID to light, VECTOR2 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.canvasLightSetTextureOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasLightSetTextureOffsetPtr, NIL) } /** @@ -5367,7 +5358,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasLightSetColor(light: RID, color: Color): Unit { TransferContext.writeArguments(_RID to light, COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.canvasLightSetColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasLightSetColorPtr, NIL) } /** @@ -5376,7 +5367,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasLightSetHeight(light: RID, height: Float): Unit { TransferContext.writeArguments(_RID to light, DOUBLE to height.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.canvasLightSetHeightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasLightSetHeightPtr, NIL) } /** @@ -5385,7 +5376,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasLightSetEnergy(light: RID, energy: Float): Unit { TransferContext.writeArguments(_RID to light, DOUBLE to energy.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.canvasLightSetEnergyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasLightSetEnergyPtr, NIL) } /** @@ -5399,7 +5390,7 @@ public object RenderingServer : Object() { maxZ: Int, ): Unit { TransferContext.writeArguments(_RID to light, LONG to minZ.toLong(), LONG to maxZ.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.canvasLightSetZRangePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasLightSetZRangePtr, NIL) } /** @@ -5412,7 +5403,7 @@ public object RenderingServer : Object() { maxLayer: Int, ): Unit { TransferContext.writeArguments(_RID to light, LONG to minLayer.toLong(), LONG to maxLayer.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.canvasLightSetLayerRangePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasLightSetLayerRangePtr, NIL) } /** @@ -5421,7 +5412,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasLightSetItemCullMask(light: RID, mask: Int): Unit { TransferContext.writeArguments(_RID to light, LONG to mask.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.canvasLightSetItemCullMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasLightSetItemCullMaskPtr, NIL) } /** @@ -5431,7 +5422,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasLightSetItemShadowCullMask(light: RID, mask: Int): Unit { TransferContext.writeArguments(_RID to light, LONG to mask.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.canvasLightSetItemShadowCullMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasLightSetItemShadowCullMaskPtr, NIL) } /** @@ -5440,7 +5431,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasLightSetMode(light: RID, mode: CanvasLightMode): Unit { TransferContext.writeArguments(_RID to light, LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.canvasLightSetModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasLightSetModePtr, NIL) } /** @@ -5449,7 +5440,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasLightSetShadowEnabled(light: RID, enabled: Boolean): Unit { TransferContext.writeArguments(_RID to light, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.canvasLightSetShadowEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasLightSetShadowEnabledPtr, NIL) } /** @@ -5458,7 +5449,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasLightSetShadowFilter(light: RID, filter: CanvasLightShadowFilter): Unit { TransferContext.writeArguments(_RID to light, LONG to filter.id) - TransferContext.callMethod(rawPtr, MethodBindings.canvasLightSetShadowFilterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasLightSetShadowFilterPtr, NIL) } /** @@ -5467,7 +5458,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasLightSetShadowColor(light: RID, color: Color): Unit { TransferContext.writeArguments(_RID to light, COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.canvasLightSetShadowColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasLightSetShadowColorPtr, NIL) } /** @@ -5476,7 +5467,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasLightSetShadowSmooth(light: RID, smooth: Float): Unit { TransferContext.writeArguments(_RID to light, DOUBLE to smooth.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.canvasLightSetShadowSmoothPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasLightSetShadowSmoothPtr, NIL) } /** @@ -5486,7 +5477,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasLightSetBlendMode(light: RID, mode: CanvasLightBlendMode): Unit { TransferContext.writeArguments(_RID to light, LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.canvasLightSetBlendModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasLightSetBlendModePtr, NIL) } /** @@ -5495,7 +5486,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasLightSetInterpolated(light: RID, interpolated: Boolean): Unit { TransferContext.writeArguments(_RID to light, BOOL to interpolated) - TransferContext.callMethod(rawPtr, MethodBindings.canvasLightSetInterpolatedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasLightSetInterpolatedPtr, NIL) } /** @@ -5506,7 +5497,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasLightResetPhysicsInterpolation(light: RID): Unit { TransferContext.writeArguments(_RID to light) - TransferContext.callMethod(rawPtr, MethodBindings.canvasLightResetPhysicsInterpolationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasLightResetPhysicsInterpolationPtr, NIL) } /** @@ -5518,8 +5509,7 @@ public object RenderingServer : Object() { public final fun canvasLightTransformPhysicsInterpolation(light: RID, transform: Transform2D): Unit { TransferContext.writeArguments(_RID to light, TRANSFORM2D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.canvasLightTransformPhysicsInterpolationPtr, - NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasLightTransformPhysicsInterpolationPtr, NIL) } /** @@ -5533,7 +5523,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasLightOccluderCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.canvasLightOccluderCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.canvasLightOccluderCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -5543,7 +5533,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasLightOccluderAttachToCanvas(occluder: RID, canvas: RID): Unit { TransferContext.writeArguments(_RID to occluder, _RID to canvas) - TransferContext.callMethod(rawPtr, MethodBindings.canvasLightOccluderAttachToCanvasPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasLightOccluderAttachToCanvasPtr, NIL) } /** @@ -5552,7 +5542,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasLightOccluderSetEnabled(occluder: RID, enabled: Boolean): Unit { TransferContext.writeArguments(_RID to occluder, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.canvasLightOccluderSetEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasLightOccluderSetEnabledPtr, NIL) } /** @@ -5561,13 +5551,13 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasLightOccluderSetPolygon(occluder: RID, polygon: RID): Unit { TransferContext.writeArguments(_RID to occluder, _RID to polygon) - TransferContext.callMethod(rawPtr, MethodBindings.canvasLightOccluderSetPolygonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasLightOccluderSetPolygonPtr, NIL) } @JvmStatic public final fun canvasLightOccluderSetAsSdfCollision(occluder: RID, enable: Boolean): Unit { TransferContext.writeArguments(_RID to occluder, BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.canvasLightOccluderSetAsSdfCollisionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasLightOccluderSetAsSdfCollisionPtr, NIL) } /** @@ -5576,7 +5566,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasLightOccluderSetTransform(occluder: RID, transform: Transform2D): Unit { TransferContext.writeArguments(_RID to occluder, TRANSFORM2D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.canvasLightOccluderSetTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasLightOccluderSetTransformPtr, NIL) } /** @@ -5585,7 +5575,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasLightOccluderSetLightMask(occluder: RID, mask: Int): Unit { TransferContext.writeArguments(_RID to occluder, LONG to mask.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.canvasLightOccluderSetLightMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasLightOccluderSetLightMaskPtr, NIL) } /** @@ -5594,7 +5584,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasLightOccluderSetInterpolated(occluder: RID, interpolated: Boolean): Unit { TransferContext.writeArguments(_RID to occluder, BOOL to interpolated) - TransferContext.callMethod(rawPtr, MethodBindings.canvasLightOccluderSetInterpolatedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasLightOccluderSetInterpolatedPtr, NIL) } /** @@ -5605,8 +5595,8 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasLightOccluderResetPhysicsInterpolation(occluder: RID): Unit { TransferContext.writeArguments(_RID to occluder) - TransferContext.callMethod(rawPtr, - MethodBindings.canvasLightOccluderResetPhysicsInterpolationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasLightOccluderResetPhysicsInterpolationPtr, + NIL) } /** @@ -5618,7 +5608,7 @@ public object RenderingServer : Object() { public final fun canvasLightOccluderTransformPhysicsInterpolation(occluder: RID, transform: Transform2D): Unit { TransferContext.writeArguments(_RID to occluder, TRANSFORM2D to transform) - TransferContext.callMethod(rawPtr, + TransferContext.callMethod(ptr, MethodBindings.canvasLightOccluderTransformPhysicsInterpolationPtr, NIL) } @@ -5633,7 +5623,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasOccluderPolygonCreate(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.canvasOccluderPolygonCreatePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.canvasOccluderPolygonCreatePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -5647,7 +5637,7 @@ public object RenderingServer : Object() { closed: Boolean, ): Unit { TransferContext.writeArguments(_RID to occluderPolygon, PACKED_VECTOR2_ARRAY to shape, BOOL to closed) - TransferContext.callMethod(rawPtr, MethodBindings.canvasOccluderPolygonSetShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasOccluderPolygonSetShapePtr, NIL) } /** @@ -5657,7 +5647,7 @@ public object RenderingServer : Object() { public final fun canvasOccluderPolygonSetCullMode(occluderPolygon: RID, mode: CanvasOccluderPolygonCullMode): Unit { TransferContext.writeArguments(_RID to occluderPolygon, LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.canvasOccluderPolygonSetCullModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasOccluderPolygonSetCullModePtr, NIL) } /** @@ -5667,7 +5657,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun canvasSetShadowTextureSize(size: Int): Unit { TransferContext.writeArguments(LONG to size.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.canvasSetShadowTextureSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.canvasSetShadowTextureSizePtr, NIL) } /** @@ -5681,7 +5671,7 @@ public object RenderingServer : Object() { defaultValue: Any?, ): Unit { TransferContext.writeArguments(STRING_NAME to name, LONG to type.id, ANY to defaultValue) - TransferContext.callMethod(rawPtr, MethodBindings.globalShaderParameterAddPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.globalShaderParameterAddPtr, NIL) } /** @@ -5690,7 +5680,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun globalShaderParameterRemove(name: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.globalShaderParameterRemovePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.globalShaderParameterRemovePtr, NIL) } /** @@ -5704,7 +5694,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun globalShaderParameterGetList(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.globalShaderParameterGetListPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.globalShaderParameterGetListPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -5714,7 +5704,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun globalShaderParameterSet(name: StringName, `value`: Any?): Unit { TransferContext.writeArguments(STRING_NAME to name, ANY to value) - TransferContext.callMethod(rawPtr, MethodBindings.globalShaderParameterSetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.globalShaderParameterSetPtr, NIL) } /** @@ -5724,7 +5714,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun globalShaderParameterSetOverride(name: StringName, `value`: Any?): Unit { TransferContext.writeArguments(STRING_NAME to name, ANY to value) - TransferContext.callMethod(rawPtr, MethodBindings.globalShaderParameterSetOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.globalShaderParameterSetOverridePtr, NIL) } /** @@ -5738,7 +5728,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun globalShaderParameterGet(name: StringName): Any? { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.globalShaderParameterGetPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.globalShaderParameterGetPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -5753,7 +5743,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun globalShaderParameterGetType(name: StringName): GlobalShaderParameterType { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.globalShaderParameterGetTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.globalShaderParameterGetTypePtr, LONG) return RenderingServer.GlobalShaderParameterType.from(TransferContext.readReturnValue(LONG) as Long) } @@ -5765,7 +5755,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun freeRid(rid: RID): Unit { TransferContext.writeArguments(_RID to rid) - TransferContext.callMethod(rawPtr, MethodBindings.freeRidPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.freeRidPtr, NIL) } /** @@ -5774,7 +5764,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun requestFrameDrawnCallback(callable: Callable): Unit { TransferContext.writeArguments(CALLABLE to callable) - TransferContext.callMethod(rawPtr, MethodBindings.requestFrameDrawnCallbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.requestFrameDrawnCallbackPtr, NIL) } /** @@ -5784,7 +5774,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun hasChanged(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasChangedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasChangedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -5808,7 +5798,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun getRenderingInfo(info: RenderingInfo): Long { TransferContext.writeArguments(LONG to info.id) - TransferContext.callMethod(rawPtr, MethodBindings.getRenderingInfoPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getRenderingInfoPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -5822,7 +5812,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun getVideoAdapterName(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVideoAdapterNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getVideoAdapterNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -5833,7 +5823,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun getVideoAdapterVendor(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVideoAdapterVendorPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getVideoAdapterVendorPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -5848,7 +5838,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun getVideoAdapterType(): RenderingDevice.DeviceType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVideoAdapterTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVideoAdapterTypePtr, LONG) return RenderingDevice.DeviceType.from(TransferContext.readReturnValue(LONG) as Long) } @@ -5862,7 +5852,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun getVideoAdapterApiVersion(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVideoAdapterApiVersionPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getVideoAdapterApiVersionPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -5877,7 +5867,7 @@ public object RenderingServer : Object() { radius: Float, ): RID { TransferContext.writeArguments(LONG to latitudes.toLong(), LONG to longitudes.toLong(), DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.makeSphereMeshPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.makeSphereMeshPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -5888,7 +5878,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun getTestCube(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTestCubePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getTestCubePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -5906,7 +5896,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun getTestTexture(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTestTexturePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getTestTexturePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -5924,7 +5914,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun getWhiteTexture(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWhiteTexturePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getWhiteTexturePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -5943,7 +5933,7 @@ public object RenderingServer : Object() { useFilter: Boolean = true, ): Unit { TransferContext.writeArguments(OBJECT to image, COLOR to color, BOOL to scale, BOOL to useFilter) - TransferContext.callMethod(rawPtr, MethodBindings.setBootImagePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBootImagePtr, NIL) } /** @@ -5953,7 +5943,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun getDefaultClearColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDefaultClearColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getDefaultClearColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } @@ -5964,7 +5954,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun setDefaultClearColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setDefaultClearColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDefaultClearColorPtr, NIL) } /** @@ -5974,7 +5964,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun hasOsFeature(feature: String): Boolean { TransferContext.writeArguments(STRING to feature) - TransferContext.callMethod(rawPtr, MethodBindings.hasOsFeaturePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasOsFeaturePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -5985,20 +5975,20 @@ public object RenderingServer : Object() { @JvmStatic public final fun setDebugGenerateWireframes(generate: Boolean): Unit { TransferContext.writeArguments(BOOL to generate) - TransferContext.callMethod(rawPtr, MethodBindings.setDebugGenerateWireframesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDebugGenerateWireframesPtr, NIL) } @JvmStatic public final fun isRenderLoopEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isRenderLoopEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isRenderLoopEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @JvmStatic public final fun setRenderLoopEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setRenderLoopEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRenderLoopEnabledPtr, NIL) } /** @@ -6009,7 +5999,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun getFrameSetupTimeCpu(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFrameSetupTimeCpuPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFrameSetupTimeCpuPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -6020,7 +6010,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun forceSync(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.forceSyncPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.forceSyncPtr, NIL) } /** @@ -6030,7 +6020,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun forceDraw(swapBuffers: Boolean = true, frameStep: Double = 0.0): Unit { TransferContext.writeArguments(BOOL to swapBuffers, DOUBLE to frameStep) - TransferContext.callMethod(rawPtr, MethodBindings.forceDrawPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.forceDrawPtr, NIL) } /** @@ -6041,7 +6031,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun getRenderingDevice(): RenderingDevice? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRenderingDevicePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getRenderingDevicePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as RenderingDevice?) } @@ -6054,7 +6044,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun createLocalRenderingDevice(): RenderingDevice? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.createLocalRenderingDevicePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.createLocalRenderingDevicePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as RenderingDevice?) } @@ -6064,7 +6054,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun isOnRenderThread(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isOnRenderThreadPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isOnRenderThreadPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -6077,7 +6067,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun callOnRenderThread(callable: Callable): Unit { TransferContext.writeArguments(CALLABLE to callable) - TransferContext.callMethod(rawPtr, MethodBindings.callOnRenderThreadPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.callOnRenderThreadPtr, NIL) } /** @@ -6086,7 +6076,7 @@ public object RenderingServer : Object() { @JvmStatic public final fun hasFeature(feature: Features): Boolean { TransferContext.writeArguments(LONG to feature.id) - TransferContext.callMethod(rawPtr, MethodBindings.hasFeaturePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasFeaturePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Resource.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Resource.kt index 520dbdf2d4..f01b20a9f2 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Resource.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Resource.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.Signal0 import godot.core.TypeManager @@ -16,7 +17,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.VariantParser._RID import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.String @@ -143,7 +143,7 @@ public open class Resource : RefCounted() { public final fun setPath(path: String): Unit { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.setPathPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPathPtr, NIL) } /** @@ -152,23 +152,23 @@ public open class Resource : RefCounted() { */ public final fun takeOverPath(path: String): Unit { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.takeOverPathPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.takeOverPathPtr, NIL) } public final fun getPath(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPathPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getPathPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setName(name: String): Unit { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.setNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNamePtr, NIL) } public final fun getName(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -179,18 +179,18 @@ public open class Resource : RefCounted() { */ public final fun getRid(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRidPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getRidPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } public final fun setLocalToScene(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setLocalToScenePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLocalToScenePtr, NIL) } public final fun isLocalToScene(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isLocalToScenePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isLocalToScenePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -201,7 +201,7 @@ public open class Resource : RefCounted() { */ public final fun getLocalScene(): Node? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLocalScenePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getLocalScenePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Node?) } @@ -212,17 +212,17 @@ public open class Resource : RefCounted() { */ public final fun setupLocalToScene(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.setupLocalToScenePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setupLocalToScenePtr, NIL) } public final fun setSceneUniqueId(id: String): Unit { TransferContext.writeArguments(STRING to id) - TransferContext.callMethod(rawPtr, MethodBindings.setSceneUniqueIdPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSceneUniqueIdPtr, NIL) } public final fun getSceneUniqueId(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSceneUniqueIdPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getSceneUniqueIdPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -242,7 +242,7 @@ public open class Resource : RefCounted() { */ public final fun emitChanged(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.emitChangedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.emitChangedPtr, NIL) } /** @@ -262,7 +262,7 @@ public open class Resource : RefCounted() { @JvmOverloads public final fun duplicate(subresources: Boolean = false): Resource? { TransferContext.writeArguments(BOOL to subresources) - TransferContext.callMethod(rawPtr, MethodBindings.duplicatePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.duplicatePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Resource?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ResourceLoader.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ResourceLoader.kt index e875595fc0..34d46bb617 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ResourceLoader.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ResourceLoader.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedStringArray import godot.core.TypeManager import godot.core.VariantArray @@ -18,7 +19,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -59,7 +59,7 @@ public object ResourceLoader : Object() { cacheMode: CacheMode = ResourceLoader.CacheMode.CACHE_MODE_REUSE, ): Error { TransferContext.writeArguments(STRING to path, STRING to typeHint, BOOL to useSubThreads, LONG to cacheMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.loadThreadedRequestPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.loadThreadedRequestPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -76,7 +76,7 @@ public object ResourceLoader : Object() { public final fun loadThreadedGetStatus(path: String, progress: VariantArray = godot.core.variantArrayOf()): ThreadLoadStatus { TransferContext.writeArguments(STRING to path, ARRAY to progress) - TransferContext.callMethod(rawPtr, MethodBindings.loadThreadedGetStatusPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.loadThreadedGetStatusPtr, LONG) return ResourceLoader.ThreadLoadStatus.from(TransferContext.readReturnValue(LONG) as Long) } @@ -90,7 +90,7 @@ public object ResourceLoader : Object() { @JvmStatic public final fun loadThreadedGet(path: String): Resource? { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.loadThreadedGetPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.loadThreadedGetPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Resource?) } @@ -123,7 +123,7 @@ public object ResourceLoader : Object() { cacheMode: CacheMode = ResourceLoader.CacheMode.CACHE_MODE_REUSE, ): Resource? { TransferContext.writeArguments(STRING to path, STRING to typeHint, LONG to cacheMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.loadPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.loadPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Resource?) } @@ -133,7 +133,7 @@ public object ResourceLoader : Object() { @JvmStatic public final fun getRecognizedExtensionsForType(type: String): PackedStringArray { TransferContext.writeArguments(STRING to type) - TransferContext.callMethod(rawPtr, MethodBindings.getRecognizedExtensionsForTypePtr, + TransferContext.callMethod(ptr, MethodBindings.getRecognizedExtensionsForTypePtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -149,7 +149,7 @@ public object ResourceLoader : Object() { public final fun addResourceFormatLoader(formatLoader: ResourceFormatLoader?, atFront: Boolean = false): Unit { TransferContext.writeArguments(OBJECT to formatLoader, BOOL to atFront) - TransferContext.callMethod(rawPtr, MethodBindings.addResourceFormatLoaderPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addResourceFormatLoaderPtr, NIL) } /** @@ -158,7 +158,7 @@ public object ResourceLoader : Object() { @JvmStatic public final fun removeResourceFormatLoader(formatLoader: ResourceFormatLoader?): Unit { TransferContext.writeArguments(OBJECT to formatLoader) - TransferContext.callMethod(rawPtr, MethodBindings.removeResourceFormatLoaderPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeResourceFormatLoaderPtr, NIL) } /** @@ -167,7 +167,7 @@ public object ResourceLoader : Object() { @JvmStatic public final fun setAbortOnMissingResources(abort: Boolean): Unit { TransferContext.writeArguments(BOOL to abort) - TransferContext.callMethod(rawPtr, MethodBindings.setAbortOnMissingResourcesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAbortOnMissingResourcesPtr, NIL) } /** @@ -183,7 +183,7 @@ public object ResourceLoader : Object() { @JvmStatic public final fun getDependencies(path: String): PackedStringArray { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.getDependenciesPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getDependenciesPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -196,7 +196,7 @@ public object ResourceLoader : Object() { @JvmStatic public final fun hasCached(path: String): Boolean { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.hasCachedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasCachedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -212,7 +212,7 @@ public object ResourceLoader : Object() { @JvmStatic public final fun exists(path: String, typeHint: String = ""): Boolean { TransferContext.writeArguments(STRING to path, STRING to typeHint) - TransferContext.callMethod(rawPtr, MethodBindings.existsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.existsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -222,7 +222,7 @@ public object ResourceLoader : Object() { @JvmStatic public final fun getResourceUid(path: String): Long { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.getResourceUidPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getResourceUidPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ResourcePreloader.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ResourcePreloader.kt index ef07c91529..3bea7787a9 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ResourcePreloader.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ResourcePreloader.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedStringArray import godot.core.StringName import godot.core.TypeManager @@ -16,7 +17,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -42,7 +42,7 @@ public open class ResourcePreloader : Node() { */ public final fun addResource(name: StringName, resource: Resource?): Unit { TransferContext.writeArguments(STRING_NAME to name, OBJECT to resource) - TransferContext.callMethod(rawPtr, MethodBindings.addResourcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addResourcePtr, NIL) } /** @@ -50,7 +50,7 @@ public open class ResourcePreloader : Node() { */ public final fun removeResource(name: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.removeResourcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeResourcePtr, NIL) } /** @@ -58,7 +58,7 @@ public open class ResourcePreloader : Node() { */ public final fun renameResource(name: StringName, newname: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to newname) - TransferContext.callMethod(rawPtr, MethodBindings.renameResourcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.renameResourcePtr, NIL) } /** @@ -66,7 +66,7 @@ public open class ResourcePreloader : Node() { */ public final fun hasResource(name: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.hasResourcePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasResourcePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -75,7 +75,7 @@ public open class ResourcePreloader : Node() { */ public final fun getResource(name: StringName): Resource? { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.getResourcePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getResourcePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Resource?) } @@ -84,7 +84,7 @@ public open class ResourcePreloader : Node() { */ public final fun getResourceList(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getResourceListPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getResourceListPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ResourceSaver.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ResourceSaver.kt index 66cf8a7176..e0c5716965 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ResourceSaver.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ResourceSaver.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedStringArray import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -16,7 +17,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -55,7 +55,7 @@ public object ResourceSaver : Object() { flags: SaverFlags = ResourceSaver.SaverFlags.FLAG_NONE, ): Error { TransferContext.writeArguments(OBJECT to resource, STRING to path, LONG to flags.flag) - TransferContext.callMethod(rawPtr, MethodBindings.savePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.savePtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -65,8 +65,7 @@ public object ResourceSaver : Object() { @JvmStatic public final fun getRecognizedExtensions(type: Resource?): PackedStringArray { TransferContext.writeArguments(OBJECT to type) - TransferContext.callMethod(rawPtr, MethodBindings.getRecognizedExtensionsPtr, - PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getRecognizedExtensionsPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -81,7 +80,7 @@ public object ResourceSaver : Object() { public final fun addResourceFormatSaver(formatSaver: ResourceFormatSaver?, atFront: Boolean = false): Unit { TransferContext.writeArguments(OBJECT to formatSaver, BOOL to atFront) - TransferContext.callMethod(rawPtr, MethodBindings.addResourceFormatSaverPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addResourceFormatSaverPtr, NIL) } /** @@ -90,7 +89,7 @@ public object ResourceSaver : Object() { @JvmStatic public final fun removeResourceFormatSaver(formatSaver: ResourceFormatSaver?): Unit { TransferContext.writeArguments(OBJECT to formatSaver) - TransferContext.callMethod(rawPtr, MethodBindings.removeResourceFormatSaverPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeResourceFormatSaverPtr, NIL) } public sealed interface SaverFlags { diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ResourceUID.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ResourceUID.kt index 6d08262d7a..0f34d23e59 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ResourceUID.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ResourceUID.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -46,7 +46,7 @@ public object ResourceUID : Object() { @JvmStatic public final fun idToText(id: Long): String { TransferContext.writeArguments(LONG to id) - TransferContext.callMethod(rawPtr, MethodBindings.idToTextPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.idToTextPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -56,7 +56,7 @@ public object ResourceUID : Object() { @JvmStatic public final fun textToId(textId: String): Long { TransferContext.writeArguments(STRING to textId) - TransferContext.callMethod(rawPtr, MethodBindings.textToIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.textToIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -68,7 +68,7 @@ public object ResourceUID : Object() { @JvmStatic public final fun createId(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.createIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.createIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -78,7 +78,7 @@ public object ResourceUID : Object() { @JvmStatic public final fun hasId(id: Long): Boolean { TransferContext.writeArguments(LONG to id) - TransferContext.callMethod(rawPtr, MethodBindings.hasIdPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasIdPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -90,7 +90,7 @@ public object ResourceUID : Object() { @JvmStatic public final fun addId(id: Long, path: String): Unit { TransferContext.writeArguments(LONG to id, STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.addIdPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addIdPtr, NIL) } /** @@ -101,7 +101,7 @@ public object ResourceUID : Object() { @JvmStatic public final fun setId(id: Long, path: String): Unit { TransferContext.writeArguments(LONG to id, STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.setIdPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIdPtr, NIL) } /** @@ -111,7 +111,7 @@ public object ResourceUID : Object() { @JvmStatic public final fun getIdPath(id: Long): String { TransferContext.writeArguments(LONG to id) - TransferContext.callMethod(rawPtr, MethodBindings.getIdPathPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getIdPathPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -122,7 +122,7 @@ public object ResourceUID : Object() { @JvmStatic public final fun removeId(id: Long): Unit { TransferContext.writeArguments(LONG to id) - TransferContext.callMethod(rawPtr, MethodBindings.removeIdPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeIdPtr, NIL) } internal object MethodBindings { diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RibbonTrailMesh.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RibbonTrailMesh.kt index c5e50e0b0a..cb8b8829a7 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RibbonTrailMesh.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RibbonTrailMesh.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -107,67 +107,67 @@ public open class RibbonTrailMesh : PrimitiveMesh() { public final fun setSize(size: Float): Unit { TransferContext.writeArguments(DOUBLE to size.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSizePtr, NIL) } public final fun getSize(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSizePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSizePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSections(sections: Int): Unit { TransferContext.writeArguments(LONG to sections.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSectionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSectionsPtr, NIL) } public final fun getSections(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSectionsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSectionsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setSectionLength(sectionLength: Float): Unit { TransferContext.writeArguments(DOUBLE to sectionLength.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSectionLengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSectionLengthPtr, NIL) } public final fun getSectionLength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSectionLengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSectionLengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSectionSegments(sectionSegments: Int): Unit { TransferContext.writeArguments(LONG to sectionSegments.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSectionSegmentsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSectionSegmentsPtr, NIL) } public final fun getSectionSegments(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSectionSegmentsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSectionSegmentsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setCurve(curve: Curve?): Unit { TransferContext.writeArguments(OBJECT to curve) - TransferContext.callMethod(rawPtr, MethodBindings.setCurvePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCurvePtr, NIL) } public final fun getCurve(): Curve? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCurvePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getCurvePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Curve?) } public final fun setShape(shape: Shape): Unit { TransferContext.writeArguments(LONG to shape.id) - TransferContext.callMethod(rawPtr, MethodBindings.setShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShapePtr, NIL) } public final fun getShape(): Shape { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getShapePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getShapePtr, LONG) return RibbonTrailMesh.Shape.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RichTextLabel.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RichTextLabel.kt index f376dd7b2b..b92c41adb0 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RichTextLabel.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RichTextLabel.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.Dictionary import godot.core.PackedFloat32Array @@ -32,7 +33,6 @@ import godot.core.VariantParser.STRING import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -398,7 +398,7 @@ public open class RichTextLabel : Control() { */ public final fun getParsedText(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getParsedTextPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getParsedTextPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -407,12 +407,12 @@ public open class RichTextLabel : Control() { */ public final fun addText(text: String): Unit { TransferContext.writeArguments(STRING to text) - TransferContext.callMethod(rawPtr, MethodBindings.addTextPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addTextPtr, NIL) } public final fun setText(text: String): Unit { TransferContext.writeArguments(STRING to text) - TransferContext.callMethod(rawPtr, MethodBindings.setTextPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextPtr, NIL) } /** @@ -442,7 +442,7 @@ public open class RichTextLabel : Control() { sizeInPercent: Boolean = false, ): Unit { TransferContext.writeArguments(OBJECT to image, LONG to width.toLong(), LONG to height.toLong(), COLOR to color, LONG to inlineAlign.id, RECT2 to region, ANY to key, BOOL to pad, STRING to tooltip, BOOL to sizeInPercent) - TransferContext.callMethod(rawPtr, MethodBindings.addImagePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addImagePtr, NIL) } /** @@ -464,7 +464,7 @@ public open class RichTextLabel : Control() { sizeInPercent: Boolean = false, ): Unit { TransferContext.writeArguments(ANY to key, LONG to mask.flag, OBJECT to image, LONG to width.toLong(), LONG to height.toLong(), COLOR to color, LONG to inlineAlign.id, RECT2 to region, BOOL to pad, STRING to tooltip, BOOL to sizeInPercent) - TransferContext.callMethod(rawPtr, MethodBindings.updateImagePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.updateImagePtr, NIL) } /** @@ -472,7 +472,7 @@ public open class RichTextLabel : Control() { */ public final fun newline(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.newlinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.newlinePtr, NIL) } /** @@ -487,7 +487,7 @@ public open class RichTextLabel : Control() { @JvmOverloads public final fun removeParagraph(paragraph: Int, noInvalidate: Boolean = false): Boolean { TransferContext.writeArguments(LONG to paragraph.toLong(), BOOL to noInvalidate) - TransferContext.callMethod(rawPtr, MethodBindings.removeParagraphPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.removeParagraphPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -496,7 +496,7 @@ public open class RichTextLabel : Control() { */ public final fun invalidateParagraph(paragraph: Int): Boolean { TransferContext.writeArguments(LONG to paragraph.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.invalidateParagraphPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.invalidateParagraphPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -508,7 +508,7 @@ public open class RichTextLabel : Control() { @JvmOverloads public final fun pushFont(font: Font?, fontSize: Int = 0): Unit { TransferContext.writeArguments(OBJECT to font, LONG to fontSize.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.pushFontPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pushFontPtr, NIL) } /** @@ -517,7 +517,7 @@ public open class RichTextLabel : Control() { */ public final fun pushFontSize(fontSize: Int): Unit { TransferContext.writeArguments(LONG to fontSize.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.pushFontSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pushFontSizePtr, NIL) } /** @@ -525,7 +525,7 @@ public open class RichTextLabel : Control() { */ public final fun pushNormal(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.pushNormalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pushNormalPtr, NIL) } /** @@ -534,7 +534,7 @@ public open class RichTextLabel : Control() { */ public final fun pushBold(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.pushBoldPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pushBoldPtr, NIL) } /** @@ -542,7 +542,7 @@ public open class RichTextLabel : Control() { */ public final fun pushBoldItalics(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.pushBoldItalicsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pushBoldItalicsPtr, NIL) } /** @@ -552,7 +552,7 @@ public open class RichTextLabel : Control() { */ public final fun pushItalics(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.pushItalicsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pushItalicsPtr, NIL) } /** @@ -560,7 +560,7 @@ public open class RichTextLabel : Control() { */ public final fun pushMono(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.pushMonoPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pushMonoPtr, NIL) } /** @@ -568,7 +568,7 @@ public open class RichTextLabel : Control() { */ public final fun pushColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.pushColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pushColorPtr, NIL) } /** @@ -577,7 +577,7 @@ public open class RichTextLabel : Control() { */ public final fun pushOutlineSize(outlineSize: Int): Unit { TransferContext.writeArguments(LONG to outlineSize.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.pushOutlineSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pushOutlineSizePtr, NIL) } /** @@ -586,7 +586,7 @@ public open class RichTextLabel : Control() { */ public final fun pushOutlineColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.pushOutlineColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pushOutlineColorPtr, NIL) } /** @@ -603,7 +603,7 @@ public open class RichTextLabel : Control() { tabStops: PackedFloat32Array = PackedFloat32Array(), ): Unit { TransferContext.writeArguments(LONG to alignment.id, LONG to baseDirection.id, STRING to language, LONG to stParser.id, LONG to justificationFlags.flag, PACKED_FLOAT_32_ARRAY to tabStops) - TransferContext.callMethod(rawPtr, MethodBindings.pushParagraphPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pushParagraphPtr, NIL) } /** @@ -612,7 +612,7 @@ public open class RichTextLabel : Control() { */ public final fun pushIndent(level: Int): Unit { TransferContext.writeArguments(LONG to level.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.pushIndentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pushIndentPtr, NIL) } /** @@ -627,7 +627,7 @@ public open class RichTextLabel : Control() { bullet: String = "•", ): Unit { TransferContext.writeArguments(LONG to level.toLong(), LONG to type.id, BOOL to capitalize, STRING to bullet) - TransferContext.callMethod(rawPtr, MethodBindings.pushListPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pushListPtr, NIL) } /** @@ -642,7 +642,7 @@ public open class RichTextLabel : Control() { public final fun pushMeta(`data`: Any?, underlineMode: MetaUnderline = RichTextLabel.MetaUnderline.META_UNDERLINE_ALWAYS): Unit { TransferContext.writeArguments(ANY to data, LONG to underlineMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.pushMetaPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pushMetaPtr, NIL) } /** @@ -651,7 +651,7 @@ public open class RichTextLabel : Control() { */ public final fun pushHint(description: String): Unit { TransferContext.writeArguments(STRING to description) - TransferContext.callMethod(rawPtr, MethodBindings.pushHintPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pushHintPtr, NIL) } /** @@ -659,7 +659,7 @@ public open class RichTextLabel : Control() { */ public final fun pushLanguage(language: String): Unit { TransferContext.writeArguments(STRING to language) - TransferContext.callMethod(rawPtr, MethodBindings.pushLanguagePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pushLanguagePtr, NIL) } /** @@ -667,7 +667,7 @@ public open class RichTextLabel : Control() { */ public final fun pushUnderline(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.pushUnderlinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pushUnderlinePtr, NIL) } /** @@ -675,7 +675,7 @@ public open class RichTextLabel : Control() { */ public final fun pushStrikethrough(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.pushStrikethroughPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pushStrikethroughPtr, NIL) } /** @@ -689,7 +689,7 @@ public open class RichTextLabel : Control() { alignToRow: Int = -1, ): Unit { TransferContext.writeArguments(LONG to columns.toLong(), LONG to inlineAlign.id, LONG to alignToRow.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.pushTablePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pushTablePtr, NIL) } /** @@ -707,7 +707,7 @@ public open class RichTextLabel : Control() { outlineColor: Color = Color(Color(0, 0, 0, 0)), ): Unit { TransferContext.writeArguments(STRING to string, OBJECT to font, LONG to size.toLong(), RECT2 to dropcapMargins, COLOR to color, LONG to outlineSize.toLong(), COLOR to outlineColor) - TransferContext.callMethod(rawPtr, MethodBindings.pushDropcapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pushDropcapPtr, NIL) } /** @@ -724,7 +724,7 @@ public open class RichTextLabel : Control() { ratio: Int = 1, ): Unit { TransferContext.writeArguments(LONG to column.toLong(), BOOL to expand, LONG to ratio.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setTableColumnExpandPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTableColumnExpandPtr, NIL) } /** @@ -732,7 +732,7 @@ public open class RichTextLabel : Control() { */ public final fun setCellRowBackgroundColor(oddRowBg: Color, evenRowBg: Color): Unit { TransferContext.writeArguments(COLOR to oddRowBg, COLOR to evenRowBg) - TransferContext.callMethod(rawPtr, MethodBindings.setCellRowBackgroundColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCellRowBackgroundColorPtr, NIL) } /** @@ -740,7 +740,7 @@ public open class RichTextLabel : Control() { */ public final fun setCellBorderColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setCellBorderColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCellBorderColorPtr, NIL) } /** @@ -748,7 +748,7 @@ public open class RichTextLabel : Control() { */ public final fun setCellSizeOverride(minSize: Vector2, maxSize: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to minSize, VECTOR2 to maxSize) - TransferContext.callMethod(rawPtr, MethodBindings.setCellSizeOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCellSizeOverridePtr, NIL) } /** @@ -756,7 +756,7 @@ public open class RichTextLabel : Control() { */ public final fun setCellPadding(padding: Rect2): Unit { TransferContext.writeArguments(RECT2 to padding) - TransferContext.callMethod(rawPtr, MethodBindings.setCellPaddingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCellPaddingPtr, NIL) } /** @@ -768,7 +768,7 @@ public open class RichTextLabel : Control() { */ public final fun pushCell(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.pushCellPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pushCellPtr, NIL) } /** @@ -776,7 +776,7 @@ public open class RichTextLabel : Control() { */ public final fun pushFgcolor(fgcolor: Color): Unit { TransferContext.writeArguments(COLOR to fgcolor) - TransferContext.callMethod(rawPtr, MethodBindings.pushFgcolorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pushFgcolorPtr, NIL) } /** @@ -784,7 +784,7 @@ public open class RichTextLabel : Control() { */ public final fun pushBgcolor(bgcolor: Color): Unit { TransferContext.writeArguments(COLOR to bgcolor) - TransferContext.callMethod(rawPtr, MethodBindings.pushBgcolorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pushBgcolorPtr, NIL) } /** @@ -793,7 +793,7 @@ public open class RichTextLabel : Control() { */ public final fun pushCustomfx(effect: RichTextEffect?, env: Dictionary): Unit { TransferContext.writeArguments(OBJECT to effect, DICTIONARY to env) - TransferContext.callMethod(rawPtr, MethodBindings.pushCustomfxPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pushCustomfxPtr, NIL) } /** @@ -801,7 +801,7 @@ public open class RichTextLabel : Control() { */ public final fun pushContext(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.pushContextPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pushContextPtr, NIL) } /** @@ -810,7 +810,7 @@ public open class RichTextLabel : Control() { */ public final fun popContext(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.popContextPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.popContextPtr, NIL) } /** @@ -819,7 +819,7 @@ public open class RichTextLabel : Control() { */ public final fun pop(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.popPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.popPtr, NIL) } /** @@ -827,7 +827,7 @@ public open class RichTextLabel : Control() { */ public final fun popAll(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.popAllPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.popAllPtr, NIL) } /** @@ -837,106 +837,105 @@ public open class RichTextLabel : Control() { */ public final fun clear(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPtr, NIL) } public final fun setStructuredTextBidiOverride(parser: TextServer.StructuredTextParser): Unit { TransferContext.writeArguments(LONG to parser.id) - TransferContext.callMethod(rawPtr, MethodBindings.setStructuredTextBidiOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStructuredTextBidiOverridePtr, NIL) } public final fun getStructuredTextBidiOverride(): TextServer.StructuredTextParser { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStructuredTextBidiOverridePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getStructuredTextBidiOverridePtr, LONG) return TextServer.StructuredTextParser.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setStructuredTextBidiOverrideOptions(args: VariantArray): Unit { TransferContext.writeArguments(ARRAY to args) - TransferContext.callMethod(rawPtr, MethodBindings.setStructuredTextBidiOverrideOptionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStructuredTextBidiOverrideOptionsPtr, NIL) } public final fun getStructuredTextBidiOverrideOptions(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStructuredTextBidiOverrideOptionsPtr, - ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getStructuredTextBidiOverrideOptionsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } public final fun setTextDirection(direction: Control.TextDirection): Unit { TransferContext.writeArguments(LONG to direction.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTextDirectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextDirectionPtr, NIL) } public final fun getTextDirection(): Control.TextDirection { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextDirectionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTextDirectionPtr, LONG) return Control.TextDirection.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setLanguage(language: String): Unit { TransferContext.writeArguments(STRING to language) - TransferContext.callMethod(rawPtr, MethodBindings.setLanguagePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLanguagePtr, NIL) } public final fun getLanguage(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLanguagePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getLanguagePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setAutowrapMode(autowrapMode: TextServer.AutowrapMode): Unit { TransferContext.writeArguments(LONG to autowrapMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setAutowrapModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutowrapModePtr, NIL) } public final fun getAutowrapMode(): TextServer.AutowrapMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAutowrapModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAutowrapModePtr, LONG) return TextServer.AutowrapMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setMetaUnderline(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setMetaUnderlinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMetaUnderlinePtr, NIL) } public final fun isMetaUnderlined(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isMetaUnderlinedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isMetaUnderlinedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setHintUnderline(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setHintUnderlinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHintUnderlinePtr, NIL) } public final fun isHintUnderlined(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isHintUnderlinedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isHintUnderlinedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setScrollActive(active: Boolean): Unit { TransferContext.writeArguments(BOOL to active) - TransferContext.callMethod(rawPtr, MethodBindings.setScrollActivePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setScrollActivePtr, NIL) } public final fun isScrollActive(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isScrollActivePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isScrollActivePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setScrollFollow(follow: Boolean): Unit { TransferContext.writeArguments(BOOL to follow) - TransferContext.callMethod(rawPtr, MethodBindings.setScrollFollowPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setScrollFollowPtr, NIL) } public final fun isScrollFollowing(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isScrollFollowingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isScrollFollowingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -947,7 +946,7 @@ public open class RichTextLabel : Control() { */ public final fun getVScrollBar(): VScrollBar? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVScrollBarPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getVScrollBarPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as VScrollBar?) } @@ -956,7 +955,7 @@ public open class RichTextLabel : Control() { */ public final fun scrollToLine(line: Int): Unit { TransferContext.writeArguments(LONG to line.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.scrollToLinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.scrollToLinePtr, NIL) } /** @@ -964,7 +963,7 @@ public open class RichTextLabel : Control() { */ public final fun scrollToParagraph(paragraph: Int): Unit { TransferContext.writeArguments(LONG to paragraph.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.scrollToParagraphPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.scrollToParagraphPtr, NIL) } /** @@ -972,83 +971,83 @@ public open class RichTextLabel : Control() { */ public final fun scrollToSelection(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.scrollToSelectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.scrollToSelectionPtr, NIL) } public final fun setTabSize(spaces: Int): Unit { TransferContext.writeArguments(LONG to spaces.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setTabSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTabSizePtr, NIL) } public final fun getTabSize(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTabSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTabSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setFitContent(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setFitContentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFitContentPtr, NIL) } public final fun isFitContentEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isFitContentEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isFitContentEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSelectionEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setSelectionEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSelectionEnabledPtr, NIL) } public final fun isSelectionEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSelectionEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSelectionEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setContextMenuEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setContextMenuEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setContextMenuEnabledPtr, NIL) } public final fun isContextMenuEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isContextMenuEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isContextMenuEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setShortcutKeysEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setShortcutKeysEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShortcutKeysEnabledPtr, NIL) } public final fun isShortcutKeysEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isShortcutKeysEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isShortcutKeysEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDeselectOnFocusLossEnabled(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setDeselectOnFocusLossEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDeselectOnFocusLossEnabledPtr, NIL) } public final fun isDeselectOnFocusLossEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDeselectOnFocusLossEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDeselectOnFocusLossEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDragAndDropSelectionEnabled(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setDragAndDropSelectionEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDragAndDropSelectionEnabledPtr, NIL) } public final fun isDragAndDropSelectionEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDragAndDropSelectionEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDragAndDropSelectionEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1058,7 +1057,7 @@ public open class RichTextLabel : Control() { */ public final fun getSelectionFrom(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSelectionFromPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSelectionFromPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1068,7 +1067,7 @@ public open class RichTextLabel : Control() { */ public final fun getSelectionTo(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSelectionToPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSelectionToPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1078,7 +1077,7 @@ public open class RichTextLabel : Control() { */ public final fun selectAll(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.selectAllPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.selectAllPtr, NIL) } /** @@ -1086,7 +1085,7 @@ public open class RichTextLabel : Control() { */ public final fun getSelectedText(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSelectedTextPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getSelectedTextPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -1095,7 +1094,7 @@ public open class RichTextLabel : Control() { */ public final fun deselect(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.deselectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.deselectPtr, NIL) } /** @@ -1103,7 +1102,7 @@ public open class RichTextLabel : Control() { */ public final fun parseBbcode(bbcode: String): Unit { TransferContext.writeArguments(STRING to bbcode) - TransferContext.callMethod(rawPtr, MethodBindings.parseBbcodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.parseBbcodePtr, NIL) } /** @@ -1115,12 +1114,12 @@ public open class RichTextLabel : Control() { */ public final fun appendText(bbcode: String): Unit { TransferContext.writeArguments(STRING to bbcode) - TransferContext.callMethod(rawPtr, MethodBindings.appendTextPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.appendTextPtr, NIL) } public final fun getText(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getTextPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -1130,63 +1129,63 @@ public open class RichTextLabel : Control() { */ public final fun isReady(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isReadyPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isReadyPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setThreaded(threaded: Boolean): Unit { TransferContext.writeArguments(BOOL to threaded) - TransferContext.callMethod(rawPtr, MethodBindings.setThreadedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setThreadedPtr, NIL) } public final fun isThreaded(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isThreadedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isThreadedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setProgressBarDelay(delayMs: Int): Unit { TransferContext.writeArguments(LONG to delayMs.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setProgressBarDelayPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setProgressBarDelayPtr, NIL) } public final fun getProgressBarDelay(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getProgressBarDelayPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getProgressBarDelayPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setVisibleCharacters(amount: Int): Unit { TransferContext.writeArguments(LONG to amount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setVisibleCharactersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVisibleCharactersPtr, NIL) } public final fun getVisibleCharacters(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVisibleCharactersPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVisibleCharactersPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun getVisibleCharactersBehavior(): TextServer.VisibleCharactersBehavior { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVisibleCharactersBehaviorPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVisibleCharactersBehaviorPtr, LONG) return TextServer.VisibleCharactersBehavior.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setVisibleCharactersBehavior(behavior: TextServer.VisibleCharactersBehavior): Unit { TransferContext.writeArguments(LONG to behavior.id) - TransferContext.callMethod(rawPtr, MethodBindings.setVisibleCharactersBehaviorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVisibleCharactersBehaviorPtr, NIL) } public final fun setVisibleRatio(ratio: Float): Unit { TransferContext.writeArguments(DOUBLE to ratio.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVisibleRatioPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVisibleRatioPtr, NIL) } public final fun getVisibleRatio(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVisibleRatioPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVisibleRatioPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1198,7 +1197,7 @@ public open class RichTextLabel : Control() { */ public final fun getCharacterLine(character: Int): Int { TransferContext.writeArguments(LONG to character.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCharacterLinePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCharacterLinePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1210,7 +1209,7 @@ public open class RichTextLabel : Control() { */ public final fun getCharacterParagraph(character: Int): Int { TransferContext.writeArguments(LONG to character.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCharacterParagraphPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCharacterParagraphPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1219,18 +1218,18 @@ public open class RichTextLabel : Control() { */ public final fun getTotalCharacterCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTotalCharacterCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTotalCharacterCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setUseBbcode(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setUseBbcodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseBbcodePtr, NIL) } public final fun isUsingBbcode(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUsingBbcodePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUsingBbcodePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1241,7 +1240,7 @@ public open class RichTextLabel : Control() { */ public final fun getLineCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLineCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLineCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1252,7 +1251,7 @@ public open class RichTextLabel : Control() { */ public final fun getVisibleLineCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVisibleLineCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVisibleLineCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1262,7 +1261,7 @@ public open class RichTextLabel : Control() { */ public final fun getParagraphCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getParagraphCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getParagraphCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1274,7 +1273,7 @@ public open class RichTextLabel : Control() { */ public final fun getVisibleParagraphCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVisibleParagraphCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVisibleParagraphCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1285,7 +1284,7 @@ public open class RichTextLabel : Control() { */ public final fun getContentHeight(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getContentHeightPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getContentHeightPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1296,7 +1295,7 @@ public open class RichTextLabel : Control() { */ public final fun getContentWidth(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getContentWidthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getContentWidthPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1307,7 +1306,7 @@ public open class RichTextLabel : Control() { */ public final fun getLineOffset(line: Int): Float { TransferContext.writeArguments(LONG to line.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getLineOffsetPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLineOffsetPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1318,7 +1317,7 @@ public open class RichTextLabel : Control() { */ public final fun getParagraphOffset(paragraph: Int): Float { TransferContext.writeArguments(LONG to paragraph.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getParagraphOffsetPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getParagraphOffsetPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1328,18 +1327,18 @@ public open class RichTextLabel : Control() { public final fun parseExpressionsForValues(expressions: PackedStringArray): Dictionary { TransferContext.writeArguments(PACKED_STRING_ARRAY to expressions) - TransferContext.callMethod(rawPtr, MethodBindings.parseExpressionsForValuesPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.parseExpressionsForValuesPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } public final fun setEffects(effects: VariantArray): Unit { TransferContext.writeArguments(ARRAY to effects) - TransferContext.callMethod(rawPtr, MethodBindings.setEffectsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEffectsPtr, NIL) } public final fun getEffects(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEffectsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getEffectsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -1370,7 +1369,7 @@ public open class RichTextLabel : Control() { */ public final fun installEffect(effect: Any?): Unit { TransferContext.writeArguments(ANY to effect) - TransferContext.callMethod(rawPtr, MethodBindings.installEffectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.installEffectPtr, NIL) } /** @@ -1423,7 +1422,7 @@ public open class RichTextLabel : Control() { */ public final fun getMenu(): PopupMenu? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMenuPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getMenuPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as PopupMenu?) } @@ -1433,7 +1432,7 @@ public open class RichTextLabel : Control() { */ public final fun isMenuVisible(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isMenuVisiblePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isMenuVisiblePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1442,7 +1441,7 @@ public open class RichTextLabel : Control() { */ public final fun menuOption(option: Int): Unit { TransferContext.writeArguments(LONG to option.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.menuOptionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.menuOptionPtr, NIL) } public enum class ListType( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RigidBody2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RigidBody2D.kt index 5bd205b5c0..9ef20fc359 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RigidBody2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RigidBody2D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.Signal0 import godot.core.Signal1 @@ -24,7 +25,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -530,144 +530,144 @@ public open class RigidBody2D : PhysicsBody2D() { public final fun setMass(mass: Float): Unit { TransferContext.writeArguments(DOUBLE to mass.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMassPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMassPtr, NIL) } public final fun getMass(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMassPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMassPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun getInertia(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInertiaPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getInertiaPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setInertia(inertia: Float): Unit { TransferContext.writeArguments(DOUBLE to inertia.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setInertiaPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInertiaPtr, NIL) } public final fun setCenterOfMassMode(mode: CenterOfMassMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setCenterOfMassModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCenterOfMassModePtr, NIL) } public final fun getCenterOfMassMode(): CenterOfMassMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCenterOfMassModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCenterOfMassModePtr, LONG) return RigidBody2D.CenterOfMassMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setCenterOfMass(centerOfMass: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to centerOfMass) - TransferContext.callMethod(rawPtr, MethodBindings.setCenterOfMassPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCenterOfMassPtr, NIL) } public final fun getCenterOfMass(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCenterOfMassPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getCenterOfMassPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setPhysicsMaterialOverride(physicsMaterialOverride: PhysicsMaterial?): Unit { TransferContext.writeArguments(OBJECT to physicsMaterialOverride) - TransferContext.callMethod(rawPtr, MethodBindings.setPhysicsMaterialOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPhysicsMaterialOverridePtr, NIL) } public final fun getPhysicsMaterialOverride(): PhysicsMaterial? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPhysicsMaterialOverridePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getPhysicsMaterialOverridePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as PhysicsMaterial?) } public final fun setGravityScale(gravityScale: Float): Unit { TransferContext.writeArguments(DOUBLE to gravityScale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setGravityScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGravityScalePtr, NIL) } public final fun getGravityScale(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGravityScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getGravityScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setLinearDampMode(linearDampMode: DampMode): Unit { TransferContext.writeArguments(LONG to linearDampMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setLinearDampModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLinearDampModePtr, NIL) } public final fun getLinearDampMode(): DampMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLinearDampModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLinearDampModePtr, LONG) return RigidBody2D.DampMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setAngularDampMode(angularDampMode: DampMode): Unit { TransferContext.writeArguments(LONG to angularDampMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setAngularDampModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAngularDampModePtr, NIL) } public final fun getAngularDampMode(): DampMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAngularDampModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAngularDampModePtr, LONG) return RigidBody2D.DampMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setLinearDamp(linearDamp: Float): Unit { TransferContext.writeArguments(DOUBLE to linearDamp.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setLinearDampPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLinearDampPtr, NIL) } public final fun getLinearDamp(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLinearDampPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLinearDampPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAngularDamp(angularDamp: Float): Unit { TransferContext.writeArguments(DOUBLE to angularDamp.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAngularDampPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAngularDampPtr, NIL) } public final fun getAngularDamp(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAngularDampPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAngularDampPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setLinearVelocity(linearVelocity: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to linearVelocity) - TransferContext.callMethod(rawPtr, MethodBindings.setLinearVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLinearVelocityPtr, NIL) } public final fun getLinearVelocity(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLinearVelocityPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getLinearVelocityPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setAngularVelocity(angularVelocity: Float): Unit { TransferContext.writeArguments(DOUBLE to angularVelocity.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAngularVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAngularVelocityPtr, NIL) } public final fun getAngularVelocity(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAngularVelocityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAngularVelocityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setMaxContactsReported(amount: Int): Unit { TransferContext.writeArguments(LONG to amount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxContactsReportedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxContactsReportedPtr, NIL) } public final fun getMaxContactsReported(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxContactsReportedPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMaxContactsReportedPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -678,40 +678,40 @@ public open class RigidBody2D : PhysicsBody2D() { */ public final fun getContactCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getContactCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getContactCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setUseCustomIntegrator(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setUseCustomIntegratorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseCustomIntegratorPtr, NIL) } public final fun isUsingCustomIntegrator(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUsingCustomIntegratorPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUsingCustomIntegratorPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setContactMonitor(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setContactMonitorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setContactMonitorPtr, NIL) } public final fun isContactMonitorEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isContactMonitorEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isContactMonitorEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setContinuousCollisionDetectionMode(mode: CCDMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setContinuousCollisionDetectionModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setContinuousCollisionDetectionModePtr, NIL) } public final fun getContinuousCollisionDetectionMode(): CCDMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getContinuousCollisionDetectionModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getContinuousCollisionDetectionModePtr, LONG) return RigidBody2D.CCDMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -721,7 +721,7 @@ public open class RigidBody2D : PhysicsBody2D() { */ public final fun setAxisVelocity(axisVelocity: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to axisVelocity) - TransferContext.callMethod(rawPtr, MethodBindings.setAxisVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAxisVelocityPtr, NIL) } /** @@ -734,7 +734,7 @@ public open class RigidBody2D : PhysicsBody2D() { @JvmOverloads public final fun applyCentralImpulse(impulse: Vector2 = Vector2(0, 0)): Unit { TransferContext.writeArguments(VECTOR2 to impulse) - TransferContext.callMethod(rawPtr, MethodBindings.applyCentralImpulsePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.applyCentralImpulsePtr, NIL) } /** @@ -747,7 +747,7 @@ public open class RigidBody2D : PhysicsBody2D() { @JvmOverloads public final fun applyImpulse(impulse: Vector2, position: Vector2 = Vector2(0, 0)): Unit { TransferContext.writeArguments(VECTOR2 to impulse, VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.applyImpulsePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.applyImpulsePtr, NIL) } /** @@ -760,7 +760,7 @@ public open class RigidBody2D : PhysicsBody2D() { */ public final fun applyTorqueImpulse(torque: Float): Unit { TransferContext.writeArguments(DOUBLE to torque.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.applyTorqueImpulsePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.applyTorqueImpulsePtr, NIL) } /** @@ -770,7 +770,7 @@ public open class RigidBody2D : PhysicsBody2D() { */ public final fun applyCentralForce(force: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to force) - TransferContext.callMethod(rawPtr, MethodBindings.applyCentralForcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.applyCentralForcePtr, NIL) } /** @@ -781,7 +781,7 @@ public open class RigidBody2D : PhysicsBody2D() { @JvmOverloads public final fun applyForce(force: Vector2, position: Vector2 = Vector2(0, 0)): Unit { TransferContext.writeArguments(VECTOR2 to force, VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.applyForcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.applyForcePtr, NIL) } /** @@ -792,7 +792,7 @@ public open class RigidBody2D : PhysicsBody2D() { */ public final fun applyTorque(torque: Float): Unit { TransferContext.writeArguments(DOUBLE to torque.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.applyTorquePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.applyTorquePtr, NIL) } /** @@ -802,7 +802,7 @@ public open class RigidBody2D : PhysicsBody2D() { */ public final fun addConstantCentralForce(force: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to force) - TransferContext.callMethod(rawPtr, MethodBindings.addConstantCentralForcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addConstantCentralForcePtr, NIL) } /** @@ -813,7 +813,7 @@ public open class RigidBody2D : PhysicsBody2D() { @JvmOverloads public final fun addConstantForce(force: Vector2, position: Vector2 = Vector2(0, 0)): Unit { TransferContext.writeArguments(VECTOR2 to force, VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.addConstantForcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addConstantForcePtr, NIL) } /** @@ -822,83 +822,83 @@ public open class RigidBody2D : PhysicsBody2D() { */ public final fun addConstantTorque(torque: Float): Unit { TransferContext.writeArguments(DOUBLE to torque.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.addConstantTorquePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addConstantTorquePtr, NIL) } public final fun setConstantForce(force: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to force) - TransferContext.callMethod(rawPtr, MethodBindings.setConstantForcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setConstantForcePtr, NIL) } public final fun getConstantForce(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConstantForcePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getConstantForcePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setConstantTorque(torque: Float): Unit { TransferContext.writeArguments(DOUBLE to torque.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setConstantTorquePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setConstantTorquePtr, NIL) } public final fun getConstantTorque(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConstantTorquePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getConstantTorquePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSleeping(sleeping: Boolean): Unit { TransferContext.writeArguments(BOOL to sleeping) - TransferContext.callMethod(rawPtr, MethodBindings.setSleepingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSleepingPtr, NIL) } public final fun isSleeping(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSleepingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSleepingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCanSleep(ableToSleep: Boolean): Unit { TransferContext.writeArguments(BOOL to ableToSleep) - TransferContext.callMethod(rawPtr, MethodBindings.setCanSleepPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCanSleepPtr, NIL) } public final fun isAbleToSleep(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isAbleToSleepPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isAbleToSleepPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setLockRotationEnabled(lockRotation: Boolean): Unit { TransferContext.writeArguments(BOOL to lockRotation) - TransferContext.callMethod(rawPtr, MethodBindings.setLockRotationEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLockRotationEnabledPtr, NIL) } public final fun isLockRotationEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isLockRotationEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isLockRotationEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setFreezeEnabled(freezeMode: Boolean): Unit { TransferContext.writeArguments(BOOL to freezeMode) - TransferContext.callMethod(rawPtr, MethodBindings.setFreezeEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFreezeEnabledPtr, NIL) } public final fun isFreezeEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isFreezeEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isFreezeEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setFreezeMode(freezeMode: FreezeMode): Unit { TransferContext.writeArguments(LONG to freezeMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setFreezeModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFreezeModePtr, NIL) } public final fun getFreezeMode(): FreezeMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFreezeModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFreezeModePtr, LONG) return RigidBody2D.FreezeMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -911,7 +911,7 @@ public open class RigidBody2D : PhysicsBody2D() { */ public final fun getCollidingBodies(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollidingBodiesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getCollidingBodiesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RigidBody3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RigidBody3D.kt index 2ad87d985f..0e94d53c59 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RigidBody3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RigidBody3D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Basis import godot.core.RID import godot.core.Signal0 @@ -26,7 +27,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -637,78 +637,78 @@ public open class RigidBody3D : PhysicsBody3D() { public final fun setMass(mass: Float): Unit { TransferContext.writeArguments(DOUBLE to mass.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMassPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMassPtr, NIL) } public final fun getMass(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMassPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMassPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setInertia(inertia: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to inertia) - TransferContext.callMethod(rawPtr, MethodBindings.setInertiaPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInertiaPtr, NIL) } public final fun getInertia(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInertiaPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getInertiaPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setCenterOfMassMode(mode: CenterOfMassMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setCenterOfMassModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCenterOfMassModePtr, NIL) } public final fun getCenterOfMassMode(): CenterOfMassMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCenterOfMassModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCenterOfMassModePtr, LONG) return RigidBody3D.CenterOfMassMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setCenterOfMass(centerOfMass: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to centerOfMass) - TransferContext.callMethod(rawPtr, MethodBindings.setCenterOfMassPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCenterOfMassPtr, NIL) } public final fun getCenterOfMass(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCenterOfMassPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getCenterOfMassPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setPhysicsMaterialOverride(physicsMaterialOverride: PhysicsMaterial?): Unit { TransferContext.writeArguments(OBJECT to physicsMaterialOverride) - TransferContext.callMethod(rawPtr, MethodBindings.setPhysicsMaterialOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPhysicsMaterialOverridePtr, NIL) } public final fun getPhysicsMaterialOverride(): PhysicsMaterial? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPhysicsMaterialOverridePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getPhysicsMaterialOverridePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as PhysicsMaterial?) } public final fun setLinearVelocity(linearVelocity: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to linearVelocity) - TransferContext.callMethod(rawPtr, MethodBindings.setLinearVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLinearVelocityPtr, NIL) } public final fun getLinearVelocity(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLinearVelocityPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getLinearVelocityPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setAngularVelocity(angularVelocity: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to angularVelocity) - TransferContext.callMethod(rawPtr, MethodBindings.setAngularVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAngularVelocityPtr, NIL) } public final fun getAngularVelocity(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAngularVelocityPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getAngularVelocityPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -718,73 +718,73 @@ public open class RigidBody3D : PhysicsBody3D() { */ public final fun getInverseInertiaTensor(): Basis { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInverseInertiaTensorPtr, BASIS) + TransferContext.callMethod(ptr, MethodBindings.getInverseInertiaTensorPtr, BASIS) return (TransferContext.readReturnValue(BASIS) as Basis) } public final fun setGravityScale(gravityScale: Float): Unit { TransferContext.writeArguments(DOUBLE to gravityScale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setGravityScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGravityScalePtr, NIL) } public final fun getGravityScale(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGravityScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getGravityScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setLinearDampMode(linearDampMode: DampMode): Unit { TransferContext.writeArguments(LONG to linearDampMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setLinearDampModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLinearDampModePtr, NIL) } public final fun getLinearDampMode(): DampMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLinearDampModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLinearDampModePtr, LONG) return RigidBody3D.DampMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setAngularDampMode(angularDampMode: DampMode): Unit { TransferContext.writeArguments(LONG to angularDampMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setAngularDampModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAngularDampModePtr, NIL) } public final fun getAngularDampMode(): DampMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAngularDampModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAngularDampModePtr, LONG) return RigidBody3D.DampMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setLinearDamp(linearDamp: Float): Unit { TransferContext.writeArguments(DOUBLE to linearDamp.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setLinearDampPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLinearDampPtr, NIL) } public final fun getLinearDamp(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLinearDampPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLinearDampPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAngularDamp(angularDamp: Float): Unit { TransferContext.writeArguments(DOUBLE to angularDamp.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAngularDampPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAngularDampPtr, NIL) } public final fun getAngularDamp(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAngularDampPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAngularDampPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setMaxContactsReported(amount: Int): Unit { TransferContext.writeArguments(LONG to amount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxContactsReportedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxContactsReportedPtr, NIL) } public final fun getMaxContactsReported(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxContactsReportedPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMaxContactsReportedPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -795,40 +795,40 @@ public open class RigidBody3D : PhysicsBody3D() { */ public final fun getContactCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getContactCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getContactCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setUseCustomIntegrator(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setUseCustomIntegratorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseCustomIntegratorPtr, NIL) } public final fun isUsingCustomIntegrator(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUsingCustomIntegratorPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUsingCustomIntegratorPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setContactMonitor(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setContactMonitorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setContactMonitorPtr, NIL) } public final fun isContactMonitorEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isContactMonitorEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isContactMonitorEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setUseContinuousCollisionDetection(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setUseContinuousCollisionDetectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseContinuousCollisionDetectionPtr, NIL) } public final fun isUsingContinuousCollisionDetection(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUsingContinuousCollisionDetectionPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUsingContinuousCollisionDetectionPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -838,7 +838,7 @@ public open class RigidBody3D : PhysicsBody3D() { */ public final fun setAxisVelocity(axisVelocity: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to axisVelocity) - TransferContext.callMethod(rawPtr, MethodBindings.setAxisVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAxisVelocityPtr, NIL) } /** @@ -850,7 +850,7 @@ public open class RigidBody3D : PhysicsBody3D() { */ public final fun applyCentralImpulse(impulse: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to impulse) - TransferContext.callMethod(rawPtr, MethodBindings.applyCentralImpulsePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.applyCentralImpulsePtr, NIL) } /** @@ -863,7 +863,7 @@ public open class RigidBody3D : PhysicsBody3D() { @JvmOverloads public final fun applyImpulse(impulse: Vector3, position: Vector3 = Vector3(0, 0, 0)): Unit { TransferContext.writeArguments(VECTOR3 to impulse, VECTOR3 to position) - TransferContext.callMethod(rawPtr, MethodBindings.applyImpulsePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.applyImpulsePtr, NIL) } /** @@ -876,7 +876,7 @@ public open class RigidBody3D : PhysicsBody3D() { */ public final fun applyTorqueImpulse(impulse: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to impulse) - TransferContext.callMethod(rawPtr, MethodBindings.applyTorqueImpulsePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.applyTorqueImpulsePtr, NIL) } /** @@ -886,7 +886,7 @@ public open class RigidBody3D : PhysicsBody3D() { */ public final fun applyCentralForce(force: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to force) - TransferContext.callMethod(rawPtr, MethodBindings.applyCentralForcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.applyCentralForcePtr, NIL) } /** @@ -897,7 +897,7 @@ public open class RigidBody3D : PhysicsBody3D() { @JvmOverloads public final fun applyForce(force: Vector3, position: Vector3 = Vector3(0, 0, 0)): Unit { TransferContext.writeArguments(VECTOR3 to force, VECTOR3 to position) - TransferContext.callMethod(rawPtr, MethodBindings.applyForcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.applyForcePtr, NIL) } /** @@ -908,7 +908,7 @@ public open class RigidBody3D : PhysicsBody3D() { */ public final fun applyTorque(torque: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to torque) - TransferContext.callMethod(rawPtr, MethodBindings.applyTorquePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.applyTorquePtr, NIL) } /** @@ -918,7 +918,7 @@ public open class RigidBody3D : PhysicsBody3D() { */ public final fun addConstantCentralForce(force: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to force) - TransferContext.callMethod(rawPtr, MethodBindings.addConstantCentralForcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addConstantCentralForcePtr, NIL) } /** @@ -929,7 +929,7 @@ public open class RigidBody3D : PhysicsBody3D() { @JvmOverloads public final fun addConstantForce(force: Vector3, position: Vector3 = Vector3(0, 0, 0)): Unit { TransferContext.writeArguments(VECTOR3 to force, VECTOR3 to position) - TransferContext.callMethod(rawPtr, MethodBindings.addConstantForcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addConstantForcePtr, NIL) } /** @@ -938,83 +938,83 @@ public open class RigidBody3D : PhysicsBody3D() { */ public final fun addConstantTorque(torque: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to torque) - TransferContext.callMethod(rawPtr, MethodBindings.addConstantTorquePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addConstantTorquePtr, NIL) } public final fun setConstantForce(force: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to force) - TransferContext.callMethod(rawPtr, MethodBindings.setConstantForcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setConstantForcePtr, NIL) } public final fun getConstantForce(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConstantForcePtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getConstantForcePtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setConstantTorque(torque: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to torque) - TransferContext.callMethod(rawPtr, MethodBindings.setConstantTorquePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setConstantTorquePtr, NIL) } public final fun getConstantTorque(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConstantTorquePtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getConstantTorquePtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setSleeping(sleeping: Boolean): Unit { TransferContext.writeArguments(BOOL to sleeping) - TransferContext.callMethod(rawPtr, MethodBindings.setSleepingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSleepingPtr, NIL) } public final fun isSleeping(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSleepingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSleepingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCanSleep(ableToSleep: Boolean): Unit { TransferContext.writeArguments(BOOL to ableToSleep) - TransferContext.callMethod(rawPtr, MethodBindings.setCanSleepPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCanSleepPtr, NIL) } public final fun isAbleToSleep(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isAbleToSleepPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isAbleToSleepPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setLockRotationEnabled(lockRotation: Boolean): Unit { TransferContext.writeArguments(BOOL to lockRotation) - TransferContext.callMethod(rawPtr, MethodBindings.setLockRotationEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLockRotationEnabledPtr, NIL) } public final fun isLockRotationEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isLockRotationEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isLockRotationEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setFreezeEnabled(freezeMode: Boolean): Unit { TransferContext.writeArguments(BOOL to freezeMode) - TransferContext.callMethod(rawPtr, MethodBindings.setFreezeEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFreezeEnabledPtr, NIL) } public final fun isFreezeEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isFreezeEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isFreezeEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setFreezeMode(freezeMode: FreezeMode): Unit { TransferContext.writeArguments(LONG to freezeMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setFreezeModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFreezeModePtr, NIL) } public final fun getFreezeMode(): FreezeMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFreezeModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFreezeModePtr, LONG) return RigidBody3D.FreezeMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -1027,7 +1027,7 @@ public open class RigidBody3D : PhysicsBody3D() { */ public final fun getCollidingBodies(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollidingBodiesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getCollidingBodiesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/RootMotionView.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/RootMotionView.kt index b60a746a4d..3803ab5a87 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/RootMotionView.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/RootMotionView.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.NodePath import godot.core.TypeManager @@ -18,7 +19,6 @@ import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -126,56 +126,56 @@ public open class RootMotionView : VisualInstance3D() { public final fun setAnimationPath(path: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to path) - TransferContext.callMethod(rawPtr, MethodBindings.setAnimationPathPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAnimationPathPtr, NIL) } public final fun getAnimationPath(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAnimationPathPtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getAnimationPathPtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } public final fun setColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColorPtr, NIL) } public final fun getColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setCellSize(size: Float): Unit { TransferContext.writeArguments(DOUBLE to size.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setCellSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCellSizePtr, NIL) } public final fun getCellSize(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCellSizePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCellSizePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setRadius(size: Float): Unit { TransferContext.writeArguments(DOUBLE to size.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRadiusPtr, NIL) } public final fun getRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setZeroY(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setZeroYPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setZeroYPtr, NIL) } public final fun getZeroY(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getZeroYPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getZeroYPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneMultiplayer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneMultiplayer.kt index 6c8a5be1d6..41eb121eb0 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneMultiplayer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneMultiplayer.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.NodePath import godot.core.PackedByteArray @@ -23,7 +24,6 @@ import godot.core.VariantParser.NODE_PATH import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.PACKED_INT_32_ARRAY import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Int @@ -184,12 +184,12 @@ public open class SceneMultiplayer : MultiplayerAPI() { public final fun setRootPath(path: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to path) - TransferContext.callMethod(rawPtr, MethodBindings.setRootPathPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRootPathPtr, NIL) } public final fun getRootPath(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRootPathPtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getRootPathPtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } @@ -199,7 +199,7 @@ public open class SceneMultiplayer : MultiplayerAPI() { */ public final fun clear(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPtr, NIL) } /** @@ -208,7 +208,7 @@ public open class SceneMultiplayer : MultiplayerAPI() { */ public final fun disconnectPeer(id: Int): Unit { TransferContext.writeArguments(LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.disconnectPeerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.disconnectPeerPtr, NIL) } /** @@ -216,8 +216,7 @@ public open class SceneMultiplayer : MultiplayerAPI() { */ public final fun getAuthenticatingPeers(): PackedInt32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAuthenticatingPeersPtr, - PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getAuthenticatingPeersPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } @@ -229,7 +228,7 @@ public open class SceneMultiplayer : MultiplayerAPI() { */ public final fun sendAuth(id: Int, `data`: PackedByteArray): Error { TransferContext.writeArguments(LONG to id.toLong(), PACKED_BYTE_ARRAY to data) - TransferContext.callMethod(rawPtr, MethodBindings.sendAuthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.sendAuthPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -245,62 +244,62 @@ public open class SceneMultiplayer : MultiplayerAPI() { */ public final fun completeAuth(id: Int): Error { TransferContext.writeArguments(LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.completeAuthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.completeAuthPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setAuthCallback(callback: Callable): Unit { TransferContext.writeArguments(CALLABLE to callback) - TransferContext.callMethod(rawPtr, MethodBindings.setAuthCallbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAuthCallbackPtr, NIL) } public final fun getAuthCallback(): Callable { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAuthCallbackPtr, CALLABLE) + TransferContext.callMethod(ptr, MethodBindings.getAuthCallbackPtr, CALLABLE) return (TransferContext.readReturnValue(CALLABLE) as Callable) } public final fun setAuthTimeout(timeout: Double): Unit { TransferContext.writeArguments(DOUBLE to timeout) - TransferContext.callMethod(rawPtr, MethodBindings.setAuthTimeoutPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAuthTimeoutPtr, NIL) } public final fun getAuthTimeout(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAuthTimeoutPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAuthTimeoutPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun setRefuseNewConnections(refuse: Boolean): Unit { TransferContext.writeArguments(BOOL to refuse) - TransferContext.callMethod(rawPtr, MethodBindings.setRefuseNewConnectionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRefuseNewConnectionsPtr, NIL) } public final fun isRefusingNewConnections(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isRefusingNewConnectionsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isRefusingNewConnectionsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAllowObjectDecoding(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setAllowObjectDecodingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAllowObjectDecodingPtr, NIL) } public final fun isObjectDecodingAllowed(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isObjectDecodingAllowedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isObjectDecodingAllowedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setServerRelayEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setServerRelayEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setServerRelayEnabledPtr, NIL) } public final fun isServerRelayEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isServerRelayEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isServerRelayEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -316,30 +315,30 @@ public open class SceneMultiplayer : MultiplayerAPI() { channel: Int = 0, ): Error { TransferContext.writeArguments(PACKED_BYTE_ARRAY to bytes, LONG to id.toLong(), LONG to mode.id, LONG to channel.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.sendBytesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.sendBytesPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } public final fun getMaxSyncPacketSize(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxSyncPacketSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMaxSyncPacketSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setMaxSyncPacketSize(size: Int): Unit { TransferContext.writeArguments(LONG to size.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxSyncPacketSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxSyncPacketSizePtr, NIL) } public final fun getMaxDeltaPacketSize(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxDeltaPacketSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMaxDeltaPacketSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setMaxDeltaPacketSize(size: Int): Unit { TransferContext.writeArguments(LONG to size.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxDeltaPacketSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxDeltaPacketSizePtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneReplicationConfig.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneReplicationConfig.kt index c99ce6117b..6d4904d5d6 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneReplicationConfig.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneReplicationConfig.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.TypeManager import godot.core.VariantArray @@ -16,7 +17,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -35,7 +35,7 @@ public open class SceneReplicationConfig : Resource() { */ public final fun getProperties(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPropertiesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getPropertiesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -48,7 +48,7 @@ public open class SceneReplicationConfig : Resource() { @JvmOverloads public final fun addProperty(path: NodePath, index: Int = -1): Unit { TransferContext.writeArguments(NODE_PATH to path, LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addPropertyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addPropertyPtr, NIL) } /** @@ -56,7 +56,7 @@ public open class SceneReplicationConfig : Resource() { */ public final fun hasProperty(path: NodePath): Boolean { TransferContext.writeArguments(NODE_PATH to path) - TransferContext.callMethod(rawPtr, MethodBindings.hasPropertyPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasPropertyPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -65,7 +65,7 @@ public open class SceneReplicationConfig : Resource() { */ public final fun removeProperty(path: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to path) - TransferContext.callMethod(rawPtr, MethodBindings.removePropertyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removePropertyPtr, NIL) } /** @@ -73,7 +73,7 @@ public open class SceneReplicationConfig : Resource() { */ public final fun propertyGetIndex(path: NodePath): Int { TransferContext.writeArguments(NODE_PATH to path) - TransferContext.callMethod(rawPtr, MethodBindings.propertyGetIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.propertyGetIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -83,7 +83,7 @@ public open class SceneReplicationConfig : Resource() { */ public final fun propertyGetSpawn(path: NodePath): Boolean { TransferContext.writeArguments(NODE_PATH to path) - TransferContext.callMethod(rawPtr, MethodBindings.propertyGetSpawnPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.propertyGetSpawnPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -93,7 +93,7 @@ public open class SceneReplicationConfig : Resource() { */ public final fun propertySetSpawn(path: NodePath, enabled: Boolean): Unit { TransferContext.writeArguments(NODE_PATH to path, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.propertySetSpawnPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.propertySetSpawnPtr, NIL) } /** @@ -102,7 +102,7 @@ public open class SceneReplicationConfig : Resource() { */ public final fun propertyGetReplicationMode(path: NodePath): ReplicationMode { TransferContext.writeArguments(NODE_PATH to path) - TransferContext.callMethod(rawPtr, MethodBindings.propertyGetReplicationModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.propertyGetReplicationModePtr, LONG) return SceneReplicationConfig.ReplicationMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -112,7 +112,7 @@ public open class SceneReplicationConfig : Resource() { */ public final fun propertySetReplicationMode(path: NodePath, mode: ReplicationMode): Unit { TransferContext.writeArguments(NODE_PATH to path, LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.propertySetReplicationModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.propertySetReplicationModePtr, NIL) } /** @@ -121,7 +121,7 @@ public open class SceneReplicationConfig : Resource() { */ public final fun propertyGetSync(path: NodePath): Boolean { TransferContext.writeArguments(NODE_PATH to path) - TransferContext.callMethod(rawPtr, MethodBindings.propertyGetSyncPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.propertyGetSyncPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -131,7 +131,7 @@ public open class SceneReplicationConfig : Resource() { */ public final fun propertySetSync(path: NodePath, enabled: Boolean): Unit { TransferContext.writeArguments(NODE_PATH to path, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.propertySetSyncPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.propertySetSyncPtr, NIL) } /** @@ -140,7 +140,7 @@ public open class SceneReplicationConfig : Resource() { */ public final fun propertyGetWatch(path: NodePath): Boolean { TransferContext.writeArguments(NODE_PATH to path) - TransferContext.callMethod(rawPtr, MethodBindings.propertyGetWatchPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.propertyGetWatchPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -150,7 +150,7 @@ public open class SceneReplicationConfig : Resource() { */ public final fun propertySetWatch(path: NodePath, enabled: Boolean): Unit { TransferContext.writeArguments(NODE_PATH to path, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.propertySetWatchPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.propertySetWatchPtr, NIL) } public enum class ReplicationMode( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneState.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneState.kt index e67dbeb5eb..1b8ef6afdf 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneState.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneState.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.PackedStringArray import godot.core.StringName @@ -22,7 +23,6 @@ import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -52,7 +52,7 @@ public open class SceneState internal constructor() : RefCounted() { */ public final fun getNodeCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNodeCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getNodeCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -61,7 +61,7 @@ public open class SceneState internal constructor() : RefCounted() { */ public final fun getNodeType(idx: Int): StringName { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getNodeTypePtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getNodeTypePtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } @@ -70,7 +70,7 @@ public open class SceneState internal constructor() : RefCounted() { */ public final fun getNodeName(idx: Int): StringName { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getNodeNamePtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getNodeNamePtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } @@ -81,7 +81,7 @@ public open class SceneState internal constructor() : RefCounted() { @JvmOverloads public final fun getNodePath(idx: Int, forParent: Boolean = false): NodePath { TransferContext.writeArguments(LONG to idx.toLong(), BOOL to forParent) - TransferContext.callMethod(rawPtr, MethodBindings.getNodePathPtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getNodePathPtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } @@ -90,7 +90,7 @@ public open class SceneState internal constructor() : RefCounted() { */ public final fun getNodeOwnerPath(idx: Int): NodePath { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getNodeOwnerPathPtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getNodeOwnerPathPtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } @@ -99,7 +99,7 @@ public open class SceneState internal constructor() : RefCounted() { */ public final fun isNodeInstancePlaceholder(idx: Int): Boolean { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isNodeInstancePlaceholderPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isNodeInstancePlaceholderPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -109,7 +109,7 @@ public open class SceneState internal constructor() : RefCounted() { */ public final fun getNodeInstancePlaceholder(idx: Int): String { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getNodeInstancePlaceholderPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getNodeInstancePlaceholderPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -119,7 +119,7 @@ public open class SceneState internal constructor() : RefCounted() { */ public final fun getNodeInstance(idx: Int): PackedScene? { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getNodeInstancePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getNodeInstancePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as PackedScene?) } @@ -128,7 +128,7 @@ public open class SceneState internal constructor() : RefCounted() { */ public final fun getNodeGroups(idx: Int): PackedStringArray { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getNodeGroupsPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getNodeGroupsPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -140,7 +140,7 @@ public open class SceneState internal constructor() : RefCounted() { */ public final fun getNodeIndex(idx: Int): Int { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getNodeIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getNodeIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -151,7 +151,7 @@ public open class SceneState internal constructor() : RefCounted() { */ public final fun getNodePropertyCount(idx: Int): Int { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getNodePropertyCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getNodePropertyCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -160,7 +160,7 @@ public open class SceneState internal constructor() : RefCounted() { */ public final fun getNodePropertyName(idx: Int, propIdx: Int): StringName { TransferContext.writeArguments(LONG to idx.toLong(), LONG to propIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getNodePropertyNamePtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getNodePropertyNamePtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } @@ -169,7 +169,7 @@ public open class SceneState internal constructor() : RefCounted() { */ public final fun getNodePropertyValue(idx: Int, propIdx: Int): Any? { TransferContext.writeArguments(LONG to idx.toLong(), LONG to propIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getNodePropertyValuePtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getNodePropertyValuePtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -180,7 +180,7 @@ public open class SceneState internal constructor() : RefCounted() { */ public final fun getConnectionCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConnectionCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getConnectionCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -189,7 +189,7 @@ public open class SceneState internal constructor() : RefCounted() { */ public final fun getConnectionSource(idx: Int): NodePath { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getConnectionSourcePtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getConnectionSourcePtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } @@ -198,7 +198,7 @@ public open class SceneState internal constructor() : RefCounted() { */ public final fun getConnectionSignal(idx: Int): StringName { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getConnectionSignalPtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getConnectionSignalPtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } @@ -208,7 +208,7 @@ public open class SceneState internal constructor() : RefCounted() { */ public final fun getConnectionTarget(idx: Int): NodePath { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getConnectionTargetPtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getConnectionTargetPtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } @@ -217,7 +217,7 @@ public open class SceneState internal constructor() : RefCounted() { */ public final fun getConnectionMethod(idx: Int): StringName { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getConnectionMethodPtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getConnectionMethodPtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } @@ -226,7 +226,7 @@ public open class SceneState internal constructor() : RefCounted() { */ public final fun getConnectionFlags(idx: Int): Int { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getConnectionFlagsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getConnectionFlagsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -235,7 +235,7 @@ public open class SceneState internal constructor() : RefCounted() { */ public final fun getConnectionBinds(idx: Int): VariantArray { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getConnectionBindsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getConnectionBindsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -244,7 +244,7 @@ public open class SceneState internal constructor() : RefCounted() { */ public final fun getConnectionUnbinds(idx: Int): Int { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getConnectionUnbindsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getConnectionUnbindsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneTree.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneTree.kt index 3724c3fff7..21ebb09102 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneTree.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneTree.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.Signal0 import godot.core.Signal1 @@ -24,7 +25,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -248,7 +248,7 @@ public open class SceneTree : MainLoop() { public final fun getRoot(): Window? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRootPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getRootPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Window?) } @@ -257,84 +257,84 @@ public open class SceneTree : MainLoop() { */ public final fun hasGroup(name: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.hasGroupPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasGroupPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun isAutoAcceptQuit(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isAutoAcceptQuitPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isAutoAcceptQuitPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAutoAcceptQuit(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setAutoAcceptQuitPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutoAcceptQuitPtr, NIL) } public final fun isQuitOnGoBack(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isQuitOnGoBackPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isQuitOnGoBackPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setQuitOnGoBack(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setQuitOnGoBackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setQuitOnGoBackPtr, NIL) } public final fun setDebugCollisionsHint(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setDebugCollisionsHintPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDebugCollisionsHintPtr, NIL) } public final fun isDebuggingCollisionsHint(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDebuggingCollisionsHintPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDebuggingCollisionsHintPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDebugPathsHint(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setDebugPathsHintPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDebugPathsHintPtr, NIL) } public final fun isDebuggingPathsHint(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDebuggingPathsHintPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDebuggingPathsHintPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDebugNavigationHint(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setDebugNavigationHintPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDebugNavigationHintPtr, NIL) } public final fun isDebuggingNavigationHint(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDebuggingNavigationHintPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDebuggingNavigationHintPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setEditedSceneRoot(scene: Node?): Unit { TransferContext.writeArguments(OBJECT to scene) - TransferContext.callMethod(rawPtr, MethodBindings.setEditedSceneRootPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEditedSceneRootPtr, NIL) } public final fun getEditedSceneRoot(): Node? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEditedSceneRootPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getEditedSceneRootPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Node?) } public final fun setPause(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setPausePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPausePtr, NIL) } public final fun isPaused(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isPausedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPausedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -378,7 +378,7 @@ public open class SceneTree : MainLoop() { ignoreTimeScale: Boolean = false, ): SceneTreeTimer? { TransferContext.writeArguments(DOUBLE to timeSec, BOOL to processAlways, BOOL to processInPhysics, BOOL to ignoreTimeScale) - TransferContext.callMethod(rawPtr, MethodBindings.createTimerPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.createTimerPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as SceneTreeTimer?) } @@ -391,7 +391,7 @@ public open class SceneTree : MainLoop() { */ public final fun createTween(): Tween? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.createTweenPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.createTweenPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Tween?) } @@ -400,7 +400,7 @@ public open class SceneTree : MainLoop() { */ public final fun getProcessedTweens(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getProcessedTweensPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getProcessedTweensPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -409,7 +409,7 @@ public open class SceneTree : MainLoop() { */ public final fun getNodeCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNodeCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getNodeCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -419,7 +419,7 @@ public open class SceneTree : MainLoop() { */ public final fun getFrame(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFramePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFramePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -434,17 +434,17 @@ public open class SceneTree : MainLoop() { @JvmOverloads public final fun quit(exitCode: Int = 0): Unit { TransferContext.writeArguments(LONG to exitCode.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.quitPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.quitPtr, NIL) } public final fun setPhysicsInterpolationEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setPhysicsInterpolationEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPhysicsInterpolationEnabledPtr, NIL) } public final fun isPhysicsInterpolationEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isPhysicsInterpolationEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPhysicsInterpolationEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -454,7 +454,7 @@ public open class SceneTree : MainLoop() { */ public final fun queueDelete(obj: Object?): Unit { TransferContext.writeArguments(OBJECT to obj) - TransferContext.callMethod(rawPtr, MethodBindings.queueDeletePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.queueDeletePtr, NIL) } /** @@ -480,7 +480,7 @@ public open class SceneTree : MainLoop() { vararg __var_args: Any?, ): Unit { TransferContext.writeArguments(LONG to flags, STRING_NAME to group, STRING_NAME to method, *__var_args.map { ANY to it }.toTypedArray()) - TransferContext.callMethod(rawPtr, MethodBindings.callGroupFlagsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.callGroupFlagsPtr, NIL) } /** @@ -493,7 +493,7 @@ public open class SceneTree : MainLoop() { notification: Int, ): Unit { TransferContext.writeArguments(LONG to callFlags, STRING_NAME to group, LONG to notification.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.notifyGroupFlagsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.notifyGroupFlagsPtr, NIL) } /** @@ -511,7 +511,7 @@ public open class SceneTree : MainLoop() { `value`: Any?, ): Unit { TransferContext.writeArguments(LONG to callFlags, STRING_NAME to group, STRING to property, ANY to value) - TransferContext.callMethod(rawPtr, MethodBindings.setGroupFlagsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGroupFlagsPtr, NIL) } /** @@ -531,7 +531,7 @@ public open class SceneTree : MainLoop() { vararg __var_args: Any?, ): Unit { TransferContext.writeArguments(STRING_NAME to group, STRING_NAME to method, *__var_args.map { ANY to it }.toTypedArray()) - TransferContext.callMethod(rawPtr, MethodBindings.callGroupPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.callGroupPtr, NIL) } /** @@ -543,7 +543,7 @@ public open class SceneTree : MainLoop() { */ public final fun notifyGroup(group: StringName, notification: Int): Unit { TransferContext.writeArguments(STRING_NAME to group, LONG to notification.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.notifyGroupPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.notifyGroupPtr, NIL) } /** @@ -561,7 +561,7 @@ public open class SceneTree : MainLoop() { `value`: Any?, ): Unit { TransferContext.writeArguments(STRING_NAME to group, STRING to property, ANY to value) - TransferContext.callMethod(rawPtr, MethodBindings.setGroupPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGroupPtr, NIL) } /** @@ -570,7 +570,7 @@ public open class SceneTree : MainLoop() { */ public final fun getNodesInGroup(group: StringName): VariantArray { TransferContext.writeArguments(STRING_NAME to group) - TransferContext.callMethod(rawPtr, MethodBindings.getNodesInGroupPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getNodesInGroupPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -580,7 +580,7 @@ public open class SceneTree : MainLoop() { */ public final fun getFirstNodeInGroup(group: StringName): Node? { TransferContext.writeArguments(STRING_NAME to group) - TransferContext.callMethod(rawPtr, MethodBindings.getFirstNodeInGroupPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getFirstNodeInGroupPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Node?) } @@ -589,18 +589,18 @@ public open class SceneTree : MainLoop() { */ public final fun getNodeCountInGroup(group: StringName): Int { TransferContext.writeArguments(STRING_NAME to group) - TransferContext.callMethod(rawPtr, MethodBindings.getNodeCountInGroupPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getNodeCountInGroupPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setCurrentScene(childNode: Node?): Unit { TransferContext.writeArguments(OBJECT to childNode) - TransferContext.callMethod(rawPtr, MethodBindings.setCurrentScenePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCurrentScenePtr, NIL) } public final fun getCurrentScene(): Node? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCurrentScenePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getCurrentScenePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Node?) } @@ -613,7 +613,7 @@ public open class SceneTree : MainLoop() { */ public final fun changeSceneToFile(path: String): Error { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.changeSceneToFilePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.changeSceneToFilePtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -633,7 +633,7 @@ public open class SceneTree : MainLoop() { */ public final fun changeSceneToPacked(packedScene: PackedScene?): Error { TransferContext.writeArguments(OBJECT to packedScene) - TransferContext.callMethod(rawPtr, MethodBindings.changeSceneToPackedPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.changeSceneToPackedPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -646,7 +646,7 @@ public open class SceneTree : MainLoop() { */ public final fun reloadCurrentScene(): Error { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.reloadCurrentScenePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.reloadCurrentScenePtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -655,7 +655,7 @@ public open class SceneTree : MainLoop() { */ public final fun unloadCurrentScene(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.unloadCurrentScenePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.unloadCurrentScenePtr, NIL) } /** @@ -669,7 +669,7 @@ public open class SceneTree : MainLoop() { public final fun setMultiplayer(multiplayer: MultiplayerAPI?, rootPath: NodePath = NodePath("")): Unit { TransferContext.writeArguments(OBJECT to multiplayer, NODE_PATH to rootPath) - TransferContext.callMethod(rawPtr, MethodBindings.setMultiplayerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMultiplayerPtr, NIL) } /** @@ -680,18 +680,18 @@ public open class SceneTree : MainLoop() { @JvmOverloads public final fun getMultiplayer(forPath: NodePath = NodePath("")): MultiplayerAPI? { TransferContext.writeArguments(NODE_PATH to forPath) - TransferContext.callMethod(rawPtr, MethodBindings.getMultiplayerPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getMultiplayerPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as MultiplayerAPI?) } public final fun setMultiplayerPollEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setMultiplayerPollEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMultiplayerPollEnabledPtr, NIL) } public final fun isMultiplayerPollEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isMultiplayerPollEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isMultiplayerPollEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneTreeTimer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneTreeTimer.kt index 24ab38a1b3..30f4e5be70 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneTreeTimer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SceneTreeTimer.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Int import kotlin.Suppress @@ -72,12 +72,12 @@ public open class SceneTreeTimer internal constructor() : RefCounted() { public final fun setTimeLeft(time: Double): Unit { TransferContext.writeArguments(DOUBLE to time) - TransferContext.callMethod(rawPtr, MethodBindings.setTimeLeftPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTimeLeftPtr, NIL) } public final fun getTimeLeft(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTimeLeftPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTimeLeftPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Script.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Script.kt index 9c60941419..abe2af8adb 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Script.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Script.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.StringName import godot.core.TypeManager @@ -21,7 +22,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -63,7 +63,7 @@ public open class Script internal constructor() : Resource() { */ public final fun canInstantiate(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.canInstantiatePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.canInstantiatePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -72,7 +72,7 @@ public open class Script internal constructor() : Resource() { */ public final fun instanceHas(baseObject: Object?): Boolean { TransferContext.writeArguments(OBJECT to baseObject) - TransferContext.callMethod(rawPtr, MethodBindings.instanceHasPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.instanceHasPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -85,19 +85,19 @@ public open class Script internal constructor() : Resource() { */ public final fun hasSourceCode(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasSourceCodePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasSourceCodePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun getSourceCode(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSourceCodePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getSourceCodePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setSourceCode(source: String): Unit { TransferContext.writeArguments(STRING to source) - TransferContext.callMethod(rawPtr, MethodBindings.setSourceCodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSourceCodePtr, NIL) } /** @@ -106,7 +106,7 @@ public open class Script internal constructor() : Resource() { @JvmOverloads public final fun reload(keepState: Boolean = false): Error { TransferContext.writeArguments(BOOL to keepState) - TransferContext.callMethod(rawPtr, MethodBindings.reloadPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.reloadPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -115,7 +115,7 @@ public open class Script internal constructor() : Resource() { */ public final fun getBaseScript(): Script? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBaseScriptPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getBaseScriptPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Script?) } @@ -124,7 +124,7 @@ public open class Script internal constructor() : Resource() { */ public final fun getInstanceBaseType(): StringName { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInstanceBaseTypePtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getInstanceBaseTypePtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } @@ -151,7 +151,7 @@ public open class Script internal constructor() : Resource() { */ public final fun getGlobalName(): StringName { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGlobalNamePtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getGlobalNamePtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } @@ -160,7 +160,7 @@ public open class Script internal constructor() : Resource() { */ public final fun hasScriptSignal(signalName: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to signalName) - TransferContext.callMethod(rawPtr, MethodBindings.hasScriptSignalPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasScriptSignalPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -169,7 +169,7 @@ public open class Script internal constructor() : Resource() { */ public final fun getScriptPropertyList(): VariantArray> { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScriptPropertyListPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getScriptPropertyListPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray>) } @@ -178,7 +178,7 @@ public open class Script internal constructor() : Resource() { */ public final fun getScriptMethodList(): VariantArray> { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScriptMethodListPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getScriptMethodListPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray>) } @@ -187,7 +187,7 @@ public open class Script internal constructor() : Resource() { */ public final fun getScriptSignalList(): VariantArray> { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScriptSignalListPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getScriptSignalListPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray>) } @@ -196,7 +196,7 @@ public open class Script internal constructor() : Resource() { */ public final fun getScriptConstantMap(): Dictionary { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScriptConstantMapPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getScriptConstantMapPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -205,7 +205,7 @@ public open class Script internal constructor() : Resource() { */ public final fun getPropertyDefaultValue(`property`: StringName): Any? { TransferContext.writeArguments(STRING_NAME to property) - TransferContext.callMethod(rawPtr, MethodBindings.getPropertyDefaultValuePtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getPropertyDefaultValuePtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -214,7 +214,7 @@ public open class Script internal constructor() : Resource() { */ public final fun isTool(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isToolPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isToolPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -224,7 +224,7 @@ public open class Script internal constructor() : Resource() { */ public final fun isAbstract(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isAbstractPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isAbstractPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ScrollBar.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ScrollBar.kt index 24c421201b..c28d31ac7f 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ScrollBar.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ScrollBar.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -49,12 +49,12 @@ public open class ScrollBar internal constructor() : Range() { public final fun setCustomStep(step: Float): Unit { TransferContext.writeArguments(DOUBLE to step.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setCustomStepPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCustomStepPtr, NIL) } public final fun getCustomStep(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCustomStepPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCustomStepPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ScrollContainer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ScrollContainer.kt index b3a6338bf1..7b6fdae542 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ScrollContainer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ScrollContainer.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -15,7 +16,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -162,89 +162,89 @@ public open class ScrollContainer : Container() { public final fun setHScroll(`value`: Int): Unit { TransferContext.writeArguments(LONG to value.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setHScrollPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHScrollPtr, NIL) } public final fun getHScroll(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHScrollPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getHScrollPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setVScroll(`value`: Int): Unit { TransferContext.writeArguments(LONG to value.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setVScrollPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVScrollPtr, NIL) } public final fun getVScroll(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVScrollPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVScrollPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setHorizontalCustomStep(`value`: Float): Unit { TransferContext.writeArguments(DOUBLE to value.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setHorizontalCustomStepPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHorizontalCustomStepPtr, NIL) } public final fun getHorizontalCustomStep(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHorizontalCustomStepPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getHorizontalCustomStepPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVerticalCustomStep(`value`: Float): Unit { TransferContext.writeArguments(DOUBLE to value.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVerticalCustomStepPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVerticalCustomStepPtr, NIL) } public final fun getVerticalCustomStep(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVerticalCustomStepPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVerticalCustomStepPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setHorizontalScrollMode(enable: ScrollMode): Unit { TransferContext.writeArguments(LONG to enable.id) - TransferContext.callMethod(rawPtr, MethodBindings.setHorizontalScrollModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHorizontalScrollModePtr, NIL) } public final fun getHorizontalScrollMode(): ScrollMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHorizontalScrollModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getHorizontalScrollModePtr, LONG) return ScrollContainer.ScrollMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setVerticalScrollMode(enable: ScrollMode): Unit { TransferContext.writeArguments(LONG to enable.id) - TransferContext.callMethod(rawPtr, MethodBindings.setVerticalScrollModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVerticalScrollModePtr, NIL) } public final fun getVerticalScrollMode(): ScrollMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVerticalScrollModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVerticalScrollModePtr, LONG) return ScrollContainer.ScrollMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setDeadzone(deadzone: Int): Unit { TransferContext.writeArguments(LONG to deadzone.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setDeadzonePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDeadzonePtr, NIL) } public final fun getDeadzone(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDeadzonePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDeadzonePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setFollowFocus(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setFollowFocusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFollowFocusPtr, NIL) } public final fun isFollowingFocus(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isFollowingFocusPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isFollowingFocusPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -255,7 +255,7 @@ public open class ScrollContainer : Container() { */ public final fun getHScrollBar(): HScrollBar? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHScrollBarPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getHScrollBarPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as HScrollBar?) } @@ -266,7 +266,7 @@ public open class ScrollContainer : Container() { */ public final fun getVScrollBar(): VScrollBar? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVScrollBarPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getVScrollBarPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as VScrollBar?) } @@ -284,7 +284,7 @@ public open class ScrollContainer : Container() { */ public final fun ensureControlVisible(control: Control?): Unit { TransferContext.writeArguments(OBJECT to control) - TransferContext.callMethod(rawPtr, MethodBindings.ensureControlVisiblePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.ensureControlVisiblePtr, NIL) } public enum class ScrollMode( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SegmentShape2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SegmentShape2D.kt index 3f7968ec1e..6548c68bf6 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SegmentShape2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SegmentShape2D.kt @@ -9,12 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -104,23 +104,23 @@ public open class SegmentShape2D : Shape2D() { public final fun setA(a: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to a) - TransferContext.callMethod(rawPtr, MethodBindings.setAPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAPtr, NIL) } public final fun getA(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getAPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setB(b: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to b) - TransferContext.callMethod(rawPtr, MethodBindings.setBPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBPtr, NIL) } public final fun getB(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getBPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Semaphore.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Semaphore.kt index 5a067b538a..80fd05005c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Semaphore.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Semaphore.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -41,7 +41,7 @@ public open class Semaphore : RefCounted() { @JvmName("semaphoreWait") public final fun wait(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.waitPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.waitPtr, NIL) } /** @@ -50,7 +50,7 @@ public open class Semaphore : RefCounted() { */ public final fun tryWait(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.tryWaitPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.tryWaitPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -59,7 +59,7 @@ public open class Semaphore : RefCounted() { */ public final fun post(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.postPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.postPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SeparationRayShape2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SeparationRayShape2D.kt index d1e6eac145..f611967e7d 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SeparationRayShape2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SeparationRayShape2D.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -59,23 +59,23 @@ public open class SeparationRayShape2D : Shape2D() { public final fun setLength(length: Float): Unit { TransferContext.writeArguments(DOUBLE to length.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setLengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLengthPtr, NIL) } public final fun getLength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSlideOnSlope(active: Boolean): Unit { TransferContext.writeArguments(BOOL to active) - TransferContext.callMethod(rawPtr, MethodBindings.setSlideOnSlopePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSlideOnSlopePtr, NIL) } public final fun getSlideOnSlope(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSlideOnSlopePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getSlideOnSlopePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SeparationRayShape3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SeparationRayShape3D.kt index 19210afa1a..353ecfb974 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SeparationRayShape3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SeparationRayShape3D.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -59,23 +59,23 @@ public open class SeparationRayShape3D : Shape3D() { public final fun setLength(length: Float): Unit { TransferContext.writeArguments(DOUBLE to length.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setLengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLengthPtr, NIL) } public final fun getLength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSlideOnSlope(active: Boolean): Unit { TransferContext.writeArguments(BOOL to active) - TransferContext.callMethod(rawPtr, MethodBindings.setSlideOnSlopePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSlideOnSlopePtr, NIL) } public final fun getSlideOnSlope(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSlideOnSlopePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getSlideOnSlopePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Shader.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Shader.kt index 6400786e2e..c7cff61550 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Shader.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Shader.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.StringName import godot.core.TypeManager import godot.core.VariantArray @@ -18,7 +19,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -59,18 +59,18 @@ public open class Shader : Resource() { */ public final fun getMode(): Mode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getModePtr, LONG) return Shader.Mode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setCode(code: String): Unit { TransferContext.writeArguments(STRING to code) - TransferContext.callMethod(rawPtr, MethodBindings.setCodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCodePtr, NIL) } public final fun getCode(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCodePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getCodePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -87,7 +87,7 @@ public open class Shader : Resource() { index: Int = 0, ): Unit { TransferContext.writeArguments(STRING_NAME to name, OBJECT to texture, LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setDefaultTextureParameterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDefaultTextureParameterPtr, NIL) } /** @@ -98,7 +98,7 @@ public open class Shader : Resource() { @JvmOverloads public final fun getDefaultTextureParameter(name: StringName, index: Int = 0): Texture2D? { TransferContext.writeArguments(STRING_NAME to name, LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getDefaultTextureParameterPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getDefaultTextureParameterPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } @@ -112,7 +112,7 @@ public open class Shader : Resource() { @JvmOverloads public final fun getShaderUniformList(getGroups: Boolean = false): VariantArray { TransferContext.writeArguments(BOOL to getGroups) - TransferContext.callMethod(rawPtr, MethodBindings.getShaderUniformListPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getShaderUniformListPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ShaderInclude.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ShaderInclude.kt index 144e000ca8..416670ec93 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ShaderInclude.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ShaderInclude.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.String import kotlin.Suppress @@ -44,12 +44,12 @@ public open class ShaderInclude : Resource() { public final fun setCode(code: String): Unit { TransferContext.writeArguments(STRING to code) - TransferContext.callMethod(rawPtr, MethodBindings.setCodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCodePtr, NIL) } public final fun getCode(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCodePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getCodePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ShaderMaterial.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ShaderMaterial.kt index 07a812c0ff..6c7d4f28c4 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ShaderMaterial.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ShaderMaterial.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.StringName import godot.core.TypeManager import godot.core.VariantCaster.ANY @@ -14,7 +15,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Int import kotlin.Suppress @@ -50,12 +50,12 @@ public open class ShaderMaterial : Material() { public final fun setShader(shader: Shader?): Unit { TransferContext.writeArguments(OBJECT to shader) - TransferContext.callMethod(rawPtr, MethodBindings.setShaderPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShaderPtr, NIL) } public final fun getShader(): Shader? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getShaderPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getShaderPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Shader?) } @@ -71,7 +71,7 @@ public open class ShaderMaterial : Material() { */ public final fun setShaderParameter(`param`: StringName, `value`: Any?): Unit { TransferContext.writeArguments(STRING_NAME to param, ANY to value) - TransferContext.callMethod(rawPtr, MethodBindings.setShaderParameterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShaderParameterPtr, NIL) } /** @@ -79,7 +79,7 @@ public open class ShaderMaterial : Material() { */ public final fun getShaderParameter(`param`: StringName): Any? { TransferContext.writeArguments(STRING_NAME to param) - TransferContext.callMethod(rawPtr, MethodBindings.getShaderParameterPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getShaderParameterPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Shape2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Shape2D.kt index b3b98f0dae..5e602bb992 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Shape2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Shape2D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.PackedVector2Array import godot.core.RID @@ -25,7 +26,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -61,12 +61,12 @@ public open class Shape2D internal constructor() : Resource() { public final fun setCustomSolverBias(bias: Float): Unit { TransferContext.writeArguments(DOUBLE to bias.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setCustomSolverBiasPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCustomSolverBiasPtr, NIL) } public final fun getCustomSolverBias(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCustomSolverBiasPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCustomSolverBiasPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -81,7 +81,7 @@ public open class Shape2D internal constructor() : Resource() { shapeXform: Transform2D, ): Boolean { TransferContext.writeArguments(TRANSFORM2D to localXform, OBJECT to withShape, TRANSFORM2D to shapeXform) - TransferContext.callMethod(rawPtr, MethodBindings.collidePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.collidePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -100,7 +100,7 @@ public open class Shape2D internal constructor() : Resource() { shapeMotion: Vector2, ): Boolean { TransferContext.writeArguments(TRANSFORM2D to localXform, VECTOR2 to localMotion, OBJECT to withShape, TRANSFORM2D to shapeXform, VECTOR2 to shapeMotion) - TransferContext.callMethod(rawPtr, MethodBindings.collideWithMotionPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.collideWithMotionPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -121,8 +121,7 @@ public open class Shape2D internal constructor() : Resource() { shapeXform: Transform2D, ): PackedVector2Array { TransferContext.writeArguments(TRANSFORM2D to localXform, OBJECT to withShape, TRANSFORM2D to shapeXform) - TransferContext.callMethod(rawPtr, MethodBindings.collideAndGetContactsPtr, - PACKED_VECTOR2_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.collideAndGetContactsPtr, PACKED_VECTOR2_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR2_ARRAY) as PackedVector2Array) } @@ -148,7 +147,7 @@ public open class Shape2D internal constructor() : Resource() { shapeMotion: Vector2, ): PackedVector2Array { TransferContext.writeArguments(TRANSFORM2D to localXform, VECTOR2 to localMotion, OBJECT to withShape, TRANSFORM2D to shapeXform, VECTOR2 to shapeMotion) - TransferContext.callMethod(rawPtr, MethodBindings.collideWithMotionAndGetContactsPtr, + TransferContext.callMethod(ptr, MethodBindings.collideWithMotionAndGetContactsPtr, PACKED_VECTOR2_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR2_ARRAY) as PackedVector2Array) } @@ -159,7 +158,7 @@ public open class Shape2D internal constructor() : Resource() { */ public final fun draw(canvasItem: RID, color: Color): Unit { TransferContext.writeArguments(_RID to canvasItem, COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.drawPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawPtr, NIL) } /** @@ -167,7 +166,7 @@ public open class Shape2D internal constructor() : Resource() { */ public final fun getRect(): Rect2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRectPtr, RECT2) + TransferContext.callMethod(ptr, MethodBindings.getRectPtr, RECT2) return (TransferContext.readReturnValue(RECT2) as Rect2) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Shape3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Shape3D.kt index 3a6a80d3ce..499ed8ce21 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Shape3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Shape3D.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -63,23 +63,23 @@ public open class Shape3D internal constructor() : Resource() { public final fun setCustomSolverBias(bias: Float): Unit { TransferContext.writeArguments(DOUBLE to bias.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setCustomSolverBiasPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCustomSolverBiasPtr, NIL) } public final fun getCustomSolverBias(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCustomSolverBiasPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCustomSolverBiasPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setMargin(margin: Float): Unit { TransferContext.writeArguments(DOUBLE to margin.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMarginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMarginPtr, NIL) } public final fun getMargin(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMarginPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMarginPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -88,7 +88,7 @@ public open class Shape3D internal constructor() : Resource() { */ public final fun getDebugMesh(): ArrayMesh? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDebugMeshPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getDebugMeshPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as ArrayMesh?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ShapeCast2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ShapeCast2D.kt index 9f2b1f1150..f5713b4742 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ShapeCast2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ShapeCast2D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -20,7 +21,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -175,56 +175,56 @@ public open class ShapeCast2D : Node2D() { public final fun setEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnabledPtr, NIL) } public final fun isEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setShape(shape: Shape2D?): Unit { TransferContext.writeArguments(OBJECT to shape) - TransferContext.callMethod(rawPtr, MethodBindings.setShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShapePtr, NIL) } public final fun getShape(): Shape2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getShapePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getShapePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Shape2D?) } public final fun setTargetPosition(localPoint: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to localPoint) - TransferContext.callMethod(rawPtr, MethodBindings.setTargetPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTargetPositionPtr, NIL) } public final fun getTargetPosition(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTargetPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getTargetPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setMargin(margin: Float): Unit { TransferContext.writeArguments(DOUBLE to margin.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMarginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMarginPtr, NIL) } public final fun getMargin(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMarginPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMarginPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setMaxResults(maxResults: Int): Unit { TransferContext.writeArguments(LONG to maxResults.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxResultsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxResultsPtr, NIL) } public final fun getMaxResults(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxResultsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMaxResultsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -234,7 +234,7 @@ public open class ShapeCast2D : Node2D() { */ public final fun isColliding(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCollidingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCollidingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -245,7 +245,7 @@ public open class ShapeCast2D : Node2D() { */ public final fun getCollisionCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCollisionCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -257,7 +257,7 @@ public open class ShapeCast2D : Node2D() { */ public final fun forceShapecastUpdate(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.forceShapecastUpdatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.forceShapecastUpdatePtr, NIL) } /** @@ -266,7 +266,7 @@ public open class ShapeCast2D : Node2D() { */ public final fun getCollider(index: Int): Object? { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getColliderPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getColliderPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Object?) } @@ -275,7 +275,7 @@ public open class ShapeCast2D : Node2D() { */ public final fun getColliderRid(index: Int): RID { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getColliderRidPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getColliderRidPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -285,7 +285,7 @@ public open class ShapeCast2D : Node2D() { */ public final fun getColliderShape(index: Int): Int { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getColliderShapePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getColliderShapePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -296,7 +296,7 @@ public open class ShapeCast2D : Node2D() { */ public final fun getCollisionPoint(index: Int): Vector2 { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionPointPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getCollisionPointPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -305,7 +305,7 @@ public open class ShapeCast2D : Node2D() { */ public final fun getCollisionNormal(index: Int): Vector2 { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionNormalPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getCollisionNormalPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -315,7 +315,7 @@ public open class ShapeCast2D : Node2D() { */ public final fun getClosestCollisionSafeFraction(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getClosestCollisionSafeFractionPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getClosestCollisionSafeFractionPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -328,7 +328,7 @@ public open class ShapeCast2D : Node2D() { */ public final fun getClosestCollisionUnsafeFraction(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getClosestCollisionUnsafeFractionPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getClosestCollisionUnsafeFractionPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -337,7 +337,7 @@ public open class ShapeCast2D : Node2D() { */ public final fun addExceptionRid(rid: RID): Unit { TransferContext.writeArguments(_RID to rid) - TransferContext.callMethod(rawPtr, MethodBindings.addExceptionRidPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addExceptionRidPtr, NIL) } /** @@ -346,7 +346,7 @@ public open class ShapeCast2D : Node2D() { */ public final fun addException(node: CollisionObject2D?): Unit { TransferContext.writeArguments(OBJECT to node) - TransferContext.callMethod(rawPtr, MethodBindings.addExceptionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addExceptionPtr, NIL) } /** @@ -354,7 +354,7 @@ public open class ShapeCast2D : Node2D() { */ public final fun removeExceptionRid(rid: RID): Unit { TransferContext.writeArguments(_RID to rid) - TransferContext.callMethod(rawPtr, MethodBindings.removeExceptionRidPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeExceptionRidPtr, NIL) } /** @@ -363,7 +363,7 @@ public open class ShapeCast2D : Node2D() { */ public final fun removeException(node: CollisionObject2D?): Unit { TransferContext.writeArguments(OBJECT to node) - TransferContext.callMethod(rawPtr, MethodBindings.removeExceptionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeExceptionPtr, NIL) } /** @@ -371,17 +371,17 @@ public open class ShapeCast2D : Node2D() { */ public final fun clearExceptions(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearExceptionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearExceptionsPtr, NIL) } public final fun setCollisionMask(mask: Long): Unit { TransferContext.writeArguments(LONG to mask) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionMaskPtr, NIL) } public final fun getCollisionMask(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCollisionMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -391,7 +391,7 @@ public open class ShapeCast2D : Node2D() { */ public final fun setCollisionMaskValue(layerNumber: Int, `value`: Boolean): Unit { TransferContext.writeArguments(LONG to layerNumber.toLong(), BOOL to value) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionMaskValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionMaskValuePtr, NIL) } /** @@ -400,40 +400,40 @@ public open class ShapeCast2D : Node2D() { */ public final fun getCollisionMaskValue(layerNumber: Int): Boolean { TransferContext.writeArguments(LONG to layerNumber.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionMaskValuePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getCollisionMaskValuePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setExcludeParentBody(mask: Boolean): Unit { TransferContext.writeArguments(BOOL to mask) - TransferContext.callMethod(rawPtr, MethodBindings.setExcludeParentBodyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExcludeParentBodyPtr, NIL) } public final fun getExcludeParentBody(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getExcludeParentBodyPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getExcludeParentBodyPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCollideWithAreas(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setCollideWithAreasPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollideWithAreasPtr, NIL) } public final fun isCollideWithAreasEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCollideWithAreasEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCollideWithAreasEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCollideWithBodies(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setCollideWithBodiesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollideWithBodiesPtr, NIL) } public final fun isCollideWithBodiesEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCollideWithBodiesEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCollideWithBodiesEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ShapeCast3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ShapeCast3D.kt index 848d572c59..f7557ac697 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ShapeCast3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ShapeCast3D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.RID import godot.core.TypeManager @@ -22,7 +23,6 @@ import godot.core.VariantParser.VECTOR3 import godot.core.VariantParser._RID import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -227,61 +227,61 @@ public open class ShapeCast3D : Node3D() { */ public final fun resourceChanged(resource: Resource?): Unit { TransferContext.writeArguments(OBJECT to resource) - TransferContext.callMethod(rawPtr, MethodBindings.resourceChangedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.resourceChangedPtr, NIL) } public final fun setEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnabledPtr, NIL) } public final fun isEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setShape(shape: Shape3D?): Unit { TransferContext.writeArguments(OBJECT to shape) - TransferContext.callMethod(rawPtr, MethodBindings.setShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShapePtr, NIL) } public final fun getShape(): Shape3D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getShapePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getShapePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Shape3D?) } public final fun setTargetPosition(localPoint: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to localPoint) - TransferContext.callMethod(rawPtr, MethodBindings.setTargetPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTargetPositionPtr, NIL) } public final fun getTargetPosition(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTargetPositionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getTargetPositionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setMargin(margin: Float): Unit { TransferContext.writeArguments(DOUBLE to margin.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMarginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMarginPtr, NIL) } public final fun getMargin(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMarginPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMarginPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setMaxResults(maxResults: Int): Unit { TransferContext.writeArguments(LONG to maxResults.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxResultsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxResultsPtr, NIL) } public final fun getMaxResults(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxResultsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMaxResultsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -291,7 +291,7 @@ public open class ShapeCast3D : Node3D() { */ public final fun isColliding(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCollidingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCollidingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -302,7 +302,7 @@ public open class ShapeCast3D : Node3D() { */ public final fun getCollisionCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCollisionCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -314,7 +314,7 @@ public open class ShapeCast3D : Node3D() { */ public final fun forceShapecastUpdate(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.forceShapecastUpdatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.forceShapecastUpdatePtr, NIL) } /** @@ -323,7 +323,7 @@ public open class ShapeCast3D : Node3D() { */ public final fun getCollider(index: Int): Object? { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getColliderPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getColliderPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Object?) } @@ -332,7 +332,7 @@ public open class ShapeCast3D : Node3D() { */ public final fun getColliderRid(index: Int): RID { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getColliderRidPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getColliderRidPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -342,7 +342,7 @@ public open class ShapeCast3D : Node3D() { */ public final fun getColliderShape(index: Int): Int { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getColliderShapePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getColliderShapePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -353,7 +353,7 @@ public open class ShapeCast3D : Node3D() { */ public final fun getCollisionPoint(index: Int): Vector3 { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionPointPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getCollisionPointPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -362,7 +362,7 @@ public open class ShapeCast3D : Node3D() { */ public final fun getCollisionNormal(index: Int): Vector3 { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionNormalPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getCollisionNormalPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -372,7 +372,7 @@ public open class ShapeCast3D : Node3D() { */ public final fun getClosestCollisionSafeFraction(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getClosestCollisionSafeFractionPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getClosestCollisionSafeFractionPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -385,7 +385,7 @@ public open class ShapeCast3D : Node3D() { */ public final fun getClosestCollisionUnsafeFraction(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getClosestCollisionUnsafeFractionPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getClosestCollisionUnsafeFractionPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -394,7 +394,7 @@ public open class ShapeCast3D : Node3D() { */ public final fun addExceptionRid(rid: RID): Unit { TransferContext.writeArguments(_RID to rid) - TransferContext.callMethod(rawPtr, MethodBindings.addExceptionRidPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addExceptionRidPtr, NIL) } /** @@ -403,7 +403,7 @@ public open class ShapeCast3D : Node3D() { */ public final fun addException(node: CollisionObject3D?): Unit { TransferContext.writeArguments(OBJECT to node) - TransferContext.callMethod(rawPtr, MethodBindings.addExceptionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addExceptionPtr, NIL) } /** @@ -411,7 +411,7 @@ public open class ShapeCast3D : Node3D() { */ public final fun removeExceptionRid(rid: RID): Unit { TransferContext.writeArguments(_RID to rid) - TransferContext.callMethod(rawPtr, MethodBindings.removeExceptionRidPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeExceptionRidPtr, NIL) } /** @@ -420,7 +420,7 @@ public open class ShapeCast3D : Node3D() { */ public final fun removeException(node: CollisionObject3D?): Unit { TransferContext.writeArguments(OBJECT to node) - TransferContext.callMethod(rawPtr, MethodBindings.removeExceptionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeExceptionPtr, NIL) } /** @@ -428,17 +428,17 @@ public open class ShapeCast3D : Node3D() { */ public final fun clearExceptions(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearExceptionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearExceptionsPtr, NIL) } public final fun setCollisionMask(mask: Long): Unit { TransferContext.writeArguments(LONG to mask) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionMaskPtr, NIL) } public final fun getCollisionMask(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCollisionMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -448,7 +448,7 @@ public open class ShapeCast3D : Node3D() { */ public final fun setCollisionMaskValue(layerNumber: Int, `value`: Boolean): Unit { TransferContext.writeArguments(LONG to layerNumber.toLong(), BOOL to value) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionMaskValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionMaskValuePtr, NIL) } /** @@ -457,51 +457,51 @@ public open class ShapeCast3D : Node3D() { */ public final fun getCollisionMaskValue(layerNumber: Int): Boolean { TransferContext.writeArguments(LONG to layerNumber.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionMaskValuePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getCollisionMaskValuePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setExcludeParentBody(mask: Boolean): Unit { TransferContext.writeArguments(BOOL to mask) - TransferContext.callMethod(rawPtr, MethodBindings.setExcludeParentBodyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExcludeParentBodyPtr, NIL) } public final fun getExcludeParentBody(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getExcludeParentBodyPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getExcludeParentBodyPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCollideWithAreas(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setCollideWithAreasPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollideWithAreasPtr, NIL) } public final fun isCollideWithAreasEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCollideWithAreasEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCollideWithAreasEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCollideWithBodies(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setCollideWithBodiesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollideWithBodiesPtr, NIL) } public final fun isCollideWithBodiesEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCollideWithBodiesEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCollideWithBodiesEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDebugShapeCustomColor(debugShapeCustomColor: Color): Unit { TransferContext.writeArguments(COLOR to debugShapeCustomColor) - TransferContext.callMethod(rawPtr, MethodBindings.setDebugShapeCustomColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDebugShapeCustomColorPtr, NIL) } public final fun getDebugShapeCustomColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDebugShapeCustomColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getDebugShapeCustomColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Shortcut.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Shortcut.kt index c8e9bf5781..df215aa79e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Shortcut.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Shortcut.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY @@ -15,7 +16,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -51,12 +51,12 @@ public open class Shortcut : Resource() { public final fun setEvents(events: VariantArray): Unit { TransferContext.writeArguments(ARRAY to events) - TransferContext.callMethod(rawPtr, MethodBindings.setEventsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEventsPtr, NIL) } public final fun getEvents(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEventsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getEventsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -65,7 +65,7 @@ public open class Shortcut : Resource() { */ public final fun hasValidEvent(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasValidEventPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasValidEventPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -74,7 +74,7 @@ public open class Shortcut : Resource() { */ public final fun matchesEvent(event: InputEvent?): Boolean { TransferContext.writeArguments(OBJECT to event) - TransferContext.callMethod(rawPtr, MethodBindings.matchesEventPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.matchesEventPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -83,7 +83,7 @@ public open class Shortcut : Resource() { */ public final fun getAsText(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAsTextPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getAsTextPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Skeleton2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Skeleton2D.kt index bb89ef7721..3eb9e57ed1 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Skeleton2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Skeleton2D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.Signal0 import godot.core.Transform2D @@ -19,7 +20,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.TRANSFORM2D import godot.core.VariantParser._RID import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Float import kotlin.Int @@ -51,7 +51,7 @@ public open class Skeleton2D : Node2D() { */ public final fun getBoneCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBoneCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBoneCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -62,7 +62,7 @@ public open class Skeleton2D : Node2D() { */ public final fun getBone(idx: Int): Bone2D? { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBonePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getBonePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Bone2D?) } @@ -71,7 +71,7 @@ public open class Skeleton2D : Node2D() { */ public final fun getSkeleton(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSkeletonPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getSkeletonPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -80,7 +80,7 @@ public open class Skeleton2D : Node2D() { */ public final fun setModificationStack(modificationStack: SkeletonModificationStack2D?): Unit { TransferContext.writeArguments(OBJECT to modificationStack) - TransferContext.callMethod(rawPtr, MethodBindings.setModificationStackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setModificationStackPtr, NIL) } /** @@ -88,7 +88,7 @@ public open class Skeleton2D : Node2D() { */ public final fun getModificationStack(): SkeletonModificationStack2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getModificationStackPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getModificationStackPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as SkeletonModificationStack2D?) } @@ -98,7 +98,7 @@ public open class Skeleton2D : Node2D() { */ public final fun executeModifications(delta: Float, executionMode: Int): Unit { TransferContext.writeArguments(DOUBLE to delta.toDouble(), LONG to executionMode.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.executeModificationsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.executeModificationsPtr, NIL) } /** @@ -115,7 +115,7 @@ public open class Skeleton2D : Node2D() { persistent: Boolean, ): Unit { TransferContext.writeArguments(LONG to boneIdx.toLong(), TRANSFORM2D to overridePose, DOUBLE to strength.toDouble(), BOOL to persistent) - TransferContext.callMethod(rawPtr, MethodBindings.setBoneLocalPoseOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBoneLocalPoseOverridePtr, NIL) } /** @@ -123,7 +123,7 @@ public open class Skeleton2D : Node2D() { */ public final fun getBoneLocalPoseOverride(boneIdx: Int): Transform2D { TransferContext.writeArguments(LONG to boneIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBoneLocalPoseOverridePtr, TRANSFORM2D) + TransferContext.callMethod(ptr, MethodBindings.getBoneLocalPoseOverridePtr, TRANSFORM2D) return (TransferContext.readReturnValue(TRANSFORM2D) as Transform2D) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Skeleton3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Skeleton3D.kt index 7f73081f01..f27158b657 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Skeleton3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Skeleton3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedInt32Array import godot.core.Quaternion import godot.core.RID @@ -31,7 +32,6 @@ import godot.core.VariantParser.VECTOR3 import godot.core.VariantParser._RID import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -146,7 +146,7 @@ public open class Skeleton3D : Node3D() { */ public final fun addBone(name: String): Int { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.addBonePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.addBonePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -156,7 +156,7 @@ public open class Skeleton3D : Node3D() { */ public final fun findBone(name: String): Int { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.findBonePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.findBonePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -165,7 +165,7 @@ public open class Skeleton3D : Node3D() { */ public final fun getBoneName(boneIdx: Int): String { TransferContext.writeArguments(LONG to boneIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBoneNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getBoneNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -174,7 +174,7 @@ public open class Skeleton3D : Node3D() { */ public final fun setBoneName(boneIdx: Int, name: String): Unit { TransferContext.writeArguments(LONG to boneIdx.toLong(), STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.setBoneNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBoneNamePtr, NIL) } /** @@ -183,7 +183,7 @@ public open class Skeleton3D : Node3D() { */ public final fun getConcatenatedBoneNames(): StringName { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConcatenatedBoneNamesPtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getConcatenatedBoneNamesPtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } @@ -194,7 +194,7 @@ public open class Skeleton3D : Node3D() { */ public final fun getBoneParent(boneIdx: Int): Int { TransferContext.writeArguments(LONG to boneIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBoneParentPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBoneParentPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -205,7 +205,7 @@ public open class Skeleton3D : Node3D() { */ public final fun setBoneParent(boneIdx: Int, parentIdx: Int): Unit { TransferContext.writeArguments(LONG to boneIdx.toLong(), LONG to parentIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setBoneParentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBoneParentPtr, NIL) } /** @@ -213,7 +213,7 @@ public open class Skeleton3D : Node3D() { */ public final fun getBoneCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBoneCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBoneCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -225,7 +225,7 @@ public open class Skeleton3D : Node3D() { */ public final fun getVersion(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVersionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVersionPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -235,7 +235,7 @@ public open class Skeleton3D : Node3D() { */ public final fun unparentBoneAndRest(boneIdx: Int): Unit { TransferContext.writeArguments(LONG to boneIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.unparentBoneAndRestPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.unparentBoneAndRestPtr, NIL) } /** @@ -244,7 +244,7 @@ public open class Skeleton3D : Node3D() { */ public final fun getBoneChildren(boneIdx: Int): PackedInt32Array { TransferContext.writeArguments(LONG to boneIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBoneChildrenPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getBoneChildrenPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } @@ -255,7 +255,7 @@ public open class Skeleton3D : Node3D() { */ public final fun getParentlessBones(): PackedInt32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getParentlessBonesPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getParentlessBonesPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } @@ -264,7 +264,7 @@ public open class Skeleton3D : Node3D() { */ public final fun getBoneRest(boneIdx: Int): Transform3D { TransferContext.writeArguments(LONG to boneIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBoneRestPtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.getBoneRestPtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } @@ -273,7 +273,7 @@ public open class Skeleton3D : Node3D() { */ public final fun setBoneRest(boneIdx: Int, rest: Transform3D): Unit { TransferContext.writeArguments(LONG to boneIdx.toLong(), TRANSFORM3D to rest) - TransferContext.callMethod(rawPtr, MethodBindings.setBoneRestPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBoneRestPtr, NIL) } /** @@ -281,13 +281,13 @@ public open class Skeleton3D : Node3D() { */ public final fun getBoneGlobalRest(boneIdx: Int): Transform3D { TransferContext.writeArguments(LONG to boneIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBoneGlobalRestPtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.getBoneGlobalRestPtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } public final fun createSkinFromRestTransforms(): Skin? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.createSkinFromRestTransformsPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.createSkinFromRestTransformsPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Skin?) } @@ -296,7 +296,7 @@ public open class Skeleton3D : Node3D() { */ public final fun registerSkin(skin: Skin?): SkinReference? { TransferContext.writeArguments(OBJECT to skin) - TransferContext.callMethod(rawPtr, MethodBindings.registerSkinPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.registerSkinPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as SkinReference?) } @@ -305,7 +305,7 @@ public open class Skeleton3D : Node3D() { */ public final fun localizeRests(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.localizeRestsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.localizeRestsPtr, NIL) } /** @@ -313,7 +313,7 @@ public open class Skeleton3D : Node3D() { */ public final fun clearBones(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearBonesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearBonesPtr, NIL) } /** @@ -324,7 +324,7 @@ public open class Skeleton3D : Node3D() { */ public final fun getBonePose(boneIdx: Int): Transform3D { TransferContext.writeArguments(LONG to boneIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBonePosePtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.getBonePosePtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } @@ -333,7 +333,7 @@ public open class Skeleton3D : Node3D() { */ public final fun setBonePose(boneIdx: Int, pose: Transform3D): Unit { TransferContext.writeArguments(LONG to boneIdx.toLong(), TRANSFORM3D to pose) - TransferContext.callMethod(rawPtr, MethodBindings.setBonePosePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBonePosePtr, NIL) } /** @@ -342,7 +342,7 @@ public open class Skeleton3D : Node3D() { */ public final fun setBonePosePosition(boneIdx: Int, position: Vector3): Unit { TransferContext.writeArguments(LONG to boneIdx.toLong(), VECTOR3 to position) - TransferContext.callMethod(rawPtr, MethodBindings.setBonePosePositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBonePosePositionPtr, NIL) } /** @@ -352,7 +352,7 @@ public open class Skeleton3D : Node3D() { */ public final fun setBonePoseRotation(boneIdx: Int, rotation: Quaternion): Unit { TransferContext.writeArguments(LONG to boneIdx.toLong(), QUATERNION to rotation) - TransferContext.callMethod(rawPtr, MethodBindings.setBonePoseRotationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBonePoseRotationPtr, NIL) } /** @@ -360,7 +360,7 @@ public open class Skeleton3D : Node3D() { */ public final fun setBonePoseScale(boneIdx: Int, scale: Vector3): Unit { TransferContext.writeArguments(LONG to boneIdx.toLong(), VECTOR3 to scale) - TransferContext.callMethod(rawPtr, MethodBindings.setBonePoseScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBonePoseScalePtr, NIL) } /** @@ -369,7 +369,7 @@ public open class Skeleton3D : Node3D() { */ public final fun getBonePosePosition(boneIdx: Int): Vector3 { TransferContext.writeArguments(LONG to boneIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBonePosePositionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getBonePosePositionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -379,7 +379,7 @@ public open class Skeleton3D : Node3D() { */ public final fun getBonePoseRotation(boneIdx: Int): Quaternion { TransferContext.writeArguments(LONG to boneIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBonePoseRotationPtr, QUATERNION) + TransferContext.callMethod(ptr, MethodBindings.getBonePoseRotationPtr, QUATERNION) return (TransferContext.readReturnValue(QUATERNION) as Quaternion) } @@ -388,7 +388,7 @@ public open class Skeleton3D : Node3D() { */ public final fun getBonePoseScale(boneIdx: Int): Vector3 { TransferContext.writeArguments(LONG to boneIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBonePoseScalePtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getBonePoseScalePtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -397,7 +397,7 @@ public open class Skeleton3D : Node3D() { */ public final fun resetBonePose(boneIdx: Int): Unit { TransferContext.writeArguments(LONG to boneIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.resetBonePosePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.resetBonePosePtr, NIL) } /** @@ -405,7 +405,7 @@ public open class Skeleton3D : Node3D() { */ public final fun resetBonePoses(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.resetBonePosesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.resetBonePosesPtr, NIL) } /** @@ -413,7 +413,7 @@ public open class Skeleton3D : Node3D() { */ public final fun isBoneEnabled(boneIdx: Int): Boolean { TransferContext.writeArguments(LONG to boneIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isBoneEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isBoneEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -423,7 +423,7 @@ public open class Skeleton3D : Node3D() { @JvmOverloads public final fun setBoneEnabled(boneIdx: Int, enabled: Boolean = true): Unit { TransferContext.writeArguments(LONG to boneIdx.toLong(), BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setBoneEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBoneEnabledPtr, NIL) } /** @@ -435,7 +435,7 @@ public open class Skeleton3D : Node3D() { */ public final fun getBoneGlobalPose(boneIdx: Int): Transform3D { TransferContext.writeArguments(LONG to boneIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBoneGlobalPosePtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.getBoneGlobalPosePtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } @@ -447,7 +447,7 @@ public open class Skeleton3D : Node3D() { */ public final fun setBoneGlobalPose(boneIdx: Int, pose: Transform3D): Unit { TransferContext.writeArguments(LONG to boneIdx.toLong(), TRANSFORM3D to pose) - TransferContext.callMethod(rawPtr, MethodBindings.setBoneGlobalPosePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBoneGlobalPosePtr, NIL) } /** @@ -455,7 +455,7 @@ public open class Skeleton3D : Node3D() { */ public final fun forceUpdateAllBoneTransforms(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.forceUpdateAllBoneTransformsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.forceUpdateAllBoneTransformsPtr, NIL) } /** @@ -463,39 +463,39 @@ public open class Skeleton3D : Node3D() { */ public final fun forceUpdateBoneChildTransform(boneIdx: Int): Unit { TransferContext.writeArguments(LONG to boneIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.forceUpdateBoneChildTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.forceUpdateBoneChildTransformPtr, NIL) } public final fun setMotionScale(motionScale: Float): Unit { TransferContext.writeArguments(DOUBLE to motionScale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMotionScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMotionScalePtr, NIL) } public final fun getMotionScale(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMotionScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMotionScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setShowRestOnly(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setShowRestOnlyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShowRestOnlyPtr, NIL) } public final fun isShowRestOnly(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isShowRestOnlyPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isShowRestOnlyPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setModifierCallbackModeProcess(mode: ModifierCallbackModeProcess): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setModifierCallbackModeProcessPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setModifierCallbackModeProcessPtr, NIL) } public final fun getModifierCallbackModeProcess(): ModifierCallbackModeProcess { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getModifierCallbackModeProcessPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getModifierCallbackModeProcessPtr, LONG) return Skeleton3D.ModifierCallbackModeProcess.from(TransferContext.readReturnValue(LONG) as Long) } @@ -504,7 +504,7 @@ public open class Skeleton3D : Node3D() { */ public final fun clearBonesGlobalPoseOverride(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearBonesGlobalPoseOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearBonesGlobalPoseOverridePtr, NIL) } /** @@ -523,7 +523,7 @@ public open class Skeleton3D : Node3D() { persistent: Boolean = false, ): Unit { TransferContext.writeArguments(LONG to boneIdx.toLong(), TRANSFORM3D to pose, DOUBLE to amount.toDouble(), BOOL to persistent) - TransferContext.callMethod(rawPtr, MethodBindings.setBoneGlobalPoseOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBoneGlobalPoseOverridePtr, NIL) } /** @@ -531,7 +531,7 @@ public open class Skeleton3D : Node3D() { */ public final fun getBoneGlobalPoseOverride(boneIdx: Int): Transform3D { TransferContext.writeArguments(LONG to boneIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBoneGlobalPoseOverridePtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.getBoneGlobalPoseOverridePtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } @@ -542,18 +542,18 @@ public open class Skeleton3D : Node3D() { */ public final fun getBoneGlobalPoseNoOverride(boneIdx: Int): Transform3D { TransferContext.writeArguments(LONG to boneIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBoneGlobalPoseNoOverridePtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.getBoneGlobalPoseNoOverridePtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } public final fun setAnimatePhysicalBones(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setAnimatePhysicalBonesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAnimatePhysicalBonesPtr, NIL) } public final fun getAnimatePhysicalBones(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAnimatePhysicalBonesPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getAnimatePhysicalBonesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -562,7 +562,7 @@ public open class Skeleton3D : Node3D() { */ public final fun physicalBonesStopSimulation(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.physicalBonesStopSimulationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.physicalBonesStopSimulationPtr, NIL) } /** @@ -575,7 +575,7 @@ public open class Skeleton3D : Node3D() { public final fun physicalBonesStartSimulation(bones: VariantArray = godot.core.variantArrayOf()): Unit { TransferContext.writeArguments(ARRAY to bones) - TransferContext.callMethod(rawPtr, MethodBindings.physicalBonesStartSimulationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.physicalBonesStartSimulationPtr, NIL) } /** @@ -584,7 +584,7 @@ public open class Skeleton3D : Node3D() { */ public final fun physicalBonesAddCollisionException(exception: RID): Unit { TransferContext.writeArguments(_RID to exception) - TransferContext.callMethod(rawPtr, MethodBindings.physicalBonesAddCollisionExceptionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.physicalBonesAddCollisionExceptionPtr, NIL) } /** @@ -593,7 +593,7 @@ public open class Skeleton3D : Node3D() { */ public final fun physicalBonesRemoveCollisionException(exception: RID): Unit { TransferContext.writeArguments(_RID to exception) - TransferContext.callMethod(rawPtr, MethodBindings.physicalBonesRemoveCollisionExceptionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.physicalBonesRemoveCollisionExceptionPtr, NIL) } public enum class ModifierCallbackModeProcess( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonIK3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonIK3D.kt index 16e9aab656..0419215a16 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonIK3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonIK3D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.StringName import godot.core.Transform3D @@ -24,7 +25,6 @@ import godot.core.VariantParser.TRANSFORM3D import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -251,78 +251,78 @@ public open class SkeletonIK3D : SkeletonModifier3D() { public final fun setRootBone(rootBone: StringName): Unit { TransferContext.writeArguments(STRING_NAME to rootBone) - TransferContext.callMethod(rawPtr, MethodBindings.setRootBonePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRootBonePtr, NIL) } public final fun getRootBone(): StringName { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRootBonePtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getRootBonePtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } public final fun setTipBone(tipBone: StringName): Unit { TransferContext.writeArguments(STRING_NAME to tipBone) - TransferContext.callMethod(rawPtr, MethodBindings.setTipBonePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTipBonePtr, NIL) } public final fun getTipBone(): StringName { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTipBonePtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getTipBonePtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } public final fun setTargetTransform(target: Transform3D): Unit { TransferContext.writeArguments(TRANSFORM3D to target) - TransferContext.callMethod(rawPtr, MethodBindings.setTargetTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTargetTransformPtr, NIL) } public final fun getTargetTransform(): Transform3D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTargetTransformPtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.getTargetTransformPtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } public final fun setTargetNode(node: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to node) - TransferContext.callMethod(rawPtr, MethodBindings.setTargetNodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTargetNodePtr, NIL) } public final fun getTargetNode(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTargetNodePtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getTargetNodePtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } public final fun setOverrideTipBasis(`override`: Boolean): Unit { TransferContext.writeArguments(BOOL to override) - TransferContext.callMethod(rawPtr, MethodBindings.setOverrideTipBasisPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOverrideTipBasisPtr, NIL) } public final fun isOverrideTipBasis(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isOverrideTipBasisPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isOverrideTipBasisPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setUseMagnet(use: Boolean): Unit { TransferContext.writeArguments(BOOL to use) - TransferContext.callMethod(rawPtr, MethodBindings.setUseMagnetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseMagnetPtr, NIL) } public final fun isUsingMagnet(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUsingMagnetPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUsingMagnetPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setMagnetPosition(localPosition: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to localPosition) - TransferContext.callMethod(rawPtr, MethodBindings.setMagnetPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMagnetPositionPtr, NIL) } public final fun getMagnetPosition(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMagnetPositionPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getMagnetPositionPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -333,7 +333,7 @@ public open class SkeletonIK3D : SkeletonModifier3D() { */ public final fun getParentSkeleton(): Skeleton3D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getParentSkeletonPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getParentSkeletonPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Skeleton3D?) } @@ -344,29 +344,29 @@ public open class SkeletonIK3D : SkeletonModifier3D() { */ public final fun isRunning(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isRunningPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isRunningPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setMinDistance(minDistance: Float): Unit { TransferContext.writeArguments(DOUBLE to minDistance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMinDistancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMinDistancePtr, NIL) } public final fun getMinDistance(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMinDistancePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMinDistancePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setMaxIterations(iterations: Int): Unit { TransferContext.writeArguments(LONG to iterations.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxIterationsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxIterationsPtr, NIL) } public final fun getMaxIterations(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxIterationsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMaxIterationsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -378,7 +378,7 @@ public open class SkeletonIK3D : SkeletonModifier3D() { @JvmOverloads public final fun start(oneTime: Boolean = false): Unit { TransferContext.writeArguments(BOOL to oneTime) - TransferContext.callMethod(rawPtr, MethodBindings.startPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.startPtr, NIL) } /** @@ -387,17 +387,17 @@ public open class SkeletonIK3D : SkeletonModifier3D() { */ public final fun stop(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.stopPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.stopPtr, NIL) } public final fun setInterpolation(interpolation: Float): Unit { TransferContext.writeArguments(DOUBLE to interpolation.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setInterpolationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInterpolationPtr, NIL) } public final fun getInterpolation(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInterpolationPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getInterpolationPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModification2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModification2D.kt index 9b9d8a2997..7dfcfef1c8 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModification2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModification2D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE @@ -14,7 +15,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -84,12 +84,12 @@ public open class SkeletonModification2D : Resource() { public final fun setEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnabledPtr, NIL) } public final fun getEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -99,7 +99,7 @@ public open class SkeletonModification2D : Resource() { */ public final fun getModificationStack(): SkeletonModificationStack2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getModificationStackPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getModificationStackPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as SkeletonModificationStack2D?) } @@ -110,7 +110,7 @@ public open class SkeletonModification2D : Resource() { */ public final fun setIsSetup(isSetup: Boolean): Unit { TransferContext.writeArguments(BOOL to isSetup) - TransferContext.callMethod(rawPtr, MethodBindings.setIsSetupPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIsSetupPtr, NIL) } /** @@ -118,18 +118,18 @@ public open class SkeletonModification2D : Resource() { */ public final fun getIsSetup(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getIsSetupPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getIsSetupPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setExecutionMode(executionMode: Int): Unit { TransferContext.writeArguments(LONG to executionMode.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setExecutionModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExecutionModePtr, NIL) } public final fun getExecutionMode(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getExecutionModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getExecutionModePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -144,7 +144,7 @@ public open class SkeletonModification2D : Resource() { invert: Boolean, ): Float { TransferContext.writeArguments(DOUBLE to angle.toDouble(), DOUBLE to min.toDouble(), DOUBLE to max.toDouble(), BOOL to invert) - TransferContext.callMethod(rawPtr, MethodBindings.clampAnglePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.clampAnglePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -154,7 +154,7 @@ public open class SkeletonModification2D : Resource() { */ public final fun setEditorDrawGizmo(drawGizmo: Boolean): Unit { TransferContext.writeArguments(BOOL to drawGizmo) - TransferContext.callMethod(rawPtr, MethodBindings.setEditorDrawGizmoPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEditorDrawGizmoPtr, NIL) } /** @@ -163,7 +163,7 @@ public open class SkeletonModification2D : Resource() { */ public final fun getEditorDrawGizmo(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEditorDrawGizmoPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getEditorDrawGizmoPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DCCDIK.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DCCDIK.kt index e0e1b49a91..ea04c9597a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DCCDIK.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DCCDIK.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -15,7 +16,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -82,34 +82,34 @@ public open class SkeletonModification2DCCDIK : SkeletonModification2D() { public final fun setTargetNode(targetNodepath: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to targetNodepath) - TransferContext.callMethod(rawPtr, MethodBindings.setTargetNodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTargetNodePtr, NIL) } public final fun getTargetNode(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTargetNodePtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getTargetNodePtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } public final fun setTipNode(tipNodepath: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to tipNodepath) - TransferContext.callMethod(rawPtr, MethodBindings.setTipNodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTipNodePtr, NIL) } public final fun getTipNode(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTipNodePtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getTipNodePtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } public final fun setCcdikDataChainLength(length: Int): Unit { TransferContext.writeArguments(LONG to length.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setCcdikDataChainLengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCcdikDataChainLengthPtr, NIL) } public final fun getCcdikDataChainLength(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCcdikDataChainLengthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCcdikDataChainLengthPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -118,7 +118,7 @@ public open class SkeletonModification2DCCDIK : SkeletonModification2D() { */ public final fun setCcdikJointBone2dNode(jointIdx: Int, bone2dNodepath: NodePath): Unit { TransferContext.writeArguments(LONG to jointIdx.toLong(), NODE_PATH to bone2dNodepath) - TransferContext.callMethod(rawPtr, MethodBindings.setCcdikJointBone2dNodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCcdikJointBone2dNodePtr, NIL) } /** @@ -126,7 +126,7 @@ public open class SkeletonModification2DCCDIK : SkeletonModification2D() { */ public final fun getCcdikJointBone2dNode(jointIdx: Int): NodePath { TransferContext.writeArguments(LONG to jointIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCcdikJointBone2dNodePtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getCcdikJointBone2dNodePtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } @@ -136,7 +136,7 @@ public open class SkeletonModification2DCCDIK : SkeletonModification2D() { */ public final fun setCcdikJointBoneIndex(jointIdx: Int, boneIdx: Int): Unit { TransferContext.writeArguments(LONG to jointIdx.toLong(), LONG to boneIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setCcdikJointBoneIndexPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCcdikJointBoneIndexPtr, NIL) } /** @@ -144,7 +144,7 @@ public open class SkeletonModification2DCCDIK : SkeletonModification2D() { */ public final fun getCcdikJointBoneIndex(jointIdx: Int): Int { TransferContext.writeArguments(LONG to jointIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCcdikJointBoneIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCcdikJointBoneIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -154,7 +154,7 @@ public open class SkeletonModification2DCCDIK : SkeletonModification2D() { */ public final fun setCcdikJointRotateFromJoint(jointIdx: Int, rotateFromJoint: Boolean): Unit { TransferContext.writeArguments(LONG to jointIdx.toLong(), BOOL to rotateFromJoint) - TransferContext.callMethod(rawPtr, MethodBindings.setCcdikJointRotateFromJointPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCcdikJointRotateFromJointPtr, NIL) } /** @@ -163,7 +163,7 @@ public open class SkeletonModification2DCCDIK : SkeletonModification2D() { */ public final fun getCcdikJointRotateFromJoint(jointIdx: Int): Boolean { TransferContext.writeArguments(LONG to jointIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCcdikJointRotateFromJointPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getCcdikJointRotateFromJointPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -173,7 +173,7 @@ public open class SkeletonModification2DCCDIK : SkeletonModification2D() { */ public final fun setCcdikJointEnableConstraint(jointIdx: Int, enableConstraint: Boolean): Unit { TransferContext.writeArguments(LONG to jointIdx.toLong(), BOOL to enableConstraint) - TransferContext.callMethod(rawPtr, MethodBindings.setCcdikJointEnableConstraintPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCcdikJointEnableConstraintPtr, NIL) } /** @@ -181,7 +181,7 @@ public open class SkeletonModification2DCCDIK : SkeletonModification2D() { */ public final fun getCcdikJointEnableConstraint(jointIdx: Int): Boolean { TransferContext.writeArguments(LONG to jointIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCcdikJointEnableConstraintPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getCcdikJointEnableConstraintPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -190,7 +190,7 @@ public open class SkeletonModification2DCCDIK : SkeletonModification2D() { */ public final fun setCcdikJointConstraintAngleMin(jointIdx: Int, angleMin: Float): Unit { TransferContext.writeArguments(LONG to jointIdx.toLong(), DOUBLE to angleMin.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setCcdikJointConstraintAngleMinPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCcdikJointConstraintAngleMinPtr, NIL) } /** @@ -198,7 +198,7 @@ public open class SkeletonModification2DCCDIK : SkeletonModification2D() { */ public final fun getCcdikJointConstraintAngleMin(jointIdx: Int): Float { TransferContext.writeArguments(LONG to jointIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCcdikJointConstraintAngleMinPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCcdikJointConstraintAngleMinPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -207,7 +207,7 @@ public open class SkeletonModification2DCCDIK : SkeletonModification2D() { */ public final fun setCcdikJointConstraintAngleMax(jointIdx: Int, angleMax: Float): Unit { TransferContext.writeArguments(LONG to jointIdx.toLong(), DOUBLE to angleMax.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setCcdikJointConstraintAngleMaxPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCcdikJointConstraintAngleMaxPtr, NIL) } /** @@ -215,7 +215,7 @@ public open class SkeletonModification2DCCDIK : SkeletonModification2D() { */ public final fun getCcdikJointConstraintAngleMax(jointIdx: Int): Float { TransferContext.writeArguments(LONG to jointIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCcdikJointConstraintAngleMaxPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCcdikJointConstraintAngleMaxPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -227,7 +227,7 @@ public open class SkeletonModification2DCCDIK : SkeletonModification2D() { */ public final fun setCcdikJointConstraintAngleInvert(jointIdx: Int, invert: Boolean): Unit { TransferContext.writeArguments(LONG to jointIdx.toLong(), BOOL to invert) - TransferContext.callMethod(rawPtr, MethodBindings.setCcdikJointConstraintAngleInvertPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCcdikJointConstraintAngleInvertPtr, NIL) } /** @@ -236,7 +236,7 @@ public open class SkeletonModification2DCCDIK : SkeletonModification2D() { */ public final fun getCcdikJointConstraintAngleInvert(jointIdx: Int): Boolean { TransferContext.writeArguments(LONG to jointIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCcdikJointConstraintAngleInvertPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getCcdikJointConstraintAngleInvertPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DFABRIK.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DFABRIK.kt index 468432414d..1538af22ba 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DFABRIK.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DFABRIK.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -16,7 +17,6 @@ import godot.core.VariantParser.NODE_PATH import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -74,23 +74,23 @@ public open class SkeletonModification2DFABRIK : SkeletonModification2D() { public final fun setTargetNode(targetNodepath: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to targetNodepath) - TransferContext.callMethod(rawPtr, MethodBindings.setTargetNodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTargetNodePtr, NIL) } public final fun getTargetNode(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTargetNodePtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getTargetNodePtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } public final fun setFabrikDataChainLength(length: Int): Unit { TransferContext.writeArguments(LONG to length.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setFabrikDataChainLengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFabrikDataChainLengthPtr, NIL) } public final fun getFabrikDataChainLength(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFabrikDataChainLengthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFabrikDataChainLengthPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -99,7 +99,7 @@ public open class SkeletonModification2DFABRIK : SkeletonModification2D() { */ public final fun setFabrikJointBone2dNode(jointIdx: Int, bone2dNodepath: NodePath): Unit { TransferContext.writeArguments(LONG to jointIdx.toLong(), NODE_PATH to bone2dNodepath) - TransferContext.callMethod(rawPtr, MethodBindings.setFabrikJointBone2dNodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFabrikJointBone2dNodePtr, NIL) } /** @@ -107,7 +107,7 @@ public open class SkeletonModification2DFABRIK : SkeletonModification2D() { */ public final fun getFabrikJointBone2dNode(jointIdx: Int): NodePath { TransferContext.writeArguments(LONG to jointIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getFabrikJointBone2dNodePtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getFabrikJointBone2dNodePtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } @@ -117,7 +117,7 @@ public open class SkeletonModification2DFABRIK : SkeletonModification2D() { */ public final fun setFabrikJointBoneIndex(jointIdx: Int, boneIdx: Int): Unit { TransferContext.writeArguments(LONG to jointIdx.toLong(), LONG to boneIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setFabrikJointBoneIndexPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFabrikJointBoneIndexPtr, NIL) } /** @@ -125,7 +125,7 @@ public open class SkeletonModification2DFABRIK : SkeletonModification2D() { */ public final fun getFabrikJointBoneIndex(jointIdx: Int): Int { TransferContext.writeArguments(LONG to jointIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getFabrikJointBoneIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFabrikJointBoneIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -134,7 +134,7 @@ public open class SkeletonModification2DFABRIK : SkeletonModification2D() { */ public final fun setFabrikJointMagnetPosition(jointIdx: Int, magnetPosition: Vector2): Unit { TransferContext.writeArguments(LONG to jointIdx.toLong(), VECTOR2 to magnetPosition) - TransferContext.callMethod(rawPtr, MethodBindings.setFabrikJointMagnetPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFabrikJointMagnetPositionPtr, NIL) } /** @@ -142,7 +142,7 @@ public open class SkeletonModification2DFABRIK : SkeletonModification2D() { */ public final fun getFabrikJointMagnetPosition(jointIdx: Int): Vector2 { TransferContext.writeArguments(LONG to jointIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getFabrikJointMagnetPositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getFabrikJointMagnetPositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -155,7 +155,7 @@ public open class SkeletonModification2DFABRIK : SkeletonModification2D() { public final fun setFabrikJointUseTargetRotation(jointIdx: Int, useTargetRotation: Boolean): Unit { TransferContext.writeArguments(LONG to jointIdx.toLong(), BOOL to useTargetRotation) - TransferContext.callMethod(rawPtr, MethodBindings.setFabrikJointUseTargetRotationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFabrikJointUseTargetRotationPtr, NIL) } /** @@ -164,7 +164,7 @@ public open class SkeletonModification2DFABRIK : SkeletonModification2D() { */ public final fun getFabrikJointUseTargetRotation(jointIdx: Int): Boolean { TransferContext.writeArguments(LONG to jointIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getFabrikJointUseTargetRotationPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getFabrikJointUseTargetRotationPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DJiggle.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DJiggle.kt index 69cf957aea..71c36801fa 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DJiggle.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DJiggle.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -19,7 +20,6 @@ import godot.core.VariantParser.NODE_PATH import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -157,78 +157,78 @@ public open class SkeletonModification2DJiggle : SkeletonModification2D() { public final fun setTargetNode(targetNodepath: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to targetNodepath) - TransferContext.callMethod(rawPtr, MethodBindings.setTargetNodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTargetNodePtr, NIL) } public final fun getTargetNode(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTargetNodePtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getTargetNodePtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } public final fun setJiggleDataChainLength(length: Int): Unit { TransferContext.writeArguments(LONG to length.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setJiggleDataChainLengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setJiggleDataChainLengthPtr, NIL) } public final fun getJiggleDataChainLength(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getJiggleDataChainLengthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getJiggleDataChainLengthPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setStiffness(stiffness: Float): Unit { TransferContext.writeArguments(DOUBLE to stiffness.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setStiffnessPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStiffnessPtr, NIL) } public final fun getStiffness(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStiffnessPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getStiffnessPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setMass(mass: Float): Unit { TransferContext.writeArguments(DOUBLE to mass.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMassPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMassPtr, NIL) } public final fun getMass(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMassPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMassPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDamping(damping: Float): Unit { TransferContext.writeArguments(DOUBLE to damping.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDampingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDampingPtr, NIL) } public final fun getDamping(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDampingPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDampingPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setUseGravity(useGravity: Boolean): Unit { TransferContext.writeArguments(BOOL to useGravity) - TransferContext.callMethod(rawPtr, MethodBindings.setUseGravityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseGravityPtr, NIL) } public final fun getUseGravity(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUseGravityPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getUseGravityPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setGravity(gravity: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to gravity) - TransferContext.callMethod(rawPtr, MethodBindings.setGravityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGravityPtr, NIL) } public final fun getGravity(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGravityPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getGravityPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -238,7 +238,7 @@ public open class SkeletonModification2DJiggle : SkeletonModification2D() { */ public final fun setUseColliders(useColliders: Boolean): Unit { TransferContext.writeArguments(BOOL to useColliders) - TransferContext.callMethod(rawPtr, MethodBindings.setUseCollidersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseCollidersPtr, NIL) } /** @@ -246,7 +246,7 @@ public open class SkeletonModification2DJiggle : SkeletonModification2D() { */ public final fun getUseColliders(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUseCollidersPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getUseCollidersPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -256,7 +256,7 @@ public open class SkeletonModification2DJiggle : SkeletonModification2D() { */ public final fun setCollisionMask(collisionMask: Int): Unit { TransferContext.writeArguments(LONG to collisionMask.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionMaskPtr, NIL) } /** @@ -264,7 +264,7 @@ public open class SkeletonModification2DJiggle : SkeletonModification2D() { */ public final fun getCollisionMask(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCollisionMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -273,7 +273,7 @@ public open class SkeletonModification2DJiggle : SkeletonModification2D() { */ public final fun setJiggleJointBone2dNode(jointIdx: Int, bone2dNode: NodePath): Unit { TransferContext.writeArguments(LONG to jointIdx.toLong(), NODE_PATH to bone2dNode) - TransferContext.callMethod(rawPtr, MethodBindings.setJiggleJointBone2dNodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setJiggleJointBone2dNodePtr, NIL) } /** @@ -281,7 +281,7 @@ public open class SkeletonModification2DJiggle : SkeletonModification2D() { */ public final fun getJiggleJointBone2dNode(jointIdx: Int): NodePath { TransferContext.writeArguments(LONG to jointIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getJiggleJointBone2dNodePtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getJiggleJointBone2dNodePtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } @@ -291,7 +291,7 @@ public open class SkeletonModification2DJiggle : SkeletonModification2D() { */ public final fun setJiggleJointBoneIndex(jointIdx: Int, boneIdx: Int): Unit { TransferContext.writeArguments(LONG to jointIdx.toLong(), LONG to boneIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setJiggleJointBoneIndexPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setJiggleJointBoneIndexPtr, NIL) } /** @@ -299,7 +299,7 @@ public open class SkeletonModification2DJiggle : SkeletonModification2D() { */ public final fun getJiggleJointBoneIndex(jointIdx: Int): Int { TransferContext.writeArguments(LONG to jointIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getJiggleJointBoneIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getJiggleJointBoneIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -310,7 +310,7 @@ public open class SkeletonModification2DJiggle : SkeletonModification2D() { */ public final fun setJiggleJointOverride(jointIdx: Int, `override`: Boolean): Unit { TransferContext.writeArguments(LONG to jointIdx.toLong(), BOOL to override) - TransferContext.callMethod(rawPtr, MethodBindings.setJiggleJointOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setJiggleJointOverridePtr, NIL) } /** @@ -319,7 +319,7 @@ public open class SkeletonModification2DJiggle : SkeletonModification2D() { */ public final fun getJiggleJointOverride(jointIdx: Int): Boolean { TransferContext.writeArguments(LONG to jointIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getJiggleJointOverridePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getJiggleJointOverridePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -328,7 +328,7 @@ public open class SkeletonModification2DJiggle : SkeletonModification2D() { */ public final fun setJiggleJointStiffness(jointIdx: Int, stiffness: Float): Unit { TransferContext.writeArguments(LONG to jointIdx.toLong(), DOUBLE to stiffness.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setJiggleJointStiffnessPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setJiggleJointStiffnessPtr, NIL) } /** @@ -336,7 +336,7 @@ public open class SkeletonModification2DJiggle : SkeletonModification2D() { */ public final fun getJiggleJointStiffness(jointIdx: Int): Float { TransferContext.writeArguments(LONG to jointIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getJiggleJointStiffnessPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getJiggleJointStiffnessPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -345,7 +345,7 @@ public open class SkeletonModification2DJiggle : SkeletonModification2D() { */ public final fun setJiggleJointMass(jointIdx: Int, mass: Float): Unit { TransferContext.writeArguments(LONG to jointIdx.toLong(), DOUBLE to mass.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setJiggleJointMassPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setJiggleJointMassPtr, NIL) } /** @@ -353,7 +353,7 @@ public open class SkeletonModification2DJiggle : SkeletonModification2D() { */ public final fun getJiggleJointMass(jointIdx: Int): Float { TransferContext.writeArguments(LONG to jointIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getJiggleJointMassPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getJiggleJointMassPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -362,7 +362,7 @@ public open class SkeletonModification2DJiggle : SkeletonModification2D() { */ public final fun setJiggleJointDamping(jointIdx: Int, damping: Float): Unit { TransferContext.writeArguments(LONG to jointIdx.toLong(), DOUBLE to damping.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setJiggleJointDampingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setJiggleJointDampingPtr, NIL) } /** @@ -370,7 +370,7 @@ public open class SkeletonModification2DJiggle : SkeletonModification2D() { */ public final fun getJiggleJointDamping(jointIdx: Int): Float { TransferContext.writeArguments(LONG to jointIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getJiggleJointDampingPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getJiggleJointDampingPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -379,7 +379,7 @@ public open class SkeletonModification2DJiggle : SkeletonModification2D() { */ public final fun setJiggleJointUseGravity(jointIdx: Int, useGravity: Boolean): Unit { TransferContext.writeArguments(LONG to jointIdx.toLong(), BOOL to useGravity) - TransferContext.callMethod(rawPtr, MethodBindings.setJiggleJointUseGravityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setJiggleJointUseGravityPtr, NIL) } /** @@ -387,7 +387,7 @@ public open class SkeletonModification2DJiggle : SkeletonModification2D() { */ public final fun getJiggleJointUseGravity(jointIdx: Int): Boolean { TransferContext.writeArguments(LONG to jointIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getJiggleJointUseGravityPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getJiggleJointUseGravityPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -396,7 +396,7 @@ public open class SkeletonModification2DJiggle : SkeletonModification2D() { */ public final fun setJiggleJointGravity(jointIdx: Int, gravity: Vector2): Unit { TransferContext.writeArguments(LONG to jointIdx.toLong(), VECTOR2 to gravity) - TransferContext.callMethod(rawPtr, MethodBindings.setJiggleJointGravityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setJiggleJointGravityPtr, NIL) } /** @@ -405,7 +405,7 @@ public open class SkeletonModification2DJiggle : SkeletonModification2D() { */ public final fun getJiggleJointGravity(jointIdx: Int): Vector2 { TransferContext.writeArguments(LONG to jointIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getJiggleJointGravityPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getJiggleJointGravityPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DLookAt.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DLookAt.kt index c3bfd4cfec..f315ded26b 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DLookAt.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DLookAt.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -15,7 +16,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -72,34 +72,34 @@ public open class SkeletonModification2DLookAt : SkeletonModification2D() { public final fun setBone2dNode(bone2dNodepath: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to bone2dNodepath) - TransferContext.callMethod(rawPtr, MethodBindings.setBone2dNodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBone2dNodePtr, NIL) } public final fun getBone2dNode(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBone2dNodePtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getBone2dNodePtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } public final fun setBoneIndex(boneIdx: Int): Unit { TransferContext.writeArguments(LONG to boneIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setBoneIndexPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBoneIndexPtr, NIL) } public final fun getBoneIndex(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBoneIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBoneIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setTargetNode(targetNodepath: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to targetNodepath) - TransferContext.callMethod(rawPtr, MethodBindings.setTargetNodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTargetNodePtr, NIL) } public final fun getTargetNode(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTargetNodePtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getTargetNodePtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } @@ -109,7 +109,7 @@ public open class SkeletonModification2DLookAt : SkeletonModification2D() { */ public final fun setAdditionalRotation(rotation: Float): Unit { TransferContext.writeArguments(DOUBLE to rotation.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAdditionalRotationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAdditionalRotationPtr, NIL) } /** @@ -118,7 +118,7 @@ public open class SkeletonModification2DLookAt : SkeletonModification2D() { */ public final fun getAdditionalRotation(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAdditionalRotationPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAdditionalRotationPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -128,7 +128,7 @@ public open class SkeletonModification2DLookAt : SkeletonModification2D() { */ public final fun setEnableConstraint(enableConstraint: Boolean): Unit { TransferContext.writeArguments(BOOL to enableConstraint) - TransferContext.callMethod(rawPtr, MethodBindings.setEnableConstraintPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnableConstraintPtr, NIL) } /** @@ -136,7 +136,7 @@ public open class SkeletonModification2DLookAt : SkeletonModification2D() { */ public final fun getEnableConstraint(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnableConstraintPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getEnableConstraintPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -145,7 +145,7 @@ public open class SkeletonModification2DLookAt : SkeletonModification2D() { */ public final fun setConstraintAngleMin(angleMin: Float): Unit { TransferContext.writeArguments(DOUBLE to angleMin.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setConstraintAngleMinPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setConstraintAngleMinPtr, NIL) } /** @@ -153,7 +153,7 @@ public open class SkeletonModification2DLookAt : SkeletonModification2D() { */ public final fun getConstraintAngleMin(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConstraintAngleMinPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getConstraintAngleMinPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -162,7 +162,7 @@ public open class SkeletonModification2DLookAt : SkeletonModification2D() { */ public final fun setConstraintAngleMax(angleMax: Float): Unit { TransferContext.writeArguments(DOUBLE to angleMax.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setConstraintAngleMaxPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setConstraintAngleMaxPtr, NIL) } /** @@ -170,7 +170,7 @@ public open class SkeletonModification2DLookAt : SkeletonModification2D() { */ public final fun getConstraintAngleMax(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConstraintAngleMaxPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getConstraintAngleMaxPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -182,7 +182,7 @@ public open class SkeletonModification2DLookAt : SkeletonModification2D() { */ public final fun setConstraintAngleInvert(invert: Boolean): Unit { TransferContext.writeArguments(BOOL to invert) - TransferContext.callMethod(rawPtr, MethodBindings.setConstraintAngleInvertPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setConstraintAngleInvertPtr, NIL) } /** @@ -190,7 +190,7 @@ public open class SkeletonModification2DLookAt : SkeletonModification2D() { */ public final fun getConstraintAngleInvert(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConstraintAngleInvertPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getConstraintAngleInvertPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DPhysicalBones.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DPhysicalBones.kt index f8d6231be0..11177561b5 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DPhysicalBones.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DPhysicalBones.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.StringName import godot.core.TypeManager @@ -16,7 +17,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -48,12 +48,12 @@ public open class SkeletonModification2DPhysicalBones : SkeletonModification2D() public final fun setPhysicalBoneChainLength(length: Int): Unit { TransferContext.writeArguments(LONG to length.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setPhysicalBoneChainLengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPhysicalBoneChainLengthPtr, NIL) } public final fun getPhysicalBoneChainLength(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPhysicalBoneChainLengthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPhysicalBoneChainLengthPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -64,7 +64,7 @@ public open class SkeletonModification2DPhysicalBones : SkeletonModification2D() */ public final fun setPhysicalBoneNode(jointIdx: Int, physicalbone2dNode: NodePath): Unit { TransferContext.writeArguments(LONG to jointIdx.toLong(), NODE_PATH to physicalbone2dNode) - TransferContext.callMethod(rawPtr, MethodBindings.setPhysicalBoneNodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPhysicalBoneNodePtr, NIL) } /** @@ -72,7 +72,7 @@ public open class SkeletonModification2DPhysicalBones : SkeletonModification2D() */ public final fun getPhysicalBoneNode(jointIdx: Int): NodePath { TransferContext.writeArguments(LONG to jointIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getPhysicalBoneNodePtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getPhysicalBoneNodePtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } @@ -82,7 +82,7 @@ public open class SkeletonModification2DPhysicalBones : SkeletonModification2D() */ public final fun fetchPhysicalBones(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.fetchPhysicalBonesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fetchPhysicalBonesPtr, NIL) } /** @@ -94,7 +94,7 @@ public open class SkeletonModification2DPhysicalBones : SkeletonModification2D() public final fun startSimulation(bones: VariantArray = godot.core.variantArrayOf()): Unit { TransferContext.writeArguments(ARRAY to bones) - TransferContext.callMethod(rawPtr, MethodBindings.startSimulationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.startSimulationPtr, NIL) } /** @@ -106,7 +106,7 @@ public open class SkeletonModification2DPhysicalBones : SkeletonModification2D() public final fun stopSimulation(bones: VariantArray = godot.core.variantArrayOf()): Unit { TransferContext.writeArguments(ARRAY to bones) - TransferContext.callMethod(rawPtr, MethodBindings.stopSimulationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.stopSimulationPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DStackHolder.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DStackHolder.kt index f450257a6d..00d28cd020 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DStackHolder.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DStackHolder.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -35,7 +35,7 @@ public open class SkeletonModification2DStackHolder : SkeletonModification2D() { public final fun setHeldModificationStack(heldModificationStack: SkeletonModificationStack2D?): Unit { TransferContext.writeArguments(OBJECT to heldModificationStack) - TransferContext.callMethod(rawPtr, MethodBindings.setHeldModificationStackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHeldModificationStackPtr, NIL) } /** @@ -43,7 +43,7 @@ public open class SkeletonModification2DStackHolder : SkeletonModification2D() { */ public final fun getHeldModificationStack(): SkeletonModificationStack2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHeldModificationStackPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getHeldModificationStackPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as SkeletonModificationStack2D?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DTwoBoneIK.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DTwoBoneIK.kt index fc27c89cbb..670ea55f90 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DTwoBoneIK.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DTwoBoneIK.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -15,7 +16,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -93,45 +93,45 @@ public open class SkeletonModification2DTwoBoneIK : SkeletonModification2D() { public final fun setTargetNode(targetNodepath: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to targetNodepath) - TransferContext.callMethod(rawPtr, MethodBindings.setTargetNodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTargetNodePtr, NIL) } public final fun getTargetNode(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTargetNodePtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getTargetNodePtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } public final fun setTargetMinimumDistance(minimumDistance: Float): Unit { TransferContext.writeArguments(DOUBLE to minimumDistance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTargetMinimumDistancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTargetMinimumDistancePtr, NIL) } public final fun getTargetMinimumDistance(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTargetMinimumDistancePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTargetMinimumDistancePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setTargetMaximumDistance(maximumDistance: Float): Unit { TransferContext.writeArguments(DOUBLE to maximumDistance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTargetMaximumDistancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTargetMaximumDistancePtr, NIL) } public final fun getTargetMaximumDistance(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTargetMaximumDistancePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTargetMaximumDistancePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setFlipBendDirection(flipDirection: Boolean): Unit { TransferContext.writeArguments(BOOL to flipDirection) - TransferContext.callMethod(rawPtr, MethodBindings.setFlipBendDirectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFlipBendDirectionPtr, NIL) } public final fun getFlipBendDirection(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFlipBendDirectionPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getFlipBendDirectionPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -140,7 +140,7 @@ public open class SkeletonModification2DTwoBoneIK : SkeletonModification2D() { */ public final fun setJointOneBone2dNode(bone2dNode: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to bone2dNode) - TransferContext.callMethod(rawPtr, MethodBindings.setJointOneBone2dNodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setJointOneBone2dNodePtr, NIL) } /** @@ -148,7 +148,7 @@ public open class SkeletonModification2DTwoBoneIK : SkeletonModification2D() { */ public final fun getJointOneBone2dNode(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getJointOneBone2dNodePtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getJointOneBone2dNodePtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } @@ -158,7 +158,7 @@ public open class SkeletonModification2DTwoBoneIK : SkeletonModification2D() { */ public final fun setJointOneBoneIdx(boneIdx: Int): Unit { TransferContext.writeArguments(LONG to boneIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setJointOneBoneIdxPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setJointOneBoneIdxPtr, NIL) } /** @@ -167,7 +167,7 @@ public open class SkeletonModification2DTwoBoneIK : SkeletonModification2D() { */ public final fun getJointOneBoneIdx(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getJointOneBoneIdxPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getJointOneBoneIdxPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -176,7 +176,7 @@ public open class SkeletonModification2DTwoBoneIK : SkeletonModification2D() { */ public final fun setJointTwoBone2dNode(bone2dNode: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to bone2dNode) - TransferContext.callMethod(rawPtr, MethodBindings.setJointTwoBone2dNodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setJointTwoBone2dNodePtr, NIL) } /** @@ -184,7 +184,7 @@ public open class SkeletonModification2DTwoBoneIK : SkeletonModification2D() { */ public final fun getJointTwoBone2dNode(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getJointTwoBone2dNodePtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getJointTwoBone2dNodePtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } @@ -194,7 +194,7 @@ public open class SkeletonModification2DTwoBoneIK : SkeletonModification2D() { */ public final fun setJointTwoBoneIdx(boneIdx: Int): Unit { TransferContext.writeArguments(LONG to boneIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setJointTwoBoneIdxPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setJointTwoBoneIdxPtr, NIL) } /** @@ -203,7 +203,7 @@ public open class SkeletonModification2DTwoBoneIK : SkeletonModification2D() { */ public final fun getJointTwoBoneIdx(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getJointTwoBoneIdxPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getJointTwoBoneIdxPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModificationStack2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModificationStack2D.kt index 96514725d0..44be9ef365 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModificationStack2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModificationStack2D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE @@ -14,7 +15,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -81,7 +81,7 @@ public open class SkeletonModificationStack2D : Resource() { */ public final fun setup(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.setupPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setupPtr, NIL) } /** @@ -93,7 +93,7 @@ public open class SkeletonModificationStack2D : Resource() { */ public final fun execute(delta: Float, executionMode: Int): Unit { TransferContext.writeArguments(DOUBLE to delta.toDouble(), LONG to executionMode.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.executePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.executePtr, NIL) } /** @@ -101,7 +101,7 @@ public open class SkeletonModificationStack2D : Resource() { */ public final fun enableAllModifications(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.enableAllModificationsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.enableAllModificationsPtr, NIL) } /** @@ -109,7 +109,7 @@ public open class SkeletonModificationStack2D : Resource() { */ public final fun getModification(modIdx: Int): SkeletonModification2D? { TransferContext.writeArguments(LONG to modIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getModificationPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getModificationPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as SkeletonModification2D?) } @@ -118,7 +118,7 @@ public open class SkeletonModificationStack2D : Resource() { */ public final fun addModification(modification: SkeletonModification2D?): Unit { TransferContext.writeArguments(OBJECT to modification) - TransferContext.callMethod(rawPtr, MethodBindings.addModificationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addModificationPtr, NIL) } /** @@ -126,7 +126,7 @@ public open class SkeletonModificationStack2D : Resource() { */ public final fun deleteModification(modIdx: Int): Unit { TransferContext.writeArguments(LONG to modIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.deleteModificationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.deleteModificationPtr, NIL) } /** @@ -134,17 +134,17 @@ public open class SkeletonModificationStack2D : Resource() { */ public final fun setModification(modIdx: Int, modification: SkeletonModification2D?): Unit { TransferContext.writeArguments(LONG to modIdx.toLong(), OBJECT to modification) - TransferContext.callMethod(rawPtr, MethodBindings.setModificationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setModificationPtr, NIL) } public final fun setModificationCount(count: Int): Unit { TransferContext.writeArguments(LONG to count.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setModificationCountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setModificationCountPtr, NIL) } public final fun getModificationCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getModificationCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getModificationCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -153,29 +153,29 @@ public open class SkeletonModificationStack2D : Resource() { */ public final fun getIsSetup(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getIsSetupPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getIsSetupPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnabledPtr, NIL) } public final fun getEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setStrength(strength: Float): Unit { TransferContext.writeArguments(DOUBLE to strength.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setStrengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStrengthPtr, NIL) } public final fun getStrength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStrengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getStrengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -184,7 +184,7 @@ public open class SkeletonModificationStack2D : Resource() { */ public final fun getSkeleton(): Skeleton2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSkeletonPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getSkeletonPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Skeleton2D?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModifier3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModifier3D.kt index 62535e8d03..f3ff938757 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModifier3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonModifier3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -14,7 +15,6 @@ import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -80,29 +80,29 @@ public open class SkeletonModifier3D : Node3D() { */ public final fun getSkeleton(): Skeleton3D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSkeletonPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getSkeletonPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Skeleton3D?) } public final fun setActive(active: Boolean): Unit { TransferContext.writeArguments(BOOL to active) - TransferContext.callMethod(rawPtr, MethodBindings.setActivePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setActivePtr, NIL) } public final fun isActive(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isActivePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isActivePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setInfluence(influence: Float): Unit { TransferContext.writeArguments(DOUBLE to influence.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setInfluencePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInfluencePtr, NIL) } public final fun getInfluence(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInfluencePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getInfluencePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonProfile.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonProfile.kt index 8983148831..2b83019981 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonProfile.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SkeletonProfile.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.StringName import godot.core.Transform3D @@ -20,7 +21,6 @@ import godot.core.VariantParser.TRANSFORM3D import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -102,34 +102,34 @@ public open class SkeletonProfile : Resource() { public final fun setRootBone(boneName: StringName): Unit { TransferContext.writeArguments(STRING_NAME to boneName) - TransferContext.callMethod(rawPtr, MethodBindings.setRootBonePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRootBonePtr, NIL) } public final fun getRootBone(): StringName { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRootBonePtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getRootBonePtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } public final fun setScaleBaseBone(boneName: StringName): Unit { TransferContext.writeArguments(STRING_NAME to boneName) - TransferContext.callMethod(rawPtr, MethodBindings.setScaleBaseBonePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setScaleBaseBonePtr, NIL) } public final fun getScaleBaseBone(): StringName { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScaleBaseBonePtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getScaleBaseBonePtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } public final fun setGroupSize(size: Int): Unit { TransferContext.writeArguments(LONG to size.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setGroupSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGroupSizePtr, NIL) } public final fun getGroupSize(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGroupSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getGroupSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -139,7 +139,7 @@ public open class SkeletonProfile : Resource() { */ public final fun getGroupName(groupIdx: Int): StringName { TransferContext.writeArguments(LONG to groupIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getGroupNamePtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getGroupNamePtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } @@ -149,7 +149,7 @@ public open class SkeletonProfile : Resource() { */ public final fun setGroupName(groupIdx: Int, groupName: StringName): Unit { TransferContext.writeArguments(LONG to groupIdx.toLong(), STRING_NAME to groupName) - TransferContext.callMethod(rawPtr, MethodBindings.setGroupNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGroupNamePtr, NIL) } /** @@ -158,7 +158,7 @@ public open class SkeletonProfile : Resource() { */ public final fun getTexture(groupIdx: Int): Texture2D? { TransferContext.writeArguments(LONG to groupIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } @@ -168,17 +168,17 @@ public open class SkeletonProfile : Resource() { */ public final fun setTexture(groupIdx: Int, texture: Texture2D?): Unit { TransferContext.writeArguments(LONG to groupIdx.toLong(), OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTexturePtr, NIL) } public final fun setBoneSize(size: Int): Unit { TransferContext.writeArguments(LONG to size.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setBoneSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBoneSizePtr, NIL) } public final fun getBoneSize(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBoneSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBoneSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -187,7 +187,7 @@ public open class SkeletonProfile : Resource() { */ public final fun findBone(boneName: StringName): Int { TransferContext.writeArguments(STRING_NAME to boneName) - TransferContext.callMethod(rawPtr, MethodBindings.findBonePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.findBonePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -197,7 +197,7 @@ public open class SkeletonProfile : Resource() { */ public final fun getBoneName(boneIdx: Int): StringName { TransferContext.writeArguments(LONG to boneIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBoneNamePtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getBoneNamePtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } @@ -207,7 +207,7 @@ public open class SkeletonProfile : Resource() { */ public final fun setBoneName(boneIdx: Int, boneName: StringName): Unit { TransferContext.writeArguments(LONG to boneIdx.toLong(), STRING_NAME to boneName) - TransferContext.callMethod(rawPtr, MethodBindings.setBoneNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBoneNamePtr, NIL) } /** @@ -216,7 +216,7 @@ public open class SkeletonProfile : Resource() { */ public final fun getBoneParent(boneIdx: Int): StringName { TransferContext.writeArguments(LONG to boneIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBoneParentPtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getBoneParentPtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } @@ -226,7 +226,7 @@ public open class SkeletonProfile : Resource() { */ public final fun setBoneParent(boneIdx: Int, boneParent: StringName): Unit { TransferContext.writeArguments(LONG to boneIdx.toLong(), STRING_NAME to boneParent) - TransferContext.callMethod(rawPtr, MethodBindings.setBoneParentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBoneParentPtr, NIL) } /** @@ -234,7 +234,7 @@ public open class SkeletonProfile : Resource() { */ public final fun getTailDirection(boneIdx: Int): TailDirection { TransferContext.writeArguments(LONG to boneIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTailDirectionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTailDirectionPtr, LONG) return SkeletonProfile.TailDirection.from(TransferContext.readReturnValue(LONG) as Long) } @@ -245,7 +245,7 @@ public open class SkeletonProfile : Resource() { */ public final fun setTailDirection(boneIdx: Int, tailDirection: TailDirection): Unit { TransferContext.writeArguments(LONG to boneIdx.toLong(), LONG to tailDirection.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTailDirectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTailDirectionPtr, NIL) } /** @@ -253,7 +253,7 @@ public open class SkeletonProfile : Resource() { */ public final fun getBoneTail(boneIdx: Int): StringName { TransferContext.writeArguments(LONG to boneIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBoneTailPtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getBoneTailPtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } @@ -262,7 +262,7 @@ public open class SkeletonProfile : Resource() { */ public final fun setBoneTail(boneIdx: Int, boneTail: StringName): Unit { TransferContext.writeArguments(LONG to boneIdx.toLong(), STRING_NAME to boneTail) - TransferContext.callMethod(rawPtr, MethodBindings.setBoneTailPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBoneTailPtr, NIL) } /** @@ -270,7 +270,7 @@ public open class SkeletonProfile : Resource() { */ public final fun getReferencePose(boneIdx: Int): Transform3D { TransferContext.writeArguments(LONG to boneIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getReferencePosePtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.getReferencePosePtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } @@ -279,7 +279,7 @@ public open class SkeletonProfile : Resource() { */ public final fun setReferencePose(boneIdx: Int, boneName: Transform3D): Unit { TransferContext.writeArguments(LONG to boneIdx.toLong(), TRANSFORM3D to boneName) - TransferContext.callMethod(rawPtr, MethodBindings.setReferencePosePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setReferencePosePtr, NIL) } /** @@ -289,7 +289,7 @@ public open class SkeletonProfile : Resource() { */ public final fun getHandleOffset(boneIdx: Int): Vector2 { TransferContext.writeArguments(LONG to boneIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getHandleOffsetPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getHandleOffsetPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -300,7 +300,7 @@ public open class SkeletonProfile : Resource() { */ public final fun setHandleOffset(boneIdx: Int, handleOffset: Vector2): Unit { TransferContext.writeArguments(LONG to boneIdx.toLong(), VECTOR2 to handleOffset) - TransferContext.callMethod(rawPtr, MethodBindings.setHandleOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHandleOffsetPtr, NIL) } /** @@ -308,7 +308,7 @@ public open class SkeletonProfile : Resource() { */ public final fun getGroup(boneIdx: Int): StringName { TransferContext.writeArguments(LONG to boneIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getGroupPtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getGroupPtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } @@ -317,7 +317,7 @@ public open class SkeletonProfile : Resource() { */ public final fun setGroup(boneIdx: Int, group: StringName): Unit { TransferContext.writeArguments(LONG to boneIdx.toLong(), STRING_NAME to group) - TransferContext.callMethod(rawPtr, MethodBindings.setGroupPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGroupPtr, NIL) } /** @@ -327,7 +327,7 @@ public open class SkeletonProfile : Resource() { */ public final fun isRequired(boneIdx: Int): Boolean { TransferContext.writeArguments(LONG to boneIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isRequiredPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isRequiredPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -336,7 +336,7 @@ public open class SkeletonProfile : Resource() { */ public final fun setRequired(boneIdx: Int, required: Boolean): Unit { TransferContext.writeArguments(LONG to boneIdx.toLong(), BOOL to required) - TransferContext.callMethod(rawPtr, MethodBindings.setRequiredPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRequiredPtr, NIL) } public enum class TailDirection( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Skin.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Skin.kt index 4ad74ca9f7..002cdd2664 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Skin.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Skin.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.StringName import godot.core.Transform3D import godot.core.TypeManager @@ -16,7 +17,6 @@ import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME import godot.core.VariantParser.TRANSFORM3D import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.String @@ -31,61 +31,61 @@ public open class Skin : Resource() { public final fun setBindCount(bindCount: Int): Unit { TransferContext.writeArguments(LONG to bindCount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setBindCountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBindCountPtr, NIL) } public final fun getBindCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBindCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBindCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun addBind(bone: Int, pose: Transform3D): Unit { TransferContext.writeArguments(LONG to bone.toLong(), TRANSFORM3D to pose) - TransferContext.callMethod(rawPtr, MethodBindings.addBindPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addBindPtr, NIL) } public final fun addNamedBind(name: String, pose: Transform3D): Unit { TransferContext.writeArguments(STRING to name, TRANSFORM3D to pose) - TransferContext.callMethod(rawPtr, MethodBindings.addNamedBindPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addNamedBindPtr, NIL) } public final fun setBindPose(bindIndex: Int, pose: Transform3D): Unit { TransferContext.writeArguments(LONG to bindIndex.toLong(), TRANSFORM3D to pose) - TransferContext.callMethod(rawPtr, MethodBindings.setBindPosePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBindPosePtr, NIL) } public final fun getBindPose(bindIndex: Int): Transform3D { TransferContext.writeArguments(LONG to bindIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBindPosePtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.getBindPosePtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } public final fun setBindName(bindIndex: Int, name: StringName): Unit { TransferContext.writeArguments(LONG to bindIndex.toLong(), STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.setBindNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBindNamePtr, NIL) } public final fun getBindName(bindIndex: Int): StringName { TransferContext.writeArguments(LONG to bindIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBindNamePtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getBindNamePtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } public final fun setBindBone(bindIndex: Int, bone: Int): Unit { TransferContext.writeArguments(LONG to bindIndex.toLong(), LONG to bone.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setBindBonePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBindBonePtr, NIL) } public final fun getBindBone(bindIndex: Int): Int { TransferContext.writeArguments(LONG to bindIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getBindBonePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBindBonePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun clearBinds(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearBindsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearBindsPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SkinReference.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SkinReference.kt index ff1ce26dfc..0617115efb 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SkinReference.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SkinReference.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.TypeManager import godot.core.VariantParser.OBJECT import godot.core.VariantParser._RID import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -40,7 +40,7 @@ public open class SkinReference internal constructor() : RefCounted() { */ public final fun getSkeleton(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSkeletonPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getSkeletonPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -53,7 +53,7 @@ public open class SkinReference internal constructor() : RefCounted() { */ public final fun getSkin(): Skin? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSkinPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getSkinPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Skin?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Sky.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Sky.kt index 9ef1672993..2fd533b72e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Sky.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Sky.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -71,34 +71,34 @@ public open class Sky : Resource() { public final fun setRadianceSize(size: RadianceSize): Unit { TransferContext.writeArguments(LONG to size.id) - TransferContext.callMethod(rawPtr, MethodBindings.setRadianceSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRadianceSizePtr, NIL) } public final fun getRadianceSize(): RadianceSize { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRadianceSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getRadianceSizePtr, LONG) return Sky.RadianceSize.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setProcessMode(mode: ProcessMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setProcessModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setProcessModePtr, NIL) } public final fun getProcessMode(): ProcessMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getProcessModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getProcessModePtr, LONG) return Sky.ProcessMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setMaterial(material: Material?): Unit { TransferContext.writeArguments(OBJECT to material) - TransferContext.callMethod(rawPtr, MethodBindings.setMaterialPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaterialPtr, NIL) } public final fun getMaterial(): Material? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaterialPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getMaterialPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Material?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Slider.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Slider.kt index 694693b446..ce9305ce5f 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Slider.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Slider.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.Signal1 import godot.core.TypeManager @@ -14,7 +15,6 @@ import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -92,45 +92,45 @@ public open class Slider internal constructor() : Range() { public final fun setTicks(count: Int): Unit { TransferContext.writeArguments(LONG to count.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setTicksPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTicksPtr, NIL) } public final fun getTicks(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTicksPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTicksPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun getTicksOnBorders(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTicksOnBordersPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getTicksOnBordersPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setTicksOnBorders(ticksOnBorder: Boolean): Unit { TransferContext.writeArguments(BOOL to ticksOnBorder) - TransferContext.callMethod(rawPtr, MethodBindings.setTicksOnBordersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTicksOnBordersPtr, NIL) } public final fun setEditable(editable: Boolean): Unit { TransferContext.writeArguments(BOOL to editable) - TransferContext.callMethod(rawPtr, MethodBindings.setEditablePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEditablePtr, NIL) } public final fun isEditable(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isEditablePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isEditablePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setScrollable(scrollable: Boolean): Unit { TransferContext.writeArguments(BOOL to scrollable) - TransferContext.callMethod(rawPtr, MethodBindings.setScrollablePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setScrollablePtr, NIL) } public final fun isScrollable(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isScrollablePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isScrollablePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SliderJoint3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SliderJoint3D.kt index f061638fe8..f521b9be97 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SliderJoint3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SliderJoint3D.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -36,7 +36,7 @@ public open class SliderJoint3D : Joint3D() { */ public final fun setParam(`param`: Param, `value`: Float): Unit { TransferContext.writeArguments(LONG to param.id, DOUBLE to value.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setParamPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setParamPtr, NIL) } /** @@ -44,7 +44,7 @@ public open class SliderJoint3D : Joint3D() { */ public final fun getParam(`param`: Param): Float { TransferContext.writeArguments(LONG to param.id) - TransferContext.callMethod(rawPtr, MethodBindings.getParamPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getParamPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SoftBody3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SoftBody3D.kt index 55ac78297f..45a92d9434 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SoftBody3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SoftBody3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.RID import godot.core.TypeManager @@ -22,7 +23,6 @@ import godot.core.VariantParser.VECTOR3 import godot.core.VariantParser._RID import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -189,29 +189,29 @@ public open class SoftBody3D : MeshInstance3D() { */ public final fun getPhysicsRid(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPhysicsRidPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getPhysicsRidPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } public final fun setCollisionMask(collisionMask: Long): Unit { TransferContext.writeArguments(LONG to collisionMask) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionMaskPtr, NIL) } public final fun getCollisionMask(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCollisionMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setCollisionLayer(collisionLayer: Long): Unit { TransferContext.writeArguments(LONG to collisionLayer) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionLayerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionLayerPtr, NIL) } public final fun getCollisionLayer(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionLayerPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCollisionLayerPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -221,7 +221,7 @@ public open class SoftBody3D : MeshInstance3D() { */ public final fun setCollisionMaskValue(layerNumber: Int, `value`: Boolean): Unit { TransferContext.writeArguments(LONG to layerNumber.toLong(), BOOL to value) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionMaskValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionMaskValuePtr, NIL) } /** @@ -230,7 +230,7 @@ public open class SoftBody3D : MeshInstance3D() { */ public final fun getCollisionMaskValue(layerNumber: Int): Boolean { TransferContext.writeArguments(LONG to layerNumber.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionMaskValuePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getCollisionMaskValuePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -240,7 +240,7 @@ public open class SoftBody3D : MeshInstance3D() { */ public final fun setCollisionLayerValue(layerNumber: Int, `value`: Boolean): Unit { TransferContext.writeArguments(LONG to layerNumber.toLong(), BOOL to value) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionLayerValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionLayerValuePtr, NIL) } /** @@ -249,29 +249,29 @@ public open class SoftBody3D : MeshInstance3D() { */ public final fun getCollisionLayerValue(layerNumber: Int): Boolean { TransferContext.writeArguments(LONG to layerNumber.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionLayerValuePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getCollisionLayerValuePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setParentCollisionIgnore(parentCollisionIgnore: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to parentCollisionIgnore) - TransferContext.callMethod(rawPtr, MethodBindings.setParentCollisionIgnorePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setParentCollisionIgnorePtr, NIL) } public final fun getParentCollisionIgnore(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getParentCollisionIgnorePtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getParentCollisionIgnorePtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } public final fun setDisableMode(mode: DisableMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setDisableModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDisableModePtr, NIL) } public final fun getDisableMode(): DisableMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDisableModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDisableModePtr, LONG) return SoftBody3D.DisableMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -280,7 +280,7 @@ public open class SoftBody3D : MeshInstance3D() { */ public final fun getCollisionExceptions(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionExceptionsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getCollisionExceptionsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -289,7 +289,7 @@ public open class SoftBody3D : MeshInstance3D() { */ public final fun addCollisionExceptionWith(body: Node?): Unit { TransferContext.writeArguments(OBJECT to body) - TransferContext.callMethod(rawPtr, MethodBindings.addCollisionExceptionWithPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addCollisionExceptionWithPtr, NIL) } /** @@ -297,72 +297,72 @@ public open class SoftBody3D : MeshInstance3D() { */ public final fun removeCollisionExceptionWith(body: Node?): Unit { TransferContext.writeArguments(OBJECT to body) - TransferContext.callMethod(rawPtr, MethodBindings.removeCollisionExceptionWithPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeCollisionExceptionWithPtr, NIL) } public final fun setSimulationPrecision(simulationPrecision: Int): Unit { TransferContext.writeArguments(LONG to simulationPrecision.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSimulationPrecisionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSimulationPrecisionPtr, NIL) } public final fun getSimulationPrecision(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSimulationPrecisionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSimulationPrecisionPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setTotalMass(mass: Float): Unit { TransferContext.writeArguments(DOUBLE to mass.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTotalMassPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTotalMassPtr, NIL) } public final fun getTotalMass(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTotalMassPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTotalMassPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setLinearStiffness(linearStiffness: Float): Unit { TransferContext.writeArguments(DOUBLE to linearStiffness.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setLinearStiffnessPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLinearStiffnessPtr, NIL) } public final fun getLinearStiffness(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLinearStiffnessPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLinearStiffnessPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setPressureCoefficient(pressureCoefficient: Float): Unit { TransferContext.writeArguments(DOUBLE to pressureCoefficient.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPressureCoefficientPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPressureCoefficientPtr, NIL) } public final fun getPressureCoefficient(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPressureCoefficientPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPressureCoefficientPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDampingCoefficient(dampingCoefficient: Float): Unit { TransferContext.writeArguments(DOUBLE to dampingCoefficient.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDampingCoefficientPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDampingCoefficientPtr, NIL) } public final fun getDampingCoefficient(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDampingCoefficientPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDampingCoefficientPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDragCoefficient(dragCoefficient: Float): Unit { TransferContext.writeArguments(DOUBLE to dragCoefficient.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDragCoefficientPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDragCoefficientPtr, NIL) } public final fun getDragCoefficient(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDragCoefficientPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDragCoefficientPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -371,7 +371,7 @@ public open class SoftBody3D : MeshInstance3D() { */ public final fun getPointTransform(pointIndex: Int): Vector3 { TransferContext.writeArguments(LONG to pointIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getPointTransformPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getPointTransformPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -386,7 +386,7 @@ public open class SoftBody3D : MeshInstance3D() { attachmentPath: NodePath = NodePath(""), ): Unit { TransferContext.writeArguments(LONG to pointIndex.toLong(), BOOL to pinned, NODE_PATH to attachmentPath) - TransferContext.callMethod(rawPtr, MethodBindings.setPointPinnedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPointPinnedPtr, NIL) } /** @@ -394,18 +394,18 @@ public open class SoftBody3D : MeshInstance3D() { */ public final fun isPointPinned(pointIndex: Int): Boolean { TransferContext.writeArguments(LONG to pointIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isPointPinnedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPointPinnedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setRayPickable(rayPickable: Boolean): Unit { TransferContext.writeArguments(BOOL to rayPickable) - TransferContext.callMethod(rawPtr, MethodBindings.setRayPickablePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRayPickablePtr, NIL) } public final fun isRayPickable(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isRayPickablePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isRayPickablePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SphereMesh.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SphereMesh.kt index 7c64decc3f..e4ac8e5295 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SphereMesh.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SphereMesh.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -90,56 +90,56 @@ public open class SphereMesh : PrimitiveMesh() { public final fun setRadius(radius: Float): Unit { TransferContext.writeArguments(DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRadiusPtr, NIL) } public final fun getRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setHeight(height: Float): Unit { TransferContext.writeArguments(DOUBLE to height.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setHeightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHeightPtr, NIL) } public final fun getHeight(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHeightPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getHeightPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setRadialSegments(radialSegments: Int): Unit { TransferContext.writeArguments(LONG to radialSegments.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setRadialSegmentsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRadialSegmentsPtr, NIL) } public final fun getRadialSegments(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRadialSegmentsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getRadialSegmentsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setRings(rings: Int): Unit { TransferContext.writeArguments(LONG to rings.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setRingsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRingsPtr, NIL) } public final fun getRings(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRingsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getRingsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setIsHemisphere(isHemisphere: Boolean): Unit { TransferContext.writeArguments(BOOL to isHemisphere) - TransferContext.callMethod(rawPtr, MethodBindings.setIsHemispherePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIsHemispherePtr, NIL) } public final fun getIsHemisphere(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getIsHemispherePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getIsHemispherePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SphereOccluder3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SphereOccluder3D.kt index ac95abd758..eed3551412 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SphereOccluder3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SphereOccluder3D.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -43,12 +43,12 @@ public open class SphereOccluder3D : Occluder3D() { public final fun setRadius(radius: Float): Unit { TransferContext.writeArguments(DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRadiusPtr, NIL) } public final fun getRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SphereShape3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SphereShape3D.kt index f118c84041..35ccb356ae 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SphereShape3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SphereShape3D.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -44,12 +44,12 @@ public open class SphereShape3D : Shape3D() { public final fun setRadius(radius: Float): Unit { TransferContext.writeArguments(DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRadiusPtr, NIL) } public final fun getRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SpinBox.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SpinBox.kt index cfe36e452a..90f7b80c43 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SpinBox.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SpinBox.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE @@ -15,7 +16,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Int @@ -146,78 +146,78 @@ public open class SpinBox : Range() { public final fun setHorizontalAlignment(alignment: HorizontalAlignment): Unit { TransferContext.writeArguments(LONG to alignment.id) - TransferContext.callMethod(rawPtr, MethodBindings.setHorizontalAlignmentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHorizontalAlignmentPtr, NIL) } public final fun getHorizontalAlignment(): HorizontalAlignment { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHorizontalAlignmentPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getHorizontalAlignmentPtr, LONG) return HorizontalAlignment.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setSuffix(suffix: String): Unit { TransferContext.writeArguments(STRING to suffix) - TransferContext.callMethod(rawPtr, MethodBindings.setSuffixPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSuffixPtr, NIL) } public final fun getSuffix(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSuffixPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getSuffixPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setPrefix(prefix: String): Unit { TransferContext.writeArguments(STRING to prefix) - TransferContext.callMethod(rawPtr, MethodBindings.setPrefixPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPrefixPtr, NIL) } public final fun getPrefix(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPrefixPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getPrefixPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setEditable(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setEditablePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEditablePtr, NIL) } public final fun setCustomArrowStep(arrowStep: Double): Unit { TransferContext.writeArguments(DOUBLE to arrowStep) - TransferContext.callMethod(rawPtr, MethodBindings.setCustomArrowStepPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCustomArrowStepPtr, NIL) } public final fun getCustomArrowStep(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCustomArrowStepPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCustomArrowStepPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun isEditable(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isEditablePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isEditablePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setUpdateOnTextChanged(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setUpdateOnTextChangedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUpdateOnTextChangedPtr, NIL) } public final fun getUpdateOnTextChanged(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUpdateOnTextChangedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getUpdateOnTextChangedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSelectAllOnFocus(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setSelectAllOnFocusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSelectAllOnFocusPtr, NIL) } public final fun isSelectAllOnFocus(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSelectAllOnFocusPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSelectAllOnFocusPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -226,7 +226,7 @@ public open class SpinBox : Range() { */ public final fun apply(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.applyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.applyPtr, NIL) } /** @@ -237,7 +237,7 @@ public open class SpinBox : Range() { */ public final fun getLineEdit(): LineEdit? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLineEditPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getLineEditPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as LineEdit?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SplitContainer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SplitContainer.kt index bc7e48b76c..23ee4d7c59 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SplitContainer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SplitContainer.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal1 import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -85,12 +85,12 @@ public open class SplitContainer : Container() { public final fun setSplitOffset(offset: Int): Unit { TransferContext.writeArguments(LONG to offset.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSplitOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSplitOffsetPtr, NIL) } public final fun getSplitOffset(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSplitOffsetPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSplitOffsetPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -100,39 +100,39 @@ public open class SplitContainer : Container() { */ public final fun clampSplitOffset(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clampSplitOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clampSplitOffsetPtr, NIL) } public final fun setCollapsed(collapsed: Boolean): Unit { TransferContext.writeArguments(BOOL to collapsed) - TransferContext.callMethod(rawPtr, MethodBindings.setCollapsedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollapsedPtr, NIL) } public final fun isCollapsed(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCollapsedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCollapsedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDraggerVisibility(mode: DraggerVisibility): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setDraggerVisibilityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDraggerVisibilityPtr, NIL) } public final fun getDraggerVisibility(): DraggerVisibility { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDraggerVisibilityPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDraggerVisibilityPtr, LONG) return SplitContainer.DraggerVisibility.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setVertical(vertical: Boolean): Unit { TransferContext.writeArguments(BOOL to vertical) - TransferContext.callMethod(rawPtr, MethodBindings.setVerticalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVerticalPtr, NIL) } public final fun isVertical(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isVerticalPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isVerticalPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SpringArm3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SpringArm3D.kt index c86cc1d8e1..61dce4316c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SpringArm3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SpringArm3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -16,7 +17,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser._RID import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -99,29 +99,29 @@ public open class SpringArm3D : Node3D() { */ public final fun getHitLength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHitLengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getHitLengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setLength(length: Float): Unit { TransferContext.writeArguments(DOUBLE to length.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setLengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLengthPtr, NIL) } public final fun getLength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setShape(shape: Shape3D?): Unit { TransferContext.writeArguments(OBJECT to shape) - TransferContext.callMethod(rawPtr, MethodBindings.setShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShapePtr, NIL) } public final fun getShape(): Shape3D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getShapePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getShapePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Shape3D?) } @@ -131,7 +131,7 @@ public open class SpringArm3D : Node3D() { */ public final fun addExcludedObject(RID: RID): Unit { TransferContext.writeArguments(_RID to RID) - TransferContext.callMethod(rawPtr, MethodBindings.addExcludedObjectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addExcludedObjectPtr, NIL) } /** @@ -140,7 +140,7 @@ public open class SpringArm3D : Node3D() { */ public final fun removeExcludedObject(RID: RID): Boolean { TransferContext.writeArguments(_RID to RID) - TransferContext.callMethod(rawPtr, MethodBindings.removeExcludedObjectPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.removeExcludedObjectPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -149,28 +149,28 @@ public open class SpringArm3D : Node3D() { */ public final fun clearExcludedObjects(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearExcludedObjectsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearExcludedObjectsPtr, NIL) } public final fun setCollisionMask(mask: Long): Unit { TransferContext.writeArguments(LONG to mask) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionMaskPtr, NIL) } public final fun getCollisionMask(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCollisionMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setMargin(margin: Float): Unit { TransferContext.writeArguments(DOUBLE to margin.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMarginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMarginPtr, NIL) } public final fun getMargin(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMarginPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMarginPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Sprite2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Sprite2D.kt index 85ab2acf12..27a19b4a5f 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Sprite2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Sprite2D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Rect2 import godot.core.Signal0 import godot.core.TypeManager @@ -22,7 +23,6 @@ import godot.core.VariantParser.VECTOR2I import godot.core.Vector2 import godot.core.Vector2i import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -271,67 +271,67 @@ public open class Sprite2D : Node2D() { public final fun setTexture(texture: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTexturePtr, NIL) } public final fun getTexture(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } public final fun setCentered(centered: Boolean): Unit { TransferContext.writeArguments(BOOL to centered) - TransferContext.callMethod(rawPtr, MethodBindings.setCenteredPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCenteredPtr, NIL) } public final fun isCentered(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCenteredPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCenteredPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setOffset(offset: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.setOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOffsetPtr, NIL) } public final fun getOffset(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOffsetPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getOffsetPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setFlipH(flipH: Boolean): Unit { TransferContext.writeArguments(BOOL to flipH) - TransferContext.callMethod(rawPtr, MethodBindings.setFlipHPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFlipHPtr, NIL) } public final fun isFlippedH(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isFlippedHPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isFlippedHPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setFlipV(flipV: Boolean): Unit { TransferContext.writeArguments(BOOL to flipV) - TransferContext.callMethod(rawPtr, MethodBindings.setFlipVPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFlipVPtr, NIL) } public final fun isFlippedV(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isFlippedVPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isFlippedVPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setRegionEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setRegionEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRegionEnabledPtr, NIL) } public final fun isRegionEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isRegionEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isRegionEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -343,73 +343,73 @@ public open class Sprite2D : Node2D() { */ public final fun isPixelOpaque(pos: Vector2): Boolean { TransferContext.writeArguments(VECTOR2 to pos) - TransferContext.callMethod(rawPtr, MethodBindings.isPixelOpaquePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPixelOpaquePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setRegionRect(rect: Rect2): Unit { TransferContext.writeArguments(RECT2 to rect) - TransferContext.callMethod(rawPtr, MethodBindings.setRegionRectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRegionRectPtr, NIL) } public final fun getRegionRect(): Rect2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRegionRectPtr, RECT2) + TransferContext.callMethod(ptr, MethodBindings.getRegionRectPtr, RECT2) return (TransferContext.readReturnValue(RECT2) as Rect2) } public final fun setRegionFilterClipEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setRegionFilterClipEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRegionFilterClipEnabledPtr, NIL) } public final fun isRegionFilterClipEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isRegionFilterClipEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isRegionFilterClipEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setFrame(frame: Int): Unit { TransferContext.writeArguments(LONG to frame.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setFramePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFramePtr, NIL) } public final fun getFrame(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFramePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFramePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setFrameCoords(coords: Vector2i): Unit { TransferContext.writeArguments(VECTOR2I to coords) - TransferContext.callMethod(rawPtr, MethodBindings.setFrameCoordsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFrameCoordsPtr, NIL) } public final fun getFrameCoords(): Vector2i { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFrameCoordsPtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getFrameCoordsPtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } public final fun setVframes(vframes: Int): Unit { TransferContext.writeArguments(LONG to vframes.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setVframesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVframesPtr, NIL) } public final fun getVframes(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVframesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVframesPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setHframes(hframes: Int): Unit { TransferContext.writeArguments(LONG to hframes.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setHframesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHframesPtr, NIL) } public final fun getHframes(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHframesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getHframesPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -445,7 +445,7 @@ public open class Sprite2D : Node2D() { */ public final fun getRect(): Rect2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRectPtr, RECT2) + TransferContext.callMethod(ptr, MethodBindings.getRectPtr, RECT2) return (TransferContext.readReturnValue(RECT2) as Rect2) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Sprite3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Sprite3D.kt index e8ee922e3f..32b4f6e331 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Sprite3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Sprite3D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Rect2 import godot.core.Signal0 import godot.core.TypeManager @@ -20,7 +21,6 @@ import godot.core.VariantParser.RECT2 import godot.core.VariantParser.VECTOR2I import godot.core.Vector2i import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -187,78 +187,78 @@ public open class Sprite3D : SpriteBase3D() { public final fun setTexture(texture: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTexturePtr, NIL) } public final fun getTexture(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } public final fun setRegionEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setRegionEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRegionEnabledPtr, NIL) } public final fun isRegionEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isRegionEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isRegionEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setRegionRect(rect: Rect2): Unit { TransferContext.writeArguments(RECT2 to rect) - TransferContext.callMethod(rawPtr, MethodBindings.setRegionRectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRegionRectPtr, NIL) } public final fun getRegionRect(): Rect2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRegionRectPtr, RECT2) + TransferContext.callMethod(ptr, MethodBindings.getRegionRectPtr, RECT2) return (TransferContext.readReturnValue(RECT2) as Rect2) } public final fun setFrame(frame: Int): Unit { TransferContext.writeArguments(LONG to frame.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setFramePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFramePtr, NIL) } public final fun getFrame(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFramePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFramePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setFrameCoords(coords: Vector2i): Unit { TransferContext.writeArguments(VECTOR2I to coords) - TransferContext.callMethod(rawPtr, MethodBindings.setFrameCoordsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFrameCoordsPtr, NIL) } public final fun getFrameCoords(): Vector2i { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFrameCoordsPtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getFrameCoordsPtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } public final fun setVframes(vframes: Int): Unit { TransferContext.writeArguments(LONG to vframes.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setVframesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVframesPtr, NIL) } public final fun getVframes(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVframesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVframesPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setHframes(hframes: Int): Unit { TransferContext.writeArguments(LONG to hframes.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setHframesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHframesPtr, NIL) } public final fun getHframes(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHframesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getHframesPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SpriteBase3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SpriteBase3D.kt index 895c9318cd..aaa495b8d0 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SpriteBase3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SpriteBase3D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.Rect2 import godot.core.TypeManager @@ -23,7 +24,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -346,89 +346,89 @@ public open class SpriteBase3D internal constructor() : GeometryInstance3D() { public final fun setCentered(centered: Boolean): Unit { TransferContext.writeArguments(BOOL to centered) - TransferContext.callMethod(rawPtr, MethodBindings.setCenteredPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCenteredPtr, NIL) } public final fun isCentered(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCenteredPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCenteredPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setOffset(offset: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.setOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOffsetPtr, NIL) } public final fun getOffset(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOffsetPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getOffsetPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setFlipH(flipH: Boolean): Unit { TransferContext.writeArguments(BOOL to flipH) - TransferContext.callMethod(rawPtr, MethodBindings.setFlipHPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFlipHPtr, NIL) } public final fun isFlippedH(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isFlippedHPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isFlippedHPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setFlipV(flipV: Boolean): Unit { TransferContext.writeArguments(BOOL to flipV) - TransferContext.callMethod(rawPtr, MethodBindings.setFlipVPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFlipVPtr, NIL) } public final fun isFlippedV(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isFlippedVPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isFlippedVPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setModulate(modulate: Color): Unit { TransferContext.writeArguments(COLOR to modulate) - TransferContext.callMethod(rawPtr, MethodBindings.setModulatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setModulatePtr, NIL) } public final fun getModulate(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getModulatePtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getModulatePtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setRenderPriority(priority: Int): Unit { TransferContext.writeArguments(LONG to priority.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setRenderPriorityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRenderPriorityPtr, NIL) } public final fun getRenderPriority(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRenderPriorityPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getRenderPriorityPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setPixelSize(pixelSize: Float): Unit { TransferContext.writeArguments(DOUBLE to pixelSize.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPixelSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPixelSizePtr, NIL) } public final fun getPixelSize(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPixelSizePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPixelSizePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAxis(axis: Vector3.Axis): Unit { TransferContext.writeArguments(LONG to axis.id) - TransferContext.callMethod(rawPtr, MethodBindings.setAxisPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAxisPtr, NIL) } public final fun getAxis(): Vector3.Axis { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAxisPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAxisPtr, LONG) return Vector3.Axis.from(TransferContext.readReturnValue(LONG) as Long) } @@ -438,7 +438,7 @@ public open class SpriteBase3D internal constructor() : GeometryInstance3D() { */ public final fun setDrawFlag(flag: DrawFlags, enabled: Boolean): Unit { TransferContext.writeArguments(LONG to flag.id, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDrawFlagPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDrawFlagPtr, NIL) } /** @@ -446,84 +446,84 @@ public open class SpriteBase3D internal constructor() : GeometryInstance3D() { */ public final fun getDrawFlag(flag: DrawFlags): Boolean { TransferContext.writeArguments(LONG to flag.id) - TransferContext.callMethod(rawPtr, MethodBindings.getDrawFlagPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getDrawFlagPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAlphaCutMode(mode: AlphaCutMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setAlphaCutModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAlphaCutModePtr, NIL) } public final fun getAlphaCutMode(): AlphaCutMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAlphaCutModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAlphaCutModePtr, LONG) return SpriteBase3D.AlphaCutMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setAlphaScissorThreshold(threshold: Float): Unit { TransferContext.writeArguments(DOUBLE to threshold.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAlphaScissorThresholdPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAlphaScissorThresholdPtr, NIL) } public final fun getAlphaScissorThreshold(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAlphaScissorThresholdPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAlphaScissorThresholdPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAlphaHashScale(threshold: Float): Unit { TransferContext.writeArguments(DOUBLE to threshold.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAlphaHashScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAlphaHashScalePtr, NIL) } public final fun getAlphaHashScale(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAlphaHashScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAlphaHashScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAlphaAntialiasing(alphaAa: BaseMaterial3D.AlphaAntiAliasing): Unit { TransferContext.writeArguments(LONG to alphaAa.id) - TransferContext.callMethod(rawPtr, MethodBindings.setAlphaAntialiasingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAlphaAntialiasingPtr, NIL) } public final fun getAlphaAntialiasing(): BaseMaterial3D.AlphaAntiAliasing { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAlphaAntialiasingPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAlphaAntialiasingPtr, LONG) return BaseMaterial3D.AlphaAntiAliasing.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setAlphaAntialiasingEdge(edge: Float): Unit { TransferContext.writeArguments(DOUBLE to edge.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAlphaAntialiasingEdgePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAlphaAntialiasingEdgePtr, NIL) } public final fun getAlphaAntialiasingEdge(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAlphaAntialiasingEdgePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAlphaAntialiasingEdgePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setBillboardMode(mode: BaseMaterial3D.BillboardMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setBillboardModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBillboardModePtr, NIL) } public final fun getBillboardMode(): BaseMaterial3D.BillboardMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBillboardModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBillboardModePtr, LONG) return BaseMaterial3D.BillboardMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setTextureFilter(mode: BaseMaterial3D.TextureFilter): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureFilterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureFilterPtr, NIL) } public final fun getTextureFilter(): BaseMaterial3D.TextureFilter { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextureFilterPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTextureFilterPtr, LONG) return BaseMaterial3D.TextureFilter.from(TransferContext.readReturnValue(LONG) as Long) } @@ -532,7 +532,7 @@ public open class SpriteBase3D internal constructor() : GeometryInstance3D() { */ public final fun getItemRect(): Rect2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getItemRectPtr, RECT2) + TransferContext.callMethod(ptr, MethodBindings.getItemRectPtr, RECT2) return (TransferContext.readReturnValue(RECT2) as Rect2) } @@ -542,7 +542,7 @@ public open class SpriteBase3D internal constructor() : GeometryInstance3D() { */ public final fun generateTriangleMesh(): TriangleMesh? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.generateTriangleMeshPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.generateTriangleMeshPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as TriangleMesh?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SpriteFrames.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SpriteFrames.kt index eee5d4afd0..6a4ef940ad 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SpriteFrames.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SpriteFrames.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedStringArray import godot.core.StringName import godot.core.TypeManager @@ -18,7 +19,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -43,7 +43,7 @@ public open class SpriteFrames : Resource() { */ public final fun addAnimation(anim: StringName): Unit { TransferContext.writeArguments(STRING_NAME to anim) - TransferContext.callMethod(rawPtr, MethodBindings.addAnimationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addAnimationPtr, NIL) } /** @@ -51,7 +51,7 @@ public open class SpriteFrames : Resource() { */ public final fun hasAnimation(anim: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to anim) - TransferContext.callMethod(rawPtr, MethodBindings.hasAnimationPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasAnimationPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -60,7 +60,7 @@ public open class SpriteFrames : Resource() { */ public final fun removeAnimation(anim: StringName): Unit { TransferContext.writeArguments(STRING_NAME to anim) - TransferContext.callMethod(rawPtr, MethodBindings.removeAnimationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeAnimationPtr, NIL) } /** @@ -68,7 +68,7 @@ public open class SpriteFrames : Resource() { */ public final fun renameAnimation(anim: StringName, newname: StringName): Unit { TransferContext.writeArguments(STRING_NAME to anim, STRING_NAME to newname) - TransferContext.callMethod(rawPtr, MethodBindings.renameAnimationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.renameAnimationPtr, NIL) } /** @@ -77,7 +77,7 @@ public open class SpriteFrames : Resource() { */ public final fun getAnimationNames(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAnimationNamesPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getAnimationNamesPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -86,7 +86,7 @@ public open class SpriteFrames : Resource() { */ public final fun setAnimationSpeed(anim: StringName, fps: Double): Unit { TransferContext.writeArguments(STRING_NAME to anim, DOUBLE to fps) - TransferContext.callMethod(rawPtr, MethodBindings.setAnimationSpeedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAnimationSpeedPtr, NIL) } /** @@ -94,7 +94,7 @@ public open class SpriteFrames : Resource() { */ public final fun getAnimationSpeed(anim: StringName): Double { TransferContext.writeArguments(STRING_NAME to anim) - TransferContext.callMethod(rawPtr, MethodBindings.getAnimationSpeedPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAnimationSpeedPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -104,7 +104,7 @@ public open class SpriteFrames : Resource() { */ public final fun setAnimationLoop(anim: StringName, loop: Boolean): Unit { TransferContext.writeArguments(STRING_NAME to anim, BOOL to loop) - TransferContext.callMethod(rawPtr, MethodBindings.setAnimationLoopPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAnimationLoopPtr, NIL) } /** @@ -113,7 +113,7 @@ public open class SpriteFrames : Resource() { */ public final fun getAnimationLoop(anim: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to anim) - TransferContext.callMethod(rawPtr, MethodBindings.getAnimationLoopPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getAnimationLoopPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -130,7 +130,7 @@ public open class SpriteFrames : Resource() { atPosition: Int = -1, ): Unit { TransferContext.writeArguments(STRING_NAME to anim, OBJECT to texture, DOUBLE to duration.toDouble(), LONG to atPosition.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addFramePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addFramePtr, NIL) } /** @@ -145,7 +145,7 @@ public open class SpriteFrames : Resource() { duration: Float = 1.0f, ): Unit { TransferContext.writeArguments(STRING_NAME to anim, LONG to idx.toLong(), OBJECT to texture, DOUBLE to duration.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFramePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFramePtr, NIL) } /** @@ -153,7 +153,7 @@ public open class SpriteFrames : Resource() { */ public final fun removeFrame(anim: StringName, idx: Int): Unit { TransferContext.writeArguments(STRING_NAME to anim, LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeFramePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeFramePtr, NIL) } /** @@ -161,7 +161,7 @@ public open class SpriteFrames : Resource() { */ public final fun getFrameCount(anim: StringName): Int { TransferContext.writeArguments(STRING_NAME to anim) - TransferContext.callMethod(rawPtr, MethodBindings.getFrameCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFrameCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -170,7 +170,7 @@ public open class SpriteFrames : Resource() { */ public final fun getFrameTexture(anim: StringName, idx: Int): Texture2D? { TransferContext.writeArguments(STRING_NAME to anim, LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getFrameTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getFrameTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } @@ -187,7 +187,7 @@ public open class SpriteFrames : Resource() { */ public final fun getFrameDuration(anim: StringName, idx: Int): Float { TransferContext.writeArguments(STRING_NAME to anim, LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getFrameDurationPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFrameDurationPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -196,7 +196,7 @@ public open class SpriteFrames : Resource() { */ public final fun clear(anim: StringName): Unit { TransferContext.writeArguments(STRING_NAME to anim) - TransferContext.callMethod(rawPtr, MethodBindings.clearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPtr, NIL) } /** @@ -204,7 +204,7 @@ public open class SpriteFrames : Resource() { */ public final fun clearAll(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearAllPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearAllPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/StaticBody2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/StaticBody2D.kt index 9699ff5017..7ad8c34764 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/StaticBody2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/StaticBody2D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL @@ -16,7 +17,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -106,34 +106,34 @@ public open class StaticBody2D : PhysicsBody2D() { public final fun setConstantLinearVelocity(vel: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to vel) - TransferContext.callMethod(rawPtr, MethodBindings.setConstantLinearVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setConstantLinearVelocityPtr, NIL) } public final fun setConstantAngularVelocity(vel: Float): Unit { TransferContext.writeArguments(DOUBLE to vel.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setConstantAngularVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setConstantAngularVelocityPtr, NIL) } public final fun getConstantLinearVelocity(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConstantLinearVelocityPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getConstantLinearVelocityPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun getConstantAngularVelocity(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConstantAngularVelocityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getConstantAngularVelocityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setPhysicsMaterialOverride(physicsMaterialOverride: PhysicsMaterial?): Unit { TransferContext.writeArguments(OBJECT to physicsMaterialOverride) - TransferContext.callMethod(rawPtr, MethodBindings.setPhysicsMaterialOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPhysicsMaterialOverridePtr, NIL) } public final fun getPhysicsMaterialOverride(): PhysicsMaterial? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPhysicsMaterialOverridePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getPhysicsMaterialOverridePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as PhysicsMaterial?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/StaticBody3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/StaticBody3D.kt index 91f21892b8..c9845b8c9b 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/StaticBody3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/StaticBody3D.kt @@ -9,13 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -130,34 +130,34 @@ public open class StaticBody3D : PhysicsBody3D() { public final fun setConstantLinearVelocity(vel: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to vel) - TransferContext.callMethod(rawPtr, MethodBindings.setConstantLinearVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setConstantLinearVelocityPtr, NIL) } public final fun setConstantAngularVelocity(vel: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to vel) - TransferContext.callMethod(rawPtr, MethodBindings.setConstantAngularVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setConstantAngularVelocityPtr, NIL) } public final fun getConstantLinearVelocity(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConstantLinearVelocityPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getConstantLinearVelocityPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun getConstantAngularVelocity(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConstantAngularVelocityPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getConstantAngularVelocityPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setPhysicsMaterialOverride(physicsMaterialOverride: PhysicsMaterial?): Unit { TransferContext.writeArguments(OBJECT to physicsMaterialOverride) - TransferContext.callMethod(rawPtr, MethodBindings.setPhysicsMaterialOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPhysicsMaterialOverridePtr, NIL) } public final fun getPhysicsMaterialOverride(): PhysicsMaterial? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPhysicsMaterialOverridePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getPhysicsMaterialOverridePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as PhysicsMaterial?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/StatusIndicator.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/StatusIndicator.kt index fc47f31ae3..b656e62abd 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/StatusIndicator.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/StatusIndicator.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.Rect2 import godot.core.Signal2 @@ -19,7 +20,6 @@ import godot.core.VariantParser.RECT2 import godot.core.VariantParser.STRING import godot.core.Vector2i import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -87,45 +87,45 @@ public open class StatusIndicator : Node() { public final fun setTooltip(tooltip: String): Unit { TransferContext.writeArguments(STRING to tooltip) - TransferContext.callMethod(rawPtr, MethodBindings.setTooltipPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTooltipPtr, NIL) } public final fun getTooltip(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTooltipPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getTooltipPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setIcon(texture: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setIconPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIconPtr, NIL) } public final fun getIcon(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getIconPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getIconPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } public final fun setVisible(visible: Boolean): Unit { TransferContext.writeArguments(BOOL to visible) - TransferContext.callMethod(rawPtr, MethodBindings.setVisiblePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVisiblePtr, NIL) } public final fun isVisible(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isVisiblePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isVisiblePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setMenu(menu: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to menu) - TransferContext.callMethod(rawPtr, MethodBindings.setMenuPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMenuPtr, NIL) } public final fun getMenu(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMenuPtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getMenuPtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } @@ -135,7 +135,7 @@ public open class StatusIndicator : Node() { */ public final fun getRect(): Rect2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRectPtr, RECT2) + TransferContext.callMethod(ptr, MethodBindings.getRectPtr, RECT2) return (TransferContext.readReturnValue(RECT2) as Rect2) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/StreamPeer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/StreamPeer.kt index 0e9e0f3372..65a5e49ad6 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/StreamPeer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/StreamPeer.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedByteArray import godot.core.TypeManager import godot.core.VariantArray @@ -19,7 +20,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -62,7 +62,7 @@ public open class StreamPeer internal constructor() : RefCounted() { */ public final fun putData(`data`: PackedByteArray): Error { TransferContext.writeArguments(PACKED_BYTE_ARRAY to data) - TransferContext.callMethod(rawPtr, MethodBindings.putDataPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.putDataPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -73,7 +73,7 @@ public open class StreamPeer internal constructor() : RefCounted() { */ public final fun putPartialData(`data`: PackedByteArray): VariantArray { TransferContext.writeArguments(PACKED_BYTE_ARRAY to data) - TransferContext.callMethod(rawPtr, MethodBindings.putPartialDataPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.putPartialDataPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -85,7 +85,7 @@ public open class StreamPeer internal constructor() : RefCounted() { */ public final fun getData(bytes: Int): VariantArray { TransferContext.writeArguments(LONG to bytes.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getDataPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getDataPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -96,7 +96,7 @@ public open class StreamPeer internal constructor() : RefCounted() { */ public final fun getPartialData(bytes: Int): VariantArray { TransferContext.writeArguments(LONG to bytes.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getPartialDataPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getPartialDataPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -105,18 +105,18 @@ public open class StreamPeer internal constructor() : RefCounted() { */ public final fun getAvailableBytes(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAvailableBytesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAvailableBytesPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setBigEndian(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setBigEndianPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBigEndianPtr, NIL) } public final fun isBigEndianEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isBigEndianEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isBigEndianEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -125,7 +125,7 @@ public open class StreamPeer internal constructor() : RefCounted() { */ public final fun put8(`value`: Int): Unit { TransferContext.writeArguments(LONG to value.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.put8Ptr, NIL) + TransferContext.callMethod(ptr, MethodBindings.put8Ptr, NIL) } /** @@ -133,7 +133,7 @@ public open class StreamPeer internal constructor() : RefCounted() { */ public final fun putU8(`value`: Int): Unit { TransferContext.writeArguments(LONG to value.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.putU8Ptr, NIL) + TransferContext.callMethod(ptr, MethodBindings.putU8Ptr, NIL) } /** @@ -141,7 +141,7 @@ public open class StreamPeer internal constructor() : RefCounted() { */ public final fun put16(`value`: Int): Unit { TransferContext.writeArguments(LONG to value.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.put16Ptr, NIL) + TransferContext.callMethod(ptr, MethodBindings.put16Ptr, NIL) } /** @@ -149,7 +149,7 @@ public open class StreamPeer internal constructor() : RefCounted() { */ public final fun putU16(`value`: Int): Unit { TransferContext.writeArguments(LONG to value.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.putU16Ptr, NIL) + TransferContext.callMethod(ptr, MethodBindings.putU16Ptr, NIL) } /** @@ -157,7 +157,7 @@ public open class StreamPeer internal constructor() : RefCounted() { */ public final fun put32(`value`: Int): Unit { TransferContext.writeArguments(LONG to value.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.put32Ptr, NIL) + TransferContext.callMethod(ptr, MethodBindings.put32Ptr, NIL) } /** @@ -165,7 +165,7 @@ public open class StreamPeer internal constructor() : RefCounted() { */ public final fun putU32(`value`: Long): Unit { TransferContext.writeArguments(LONG to value) - TransferContext.callMethod(rawPtr, MethodBindings.putU32Ptr, NIL) + TransferContext.callMethod(ptr, MethodBindings.putU32Ptr, NIL) } /** @@ -173,7 +173,7 @@ public open class StreamPeer internal constructor() : RefCounted() { */ public final fun put64(`value`: Long): Unit { TransferContext.writeArguments(LONG to value) - TransferContext.callMethod(rawPtr, MethodBindings.put64Ptr, NIL) + TransferContext.callMethod(ptr, MethodBindings.put64Ptr, NIL) } /** @@ -181,7 +181,7 @@ public open class StreamPeer internal constructor() : RefCounted() { */ public final fun putU64(`value`: Long): Unit { TransferContext.writeArguments(LONG to value) - TransferContext.callMethod(rawPtr, MethodBindings.putU64Ptr, NIL) + TransferContext.callMethod(ptr, MethodBindings.putU64Ptr, NIL) } /** @@ -189,7 +189,7 @@ public open class StreamPeer internal constructor() : RefCounted() { */ public final fun putFloat(`value`: Float): Unit { TransferContext.writeArguments(DOUBLE to value.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.putFloatPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.putFloatPtr, NIL) } /** @@ -197,7 +197,7 @@ public open class StreamPeer internal constructor() : RefCounted() { */ public final fun putDouble(`value`: Double): Unit { TransferContext.writeArguments(DOUBLE to value) - TransferContext.callMethod(rawPtr, MethodBindings.putDoublePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.putDoublePtr, NIL) } /** @@ -216,7 +216,7 @@ public open class StreamPeer internal constructor() : RefCounted() { */ public final fun putString(`value`: String): Unit { TransferContext.writeArguments(STRING to value) - TransferContext.callMethod(rawPtr, MethodBindings.putStringPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.putStringPtr, NIL) } /** @@ -235,7 +235,7 @@ public open class StreamPeer internal constructor() : RefCounted() { */ public final fun putUtf8String(`value`: String): Unit { TransferContext.writeArguments(STRING to value) - TransferContext.callMethod(rawPtr, MethodBindings.putUtf8StringPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.putUtf8StringPtr, NIL) } /** @@ -246,7 +246,7 @@ public open class StreamPeer internal constructor() : RefCounted() { @JvmOverloads public final fun putVar(`value`: Any?, fullObjects: Boolean = false): Unit { TransferContext.writeArguments(ANY to value, BOOL to fullObjects) - TransferContext.callMethod(rawPtr, MethodBindings.putVarPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.putVarPtr, NIL) } /** @@ -254,7 +254,7 @@ public open class StreamPeer internal constructor() : RefCounted() { */ public final fun get8(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.get8Ptr, LONG) + TransferContext.callMethod(ptr, MethodBindings.get8Ptr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -263,7 +263,7 @@ public open class StreamPeer internal constructor() : RefCounted() { */ public final fun getU8(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getU8Ptr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getU8Ptr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -272,7 +272,7 @@ public open class StreamPeer internal constructor() : RefCounted() { */ public final fun get16(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.get16Ptr, LONG) + TransferContext.callMethod(ptr, MethodBindings.get16Ptr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -281,7 +281,7 @@ public open class StreamPeer internal constructor() : RefCounted() { */ public final fun getU16(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getU16Ptr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getU16Ptr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -290,7 +290,7 @@ public open class StreamPeer internal constructor() : RefCounted() { */ public final fun get32(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.get32Ptr, LONG) + TransferContext.callMethod(ptr, MethodBindings.get32Ptr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -299,7 +299,7 @@ public open class StreamPeer internal constructor() : RefCounted() { */ public final fun getU32(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getU32Ptr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getU32Ptr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -308,7 +308,7 @@ public open class StreamPeer internal constructor() : RefCounted() { */ public final fun get64(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.get64Ptr, LONG) + TransferContext.callMethod(ptr, MethodBindings.get64Ptr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -317,7 +317,7 @@ public open class StreamPeer internal constructor() : RefCounted() { */ public final fun getU64(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getU64Ptr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getU64Ptr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -326,7 +326,7 @@ public open class StreamPeer internal constructor() : RefCounted() { */ public final fun getFloat(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFloatPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFloatPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -335,7 +335,7 @@ public open class StreamPeer internal constructor() : RefCounted() { */ public final fun getDouble(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDoublePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDoublePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -346,7 +346,7 @@ public open class StreamPeer internal constructor() : RefCounted() { @JvmOverloads public final fun getString(bytes: Int = -1): String { TransferContext.writeArguments(LONG to bytes.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getStringPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getStringPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -358,7 +358,7 @@ public open class StreamPeer internal constructor() : RefCounted() { @JvmOverloads public final fun getUtf8String(bytes: Int = -1): String { TransferContext.writeArguments(LONG to bytes.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getUtf8StringPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getUtf8StringPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -372,7 +372,7 @@ public open class StreamPeer internal constructor() : RefCounted() { @JvmOverloads public final fun getVar(allowObjects: Boolean = false): Any? { TransferContext.writeArguments(BOOL to allowObjects) - TransferContext.callMethod(rawPtr, MethodBindings.getVarPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getVarPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/StreamPeerBuffer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/StreamPeerBuffer.kt index 4818e8ed1f..1c71397db0 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/StreamPeerBuffer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/StreamPeerBuffer.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedByteArray import godot.core.TypeManager import godot.core.VariantParser.LONG @@ -14,7 +15,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -51,7 +51,7 @@ public open class StreamPeerBuffer : StreamPeer() { */ public final fun seek(position: Int): Unit { TransferContext.writeArguments(LONG to position.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.seekPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.seekPtr, NIL) } /** @@ -59,7 +59,7 @@ public open class StreamPeerBuffer : StreamPeer() { */ public final fun getSize(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -68,7 +68,7 @@ public open class StreamPeerBuffer : StreamPeer() { */ public final fun getPosition(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPositionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPositionPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -77,17 +77,17 @@ public open class StreamPeerBuffer : StreamPeer() { */ public final fun resize(size: Int): Unit { TransferContext.writeArguments(LONG to size.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.resizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.resizePtr, NIL) } public final fun setDataArray(`data`: PackedByteArray): Unit { TransferContext.writeArguments(PACKED_BYTE_ARRAY to data) - TransferContext.callMethod(rawPtr, MethodBindings.setDataArrayPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDataArrayPtr, NIL) } public final fun getDataArray(): PackedByteArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDataArrayPtr, PACKED_BYTE_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getDataArrayPtr, PACKED_BYTE_ARRAY) return (TransferContext.readReturnValue(PACKED_BYTE_ARRAY) as PackedByteArray) } @@ -96,7 +96,7 @@ public open class StreamPeerBuffer : StreamPeer() { */ public final fun clear(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPtr, NIL) } /** @@ -104,7 +104,7 @@ public open class StreamPeerBuffer : StreamPeer() { */ public final fun duplicate(): StreamPeerBuffer? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.duplicatePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.duplicatePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as StreamPeerBuffer?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/StreamPeerGZIP.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/StreamPeerGZIP.kt index 03bbf46126..cea319b527 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/StreamPeerGZIP.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/StreamPeerGZIP.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -45,7 +45,7 @@ public open class StreamPeerGZIP : StreamPeer() { @JvmOverloads public final fun startCompression(useDeflate: Boolean = false, bufferSize: Int = 65535): Error { TransferContext.writeArguments(BOOL to useDeflate, LONG to bufferSize.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.startCompressionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.startCompressionPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -56,7 +56,7 @@ public open class StreamPeerGZIP : StreamPeer() { @JvmOverloads public final fun startDecompression(useDeflate: Boolean = false, bufferSize: Int = 65535): Error { TransferContext.writeArguments(BOOL to useDeflate, LONG to bufferSize.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.startDecompressionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.startDecompressionPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -65,7 +65,7 @@ public open class StreamPeerGZIP : StreamPeer() { */ public final fun finish(): Error { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.finishPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.finishPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -74,7 +74,7 @@ public open class StreamPeerGZIP : StreamPeer() { */ public final fun clear(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/StreamPeerTCP.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/StreamPeerTCP.kt index 0295945b3b..59e7f549e3 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/StreamPeerTCP.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/StreamPeerTCP.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -44,7 +44,7 @@ public open class StreamPeerTCP : StreamPeer() { @JvmOverloads public final fun bind(port: Int, host: String = "*"): Error { TransferContext.writeArguments(LONG to port.toLong(), STRING to host) - TransferContext.callMethod(rawPtr, MethodBindings.bindPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.bindPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -54,7 +54,7 @@ public open class StreamPeerTCP : StreamPeer() { */ public final fun connectToHost(host: String, port: Int): Error { TransferContext.writeArguments(STRING to host, LONG to port.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.connectToHostPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.connectToHostPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -63,7 +63,7 @@ public open class StreamPeerTCP : StreamPeer() { */ public final fun poll(): Error { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.pollPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.pollPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -72,7 +72,7 @@ public open class StreamPeerTCP : StreamPeer() { */ public final fun getStatus(): Status { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStatusPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getStatusPtr, LONG) return StreamPeerTCP.Status.from(TransferContext.readReturnValue(LONG) as Long) } @@ -81,7 +81,7 @@ public open class StreamPeerTCP : StreamPeer() { */ public final fun getConnectedHost(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConnectedHostPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getConnectedHostPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -90,7 +90,7 @@ public open class StreamPeerTCP : StreamPeer() { */ public final fun getConnectedPort(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConnectedPortPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getConnectedPortPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -99,7 +99,7 @@ public open class StreamPeerTCP : StreamPeer() { */ public final fun getLocalPort(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLocalPortPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLocalPortPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -108,7 +108,7 @@ public open class StreamPeerTCP : StreamPeer() { */ public final fun disconnectFromHost(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.disconnectFromHostPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.disconnectFromHostPtr, NIL) } /** @@ -120,7 +120,7 @@ public open class StreamPeerTCP : StreamPeer() { */ public final fun setNoDelay(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setNoDelayPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNoDelayPtr, NIL) } public enum class Status( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/StreamPeerTLS.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/StreamPeerTLS.kt index cc4f38a8dc..544a007de0 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/StreamPeerTLS.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/StreamPeerTLS.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.String @@ -40,7 +40,7 @@ public open class StreamPeerTLS : StreamPeer() { */ public final fun poll(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.pollPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pollPtr, NIL) } /** @@ -48,7 +48,7 @@ public open class StreamPeerTLS : StreamPeer() { */ public final fun acceptStream(stream: StreamPeer?, serverOptions: TLSOptions?): Error { TransferContext.writeArguments(OBJECT to stream, OBJECT to serverOptions) - TransferContext.callMethod(rawPtr, MethodBindings.acceptStreamPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.acceptStreamPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -65,7 +65,7 @@ public open class StreamPeerTLS : StreamPeer() { clientOptions: TLSOptions? = null, ): Error { TransferContext.writeArguments(OBJECT to stream, STRING to commonName, OBJECT to clientOptions) - TransferContext.callMethod(rawPtr, MethodBindings.connectToStreamPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.connectToStreamPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -74,7 +74,7 @@ public open class StreamPeerTLS : StreamPeer() { */ public final fun getStatus(): Status { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStatusPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getStatusPtr, LONG) return StreamPeerTLS.Status.from(TransferContext.readReturnValue(LONG) as Long) } @@ -83,7 +83,7 @@ public open class StreamPeerTLS : StreamPeer() { */ public final fun getStream(): StreamPeer? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStreamPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getStreamPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as StreamPeer?) } @@ -92,7 +92,7 @@ public open class StreamPeerTLS : StreamPeer() { */ public final fun disconnectFromStream(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.disconnectFromStreamPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.disconnectFromStreamPtr, NIL) } public enum class Status( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/StyleBox.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/StyleBox.kt index 8cdd3acb5f..a4c2d5c628 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/StyleBox.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/StyleBox.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.Rect2 import godot.core.TypeManager @@ -20,7 +21,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -128,7 +128,7 @@ public open class StyleBox : Resource() { */ public final fun getMinimumSize(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMinimumSizePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getMinimumSizePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -137,7 +137,7 @@ public open class StyleBox : Resource() { */ public final fun setContentMargin(margin: Side, offset: Float): Unit { TransferContext.writeArguments(LONG to margin.id, DOUBLE to offset.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setContentMarginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setContentMarginPtr, NIL) } /** @@ -145,7 +145,7 @@ public open class StyleBox : Resource() { */ public final fun setContentMarginAll(offset: Float): Unit { TransferContext.writeArguments(DOUBLE to offset.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setContentMarginAllPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setContentMarginAllPtr, NIL) } /** @@ -153,7 +153,7 @@ public open class StyleBox : Resource() { */ public final fun getContentMargin(margin: Side): Float { TransferContext.writeArguments(LONG to margin.id) - TransferContext.callMethod(rawPtr, MethodBindings.getContentMarginPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getContentMarginPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -163,7 +163,7 @@ public open class StyleBox : Resource() { */ public final fun getMargin(margin: Side): Float { TransferContext.writeArguments(LONG to margin.id) - TransferContext.callMethod(rawPtr, MethodBindings.getMarginPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMarginPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -173,7 +173,7 @@ public open class StyleBox : Resource() { */ public final fun getOffset(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOffsetPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getOffsetPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -185,7 +185,7 @@ public open class StyleBox : Resource() { */ public final fun draw(canvasItem: RID, rect: Rect2): Unit { TransferContext.writeArguments(_RID to canvasItem, RECT2 to rect) - TransferContext.callMethod(rawPtr, MethodBindings.drawPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawPtr, NIL) } /** @@ -194,7 +194,7 @@ public open class StyleBox : Resource() { */ public final fun getCurrentItemDrawn(): CanvasItem? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCurrentItemDrawnPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getCurrentItemDrawnPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as CanvasItem?) } @@ -203,7 +203,7 @@ public open class StyleBox : Resource() { */ public final fun testMask(point: Vector2, rect: Rect2): Boolean { TransferContext.writeArguments(VECTOR2 to point, RECT2 to rect) - TransferContext.callMethod(rawPtr, MethodBindings.testMaskPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.testMaskPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/StyleBoxFlat.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/StyleBoxFlat.kt index 468e4467c7..68bd2b9954 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/StyleBoxFlat.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/StyleBoxFlat.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -19,7 +20,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -477,23 +477,23 @@ public open class StyleBoxFlat : StyleBox() { public final fun setBgColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setBgColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBgColorPtr, NIL) } public final fun getBgColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBgColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getBgColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setBorderColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setBorderColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBorderColorPtr, NIL) } public final fun getBorderColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBorderColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getBorderColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } @@ -502,7 +502,7 @@ public open class StyleBoxFlat : StyleBox() { */ public final fun setBorderWidthAll(width: Int): Unit { TransferContext.writeArguments(LONG to width.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setBorderWidthAllPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBorderWidthAllPtr, NIL) } /** @@ -510,7 +510,7 @@ public open class StyleBoxFlat : StyleBox() { */ public final fun getBorderWidthMin(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBorderWidthMinPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBorderWidthMinPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -519,7 +519,7 @@ public open class StyleBoxFlat : StyleBox() { */ public final fun setBorderWidth(margin: Side, width: Int): Unit { TransferContext.writeArguments(LONG to margin.id, LONG to width.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setBorderWidthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBorderWidthPtr, NIL) } /** @@ -527,18 +527,18 @@ public open class StyleBoxFlat : StyleBox() { */ public final fun getBorderWidth(margin: Side): Int { TransferContext.writeArguments(LONG to margin.id) - TransferContext.callMethod(rawPtr, MethodBindings.getBorderWidthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBorderWidthPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setBorderBlend(blend: Boolean): Unit { TransferContext.writeArguments(BOOL to blend) - TransferContext.callMethod(rawPtr, MethodBindings.setBorderBlendPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBorderBlendPtr, NIL) } public final fun getBorderBlend(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBorderBlendPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getBorderBlendPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -547,7 +547,7 @@ public open class StyleBoxFlat : StyleBox() { */ public final fun setCornerRadiusAll(radius: Int): Unit { TransferContext.writeArguments(LONG to radius.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setCornerRadiusAllPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCornerRadiusAllPtr, NIL) } /** @@ -556,7 +556,7 @@ public open class StyleBoxFlat : StyleBox() { */ public final fun setCornerRadius(corner: Corner, radius: Int): Unit { TransferContext.writeArguments(LONG to corner.id, LONG to radius.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setCornerRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCornerRadiusPtr, NIL) } /** @@ -564,7 +564,7 @@ public open class StyleBoxFlat : StyleBox() { */ public final fun getCornerRadius(corner: Corner): Int { TransferContext.writeArguments(LONG to corner.id) - TransferContext.callMethod(rawPtr, MethodBindings.getCornerRadiusPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCornerRadiusPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -573,7 +573,7 @@ public open class StyleBoxFlat : StyleBox() { */ public final fun setExpandMargin(margin: Side, size: Float): Unit { TransferContext.writeArguments(LONG to margin.id, DOUBLE to size.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setExpandMarginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExpandMarginPtr, NIL) } /** @@ -581,7 +581,7 @@ public open class StyleBoxFlat : StyleBox() { */ public final fun setExpandMarginAll(size: Float): Unit { TransferContext.writeArguments(DOUBLE to size.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setExpandMarginAllPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExpandMarginAllPtr, NIL) } /** @@ -589,95 +589,95 @@ public open class StyleBoxFlat : StyleBox() { */ public final fun getExpandMargin(margin: Side): Float { TransferContext.writeArguments(LONG to margin.id) - TransferContext.callMethod(rawPtr, MethodBindings.getExpandMarginPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getExpandMarginPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDrawCenter(drawCenter: Boolean): Unit { TransferContext.writeArguments(BOOL to drawCenter) - TransferContext.callMethod(rawPtr, MethodBindings.setDrawCenterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDrawCenterPtr, NIL) } public final fun isDrawCenterEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDrawCenterEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDrawCenterEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSkew(skew: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to skew) - TransferContext.callMethod(rawPtr, MethodBindings.setSkewPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSkewPtr, NIL) } public final fun getSkew(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSkewPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getSkewPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setShadowColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setShadowColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShadowColorPtr, NIL) } public final fun getShadowColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getShadowColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getShadowColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setShadowSize(size: Int): Unit { TransferContext.writeArguments(LONG to size.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setShadowSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShadowSizePtr, NIL) } public final fun getShadowSize(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getShadowSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getShadowSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setShadowOffset(offset: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.setShadowOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShadowOffsetPtr, NIL) } public final fun getShadowOffset(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getShadowOffsetPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getShadowOffsetPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setAntiAliased(antiAliased: Boolean): Unit { TransferContext.writeArguments(BOOL to antiAliased) - TransferContext.callMethod(rawPtr, MethodBindings.setAntiAliasedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAntiAliasedPtr, NIL) } public final fun isAntiAliased(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isAntiAliasedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isAntiAliasedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAaSize(size: Float): Unit { TransferContext.writeArguments(DOUBLE to size.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setAaSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAaSizePtr, NIL) } public final fun getAaSize(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAaSizePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getAaSizePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setCornerDetail(detail: Int): Unit { TransferContext.writeArguments(LONG to detail.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setCornerDetailPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCornerDetailPtr, NIL) } public final fun getCornerDetail(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCornerDetailPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCornerDetailPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/StyleBoxLine.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/StyleBoxLine.kt index e7642ae0bf..f33228d915 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/StyleBoxLine.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/StyleBoxLine.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -17,7 +18,6 @@ import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -121,56 +121,56 @@ public open class StyleBoxLine : StyleBox() { public final fun setColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColorPtr, NIL) } public final fun getColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setThickness(thickness: Int): Unit { TransferContext.writeArguments(LONG to thickness.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setThicknessPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setThicknessPtr, NIL) } public final fun getThickness(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getThicknessPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getThicknessPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setGrowBegin(offset: Float): Unit { TransferContext.writeArguments(DOUBLE to offset.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setGrowBeginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGrowBeginPtr, NIL) } public final fun getGrowBegin(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGrowBeginPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getGrowBeginPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setGrowEnd(offset: Float): Unit { TransferContext.writeArguments(DOUBLE to offset.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setGrowEndPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGrowEndPtr, NIL) } public final fun getGrowEnd(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGrowEndPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getGrowEndPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVertical(vertical: Boolean): Unit { TransferContext.writeArguments(BOOL to vertical) - TransferContext.callMethod(rawPtr, MethodBindings.setVerticalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVerticalPtr, NIL) } public final fun isVertical(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isVerticalPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isVerticalPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/StyleBoxTexture.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/StyleBoxTexture.kt index b23027f12b..4d3eac2b3e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/StyleBoxTexture.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/StyleBoxTexture.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.Rect2 import godot.core.TypeManager @@ -20,7 +21,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.RECT2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -269,12 +269,12 @@ public open class StyleBoxTexture : StyleBox() { public final fun setTexture(texture: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTexturePtr, NIL) } public final fun getTexture(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } @@ -283,7 +283,7 @@ public open class StyleBoxTexture : StyleBox() { */ public final fun setTextureMargin(margin: Side, size: Float): Unit { TransferContext.writeArguments(LONG to margin.id, DOUBLE to size.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureMarginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureMarginPtr, NIL) } /** @@ -291,7 +291,7 @@ public open class StyleBoxTexture : StyleBox() { */ public final fun setTextureMarginAll(size: Float): Unit { TransferContext.writeArguments(DOUBLE to size.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureMarginAllPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureMarginAllPtr, NIL) } /** @@ -299,7 +299,7 @@ public open class StyleBoxTexture : StyleBox() { */ public final fun getTextureMargin(margin: Side): Float { TransferContext.writeArguments(LONG to margin.id) - TransferContext.callMethod(rawPtr, MethodBindings.getTextureMarginPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTextureMarginPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -308,7 +308,7 @@ public open class StyleBoxTexture : StyleBox() { */ public final fun setExpandMargin(margin: Side, size: Float): Unit { TransferContext.writeArguments(LONG to margin.id, DOUBLE to size.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setExpandMarginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExpandMarginPtr, NIL) } /** @@ -316,7 +316,7 @@ public open class StyleBoxTexture : StyleBox() { */ public final fun setExpandMarginAll(size: Float): Unit { TransferContext.writeArguments(DOUBLE to size.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setExpandMarginAllPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExpandMarginAllPtr, NIL) } /** @@ -324,62 +324,62 @@ public open class StyleBoxTexture : StyleBox() { */ public final fun getExpandMargin(margin: Side): Float { TransferContext.writeArguments(LONG to margin.id) - TransferContext.callMethod(rawPtr, MethodBindings.getExpandMarginPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getExpandMarginPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setRegionRect(region: Rect2): Unit { TransferContext.writeArguments(RECT2 to region) - TransferContext.callMethod(rawPtr, MethodBindings.setRegionRectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRegionRectPtr, NIL) } public final fun getRegionRect(): Rect2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRegionRectPtr, RECT2) + TransferContext.callMethod(ptr, MethodBindings.getRegionRectPtr, RECT2) return (TransferContext.readReturnValue(RECT2) as Rect2) } public final fun setDrawCenter(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setDrawCenterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDrawCenterPtr, NIL) } public final fun isDrawCenterEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDrawCenterEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDrawCenterEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setModulate(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setModulatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setModulatePtr, NIL) } public final fun getModulate(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getModulatePtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getModulatePtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setHAxisStretchMode(mode: AxisStretchMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setHAxisStretchModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHAxisStretchModePtr, NIL) } public final fun getHAxisStretchMode(): AxisStretchMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHAxisStretchModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getHAxisStretchModePtr, LONG) return StyleBoxTexture.AxisStretchMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setVAxisStretchMode(mode: AxisStretchMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setVAxisStretchModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVAxisStretchModePtr, NIL) } public final fun getVAxisStretchMode(): AxisStretchMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVAxisStretchModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVAxisStretchModePtr, LONG) return StyleBoxTexture.AxisStretchMode.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SubViewport.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SubViewport.kt index 0e54102034..763e8d9f9a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SubViewport.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SubViewport.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG @@ -16,7 +17,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2I import godot.core.Vector2i import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -154,56 +154,56 @@ public open class SubViewport : Viewport() { public final fun setSize(size: Vector2i): Unit { TransferContext.writeArguments(VECTOR2I to size) - TransferContext.callMethod(rawPtr, MethodBindings.setSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSizePtr, NIL) } public final fun getSize(): Vector2i { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSizePtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getSizePtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } public final fun setSize2dOverride(size: Vector2i): Unit { TransferContext.writeArguments(VECTOR2I to size) - TransferContext.callMethod(rawPtr, MethodBindings.setSize2dOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSize2dOverridePtr, NIL) } public final fun getSize2dOverride(): Vector2i { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSize2dOverridePtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getSize2dOverridePtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } public final fun setSize2dOverrideStretch(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setSize2dOverrideStretchPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSize2dOverrideStretchPtr, NIL) } public final fun isSize2dOverrideStretchEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSize2dOverrideStretchEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSize2dOverrideStretchEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setUpdateMode(mode: UpdateMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setUpdateModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUpdateModePtr, NIL) } public final fun getUpdateMode(): UpdateMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUpdateModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getUpdateModePtr, LONG) return SubViewport.UpdateMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setClearMode(mode: ClearMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setClearModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setClearModePtr, NIL) } public final fun getClearMode(): ClearMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getClearModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getClearModePtr, LONG) return SubViewport.ClearMode.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SubViewportContainer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SubViewportContainer.kt index f976143432..5f79fd135b 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SubViewportContainer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SubViewportContainer.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -74,23 +74,23 @@ public open class SubViewportContainer : Container() { public final fun setStretch(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setStretchPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStretchPtr, NIL) } public final fun isStretchEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isStretchEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isStretchEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setStretchShrink(amount: Int): Unit { TransferContext.writeArguments(LONG to amount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setStretchShrinkPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStretchShrinkPtr, NIL) } public final fun getStretchShrink(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStretchShrinkPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getStretchShrinkPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SurfaceTool.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SurfaceTool.kt index e564b548f3..c0b3ea8bcd 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SurfaceTool.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SurfaceTool.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.AABB import godot.core.Color import godot.core.PackedColorArray @@ -38,7 +39,6 @@ import godot.core.VariantParser.VECTOR3 import godot.core.Vector2 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Float @@ -96,7 +96,7 @@ public open class SurfaceTool : RefCounted() { */ public final fun setSkinWeightCount(count: SkinWeightCount): Unit { TransferContext.writeArguments(LONG to count.id) - TransferContext.callMethod(rawPtr, MethodBindings.setSkinWeightCountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSkinWeightCountPtr, NIL) } /** @@ -106,7 +106,7 @@ public open class SurfaceTool : RefCounted() { */ public final fun getSkinWeightCount(): SkinWeightCount { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSkinWeightCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSkinWeightCountPtr, LONG) return SurfaceTool.SkinWeightCount.from(TransferContext.readReturnValue(LONG) as Long) } @@ -116,7 +116,7 @@ public open class SurfaceTool : RefCounted() { */ public final fun setCustomFormat(channelIndex: Int, format: CustomFormat): Unit { TransferContext.writeArguments(LONG to channelIndex.toLong(), LONG to format.id) - TransferContext.callMethod(rawPtr, MethodBindings.setCustomFormatPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCustomFormatPtr, NIL) } /** @@ -125,7 +125,7 @@ public open class SurfaceTool : RefCounted() { */ public final fun getCustomFormat(channelIndex: Int): CustomFormat { TransferContext.writeArguments(LONG to channelIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCustomFormatPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCustomFormatPtr, LONG) return SurfaceTool.CustomFormat.from(TransferContext.readReturnValue(LONG) as Long) } @@ -135,7 +135,7 @@ public open class SurfaceTool : RefCounted() { */ public final fun begin(primitive: Mesh.PrimitiveType): Unit { TransferContext.writeArguments(LONG to primitive.id) - TransferContext.callMethod(rawPtr, MethodBindings.beginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.beginPtr, NIL) } /** @@ -144,7 +144,7 @@ public open class SurfaceTool : RefCounted() { */ public final fun addVertex(vertex: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to vertex) - TransferContext.callMethod(rawPtr, MethodBindings.addVertexPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addVertexPtr, NIL) } /** @@ -156,7 +156,7 @@ public open class SurfaceTool : RefCounted() { */ public final fun setColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColorPtr, NIL) } /** @@ -165,7 +165,7 @@ public open class SurfaceTool : RefCounted() { */ public final fun setNormal(normal: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to normal) - TransferContext.callMethod(rawPtr, MethodBindings.setNormalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNormalPtr, NIL) } /** @@ -175,7 +175,7 @@ public open class SurfaceTool : RefCounted() { */ public final fun setTangent(tangent: Plane): Unit { TransferContext.writeArguments(PLANE to tangent) - TransferContext.callMethod(rawPtr, MethodBindings.setTangentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTangentPtr, NIL) } /** @@ -185,7 +185,7 @@ public open class SurfaceTool : RefCounted() { */ public final fun setUv(uv: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to uv) - TransferContext.callMethod(rawPtr, MethodBindings.setUvPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUvPtr, NIL) } /** @@ -195,7 +195,7 @@ public open class SurfaceTool : RefCounted() { */ public final fun setUv2(uv2: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to uv2) - TransferContext.callMethod(rawPtr, MethodBindings.setUv2Ptr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUv2Ptr, NIL) } /** @@ -203,7 +203,7 @@ public open class SurfaceTool : RefCounted() { */ public final fun setBones(bones: PackedInt32Array): Unit { TransferContext.writeArguments(PACKED_INT_32_ARRAY to bones) - TransferContext.callMethod(rawPtr, MethodBindings.setBonesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBonesPtr, NIL) } /** @@ -213,7 +213,7 @@ public open class SurfaceTool : RefCounted() { */ public final fun setWeights(weights: PackedFloat32Array): Unit { TransferContext.writeArguments(PACKED_FLOAT_32_ARRAY to weights) - TransferContext.callMethod(rawPtr, MethodBindings.setWeightsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setWeightsPtr, NIL) } /** @@ -223,7 +223,7 @@ public open class SurfaceTool : RefCounted() { */ public final fun setCustom(channelIndex: Int, customColor: Color): Unit { TransferContext.writeArguments(LONG to channelIndex.toLong(), COLOR to customColor) - TransferContext.callMethod(rawPtr, MethodBindings.setCustomPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCustomPtr, NIL) } /** @@ -235,7 +235,7 @@ public open class SurfaceTool : RefCounted() { */ public final fun setSmoothGroup(index: Long): Unit { TransferContext.writeArguments(LONG to index) - TransferContext.callMethod(rawPtr, MethodBindings.setSmoothGroupPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSmoothGroupPtr, NIL) } /** @@ -252,7 +252,7 @@ public open class SurfaceTool : RefCounted() { tangents: VariantArray = godot.core.variantArrayOf(), ): Unit { TransferContext.writeArguments(PACKED_VECTOR3_ARRAY to vertices, PACKED_VECTOR2_ARRAY to uvs, PACKED_COLOR_ARRAY to colors, PACKED_VECTOR2_ARRAY to uv2s, PACKED_VECTOR3_ARRAY to normals, ARRAY to tangents) - TransferContext.callMethod(rawPtr, MethodBindings.addTriangleFanPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addTriangleFanPtr, NIL) } /** @@ -261,7 +261,7 @@ public open class SurfaceTool : RefCounted() { */ public final fun addIndex(index: Int): Unit { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addIndexPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addIndexPtr, NIL) } /** @@ -270,7 +270,7 @@ public open class SurfaceTool : RefCounted() { */ public final fun index(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.indexPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.indexPtr, NIL) } /** @@ -278,7 +278,7 @@ public open class SurfaceTool : RefCounted() { */ public final fun deindex(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.deindexPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.deindexPtr, NIL) } /** @@ -296,7 +296,7 @@ public open class SurfaceTool : RefCounted() { @JvmOverloads public final fun generateNormals(flip: Boolean = false): Unit { TransferContext.writeArguments(BOOL to flip) - TransferContext.callMethod(rawPtr, MethodBindings.generateNormalsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.generateNormalsPtr, NIL) } /** @@ -305,7 +305,7 @@ public open class SurfaceTool : RefCounted() { */ public final fun generateTangents(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.generateTangentsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.generateTangentsPtr, NIL) } /** @@ -314,7 +314,7 @@ public open class SurfaceTool : RefCounted() { */ public final fun optimizeIndicesForCache(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.optimizeIndicesForCachePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.optimizeIndicesForCachePtr, NIL) } /** @@ -322,7 +322,7 @@ public open class SurfaceTool : RefCounted() { */ public final fun getAabb(): AABB { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAabbPtr, godot.core.VariantParser.AABB) + TransferContext.callMethod(ptr, MethodBindings.getAabbPtr, godot.core.VariantParser.AABB) return (TransferContext.readReturnValue(godot.core.VariantParser.AABB) as AABB) } @@ -333,7 +333,7 @@ public open class SurfaceTool : RefCounted() { @JvmOverloads public final fun generateLod(ndThreshold: Float, targetIndexCount: Int = 3): PackedInt32Array { TransferContext.writeArguments(DOUBLE to ndThreshold.toDouble(), LONG to targetIndexCount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.generateLodPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.generateLodPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } @@ -342,7 +342,7 @@ public open class SurfaceTool : RefCounted() { */ public final fun setMaterial(material: Material?): Unit { TransferContext.writeArguments(OBJECT to material) - TransferContext.callMethod(rawPtr, MethodBindings.setMaterialPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaterialPtr, NIL) } /** @@ -350,7 +350,7 @@ public open class SurfaceTool : RefCounted() { */ public final fun getPrimitiveType(): Mesh.PrimitiveType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPrimitiveTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPrimitiveTypePtr, LONG) return Mesh.PrimitiveType.from(TransferContext.readReturnValue(LONG) as Long) } @@ -359,7 +359,7 @@ public open class SurfaceTool : RefCounted() { */ public final fun clear(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPtr, NIL) } /** @@ -367,7 +367,7 @@ public open class SurfaceTool : RefCounted() { */ public final fun createFrom(existing: Mesh?, surface: Int): Unit { TransferContext.writeArguments(OBJECT to existing, LONG to surface.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.createFromPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.createFromPtr, NIL) } /** @@ -380,7 +380,7 @@ public open class SurfaceTool : RefCounted() { public final fun createFromArrays(arrays: VariantArray, primitiveType: Mesh.PrimitiveType = Mesh.PrimitiveType.PRIMITIVE_TRIANGLES): Unit { TransferContext.writeArguments(ARRAY to arrays, LONG to primitiveType.id) - TransferContext.callMethod(rawPtr, MethodBindings.createFromArraysPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.createFromArraysPtr, NIL) } /** @@ -393,7 +393,7 @@ public open class SurfaceTool : RefCounted() { blendShape: String, ): Unit { TransferContext.writeArguments(OBJECT to existing, LONG to surface.toLong(), STRING to blendShape) - TransferContext.callMethod(rawPtr, MethodBindings.createFromBlendShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.createFromBlendShapePtr, NIL) } /** @@ -406,7 +406,7 @@ public open class SurfaceTool : RefCounted() { transform: Transform3D, ): Unit { TransferContext.writeArguments(OBJECT to existing, LONG to surface.toLong(), TRANSFORM3D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.appendFromPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.appendFromPtr, NIL) } /** @@ -418,7 +418,7 @@ public open class SurfaceTool : RefCounted() { @JvmOverloads public final fun commit(existing: ArrayMesh? = null, flags: Long = 0): ArrayMesh? { TransferContext.writeArguments(OBJECT to existing, LONG to flags) - TransferContext.callMethod(rawPtr, MethodBindings.commitPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.commitPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as ArrayMesh?) } @@ -429,7 +429,7 @@ public open class SurfaceTool : RefCounted() { */ public final fun commitToArrays(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.commitToArraysPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.commitToArraysPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SyntaxHighlighter.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SyntaxHighlighter.kt index 7ddd0d9d08..a13fa32480 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SyntaxHighlighter.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SyntaxHighlighter.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.TypeManager import godot.core.VariantParser.DICTIONARY @@ -14,7 +15,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Int import kotlin.NotImplementedError @@ -73,7 +73,7 @@ public open class SyntaxHighlighter : Resource() { */ public final fun getLineSyntaxHighlighting(line: Int): Dictionary { TransferContext.writeArguments(LONG to line.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getLineSyntaxHighlightingPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getLineSyntaxHighlightingPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -84,7 +84,7 @@ public open class SyntaxHighlighter : Resource() { */ public final fun updateCache(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.updateCachePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.updateCachePtr, NIL) } /** @@ -93,7 +93,7 @@ public open class SyntaxHighlighter : Resource() { */ public final fun clearHighlightingCache(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearHighlightingCachePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearHighlightingCachePtr, NIL) } /** @@ -101,7 +101,7 @@ public open class SyntaxHighlighter : Resource() { */ public final fun getTextEdit(): TextEdit? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextEditPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTextEditPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as TextEdit?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/SystemFont.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/SystemFont.kt index 85f4efb30c..bbab6069c9 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/SystemFont.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/SystemFont.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedStringArray import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -15,7 +16,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -218,156 +218,156 @@ public open class SystemFont : Font() { public final fun setAntialiasing(antialiasing: TextServer.FontAntialiasing): Unit { TransferContext.writeArguments(LONG to antialiasing.id) - TransferContext.callMethod(rawPtr, MethodBindings.setAntialiasingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAntialiasingPtr, NIL) } public final fun getAntialiasing(): TextServer.FontAntialiasing { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAntialiasingPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAntialiasingPtr, LONG) return TextServer.FontAntialiasing.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setDisableEmbeddedBitmaps(disableEmbeddedBitmaps: Boolean): Unit { TransferContext.writeArguments(BOOL to disableEmbeddedBitmaps) - TransferContext.callMethod(rawPtr, MethodBindings.setDisableEmbeddedBitmapsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDisableEmbeddedBitmapsPtr, NIL) } public final fun getDisableEmbeddedBitmaps(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDisableEmbeddedBitmapsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getDisableEmbeddedBitmapsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setGenerateMipmaps(generateMipmaps: Boolean): Unit { TransferContext.writeArguments(BOOL to generateMipmaps) - TransferContext.callMethod(rawPtr, MethodBindings.setGenerateMipmapsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGenerateMipmapsPtr, NIL) } public final fun getGenerateMipmaps(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGenerateMipmapsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getGenerateMipmapsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAllowSystemFallback(allowSystemFallback: Boolean): Unit { TransferContext.writeArguments(BOOL to allowSystemFallback) - TransferContext.callMethod(rawPtr, MethodBindings.setAllowSystemFallbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAllowSystemFallbackPtr, NIL) } public final fun isAllowSystemFallback(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isAllowSystemFallbackPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isAllowSystemFallbackPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setForceAutohinter(forceAutohinter: Boolean): Unit { TransferContext.writeArguments(BOOL to forceAutohinter) - TransferContext.callMethod(rawPtr, MethodBindings.setForceAutohinterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setForceAutohinterPtr, NIL) } public final fun isForceAutohinter(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isForceAutohinterPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isForceAutohinterPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setHinting(hinting: TextServer.Hinting): Unit { TransferContext.writeArguments(LONG to hinting.id) - TransferContext.callMethod(rawPtr, MethodBindings.setHintingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHintingPtr, NIL) } public final fun getHinting(): TextServer.Hinting { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHintingPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getHintingPtr, LONG) return TextServer.Hinting.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setSubpixelPositioning(subpixelPositioning: TextServer.SubpixelPositioning): Unit { TransferContext.writeArguments(LONG to subpixelPositioning.id) - TransferContext.callMethod(rawPtr, MethodBindings.setSubpixelPositioningPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSubpixelPositioningPtr, NIL) } public final fun getSubpixelPositioning(): TextServer.SubpixelPositioning { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSubpixelPositioningPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSubpixelPositioningPtr, LONG) return TextServer.SubpixelPositioning.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setMultichannelSignedDistanceField(msdf: Boolean): Unit { TransferContext.writeArguments(BOOL to msdf) - TransferContext.callMethod(rawPtr, MethodBindings.setMultichannelSignedDistanceFieldPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMultichannelSignedDistanceFieldPtr, NIL) } public final fun isMultichannelSignedDistanceField(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isMultichannelSignedDistanceFieldPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isMultichannelSignedDistanceFieldPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setMsdfPixelRange(msdfPixelRange: Int): Unit { TransferContext.writeArguments(LONG to msdfPixelRange.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMsdfPixelRangePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMsdfPixelRangePtr, NIL) } public final fun getMsdfPixelRange(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMsdfPixelRangePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMsdfPixelRangePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setMsdfSize(msdfSize: Int): Unit { TransferContext.writeArguments(LONG to msdfSize.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMsdfSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMsdfSizePtr, NIL) } public final fun getMsdfSize(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMsdfSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMsdfSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setOversampling(oversampling: Float): Unit { TransferContext.writeArguments(DOUBLE to oversampling.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setOversamplingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOversamplingPtr, NIL) } public final fun getOversampling(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOversamplingPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getOversamplingPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun getFontNames(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFontNamesPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getFontNamesPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } public final fun setFontNames(names: PackedStringArray): Unit { TransferContext.writeArguments(PACKED_STRING_ARRAY to names) - TransferContext.callMethod(rawPtr, MethodBindings.setFontNamesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFontNamesPtr, NIL) } public final fun getFontItalic(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFontItalicPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getFontItalicPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setFontItalic(italic: Boolean): Unit { TransferContext.writeArguments(BOOL to italic) - TransferContext.callMethod(rawPtr, MethodBindings.setFontItalicPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFontItalicPtr, NIL) } public final fun setFontWeight(weight: Int): Unit { TransferContext.writeArguments(LONG to weight.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setFontWeightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFontWeightPtr, NIL) } public final fun setFontStretch(stretch: Int): Unit { TransferContext.writeArguments(LONG to stretch.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setFontStretchPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFontStretchPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TCPServer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TCPServer.kt index 8db7963e3d..7366901563 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TCPServer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TCPServer.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG @@ -14,7 +15,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -49,7 +49,7 @@ public open class TCPServer : RefCounted() { @JvmOverloads public final fun listen(port: Int, bindAddress: String = "*"): Error { TransferContext.writeArguments(LONG to port.toLong(), STRING to bindAddress) - TransferContext.callMethod(rawPtr, MethodBindings.listenPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.listenPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -58,7 +58,7 @@ public open class TCPServer : RefCounted() { */ public final fun isConnectionAvailable(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isConnectionAvailablePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isConnectionAvailablePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -67,7 +67,7 @@ public open class TCPServer : RefCounted() { */ public final fun isListening(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isListeningPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isListeningPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -76,7 +76,7 @@ public open class TCPServer : RefCounted() { */ public final fun getLocalPort(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLocalPortPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLocalPortPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -85,7 +85,7 @@ public open class TCPServer : RefCounted() { */ public final fun takeConnection(): StreamPeerTCP? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.takeConnectionPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.takeConnectionPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as StreamPeerTCP?) } @@ -94,7 +94,7 @@ public open class TCPServer : RefCounted() { */ public final fun stop(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.stopPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.stopPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TLSOptions.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TLSOptions.kt index 370ac8b32b..1e651bef6a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TLSOptions.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TLSOptions.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.String @@ -49,7 +49,7 @@ public open class TLSOptions internal constructor() : RefCounted() { */ public final fun isServer(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isServerPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isServerPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -58,7 +58,7 @@ public open class TLSOptions internal constructor() : RefCounted() { */ public final fun isUnsafeClient(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUnsafeClientPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUnsafeClientPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -68,7 +68,7 @@ public open class TLSOptions internal constructor() : RefCounted() { */ public final fun getCommonNameOverride(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCommonNameOverridePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getCommonNameOverridePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -78,7 +78,7 @@ public open class TLSOptions internal constructor() : RefCounted() { */ public final fun getTrustedCaChain(): X509Certificate? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTrustedCaChainPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTrustedCaChainPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as X509Certificate?) } @@ -87,7 +87,7 @@ public open class TLSOptions internal constructor() : RefCounted() { */ public final fun getPrivateKey(): CryptoKey? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPrivateKeyPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getPrivateKeyPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as CryptoKey?) } @@ -96,7 +96,7 @@ public open class TLSOptions internal constructor() : RefCounted() { */ public final fun getOwnCertificate(): X509Certificate? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOwnCertificatePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getOwnCertificatePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as X509Certificate?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TabBar.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TabBar.kt index 90ecfd6ac2..3cde210fdb 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TabBar.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TabBar.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Rect2 import godot.core.Signal1 import godot.core.TypeManager @@ -20,7 +21,6 @@ import godot.core.VariantParser.STRING import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -232,23 +232,23 @@ public open class TabBar : Control() { public final fun setTabCount(count: Int): Unit { TransferContext.writeArguments(LONG to count.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setTabCountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTabCountPtr, NIL) } public final fun getTabCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTabCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTabCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setCurrentTab(tabIdx: Int): Unit { TransferContext.writeArguments(LONG to tabIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setCurrentTabPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCurrentTabPtr, NIL) } public final fun getCurrentTab(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCurrentTabPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCurrentTabPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -257,7 +257,7 @@ public open class TabBar : Control() { */ public final fun getPreviousTab(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPreviousTabPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPreviousTabPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -267,7 +267,7 @@ public open class TabBar : Control() { */ public final fun selectPreviousAvailable(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.selectPreviousAvailablePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.selectPreviousAvailablePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -277,7 +277,7 @@ public open class TabBar : Control() { */ public final fun selectNextAvailable(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.selectNextAvailablePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.selectNextAvailablePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -286,7 +286,7 @@ public open class TabBar : Control() { */ public final fun setTabTitle(tabIdx: Int, title: String): Unit { TransferContext.writeArguments(LONG to tabIdx.toLong(), STRING to title) - TransferContext.callMethod(rawPtr, MethodBindings.setTabTitlePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTabTitlePtr, NIL) } /** @@ -294,7 +294,7 @@ public open class TabBar : Control() { */ public final fun getTabTitle(tabIdx: Int): String { TransferContext.writeArguments(LONG to tabIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTabTitlePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getTabTitlePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -306,7 +306,7 @@ public open class TabBar : Control() { */ public final fun setTabTooltip(tabIdx: Int, tooltip: String): Unit { TransferContext.writeArguments(LONG to tabIdx.toLong(), STRING to tooltip) - TransferContext.callMethod(rawPtr, MethodBindings.setTabTooltipPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTabTooltipPtr, NIL) } /** @@ -314,7 +314,7 @@ public open class TabBar : Control() { */ public final fun getTabTooltip(tabIdx: Int): String { TransferContext.writeArguments(LONG to tabIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTabTooltipPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getTabTooltipPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -323,7 +323,7 @@ public open class TabBar : Control() { */ public final fun setTabTextDirection(tabIdx: Int, direction: Control.TextDirection): Unit { TransferContext.writeArguments(LONG to tabIdx.toLong(), LONG to direction.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTabTextDirectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTabTextDirectionPtr, NIL) } /** @@ -331,7 +331,7 @@ public open class TabBar : Control() { */ public final fun getTabTextDirection(tabIdx: Int): Control.TextDirection { TransferContext.writeArguments(LONG to tabIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTabTextDirectionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTabTextDirectionPtr, LONG) return Control.TextDirection.from(TransferContext.readReturnValue(LONG) as Long) } @@ -341,7 +341,7 @@ public open class TabBar : Control() { */ public final fun setTabLanguage(tabIdx: Int, language: String): Unit { TransferContext.writeArguments(LONG to tabIdx.toLong(), STRING to language) - TransferContext.callMethod(rawPtr, MethodBindings.setTabLanguagePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTabLanguagePtr, NIL) } /** @@ -349,7 +349,7 @@ public open class TabBar : Control() { */ public final fun getTabLanguage(tabIdx: Int): String { TransferContext.writeArguments(LONG to tabIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTabLanguagePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getTabLanguagePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -358,7 +358,7 @@ public open class TabBar : Control() { */ public final fun setTabIcon(tabIdx: Int, icon: Texture2D?): Unit { TransferContext.writeArguments(LONG to tabIdx.toLong(), OBJECT to icon) - TransferContext.callMethod(rawPtr, MethodBindings.setTabIconPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTabIconPtr, NIL) } /** @@ -366,7 +366,7 @@ public open class TabBar : Control() { */ public final fun getTabIcon(tabIdx: Int): Texture2D? { TransferContext.writeArguments(LONG to tabIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTabIconPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTabIconPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } @@ -377,7 +377,7 @@ public open class TabBar : Control() { */ public final fun setTabIconMaxWidth(tabIdx: Int, width: Int): Unit { TransferContext.writeArguments(LONG to tabIdx.toLong(), LONG to width.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setTabIconMaxWidthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTabIconMaxWidthPtr, NIL) } /** @@ -385,7 +385,7 @@ public open class TabBar : Control() { */ public final fun getTabIconMaxWidth(tabIdx: Int): Int { TransferContext.writeArguments(LONG to tabIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTabIconMaxWidthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTabIconMaxWidthPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -396,7 +396,7 @@ public open class TabBar : Control() { */ public final fun setTabButtonIcon(tabIdx: Int, icon: Texture2D?): Unit { TransferContext.writeArguments(LONG to tabIdx.toLong(), OBJECT to icon) - TransferContext.callMethod(rawPtr, MethodBindings.setTabButtonIconPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTabButtonIconPtr, NIL) } /** @@ -405,7 +405,7 @@ public open class TabBar : Control() { */ public final fun getTabButtonIcon(tabIdx: Int): Texture2D? { TransferContext.writeArguments(LONG to tabIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTabButtonIconPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTabButtonIconPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } @@ -414,7 +414,7 @@ public open class TabBar : Control() { */ public final fun setTabDisabled(tabIdx: Int, disabled: Boolean): Unit { TransferContext.writeArguments(LONG to tabIdx.toLong(), BOOL to disabled) - TransferContext.callMethod(rawPtr, MethodBindings.setTabDisabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTabDisabledPtr, NIL) } /** @@ -422,7 +422,7 @@ public open class TabBar : Control() { */ public final fun isTabDisabled(tabIdx: Int): Boolean { TransferContext.writeArguments(LONG to tabIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isTabDisabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isTabDisabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -431,7 +431,7 @@ public open class TabBar : Control() { */ public final fun setTabHidden(tabIdx: Int, hidden: Boolean): Unit { TransferContext.writeArguments(LONG to tabIdx.toLong(), BOOL to hidden) - TransferContext.callMethod(rawPtr, MethodBindings.setTabHiddenPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTabHiddenPtr, NIL) } /** @@ -439,7 +439,7 @@ public open class TabBar : Control() { */ public final fun isTabHidden(tabIdx: Int): Boolean { TransferContext.writeArguments(LONG to tabIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isTabHiddenPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isTabHiddenPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -449,7 +449,7 @@ public open class TabBar : Control() { */ public final fun setTabMetadata(tabIdx: Int, metadata: Any?): Unit { TransferContext.writeArguments(LONG to tabIdx.toLong(), ANY to metadata) - TransferContext.callMethod(rawPtr, MethodBindings.setTabMetadataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTabMetadataPtr, NIL) } /** @@ -458,7 +458,7 @@ public open class TabBar : Control() { */ public final fun getTabMetadata(tabIdx: Int): Any? { TransferContext.writeArguments(LONG to tabIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTabMetadataPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getTabMetadataPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -467,7 +467,7 @@ public open class TabBar : Control() { */ public final fun removeTab(tabIdx: Int): Unit { TransferContext.writeArguments(LONG to tabIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeTabPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeTabPtr, NIL) } /** @@ -476,7 +476,7 @@ public open class TabBar : Control() { @JvmOverloads public final fun addTab(title: String = "", icon: Texture2D? = null): Unit { TransferContext.writeArguments(STRING to title, OBJECT to icon) - TransferContext.callMethod(rawPtr, MethodBindings.addTabPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addTabPtr, NIL) } /** @@ -485,29 +485,29 @@ public open class TabBar : Control() { */ public final fun getTabIdxAtPoint(point: Vector2): Int { TransferContext.writeArguments(VECTOR2 to point) - TransferContext.callMethod(rawPtr, MethodBindings.getTabIdxAtPointPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTabIdxAtPointPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setTabAlignment(alignment: AlignmentMode): Unit { TransferContext.writeArguments(LONG to alignment.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTabAlignmentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTabAlignmentPtr, NIL) } public final fun getTabAlignment(): AlignmentMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTabAlignmentPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTabAlignmentPtr, LONG) return TabBar.AlignmentMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setClipTabs(clipTabs: Boolean): Unit { TransferContext.writeArguments(BOOL to clipTabs) - TransferContext.callMethod(rawPtr, MethodBindings.setClipTabsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setClipTabsPtr, NIL) } public final fun getClipTabs(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getClipTabsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getClipTabsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -516,7 +516,7 @@ public open class TabBar : Control() { */ public final fun getTabOffset(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTabOffsetPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTabOffsetPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -526,7 +526,7 @@ public open class TabBar : Control() { */ public final fun getOffsetButtonsVisible(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOffsetButtonsVisiblePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getOffsetButtonsVisiblePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -535,7 +535,7 @@ public open class TabBar : Control() { */ public final fun ensureTabVisible(idx: Int): Unit { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.ensureTabVisiblePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.ensureTabVisiblePtr, NIL) } /** @@ -543,7 +543,7 @@ public open class TabBar : Control() { */ public final fun getTabRect(tabIdx: Int): Rect2 { TransferContext.writeArguments(LONG to tabIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTabRectPtr, RECT2) + TransferContext.callMethod(ptr, MethodBindings.getTabRectPtr, RECT2) return (TransferContext.readReturnValue(RECT2) as Rect2) } @@ -552,94 +552,94 @@ public open class TabBar : Control() { */ public final fun moveTab(from: Int, to: Int): Unit { TransferContext.writeArguments(LONG to from.toLong(), LONG to to.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.moveTabPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.moveTabPtr, NIL) } public final fun setTabCloseDisplayPolicy(policy: CloseButtonDisplayPolicy): Unit { TransferContext.writeArguments(LONG to policy.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTabCloseDisplayPolicyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTabCloseDisplayPolicyPtr, NIL) } public final fun getTabCloseDisplayPolicy(): CloseButtonDisplayPolicy { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTabCloseDisplayPolicyPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTabCloseDisplayPolicyPtr, LONG) return TabBar.CloseButtonDisplayPolicy.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setMaxTabWidth(width: Int): Unit { TransferContext.writeArguments(LONG to width.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxTabWidthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxTabWidthPtr, NIL) } public final fun getMaxTabWidth(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxTabWidthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMaxTabWidthPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setScrollingEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setScrollingEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setScrollingEnabledPtr, NIL) } public final fun getScrollingEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScrollingEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getScrollingEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDragToRearrangeEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDragToRearrangeEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDragToRearrangeEnabledPtr, NIL) } public final fun getDragToRearrangeEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDragToRearrangeEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getDragToRearrangeEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setTabsRearrangeGroup(groupId: Int): Unit { TransferContext.writeArguments(LONG to groupId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setTabsRearrangeGroupPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTabsRearrangeGroupPtr, NIL) } public final fun getTabsRearrangeGroup(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTabsRearrangeGroupPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTabsRearrangeGroupPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setScrollToSelected(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setScrollToSelectedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setScrollToSelectedPtr, NIL) } public final fun getScrollToSelected(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScrollToSelectedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getScrollToSelectedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSelectWithRmb(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setSelectWithRmbPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSelectWithRmbPtr, NIL) } public final fun getSelectWithRmb(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSelectWithRmbPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getSelectWithRmbPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDeselectEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDeselectEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDeselectEnabledPtr, NIL) } public final fun getDeselectEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDeselectEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getDeselectEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -648,7 +648,7 @@ public open class TabBar : Control() { */ public final fun clearTabs(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearTabsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearTabsPtr, NIL) } public enum class AlignmentMode( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TabContainer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TabContainer.kt index c65945f221..0222cccc06 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TabContainer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TabContainer.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.Signal1 import godot.core.TypeManager @@ -19,7 +20,6 @@ import godot.core.VariantParser.STRING import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -212,18 +212,18 @@ public open class TabContainer : Container() { */ public final fun getTabCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTabCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTabCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setCurrentTab(tabIdx: Int): Unit { TransferContext.writeArguments(LONG to tabIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setCurrentTabPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCurrentTabPtr, NIL) } public final fun getCurrentTab(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCurrentTabPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCurrentTabPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -232,7 +232,7 @@ public open class TabContainer : Container() { */ public final fun getPreviousTab(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPreviousTabPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPreviousTabPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -242,7 +242,7 @@ public open class TabContainer : Container() { */ public final fun selectPreviousAvailable(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.selectPreviousAvailablePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.selectPreviousAvailablePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -252,7 +252,7 @@ public open class TabContainer : Container() { */ public final fun selectNextAvailable(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.selectNextAvailablePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.selectNextAvailablePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -261,7 +261,7 @@ public open class TabContainer : Container() { */ public final fun getCurrentTabControl(): Control? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCurrentTabControlPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getCurrentTabControlPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Control?) } @@ -272,7 +272,7 @@ public open class TabContainer : Container() { */ public final fun getTabBar(): TabBar? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTabBarPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTabBarPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as TabBar?) } @@ -281,62 +281,62 @@ public open class TabContainer : Container() { */ public final fun getTabControl(tabIdx: Int): Control? { TransferContext.writeArguments(LONG to tabIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTabControlPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTabControlPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Control?) } public final fun setTabAlignment(alignment: TabBar.AlignmentMode): Unit { TransferContext.writeArguments(LONG to alignment.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTabAlignmentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTabAlignmentPtr, NIL) } public final fun getTabAlignment(): TabBar.AlignmentMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTabAlignmentPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTabAlignmentPtr, LONG) return TabBar.AlignmentMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setTabsPosition(tabsPosition: TabPosition): Unit { TransferContext.writeArguments(LONG to tabsPosition.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTabsPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTabsPositionPtr, NIL) } public final fun getTabsPosition(): TabPosition { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTabsPositionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTabsPositionPtr, LONG) return TabContainer.TabPosition.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setClipTabs(clipTabs: Boolean): Unit { TransferContext.writeArguments(BOOL to clipTabs) - TransferContext.callMethod(rawPtr, MethodBindings.setClipTabsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setClipTabsPtr, NIL) } public final fun getClipTabs(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getClipTabsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getClipTabsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setTabsVisible(visible: Boolean): Unit { TransferContext.writeArguments(BOOL to visible) - TransferContext.callMethod(rawPtr, MethodBindings.setTabsVisiblePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTabsVisiblePtr, NIL) } public final fun areTabsVisible(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.areTabsVisiblePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.areTabsVisiblePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAllTabsInFront(isFront: Boolean): Unit { TransferContext.writeArguments(BOOL to isFront) - TransferContext.callMethod(rawPtr, MethodBindings.setAllTabsInFrontPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAllTabsInFrontPtr, NIL) } public final fun isAllTabsInFront(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isAllTabsInFrontPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isAllTabsInFrontPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -346,7 +346,7 @@ public open class TabContainer : Container() { */ public final fun setTabTitle(tabIdx: Int, title: String): Unit { TransferContext.writeArguments(LONG to tabIdx.toLong(), STRING to title) - TransferContext.callMethod(rawPtr, MethodBindings.setTabTitlePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTabTitlePtr, NIL) } /** @@ -355,7 +355,7 @@ public open class TabContainer : Container() { */ public final fun getTabTitle(tabIdx: Int): String { TransferContext.writeArguments(LONG to tabIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTabTitlePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getTabTitlePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -367,7 +367,7 @@ public open class TabContainer : Container() { */ public final fun setTabTooltip(tabIdx: Int, tooltip: String): Unit { TransferContext.writeArguments(LONG to tabIdx.toLong(), STRING to tooltip) - TransferContext.callMethod(rawPtr, MethodBindings.setTabTooltipPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTabTooltipPtr, NIL) } /** @@ -375,7 +375,7 @@ public open class TabContainer : Container() { */ public final fun getTabTooltip(tabIdx: Int): String { TransferContext.writeArguments(LONG to tabIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTabTooltipPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getTabTooltipPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -384,7 +384,7 @@ public open class TabContainer : Container() { */ public final fun setTabIcon(tabIdx: Int, icon: Texture2D?): Unit { TransferContext.writeArguments(LONG to tabIdx.toLong(), OBJECT to icon) - TransferContext.callMethod(rawPtr, MethodBindings.setTabIconPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTabIconPtr, NIL) } /** @@ -392,7 +392,7 @@ public open class TabContainer : Container() { */ public final fun getTabIcon(tabIdx: Int): Texture2D? { TransferContext.writeArguments(LONG to tabIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTabIconPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTabIconPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } @@ -403,7 +403,7 @@ public open class TabContainer : Container() { */ public final fun setTabIconMaxWidth(tabIdx: Int, width: Int): Unit { TransferContext.writeArguments(LONG to tabIdx.toLong(), LONG to width.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setTabIconMaxWidthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTabIconMaxWidthPtr, NIL) } /** @@ -411,7 +411,7 @@ public open class TabContainer : Container() { */ public final fun getTabIconMaxWidth(tabIdx: Int): Int { TransferContext.writeArguments(LONG to tabIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTabIconMaxWidthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTabIconMaxWidthPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -420,7 +420,7 @@ public open class TabContainer : Container() { */ public final fun setTabDisabled(tabIdx: Int, disabled: Boolean): Unit { TransferContext.writeArguments(LONG to tabIdx.toLong(), BOOL to disabled) - TransferContext.callMethod(rawPtr, MethodBindings.setTabDisabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTabDisabledPtr, NIL) } /** @@ -428,7 +428,7 @@ public open class TabContainer : Container() { */ public final fun isTabDisabled(tabIdx: Int): Boolean { TransferContext.writeArguments(LONG to tabIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isTabDisabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isTabDisabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -437,7 +437,7 @@ public open class TabContainer : Container() { */ public final fun setTabHidden(tabIdx: Int, hidden: Boolean): Unit { TransferContext.writeArguments(LONG to tabIdx.toLong(), BOOL to hidden) - TransferContext.callMethod(rawPtr, MethodBindings.setTabHiddenPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTabHiddenPtr, NIL) } /** @@ -445,7 +445,7 @@ public open class TabContainer : Container() { */ public final fun isTabHidden(tabIdx: Int): Boolean { TransferContext.writeArguments(LONG to tabIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isTabHiddenPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isTabHiddenPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -455,7 +455,7 @@ public open class TabContainer : Container() { */ public final fun setTabMetadata(tabIdx: Int, metadata: Any?): Unit { TransferContext.writeArguments(LONG to tabIdx.toLong(), ANY to metadata) - TransferContext.callMethod(rawPtr, MethodBindings.setTabMetadataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTabMetadataPtr, NIL) } /** @@ -464,7 +464,7 @@ public open class TabContainer : Container() { */ public final fun getTabMetadata(tabIdx: Int): Any? { TransferContext.writeArguments(LONG to tabIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTabMetadataPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getTabMetadataPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -473,7 +473,7 @@ public open class TabContainer : Container() { */ public final fun setTabButtonIcon(tabIdx: Int, icon: Texture2D?): Unit { TransferContext.writeArguments(LONG to tabIdx.toLong(), OBJECT to icon) - TransferContext.callMethod(rawPtr, MethodBindings.setTabButtonIconPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTabButtonIconPtr, NIL) } /** @@ -481,7 +481,7 @@ public open class TabContainer : Container() { */ public final fun getTabButtonIcon(tabIdx: Int): Texture2D? { TransferContext.writeArguments(LONG to tabIdx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTabButtonIconPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTabButtonIconPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } @@ -491,7 +491,7 @@ public open class TabContainer : Container() { */ public final fun getTabIdxAtPoint(point: Vector2): Int { TransferContext.writeArguments(VECTOR2 to point) - TransferContext.callMethod(rawPtr, MethodBindings.getTabIdxAtPointPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTabIdxAtPointPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -501,7 +501,7 @@ public open class TabContainer : Container() { */ public final fun getTabIdxFromControl(control: Control?): Int { TransferContext.writeArguments(OBJECT to control) - TransferContext.callMethod(rawPtr, MethodBindings.getTabIdxFromControlPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTabIdxFromControlPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -512,7 +512,7 @@ public open class TabContainer : Container() { */ public final fun setPopup(popup: Node?): Unit { TransferContext.writeArguments(OBJECT to popup) - TransferContext.callMethod(rawPtr, MethodBindings.setPopupPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPopupPtr, NIL) } /** @@ -522,62 +522,62 @@ public open class TabContainer : Container() { */ public final fun getPopup(): Popup? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPopupPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getPopupPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Popup?) } public final fun setDragToRearrangeEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDragToRearrangeEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDragToRearrangeEnabledPtr, NIL) } public final fun getDragToRearrangeEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDragToRearrangeEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getDragToRearrangeEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setTabsRearrangeGroup(groupId: Int): Unit { TransferContext.writeArguments(LONG to groupId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setTabsRearrangeGroupPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTabsRearrangeGroupPtr, NIL) } public final fun getTabsRearrangeGroup(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTabsRearrangeGroupPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTabsRearrangeGroupPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setUseHiddenTabsForMinSize(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setUseHiddenTabsForMinSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseHiddenTabsForMinSizePtr, NIL) } public final fun getUseHiddenTabsForMinSize(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUseHiddenTabsForMinSizePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getUseHiddenTabsForMinSizePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setTabFocusMode(focusMode: Control.FocusMode): Unit { TransferContext.writeArguments(LONG to focusMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTabFocusModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTabFocusModePtr, NIL) } public final fun getTabFocusMode(): Control.FocusMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTabFocusModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTabFocusModePtr, LONG) return Control.FocusMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setDeselectEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDeselectEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDeselectEnabledPtr, NIL) } public final fun getDeselectEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDeselectEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getDeselectEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TextEdit.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TextEdit.kt index 68c38282a7..fa24525d5a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TextEdit.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TextEdit.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.Color import godot.core.PackedInt32Array @@ -34,7 +35,6 @@ import godot.core.VariantParser.VECTOR2I import godot.core.Vector2 import godot.core.Vector2i import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -617,7 +617,7 @@ public open class TextEdit : Control() { */ public final fun hasImeText(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasImeTextPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasImeTextPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -627,7 +627,7 @@ public open class TextEdit : Control() { */ public final fun cancelIme(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.cancelImePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.cancelImePtr, NIL) } /** @@ -636,62 +636,61 @@ public open class TextEdit : Control() { */ public final fun applyIme(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.applyImePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.applyImePtr, NIL) } public final fun setEditable(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setEditablePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEditablePtr, NIL) } public final fun isEditable(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isEditablePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isEditablePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setTextDirection(direction: Control.TextDirection): Unit { TransferContext.writeArguments(LONG to direction.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTextDirectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextDirectionPtr, NIL) } public final fun getTextDirection(): Control.TextDirection { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextDirectionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTextDirectionPtr, LONG) return Control.TextDirection.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setLanguage(language: String): Unit { TransferContext.writeArguments(STRING to language) - TransferContext.callMethod(rawPtr, MethodBindings.setLanguagePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLanguagePtr, NIL) } public final fun getLanguage(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLanguagePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getLanguagePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setStructuredTextBidiOverride(parser: TextServer.StructuredTextParser): Unit { TransferContext.writeArguments(LONG to parser.id) - TransferContext.callMethod(rawPtr, MethodBindings.setStructuredTextBidiOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStructuredTextBidiOverridePtr, NIL) } public final fun getStructuredTextBidiOverride(): TextServer.StructuredTextParser { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStructuredTextBidiOverridePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getStructuredTextBidiOverridePtr, LONG) return TextServer.StructuredTextParser.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setStructuredTextBidiOverrideOptions(args: VariantArray): Unit { TransferContext.writeArguments(ARRAY to args) - TransferContext.callMethod(rawPtr, MethodBindings.setStructuredTextBidiOverrideOptionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStructuredTextBidiOverrideOptionsPtr, NIL) } public final fun getStructuredTextBidiOverrideOptions(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStructuredTextBidiOverrideOptionsPtr, - ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getStructuredTextBidiOverrideOptionsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -700,7 +699,7 @@ public open class TextEdit : Control() { */ public final fun setTabSize(size: Int): Unit { TransferContext.writeArguments(LONG to size.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setTabSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTabSizePtr, NIL) } /** @@ -708,18 +707,18 @@ public open class TextEdit : Control() { */ public final fun getTabSize(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTabSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTabSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setIndentWrappedLines(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setIndentWrappedLinesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIndentWrappedLinesPtr, NIL) } public final fun isIndentWrappedLines(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isIndentWrappedLinesPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isIndentWrappedLinesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -729,7 +728,7 @@ public open class TextEdit : Control() { */ public final fun setOvertypeModeEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setOvertypeModeEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOvertypeModeEnabledPtr, NIL) } /** @@ -737,51 +736,51 @@ public open class TextEdit : Control() { */ public final fun isOvertypeModeEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isOvertypeModeEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isOvertypeModeEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setContextMenuEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setContextMenuEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setContextMenuEnabledPtr, NIL) } public final fun isContextMenuEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isContextMenuEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isContextMenuEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setShortcutKeysEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setShortcutKeysEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShortcutKeysEnabledPtr, NIL) } public final fun isShortcutKeysEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isShortcutKeysEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isShortcutKeysEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setVirtualKeyboardEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setVirtualKeyboardEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVirtualKeyboardEnabledPtr, NIL) } public final fun isVirtualKeyboardEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isVirtualKeyboardEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isVirtualKeyboardEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setMiddleMousePasteEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setMiddleMousePasteEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMiddleMousePasteEnabledPtr, NIL) } public final fun isMiddleMousePasteEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isMiddleMousePasteEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isMiddleMousePasteEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -790,17 +789,17 @@ public open class TextEdit : Control() { */ public final fun clear(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPtr, NIL) } public final fun setText(text: String): Unit { TransferContext.writeArguments(STRING to text) - TransferContext.callMethod(rawPtr, MethodBindings.setTextPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextPtr, NIL) } public final fun getText(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getTextPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -809,18 +808,18 @@ public open class TextEdit : Control() { */ public final fun getLineCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLineCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLineCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setPlaceholder(text: String): Unit { TransferContext.writeArguments(STRING to text) - TransferContext.callMethod(rawPtr, MethodBindings.setPlaceholderPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPlaceholderPtr, NIL) } public final fun getPlaceholder(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPlaceholderPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getPlaceholderPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -830,7 +829,7 @@ public open class TextEdit : Control() { */ public final fun setLine(line: Int, newText: String): Unit { TransferContext.writeArguments(LONG to line.toLong(), STRING to newText) - TransferContext.callMethod(rawPtr, MethodBindings.setLinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLinePtr, NIL) } /** @@ -838,7 +837,7 @@ public open class TextEdit : Control() { */ public final fun getLine(line: Int): String { TransferContext.writeArguments(LONG to line.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getLinePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getLinePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -848,7 +847,7 @@ public open class TextEdit : Control() { @JvmOverloads public final fun getLineWidth(line: Int, wrapIndex: Int = -1): Int { TransferContext.writeArguments(LONG to line.toLong(), LONG to wrapIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getLineWidthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLineWidthPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -859,7 +858,7 @@ public open class TextEdit : Control() { */ public final fun getLineHeight(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLineHeightPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLineHeightPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -868,7 +867,7 @@ public open class TextEdit : Control() { */ public final fun getIndentLevel(line: Int): Int { TransferContext.writeArguments(LONG to line.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getIndentLevelPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getIndentLevelPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -877,7 +876,7 @@ public open class TextEdit : Control() { */ public final fun getFirstNonWhitespaceColumn(line: Int): Int { TransferContext.writeArguments(LONG to line.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getFirstNonWhitespaceColumnPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFirstNonWhitespaceColumnPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -886,7 +885,7 @@ public open class TextEdit : Control() { */ public final fun swapLines(fromLine: Int, toLine: Int): Unit { TransferContext.writeArguments(LONG to fromLine.toLong(), LONG to toLine.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.swapLinesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.swapLinesPtr, NIL) } /** @@ -894,7 +893,7 @@ public open class TextEdit : Control() { */ public final fun insertLineAt(line: Int, text: String): Unit { TransferContext.writeArguments(LONG to line.toLong(), STRING to text) - TransferContext.callMethod(rawPtr, MethodBindings.insertLineAtPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.insertLineAtPtr, NIL) } /** @@ -906,7 +905,7 @@ public open class TextEdit : Control() { @JvmOverloads public final fun removeLineAt(line: Int, moveCaretsDown: Boolean = true): Unit { TransferContext.writeArguments(LONG to line.toLong(), BOOL to moveCaretsDown) - TransferContext.callMethod(rawPtr, MethodBindings.removeLineAtPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeLineAtPtr, NIL) } /** @@ -915,7 +914,7 @@ public open class TextEdit : Control() { @JvmOverloads public final fun insertTextAtCaret(text: String, caretIndex: Int = -1): Unit { TransferContext.writeArguments(STRING to text, LONG to caretIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.insertTextAtCaretPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.insertTextAtCaretPtr, NIL) } /** @@ -935,7 +934,7 @@ public open class TextEdit : Control() { beforeSelectionEnd: Boolean = false, ): Unit { TransferContext.writeArguments(STRING to text, LONG to line.toLong(), LONG to column.toLong(), BOOL to beforeSelectionBegin, BOOL to beforeSelectionEnd) - TransferContext.callMethod(rawPtr, MethodBindings.insertTextPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.insertTextPtr, NIL) } /** @@ -948,7 +947,7 @@ public open class TextEdit : Control() { toColumn: Int, ): Unit { TransferContext.writeArguments(LONG to fromLine.toLong(), LONG to fromColumn.toLong(), LONG to toLine.toLong(), LONG to toColumn.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeTextPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeTextPtr, NIL) } /** @@ -956,7 +955,7 @@ public open class TextEdit : Control() { */ public final fun getLastUnhiddenLine(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLastUnhiddenLinePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLastUnhiddenLinePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -967,7 +966,7 @@ public open class TextEdit : Control() { */ public final fun getNextVisibleLineOffsetFrom(line: Int, visibleAmount: Int): Int { TransferContext.writeArguments(LONG to line.toLong(), LONG to visibleAmount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getNextVisibleLineOffsetFromPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getNextVisibleLineOffsetFromPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -981,8 +980,7 @@ public open class TextEdit : Control() { visibleAmount: Int, ): Vector2i { TransferContext.writeArguments(LONG to line.toLong(), LONG to wrapIndex.toLong(), LONG to visibleAmount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getNextVisibleLineIndexOffsetFromPtr, - VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getNextVisibleLineIndexOffsetFromPtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -992,7 +990,7 @@ public open class TextEdit : Control() { @JvmOverloads public final fun backspace(caretIndex: Int = -1): Unit { TransferContext.writeArguments(LONG to caretIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.backspacePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.backspacePtr, NIL) } /** @@ -1001,7 +999,7 @@ public open class TextEdit : Control() { @JvmOverloads public final fun cut(caretIndex: Int = -1): Unit { TransferContext.writeArguments(LONG to caretIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.cutPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.cutPtr, NIL) } /** @@ -1010,7 +1008,7 @@ public open class TextEdit : Control() { @JvmOverloads public final fun copy(caretIndex: Int = -1): Unit { TransferContext.writeArguments(LONG to caretIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.copyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.copyPtr, NIL) } /** @@ -1019,7 +1017,7 @@ public open class TextEdit : Control() { @JvmOverloads public final fun paste(caretIndex: Int = -1): Unit { TransferContext.writeArguments(LONG to caretIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.pastePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pastePtr, NIL) } /** @@ -1028,7 +1026,7 @@ public open class TextEdit : Control() { @JvmOverloads public final fun pastePrimaryClipboard(caretIndex: Int = -1): Unit { TransferContext.writeArguments(LONG to caretIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.pastePrimaryClipboardPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pastePrimaryClipboardPtr, NIL) } /** @@ -1039,7 +1037,7 @@ public open class TextEdit : Control() { */ public final fun startAction(action: EditAction): Unit { TransferContext.writeArguments(LONG to action.id) - TransferContext.callMethod(rawPtr, MethodBindings.startActionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.startActionPtr, NIL) } /** @@ -1047,7 +1045,7 @@ public open class TextEdit : Control() { */ public final fun endAction(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.endActionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.endActionPtr, NIL) } /** @@ -1056,7 +1054,7 @@ public open class TextEdit : Control() { */ public final fun beginComplexOperation(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.beginComplexOperationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.beginComplexOperationPtr, NIL) } /** @@ -1065,7 +1063,7 @@ public open class TextEdit : Control() { */ public final fun endComplexOperation(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.endComplexOperationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.endComplexOperationPtr, NIL) } /** @@ -1073,7 +1071,7 @@ public open class TextEdit : Control() { */ public final fun hasUndo(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasUndoPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasUndoPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1082,7 +1080,7 @@ public open class TextEdit : Control() { */ public final fun hasRedo(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasRedoPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasRedoPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1091,7 +1089,7 @@ public open class TextEdit : Control() { */ public final fun undo(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.undoPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.undoPtr, NIL) } /** @@ -1099,7 +1097,7 @@ public open class TextEdit : Control() { */ public final fun redo(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.redoPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.redoPtr, NIL) } /** @@ -1107,7 +1105,7 @@ public open class TextEdit : Control() { */ public final fun clearUndoHistory(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearUndoHistoryPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearUndoHistoryPtr, NIL) } /** @@ -1115,7 +1113,7 @@ public open class TextEdit : Control() { */ public final fun tagSavedVersion(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.tagSavedVersionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.tagSavedVersionPtr, NIL) } /** @@ -1124,7 +1122,7 @@ public open class TextEdit : Control() { */ public final fun getVersion(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVersionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVersionPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -1133,7 +1131,7 @@ public open class TextEdit : Control() { */ public final fun getSavedVersion(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSavedVersionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSavedVersionPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -1142,7 +1140,7 @@ public open class TextEdit : Control() { */ public final fun setSearchText(searchText: String): Unit { TransferContext.writeArguments(STRING to searchText) - TransferContext.callMethod(rawPtr, MethodBindings.setSearchTextPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSearchTextPtr, NIL) } /** @@ -1151,7 +1149,7 @@ public open class TextEdit : Control() { */ public final fun setSearchFlags(flags: Long): Unit { TransferContext.writeArguments(LONG to flags) - TransferContext.callMethod(rawPtr, MethodBindings.setSearchFlagsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSearchFlagsPtr, NIL) } /** @@ -1185,7 +1183,7 @@ public open class TextEdit : Control() { fromColumn: Int, ): Vector2i { TransferContext.writeArguments(STRING to text, LONG to flags, LONG to fromLine.toLong(), LONG to fromColumn.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.searchPtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.searchPtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -1195,7 +1193,7 @@ public open class TextEdit : Control() { */ public final fun setTooltipRequestFunc(callback: Callable): Unit { TransferContext.writeArguments(CALLABLE to callback) - TransferContext.callMethod(rawPtr, MethodBindings.setTooltipRequestFuncPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTooltipRequestFuncPtr, NIL) } /** @@ -1203,7 +1201,7 @@ public open class TextEdit : Control() { */ public final fun getLocalMousePos(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLocalMousePosPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getLocalMousePosPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -1212,7 +1210,7 @@ public open class TextEdit : Control() { */ public final fun getWordAtPos(position: Vector2): String { TransferContext.writeArguments(VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.getWordAtPosPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getWordAtPosPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -1225,7 +1223,7 @@ public open class TextEdit : Control() { public final fun getLineColumnAtPos(position: Vector2i, allowOutOfBounds: Boolean = true): Vector2i { TransferContext.writeArguments(VECTOR2I to position, BOOL to allowOutOfBounds) - TransferContext.callMethod(rawPtr, MethodBindings.getLineColumnAtPosPtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getLineColumnAtPosPtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -1237,7 +1235,7 @@ public open class TextEdit : Control() { */ public final fun getPosAtLineColumn(line: Int, column: Int): Vector2i { TransferContext.writeArguments(LONG to line.toLong(), LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getPosAtLineColumnPtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getPosAtLineColumnPtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -1250,7 +1248,7 @@ public open class TextEdit : Control() { */ public final fun getRectAtLineColumn(line: Int, column: Int): Rect2i { TransferContext.writeArguments(LONG to line.toLong(), LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getRectAtLineColumnPtr, RECT2I) + TransferContext.callMethod(ptr, MethodBindings.getRectAtLineColumnPtr, RECT2I) return (TransferContext.readReturnValue(RECT2I) as Rect2i) } @@ -1259,7 +1257,7 @@ public open class TextEdit : Control() { */ public final fun getMinimapLineAtPos(position: Vector2i): Int { TransferContext.writeArguments(VECTOR2I to position) - TransferContext.callMethod(rawPtr, MethodBindings.getMinimapLineAtPosPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMinimapLineAtPosPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1268,7 +1266,7 @@ public open class TextEdit : Control() { */ public final fun isDraggingCursor(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDraggingCursorPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDraggingCursorPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1279,84 +1277,84 @@ public open class TextEdit : Control() { @JvmOverloads public final fun isMouseOverSelection(edges: Boolean, caretIndex: Int = -1): Boolean { TransferContext.writeArguments(BOOL to edges, LONG to caretIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isMouseOverSelectionPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isMouseOverSelectionPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCaretType(type: CaretType): Unit { TransferContext.writeArguments(LONG to type.id) - TransferContext.callMethod(rawPtr, MethodBindings.setCaretTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCaretTypePtr, NIL) } public final fun getCaretType(): CaretType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCaretTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCaretTypePtr, LONG) return TextEdit.CaretType.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setCaretBlinkEnabled(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setCaretBlinkEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCaretBlinkEnabledPtr, NIL) } public final fun isCaretBlinkEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCaretBlinkEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCaretBlinkEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCaretBlinkInterval(interval: Float): Unit { TransferContext.writeArguments(DOUBLE to interval.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setCaretBlinkIntervalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCaretBlinkIntervalPtr, NIL) } public final fun getCaretBlinkInterval(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCaretBlinkIntervalPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCaretBlinkIntervalPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDrawCaretWhenEditableDisabled(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setDrawCaretWhenEditableDisabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDrawCaretWhenEditableDisabledPtr, NIL) } public final fun isDrawingCaretWhenEditableDisabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDrawingCaretWhenEditableDisabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDrawingCaretWhenEditableDisabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setMoveCaretOnRightClickEnabled(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setMoveCaretOnRightClickEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMoveCaretOnRightClickEnabledPtr, NIL) } public final fun isMoveCaretOnRightClickEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isMoveCaretOnRightClickEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isMoveCaretOnRightClickEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCaretMidGraphemeEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setCaretMidGraphemeEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCaretMidGraphemeEnabledPtr, NIL) } public final fun isCaretMidGraphemeEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCaretMidGraphemeEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCaretMidGraphemeEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setMultipleCaretsEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setMultipleCaretsEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMultipleCaretsEnabledPtr, NIL) } public final fun isMultipleCaretsEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isMultipleCaretsEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isMultipleCaretsEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1366,7 +1364,7 @@ public open class TextEdit : Control() { */ public final fun addCaret(line: Int, column: Int): Int { TransferContext.writeArguments(LONG to line.toLong(), LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addCaretPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.addCaretPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1376,7 +1374,7 @@ public open class TextEdit : Control() { */ public final fun removeCaret(caret: Int): Unit { TransferContext.writeArguments(LONG to caret.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeCaretPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeCaretPtr, NIL) } /** @@ -1384,7 +1382,7 @@ public open class TextEdit : Control() { */ public final fun removeSecondaryCarets(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.removeSecondaryCaretsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeSecondaryCaretsPtr, NIL) } /** @@ -1392,7 +1390,7 @@ public open class TextEdit : Control() { */ public final fun getCaretCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCaretCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCaretCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1402,7 +1400,7 @@ public open class TextEdit : Control() { */ public final fun addCaretAtCarets(below: Boolean): Unit { TransferContext.writeArguments(BOOL to below) - TransferContext.callMethod(rawPtr, MethodBindings.addCaretAtCaretsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addCaretAtCaretsPtr, NIL) } /** @@ -1413,7 +1411,7 @@ public open class TextEdit : Control() { @JvmOverloads public final fun getSortedCarets(includeIgnoredCarets: Boolean = false): PackedInt32Array { TransferContext.writeArguments(BOOL to includeIgnoredCarets) - TransferContext.callMethod(rawPtr, MethodBindings.getSortedCaretsPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getSortedCaretsPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } @@ -1433,7 +1431,7 @@ public open class TextEdit : Control() { inclusive: Boolean = false, ): Unit { TransferContext.writeArguments(LONG to fromLine.toLong(), LONG to fromColumn.toLong(), LONG to toLine.toLong(), LONG to toColumn.toLong(), BOOL to inclusive) - TransferContext.callMethod(rawPtr, MethodBindings.collapseCaretsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.collapseCaretsPtr, NIL) } /** @@ -1445,7 +1443,7 @@ public open class TextEdit : Control() { */ public final fun mergeOverlappingCarets(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.mergeOverlappingCaretsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.mergeOverlappingCaretsPtr, NIL) } /** @@ -1467,7 +1465,7 @@ public open class TextEdit : Control() { */ public final fun beginMulticaretEdit(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.beginMulticaretEditPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.beginMulticaretEditPtr, NIL) } /** @@ -1476,7 +1474,7 @@ public open class TextEdit : Control() { */ public final fun endMulticaretEdit(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.endMulticaretEditPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.endMulticaretEditPtr, NIL) } /** @@ -1485,7 +1483,7 @@ public open class TextEdit : Control() { */ public final fun isInMulitcaretEdit(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isInMulitcaretEditPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isInMulitcaretEditPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1499,7 +1497,7 @@ public open class TextEdit : Control() { */ public final fun multicaretEditIgnoreCaret(caretIndex: Int): Boolean { TransferContext.writeArguments(LONG to caretIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.multicaretEditIgnoreCaretPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.multicaretEditIgnoreCaretPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1509,7 +1507,7 @@ public open class TextEdit : Control() { @JvmOverloads public final fun isCaretVisible(caretIndex: Int = 0): Boolean { TransferContext.writeArguments(LONG to caretIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isCaretVisiblePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCaretVisiblePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1519,7 +1517,7 @@ public open class TextEdit : Control() { @JvmOverloads public final fun getCaretDrawPos(caretIndex: Int = 0): Vector2 { TransferContext.writeArguments(LONG to caretIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCaretDrawPosPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getCaretDrawPosPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -1545,7 +1543,7 @@ public open class TextEdit : Control() { caretIndex: Int = 0, ): Unit { TransferContext.writeArguments(LONG to line.toLong(), BOOL to adjustViewport, BOOL to canBeHidden, LONG to wrapIndex.toLong(), LONG to caretIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setCaretLinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCaretLinePtr, NIL) } /** @@ -1554,7 +1552,7 @@ public open class TextEdit : Control() { @JvmOverloads public final fun getCaretLine(caretIndex: Int = 0): Int { TransferContext.writeArguments(LONG to caretIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCaretLinePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCaretLinePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1572,7 +1570,7 @@ public open class TextEdit : Control() { caretIndex: Int = 0, ): Unit { TransferContext.writeArguments(LONG to column.toLong(), BOOL to adjustViewport, LONG to caretIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setCaretColumnPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCaretColumnPtr, NIL) } /** @@ -1581,7 +1579,7 @@ public open class TextEdit : Control() { @JvmOverloads public final fun getCaretColumn(caretIndex: Int = 0): Int { TransferContext.writeArguments(LONG to caretIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCaretColumnPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCaretColumnPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1591,7 +1589,7 @@ public open class TextEdit : Control() { @JvmOverloads public final fun getCaretWrapIndex(caretIndex: Int = 0): Int { TransferContext.writeArguments(LONG to caretIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCaretWrapIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCaretWrapIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1601,73 +1599,73 @@ public open class TextEdit : Control() { @JvmOverloads public final fun getWordUnderCaret(caretIndex: Int = -1): String { TransferContext.writeArguments(LONG to caretIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getWordUnderCaretPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getWordUnderCaretPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setUseDefaultWordSeparators(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setUseDefaultWordSeparatorsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseDefaultWordSeparatorsPtr, NIL) } public final fun isDefaultWordSeparatorsEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDefaultWordSeparatorsEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDefaultWordSeparatorsEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setUseCustomWordSeparators(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setUseCustomWordSeparatorsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseCustomWordSeparatorsPtr, NIL) } public final fun isCustomWordSeparatorsEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCustomWordSeparatorsEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCustomWordSeparatorsEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCustomWordSeparators(customWordSeparators: String): Unit { TransferContext.writeArguments(STRING to customWordSeparators) - TransferContext.callMethod(rawPtr, MethodBindings.setCustomWordSeparatorsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCustomWordSeparatorsPtr, NIL) } public final fun getCustomWordSeparators(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCustomWordSeparatorsPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getCustomWordSeparatorsPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setSelectingEnabled(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setSelectingEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSelectingEnabledPtr, NIL) } public final fun isSelectingEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSelectingEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSelectingEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDeselectOnFocusLossEnabled(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setDeselectOnFocusLossEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDeselectOnFocusLossEnabledPtr, NIL) } public final fun isDeselectOnFocusLossEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDeselectOnFocusLossEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDeselectOnFocusLossEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDragAndDropSelectionEnabled(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setDragAndDropSelectionEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDragAndDropSelectionEnabledPtr, NIL) } public final fun isDragAndDropSelectionEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDragAndDropSelectionEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDragAndDropSelectionEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1676,7 +1674,7 @@ public open class TextEdit : Control() { */ public final fun setSelectionMode(mode: SelectionMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setSelectionModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSelectionModePtr, NIL) } /** @@ -1684,7 +1682,7 @@ public open class TextEdit : Control() { */ public final fun getSelectionMode(): SelectionMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSelectionModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSelectionModePtr, LONG) return TextEdit.SelectionMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -1694,7 +1692,7 @@ public open class TextEdit : Control() { */ public final fun selectAll(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.selectAllPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.selectAllPtr, NIL) } /** @@ -1703,7 +1701,7 @@ public open class TextEdit : Control() { @JvmOverloads public final fun selectWordUnderCaret(caretIndex: Int = -1): Unit { TransferContext.writeArguments(LONG to caretIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.selectWordUnderCaretPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.selectWordUnderCaretPtr, NIL) } /** @@ -1712,7 +1710,7 @@ public open class TextEdit : Control() { */ public final fun addSelectionForNextOccurrence(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.addSelectionForNextOccurrencePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addSelectionForNextOccurrencePtr, NIL) } /** @@ -1721,7 +1719,7 @@ public open class TextEdit : Control() { */ public final fun skipSelectionForNextOccurrence(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.skipSelectionForNextOccurrencePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.skipSelectionForNextOccurrencePtr, NIL) } /** @@ -1741,7 +1739,7 @@ public open class TextEdit : Control() { caretIndex: Int = 0, ): Unit { TransferContext.writeArguments(LONG to originLine.toLong(), LONG to originColumn.toLong(), LONG to caretLine.toLong(), LONG to caretColumn.toLong(), LONG to caretIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.selectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.selectPtr, NIL) } /** @@ -1750,7 +1748,7 @@ public open class TextEdit : Control() { @JvmOverloads public final fun hasSelection(caretIndex: Int = -1): Boolean { TransferContext.writeArguments(LONG to caretIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.hasSelectionPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasSelectionPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1761,7 +1759,7 @@ public open class TextEdit : Control() { @JvmOverloads public final fun getSelectedText(caretIndex: Int = -1): String { TransferContext.writeArguments(LONG to caretIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSelectedTextPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getSelectedTextPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -1779,7 +1777,7 @@ public open class TextEdit : Control() { onlySelections: Boolean = true, ): Int { TransferContext.writeArguments(LONG to line.toLong(), LONG to column.toLong(), BOOL to includeEdges, BOOL to onlySelections) - TransferContext.callMethod(rawPtr, MethodBindings.getSelectionAtLineColumnPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSelectionAtLineColumnPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1795,7 +1793,7 @@ public open class TextEdit : Control() { public final fun getLineRangesFromCarets(onlySelections: Boolean = false, mergeAdjacent: Boolean = true): VariantArray { TransferContext.writeArguments(BOOL to onlySelections, BOOL to mergeAdjacent) - TransferContext.callMethod(rawPtr, MethodBindings.getLineRangesFromCaretsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getLineRangesFromCaretsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -1805,7 +1803,7 @@ public open class TextEdit : Control() { @JvmOverloads public final fun getSelectionOriginLine(caretIndex: Int = 0): Int { TransferContext.writeArguments(LONG to caretIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSelectionOriginLinePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSelectionOriginLinePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1815,7 +1813,7 @@ public open class TextEdit : Control() { @JvmOverloads public final fun getSelectionOriginColumn(caretIndex: Int = 0): Int { TransferContext.writeArguments(LONG to caretIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSelectionOriginColumnPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSelectionOriginColumnPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1836,7 +1834,7 @@ public open class TextEdit : Control() { caretIndex: Int = 0, ): Unit { TransferContext.writeArguments(LONG to line.toLong(), BOOL to canBeHidden, LONG to wrapIndex.toLong(), LONG to caretIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSelectionOriginLinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSelectionOriginLinePtr, NIL) } /** @@ -1846,7 +1844,7 @@ public open class TextEdit : Control() { @JvmOverloads public final fun setSelectionOriginColumn(column: Int, caretIndex: Int = 0): Unit { TransferContext.writeArguments(LONG to column.toLong(), LONG to caretIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSelectionOriginColumnPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSelectionOriginColumnPtr, NIL) } /** @@ -1855,7 +1853,7 @@ public open class TextEdit : Control() { @JvmOverloads public final fun getSelectionFromLine(caretIndex: Int = 0): Int { TransferContext.writeArguments(LONG to caretIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSelectionFromLinePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSelectionFromLinePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1865,7 +1863,7 @@ public open class TextEdit : Control() { @JvmOverloads public final fun getSelectionFromColumn(caretIndex: Int = 0): Int { TransferContext.writeArguments(LONG to caretIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSelectionFromColumnPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSelectionFromColumnPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1875,7 +1873,7 @@ public open class TextEdit : Control() { @JvmOverloads public final fun getSelectionToLine(caretIndex: Int = 0): Int { TransferContext.writeArguments(LONG to caretIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSelectionToLinePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSelectionToLinePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1885,7 +1883,7 @@ public open class TextEdit : Control() { @JvmOverloads public final fun getSelectionToColumn(caretIndex: Int = 0): Int { TransferContext.writeArguments(LONG to caretIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSelectionToColumnPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSelectionToColumnPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1896,7 +1894,7 @@ public open class TextEdit : Control() { @JvmOverloads public final fun isCaretAfterSelectionOrigin(caretIndex: Int = 0): Boolean { TransferContext.writeArguments(LONG to caretIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isCaretAfterSelectionOriginPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCaretAfterSelectionOriginPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1906,7 +1904,7 @@ public open class TextEdit : Control() { @JvmOverloads public final fun deselect(caretIndex: Int = -1): Unit { TransferContext.writeArguments(LONG to caretIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.deselectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.deselectPtr, NIL) } /** @@ -1915,28 +1913,28 @@ public open class TextEdit : Control() { @JvmOverloads public final fun deleteSelection(caretIndex: Int = -1): Unit { TransferContext.writeArguments(LONG to caretIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.deleteSelectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.deleteSelectionPtr, NIL) } public final fun setLineWrappingMode(mode: LineWrappingMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setLineWrappingModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLineWrappingModePtr, NIL) } public final fun getLineWrappingMode(): LineWrappingMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLineWrappingModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLineWrappingModePtr, LONG) return TextEdit.LineWrappingMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setAutowrapMode(autowrapMode: TextServer.AutowrapMode): Unit { TransferContext.writeArguments(LONG to autowrapMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setAutowrapModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutowrapModePtr, NIL) } public final fun getAutowrapMode(): TextServer.AutowrapMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAutowrapModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAutowrapModePtr, LONG) return TextServer.AutowrapMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -1945,7 +1943,7 @@ public open class TextEdit : Control() { */ public final fun isLineWrapped(line: Int): Boolean { TransferContext.writeArguments(LONG to line.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isLineWrappedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isLineWrappedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1954,7 +1952,7 @@ public open class TextEdit : Control() { */ public final fun getLineWrapCount(line: Int): Int { TransferContext.writeArguments(LONG to line.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getLineWrapCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLineWrapCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1963,7 +1961,7 @@ public open class TextEdit : Control() { */ public final fun getLineWrapIndexAtColumn(line: Int, column: Int): Int { TransferContext.writeArguments(LONG to line.toLong(), LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getLineWrapIndexAtColumnPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLineWrapIndexAtColumnPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1972,18 +1970,18 @@ public open class TextEdit : Control() { */ public final fun getLineWrappedText(line: Int): PackedStringArray { TransferContext.writeArguments(LONG to line.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getLineWrappedTextPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getLineWrappedTextPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } public final fun setSmoothScrollEnabled(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setSmoothScrollEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSmoothScrollEnabledPtr, NIL) } public final fun isSmoothScrollEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSmoothScrollEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSmoothScrollEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1992,7 +1990,7 @@ public open class TextEdit : Control() { */ public final fun getVScrollBar(): VScrollBar? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVScrollBarPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getVScrollBarPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as VScrollBar?) } @@ -2001,62 +1999,62 @@ public open class TextEdit : Control() { */ public final fun getHScrollBar(): HScrollBar? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHScrollBarPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getHScrollBarPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as HScrollBar?) } public final fun setVScroll(`value`: Double): Unit { TransferContext.writeArguments(DOUBLE to value) - TransferContext.callMethod(rawPtr, MethodBindings.setVScrollPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVScrollPtr, NIL) } public final fun getVScroll(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVScrollPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVScrollPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun setHScroll(`value`: Int): Unit { TransferContext.writeArguments(LONG to value.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setHScrollPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHScrollPtr, NIL) } public final fun getHScroll(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHScrollPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getHScrollPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setScrollPastEndOfFileEnabled(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setScrollPastEndOfFileEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setScrollPastEndOfFileEnabledPtr, NIL) } public final fun isScrollPastEndOfFileEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isScrollPastEndOfFileEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isScrollPastEndOfFileEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setVScrollSpeed(speed: Float): Unit { TransferContext.writeArguments(DOUBLE to speed.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVScrollSpeedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVScrollSpeedPtr, NIL) } public final fun getVScrollSpeed(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVScrollSpeedPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVScrollSpeedPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setFitContentHeightEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setFitContentHeightEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFitContentHeightEnabledPtr, NIL) } public final fun isFitContentHeightEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isFitContentHeightEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isFitContentHeightEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -2066,7 +2064,7 @@ public open class TextEdit : Control() { @JvmOverloads public final fun getScrollPosForLine(line: Int, wrapIndex: Int = 0): Double { TransferContext.writeArguments(LONG to line.toLong(), LONG to wrapIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getScrollPosForLinePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getScrollPosForLinePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -2076,7 +2074,7 @@ public open class TextEdit : Control() { @JvmOverloads public final fun setLineAsFirstVisible(line: Int, wrapIndex: Int = 0): Unit { TransferContext.writeArguments(LONG to line.toLong(), LONG to wrapIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setLineAsFirstVisiblePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLineAsFirstVisiblePtr, NIL) } /** @@ -2084,7 +2082,7 @@ public open class TextEdit : Control() { */ public final fun getFirstVisibleLine(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFirstVisibleLinePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFirstVisibleLinePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -2094,7 +2092,7 @@ public open class TextEdit : Control() { @JvmOverloads public final fun setLineAsCenterVisible(line: Int, wrapIndex: Int = 0): Unit { TransferContext.writeArguments(LONG to line.toLong(), LONG to wrapIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setLineAsCenterVisiblePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLineAsCenterVisiblePtr, NIL) } /** @@ -2103,7 +2101,7 @@ public open class TextEdit : Control() { @JvmOverloads public final fun setLineAsLastVisible(line: Int, wrapIndex: Int = 0): Unit { TransferContext.writeArguments(LONG to line.toLong(), LONG to wrapIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setLineAsLastVisiblePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLineAsLastVisiblePtr, NIL) } /** @@ -2111,7 +2109,7 @@ public open class TextEdit : Control() { */ public final fun getLastFullVisibleLine(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLastFullVisibleLinePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLastFullVisibleLinePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -2120,7 +2118,7 @@ public open class TextEdit : Control() { */ public final fun getLastFullVisibleLineWrapIndex(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLastFullVisibleLineWrapIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLastFullVisibleLineWrapIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -2129,7 +2127,7 @@ public open class TextEdit : Control() { */ public final fun getVisibleLineCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVisibleLineCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVisibleLineCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -2138,7 +2136,7 @@ public open class TextEdit : Control() { */ public final fun getVisibleLineCountInRange(fromLine: Int, toLine: Int): Int { TransferContext.writeArguments(LONG to fromLine.toLong(), LONG to toLine.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getVisibleLineCountInRangePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVisibleLineCountInRangePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -2147,7 +2145,7 @@ public open class TextEdit : Control() { */ public final fun getTotalVisibleLineCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTotalVisibleLineCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTotalVisibleLineCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -2157,7 +2155,7 @@ public open class TextEdit : Control() { @JvmOverloads public final fun adjustViewportToCaret(caretIndex: Int = 0): Unit { TransferContext.writeArguments(LONG to caretIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.adjustViewportToCaretPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.adjustViewportToCaretPtr, NIL) } /** @@ -2167,28 +2165,28 @@ public open class TextEdit : Control() { @JvmOverloads public final fun centerViewportToCaret(caretIndex: Int = 0): Unit { TransferContext.writeArguments(LONG to caretIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.centerViewportToCaretPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.centerViewportToCaretPtr, NIL) } public final fun setDrawMinimap(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDrawMinimapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDrawMinimapPtr, NIL) } public final fun isDrawingMinimap(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDrawingMinimapPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDrawingMinimapPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setMinimapWidth(width: Int): Unit { TransferContext.writeArguments(LONG to width.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMinimapWidthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMinimapWidthPtr, NIL) } public final fun getMinimapWidth(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMinimapWidthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMinimapWidthPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -2197,7 +2195,7 @@ public open class TextEdit : Control() { */ public final fun getMinimapVisibleLines(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMinimapVisibleLinesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMinimapVisibleLinesPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -2208,7 +2206,7 @@ public open class TextEdit : Control() { @JvmOverloads public final fun addGutter(at: Int = -1): Unit { TransferContext.writeArguments(LONG to at.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addGutterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addGutterPtr, NIL) } /** @@ -2216,7 +2214,7 @@ public open class TextEdit : Control() { */ public final fun removeGutter(gutter: Int): Unit { TransferContext.writeArguments(LONG to gutter.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeGutterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeGutterPtr, NIL) } /** @@ -2224,7 +2222,7 @@ public open class TextEdit : Control() { */ public final fun getGutterCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGutterCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getGutterCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -2233,7 +2231,7 @@ public open class TextEdit : Control() { */ public final fun setGutterName(gutter: Int, name: String): Unit { TransferContext.writeArguments(LONG to gutter.toLong(), STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.setGutterNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGutterNamePtr, NIL) } /** @@ -2241,7 +2239,7 @@ public open class TextEdit : Control() { */ public final fun getGutterName(gutter: Int): String { TransferContext.writeArguments(LONG to gutter.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getGutterNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getGutterNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -2251,7 +2249,7 @@ public open class TextEdit : Control() { */ public final fun setGutterType(gutter: Int, type: GutterType): Unit { TransferContext.writeArguments(LONG to gutter.toLong(), LONG to type.id) - TransferContext.callMethod(rawPtr, MethodBindings.setGutterTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGutterTypePtr, NIL) } /** @@ -2260,7 +2258,7 @@ public open class TextEdit : Control() { */ public final fun getGutterType(gutter: Int): GutterType { TransferContext.writeArguments(LONG to gutter.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getGutterTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getGutterTypePtr, LONG) return TextEdit.GutterType.from(TransferContext.readReturnValue(LONG) as Long) } @@ -2269,7 +2267,7 @@ public open class TextEdit : Control() { */ public final fun setGutterWidth(gutter: Int, width: Int): Unit { TransferContext.writeArguments(LONG to gutter.toLong(), LONG to width.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setGutterWidthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGutterWidthPtr, NIL) } /** @@ -2277,7 +2275,7 @@ public open class TextEdit : Control() { */ public final fun getGutterWidth(gutter: Int): Int { TransferContext.writeArguments(LONG to gutter.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getGutterWidthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getGutterWidthPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -2286,7 +2284,7 @@ public open class TextEdit : Control() { */ public final fun setGutterDraw(gutter: Int, draw: Boolean): Unit { TransferContext.writeArguments(LONG to gutter.toLong(), BOOL to draw) - TransferContext.callMethod(rawPtr, MethodBindings.setGutterDrawPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGutterDrawPtr, NIL) } /** @@ -2294,7 +2292,7 @@ public open class TextEdit : Control() { */ public final fun isGutterDrawn(gutter: Int): Boolean { TransferContext.writeArguments(LONG to gutter.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isGutterDrawnPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isGutterDrawnPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -2304,7 +2302,7 @@ public open class TextEdit : Control() { */ public final fun setGutterClickable(gutter: Int, clickable: Boolean): Unit { TransferContext.writeArguments(LONG to gutter.toLong(), BOOL to clickable) - TransferContext.callMethod(rawPtr, MethodBindings.setGutterClickablePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGutterClickablePtr, NIL) } /** @@ -2312,7 +2310,7 @@ public open class TextEdit : Control() { */ public final fun isGutterClickable(gutter: Int): Boolean { TransferContext.writeArguments(LONG to gutter.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isGutterClickablePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isGutterClickablePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -2321,7 +2319,7 @@ public open class TextEdit : Control() { */ public final fun setGutterOverwritable(gutter: Int, overwritable: Boolean): Unit { TransferContext.writeArguments(LONG to gutter.toLong(), BOOL to overwritable) - TransferContext.callMethod(rawPtr, MethodBindings.setGutterOverwritablePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGutterOverwritablePtr, NIL) } /** @@ -2329,7 +2327,7 @@ public open class TextEdit : Control() { */ public final fun isGutterOverwritable(gutter: Int): Boolean { TransferContext.writeArguments(LONG to gutter.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isGutterOverwritablePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isGutterOverwritablePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -2338,7 +2336,7 @@ public open class TextEdit : Control() { */ public final fun mergeGutters(fromLine: Int, toLine: Int): Unit { TransferContext.writeArguments(LONG to fromLine.toLong(), LONG to toLine.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.mergeGuttersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.mergeGuttersPtr, NIL) } /** @@ -2348,7 +2346,7 @@ public open class TextEdit : Control() { */ public final fun setGutterCustomDraw(column: Int, drawCallback: Callable): Unit { TransferContext.writeArguments(LONG to column.toLong(), CALLABLE to drawCallback) - TransferContext.callMethod(rawPtr, MethodBindings.setGutterCustomDrawPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGutterCustomDrawPtr, NIL) } /** @@ -2356,7 +2354,7 @@ public open class TextEdit : Control() { */ public final fun getTotalGutterWidth(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTotalGutterWidthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTotalGutterWidthPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -2369,7 +2367,7 @@ public open class TextEdit : Control() { metadata: Any?, ): Unit { TransferContext.writeArguments(LONG to line.toLong(), LONG to gutter.toLong(), ANY to metadata) - TransferContext.callMethod(rawPtr, MethodBindings.setLineGutterMetadataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLineGutterMetadataPtr, NIL) } /** @@ -2377,7 +2375,7 @@ public open class TextEdit : Control() { */ public final fun getLineGutterMetadata(line: Int, gutter: Int): Any? { TransferContext.writeArguments(LONG to line.toLong(), LONG to gutter.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getLineGutterMetadataPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getLineGutterMetadataPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -2391,7 +2389,7 @@ public open class TextEdit : Control() { text: String, ): Unit { TransferContext.writeArguments(LONG to line.toLong(), LONG to gutter.toLong(), STRING to text) - TransferContext.callMethod(rawPtr, MethodBindings.setLineGutterTextPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLineGutterTextPtr, NIL) } /** @@ -2400,7 +2398,7 @@ public open class TextEdit : Control() { */ public final fun getLineGutterText(line: Int, gutter: Int): String { TransferContext.writeArguments(LONG to line.toLong(), LONG to gutter.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getLineGutterTextPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getLineGutterTextPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -2414,7 +2412,7 @@ public open class TextEdit : Control() { icon: Texture2D?, ): Unit { TransferContext.writeArguments(LONG to line.toLong(), LONG to gutter.toLong(), OBJECT to icon) - TransferContext.callMethod(rawPtr, MethodBindings.setLineGutterIconPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLineGutterIconPtr, NIL) } /** @@ -2423,7 +2421,7 @@ public open class TextEdit : Control() { */ public final fun getLineGutterIcon(line: Int, gutter: Int): Texture2D? { TransferContext.writeArguments(LONG to line.toLong(), LONG to gutter.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getLineGutterIconPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getLineGutterIconPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } @@ -2436,7 +2434,7 @@ public open class TextEdit : Control() { color: Color, ): Unit { TransferContext.writeArguments(LONG to line.toLong(), LONG to gutter.toLong(), COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setLineGutterItemColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLineGutterItemColorPtr, NIL) } /** @@ -2444,7 +2442,7 @@ public open class TextEdit : Control() { */ public final fun getLineGutterItemColor(line: Int, gutter: Int): Color { TransferContext.writeArguments(LONG to line.toLong(), LONG to gutter.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getLineGutterItemColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getLineGutterItemColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } @@ -2457,7 +2455,7 @@ public open class TextEdit : Control() { clickable: Boolean, ): Unit { TransferContext.writeArguments(LONG to line.toLong(), LONG to gutter.toLong(), BOOL to clickable) - TransferContext.callMethod(rawPtr, MethodBindings.setLineGutterClickablePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLineGutterClickablePtr, NIL) } /** @@ -2465,7 +2463,7 @@ public open class TextEdit : Control() { */ public final fun isLineGutterClickable(line: Int, gutter: Int): Boolean { TransferContext.writeArguments(LONG to line.toLong(), LONG to gutter.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isLineGutterClickablePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isLineGutterClickablePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -2474,7 +2472,7 @@ public open class TextEdit : Control() { */ public final fun setLineBackgroundColor(line: Int, color: Color): Unit { TransferContext.writeArguments(LONG to line.toLong(), COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setLineBackgroundColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLineBackgroundColorPtr, NIL) } /** @@ -2483,73 +2481,73 @@ public open class TextEdit : Control() { */ public final fun getLineBackgroundColor(line: Int): Color { TransferContext.writeArguments(LONG to line.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getLineBackgroundColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getLineBackgroundColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setSyntaxHighlighter(syntaxHighlighter: SyntaxHighlighter?): Unit { TransferContext.writeArguments(OBJECT to syntaxHighlighter) - TransferContext.callMethod(rawPtr, MethodBindings.setSyntaxHighlighterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSyntaxHighlighterPtr, NIL) } public final fun getSyntaxHighlighter(): SyntaxHighlighter? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSyntaxHighlighterPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getSyntaxHighlighterPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as SyntaxHighlighter?) } public final fun setHighlightCurrentLine(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setHighlightCurrentLinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHighlightCurrentLinePtr, NIL) } public final fun isHighlightCurrentLineEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isHighlightCurrentLineEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isHighlightCurrentLineEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setHighlightAllOccurrences(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setHighlightAllOccurrencesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHighlightAllOccurrencesPtr, NIL) } public final fun isHighlightAllOccurrencesEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isHighlightAllOccurrencesEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isHighlightAllOccurrencesEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun getDrawControlChars(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDrawControlCharsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getDrawControlCharsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDrawControlChars(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDrawControlCharsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDrawControlCharsPtr, NIL) } public final fun setDrawTabs(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDrawTabsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDrawTabsPtr, NIL) } public final fun isDrawingTabs(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDrawingTabsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDrawingTabsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDrawSpaces(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDrawSpacesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDrawSpacesPtr, NIL) } public final fun isDrawingSpaces(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDrawingSpacesPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDrawingSpacesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -2603,7 +2601,7 @@ public open class TextEdit : Control() { */ public final fun getMenu(): PopupMenu? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMenuPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getMenuPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as PopupMenu?) } @@ -2613,7 +2611,7 @@ public open class TextEdit : Control() { */ public final fun isMenuVisible(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isMenuVisiblePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isMenuVisiblePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -2622,7 +2620,7 @@ public open class TextEdit : Control() { */ public final fun menuOption(option: Int): Unit { TransferContext.writeArguments(LONG to option.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.menuOptionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.menuOptionPtr, NIL) } /** @@ -2636,7 +2634,7 @@ public open class TextEdit : Control() { toCol: Int, ): Unit { TransferContext.writeArguments(LONG to caret.toLong(), LONG to fromLine.toLong(), LONG to fromCol.toLong(), LONG to toLine.toLong(), LONG to toCol.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.adjustCaretsAfterEditPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.adjustCaretsAfterEditPtr, NIL) } /** @@ -2645,8 +2643,7 @@ public open class TextEdit : Control() { */ public final fun getCaretIndexEditOrder(): PackedInt32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCaretIndexEditOrderPtr, - PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getCaretIndexEditOrderPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } @@ -2656,7 +2653,7 @@ public open class TextEdit : Control() { @JvmOverloads public final fun getSelectionLine(caretIndex: Int = 0): Int { TransferContext.writeArguments(LONG to caretIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSelectionLinePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSelectionLinePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -2666,7 +2663,7 @@ public open class TextEdit : Control() { @JvmOverloads public final fun getSelectionColumn(caretIndex: Int = 0): Int { TransferContext.writeArguments(LONG to caretIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSelectionColumnPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSelectionColumnPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TextLine.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TextLine.kt index 77c9ac0775..85f83dc292 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TextLine.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TextLine.kt @@ -8,6 +8,7 @@ package godot import godot.TextServer.JustificationFlagValue import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.PackedFloat32Array import godot.core.RID @@ -29,7 +30,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -156,50 +156,50 @@ public open class TextLine : RefCounted() { */ public final fun clear(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPtr, NIL) } public final fun setDirection(direction: TextServer.Direction): Unit { TransferContext.writeArguments(LONG to direction.id) - TransferContext.callMethod(rawPtr, MethodBindings.setDirectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDirectionPtr, NIL) } public final fun getDirection(): TextServer.Direction { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDirectionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDirectionPtr, LONG) return TextServer.Direction.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setOrientation(orientation: TextServer.Orientation): Unit { TransferContext.writeArguments(LONG to orientation.id) - TransferContext.callMethod(rawPtr, MethodBindings.setOrientationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOrientationPtr, NIL) } public final fun getOrientation(): TextServer.Orientation { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOrientationPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOrientationPtr, LONG) return TextServer.Orientation.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setPreserveInvalid(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setPreserveInvalidPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPreserveInvalidPtr, NIL) } public final fun getPreserveInvalid(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPreserveInvalidPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getPreserveInvalidPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setPreserveControl(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setPreserveControlPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPreserveControlPtr, NIL) } public final fun getPreserveControl(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPreserveControlPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getPreserveControlPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -210,7 +210,7 @@ public open class TextLine : RefCounted() { */ public final fun setBidiOverride(`override`: VariantArray): Unit { TransferContext.writeArguments(ARRAY to override) - TransferContext.callMethod(rawPtr, MethodBindings.setBidiOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBidiOverridePtr, NIL) } /** @@ -225,7 +225,7 @@ public open class TextLine : RefCounted() { meta: Any? = null, ): Boolean { TransferContext.writeArguments(STRING to text, OBJECT to font, LONG to fontSize.toLong(), STRING to language, ANY to meta) - TransferContext.callMethod(rawPtr, MethodBindings.addStringPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.addStringPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -242,7 +242,7 @@ public open class TextLine : RefCounted() { baseline: Float = 0.0f, ): Boolean { TransferContext.writeArguments(ANY to key, VECTOR2 to size, LONG to inlineAlign.id, LONG to length.toLong(), DOUBLE to baseline.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.addObjectPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.addObjectPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -257,29 +257,29 @@ public open class TextLine : RefCounted() { baseline: Float = 0.0f, ): Boolean { TransferContext.writeArguments(ANY to key, VECTOR2 to size, LONG to inlineAlign.id, DOUBLE to baseline.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.resizeObjectPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.resizeObjectPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setWidth(width: Float): Unit { TransferContext.writeArguments(DOUBLE to width.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setWidthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setWidthPtr, NIL) } public final fun getWidth(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWidthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getWidthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setHorizontalAlignment(alignment: HorizontalAlignment): Unit { TransferContext.writeArguments(LONG to alignment.id) - TransferContext.callMethod(rawPtr, MethodBindings.setHorizontalAlignmentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHorizontalAlignmentPtr, NIL) } public final fun getHorizontalAlignment(): HorizontalAlignment { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHorizontalAlignmentPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getHorizontalAlignmentPtr, LONG) return HorizontalAlignment.from(TransferContext.readReturnValue(LONG) as Long) } @@ -288,39 +288,39 @@ public open class TextLine : RefCounted() { */ public final fun tabAlign(tabStops: PackedFloat32Array): Unit { TransferContext.writeArguments(PACKED_FLOAT_32_ARRAY to tabStops) - TransferContext.callMethod(rawPtr, MethodBindings.tabAlignPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.tabAlignPtr, NIL) } public final fun setFlags(flags: TextServer.JustificationFlag): Unit { TransferContext.writeArguments(LONG to flags.flag) - TransferContext.callMethod(rawPtr, MethodBindings.setFlagsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFlagsPtr, NIL) } public final fun getFlags(): TextServer.JustificationFlag { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFlagsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFlagsPtr, LONG) return JustificationFlagValue(TransferContext.readReturnValue(LONG) as Long) } public final fun setTextOverrunBehavior(overrunBehavior: TextServer.OverrunBehavior): Unit { TransferContext.writeArguments(LONG to overrunBehavior.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTextOverrunBehaviorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextOverrunBehaviorPtr, NIL) } public final fun getTextOverrunBehavior(): TextServer.OverrunBehavior { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextOverrunBehaviorPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTextOverrunBehaviorPtr, LONG) return TextServer.OverrunBehavior.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setEllipsisChar(char: String): Unit { TransferContext.writeArguments(STRING to char) - TransferContext.callMethod(rawPtr, MethodBindings.setEllipsisCharPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEllipsisCharPtr, NIL) } public final fun getEllipsisChar(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEllipsisCharPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getEllipsisCharPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -329,7 +329,7 @@ public open class TextLine : RefCounted() { */ public final fun getObjects(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getObjectsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getObjectsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -338,7 +338,7 @@ public open class TextLine : RefCounted() { */ public final fun getObjectRect(key: Any?): Rect2 { TransferContext.writeArguments(ANY to key) - TransferContext.callMethod(rawPtr, MethodBindings.getObjectRectPtr, RECT2) + TransferContext.callMethod(ptr, MethodBindings.getObjectRectPtr, RECT2) return (TransferContext.readReturnValue(RECT2) as Rect2) } @@ -347,7 +347,7 @@ public open class TextLine : RefCounted() { */ public final fun getSize(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSizePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getSizePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -356,7 +356,7 @@ public open class TextLine : RefCounted() { */ public final fun getRid(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRidPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getRidPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -366,7 +366,7 @@ public open class TextLine : RefCounted() { */ public final fun getLineAscent(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLineAscentPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLineAscentPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -376,7 +376,7 @@ public open class TextLine : RefCounted() { */ public final fun getLineDescent(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLineDescentPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLineDescentPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -385,7 +385,7 @@ public open class TextLine : RefCounted() { */ public final fun getLineWidth(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLineWidthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLineWidthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -394,7 +394,7 @@ public open class TextLine : RefCounted() { */ public final fun getLineUnderlinePosition(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLineUnderlinePositionPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLineUnderlinePositionPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -403,7 +403,7 @@ public open class TextLine : RefCounted() { */ public final fun getLineUnderlineThickness(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLineUnderlineThicknessPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLineUnderlineThicknessPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -418,7 +418,7 @@ public open class TextLine : RefCounted() { color: Color = Color(Color(1, 1, 1, 1)), ): Unit { TransferContext.writeArguments(_RID to canvas, VECTOR2 to pos, COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.drawPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawPtr, NIL) } /** @@ -433,7 +433,7 @@ public open class TextLine : RefCounted() { color: Color = Color(Color(1, 1, 1, 1)), ): Unit { TransferContext.writeArguments(_RID to canvas, VECTOR2 to pos, LONG to outlineSize.toLong(), COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.drawOutlinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawOutlinePtr, NIL) } /** @@ -442,7 +442,7 @@ public open class TextLine : RefCounted() { */ public final fun hitTest(coords: Float): Int { TransferContext.writeArguments(DOUBLE to coords.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.hitTestPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.hitTestPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TextMesh.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TextMesh.kt index df8ba65ae6..5e3efbdedd 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TextMesh.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TextMesh.kt @@ -10,6 +10,7 @@ import godot.TextServer.JustificationFlagValue import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY @@ -22,7 +23,6 @@ import godot.core.VariantParser.STRING import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -281,200 +281,199 @@ public open class TextMesh : PrimitiveMesh() { public final fun setHorizontalAlignment(alignment: HorizontalAlignment): Unit { TransferContext.writeArguments(LONG to alignment.id) - TransferContext.callMethod(rawPtr, MethodBindings.setHorizontalAlignmentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHorizontalAlignmentPtr, NIL) } public final fun getHorizontalAlignment(): HorizontalAlignment { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHorizontalAlignmentPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getHorizontalAlignmentPtr, LONG) return HorizontalAlignment.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setVerticalAlignment(alignment: VerticalAlignment): Unit { TransferContext.writeArguments(LONG to alignment.id) - TransferContext.callMethod(rawPtr, MethodBindings.setVerticalAlignmentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVerticalAlignmentPtr, NIL) } public final fun getVerticalAlignment(): VerticalAlignment { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVerticalAlignmentPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVerticalAlignmentPtr, LONG) return VerticalAlignment.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setText(text: String): Unit { TransferContext.writeArguments(STRING to text) - TransferContext.callMethod(rawPtr, MethodBindings.setTextPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextPtr, NIL) } public final fun getText(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getTextPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setFont(font: Font?): Unit { TransferContext.writeArguments(OBJECT to font) - TransferContext.callMethod(rawPtr, MethodBindings.setFontPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFontPtr, NIL) } public final fun getFont(): Font? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFontPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getFontPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Font?) } public final fun setFontSize(fontSize: Int): Unit { TransferContext.writeArguments(LONG to fontSize.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setFontSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFontSizePtr, NIL) } public final fun getFontSize(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFontSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFontSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setLineSpacing(lineSpacing: Float): Unit { TransferContext.writeArguments(DOUBLE to lineSpacing.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setLineSpacingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLineSpacingPtr, NIL) } public final fun getLineSpacing(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLineSpacingPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLineSpacingPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAutowrapMode(autowrapMode: TextServer.AutowrapMode): Unit { TransferContext.writeArguments(LONG to autowrapMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setAutowrapModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutowrapModePtr, NIL) } public final fun getAutowrapMode(): TextServer.AutowrapMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAutowrapModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAutowrapModePtr, LONG) return TextServer.AutowrapMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setJustificationFlags(justificationFlags: TextServer.JustificationFlag): Unit { TransferContext.writeArguments(LONG to justificationFlags.flag) - TransferContext.callMethod(rawPtr, MethodBindings.setJustificationFlagsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setJustificationFlagsPtr, NIL) } public final fun getJustificationFlags(): TextServer.JustificationFlag { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getJustificationFlagsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getJustificationFlagsPtr, LONG) return JustificationFlagValue(TransferContext.readReturnValue(LONG) as Long) } public final fun setDepth(depth: Float): Unit { TransferContext.writeArguments(DOUBLE to depth.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDepthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDepthPtr, NIL) } public final fun getDepth(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDepthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDepthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setWidth(width: Float): Unit { TransferContext.writeArguments(DOUBLE to width.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setWidthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setWidthPtr, NIL) } public final fun getWidth(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWidthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getWidthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setPixelSize(pixelSize: Float): Unit { TransferContext.writeArguments(DOUBLE to pixelSize.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPixelSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPixelSizePtr, NIL) } public final fun getPixelSize(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPixelSizePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPixelSizePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setOffset(offset: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.setOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOffsetPtr, NIL) } public final fun getOffset(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOffsetPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getOffsetPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setCurveStep(curveStep: Float): Unit { TransferContext.writeArguments(DOUBLE to curveStep.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setCurveStepPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCurveStepPtr, NIL) } public final fun getCurveStep(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCurveStepPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCurveStepPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setTextDirection(direction: TextServer.Direction): Unit { TransferContext.writeArguments(LONG to direction.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTextDirectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextDirectionPtr, NIL) } public final fun getTextDirection(): TextServer.Direction { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextDirectionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTextDirectionPtr, LONG) return TextServer.Direction.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setLanguage(language: String): Unit { TransferContext.writeArguments(STRING to language) - TransferContext.callMethod(rawPtr, MethodBindings.setLanguagePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLanguagePtr, NIL) } public final fun getLanguage(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLanguagePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getLanguagePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setStructuredTextBidiOverride(parser: TextServer.StructuredTextParser): Unit { TransferContext.writeArguments(LONG to parser.id) - TransferContext.callMethod(rawPtr, MethodBindings.setStructuredTextBidiOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStructuredTextBidiOverridePtr, NIL) } public final fun getStructuredTextBidiOverride(): TextServer.StructuredTextParser { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStructuredTextBidiOverridePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getStructuredTextBidiOverridePtr, LONG) return TextServer.StructuredTextParser.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setStructuredTextBidiOverrideOptions(args: VariantArray): Unit { TransferContext.writeArguments(ARRAY to args) - TransferContext.callMethod(rawPtr, MethodBindings.setStructuredTextBidiOverrideOptionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStructuredTextBidiOverrideOptionsPtr, NIL) } public final fun getStructuredTextBidiOverrideOptions(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStructuredTextBidiOverrideOptionsPtr, - ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getStructuredTextBidiOverrideOptionsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } public final fun setUppercase(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setUppercasePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUppercasePtr, NIL) } public final fun isUppercase(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUppercasePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUppercasePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TextParagraph.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TextParagraph.kt index 9bf06b3ae2..62b2957548 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TextParagraph.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TextParagraph.kt @@ -9,6 +9,7 @@ package godot import godot.TextServer.JustificationFlagValue import godot.TextServer.LineBreakFlagValue import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.PackedFloat32Array import godot.core.RID @@ -32,7 +33,6 @@ import godot.core.VariantParser._RID import godot.core.Vector2 import godot.core.Vector2i import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -193,61 +193,61 @@ public open class TextParagraph : RefCounted() { */ public final fun clear(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPtr, NIL) } public final fun setDirection(direction: TextServer.Direction): Unit { TransferContext.writeArguments(LONG to direction.id) - TransferContext.callMethod(rawPtr, MethodBindings.setDirectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDirectionPtr, NIL) } public final fun getDirection(): TextServer.Direction { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDirectionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDirectionPtr, LONG) return TextServer.Direction.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setCustomPunctuation(customPunctuation: String): Unit { TransferContext.writeArguments(STRING to customPunctuation) - TransferContext.callMethod(rawPtr, MethodBindings.setCustomPunctuationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCustomPunctuationPtr, NIL) } public final fun getCustomPunctuation(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCustomPunctuationPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getCustomPunctuationPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setOrientation(orientation: TextServer.Orientation): Unit { TransferContext.writeArguments(LONG to orientation.id) - TransferContext.callMethod(rawPtr, MethodBindings.setOrientationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOrientationPtr, NIL) } public final fun getOrientation(): TextServer.Orientation { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOrientationPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOrientationPtr, LONG) return TextServer.Orientation.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setPreserveInvalid(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setPreserveInvalidPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPreserveInvalidPtr, NIL) } public final fun getPreserveInvalid(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPreserveInvalidPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getPreserveInvalidPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setPreserveControl(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setPreserveControlPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPreserveControlPtr, NIL) } public final fun getPreserveControl(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPreserveControlPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getPreserveControlPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -258,7 +258,7 @@ public open class TextParagraph : RefCounted() { */ public final fun setBidiOverride(`override`: VariantArray): Unit { TransferContext.writeArguments(ARRAY to override) - TransferContext.callMethod(rawPtr, MethodBindings.setBidiOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBidiOverridePtr, NIL) } /** @@ -274,7 +274,7 @@ public open class TextParagraph : RefCounted() { language: String = "", ): Boolean { TransferContext.writeArguments(STRING to text, OBJECT to font, LONG to fontSize.toLong(), RECT2 to dropcapMargins, STRING to language) - TransferContext.callMethod(rawPtr, MethodBindings.setDropcapPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.setDropcapPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -283,7 +283,7 @@ public open class TextParagraph : RefCounted() { */ public final fun clearDropcap(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearDropcapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearDropcapPtr, NIL) } /** @@ -298,7 +298,7 @@ public open class TextParagraph : RefCounted() { meta: Any? = null, ): Boolean { TransferContext.writeArguments(STRING to text, OBJECT to font, LONG to fontSize.toLong(), STRING to language, ANY to meta) - TransferContext.callMethod(rawPtr, MethodBindings.addStringPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.addStringPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -315,7 +315,7 @@ public open class TextParagraph : RefCounted() { baseline: Float = 0.0f, ): Boolean { TransferContext.writeArguments(ANY to key, VECTOR2 to size, LONG to inlineAlign.id, LONG to length.toLong(), DOUBLE to baseline.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.addObjectPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.addObjectPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -330,18 +330,18 @@ public open class TextParagraph : RefCounted() { baseline: Float = 0.0f, ): Boolean { TransferContext.writeArguments(ANY to key, VECTOR2 to size, LONG to inlineAlign.id, DOUBLE to baseline.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.resizeObjectPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.resizeObjectPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAlignment(alignment: HorizontalAlignment): Unit { TransferContext.writeArguments(LONG to alignment.id) - TransferContext.callMethod(rawPtr, MethodBindings.setAlignmentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAlignmentPtr, NIL) } public final fun getAlignment(): HorizontalAlignment { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAlignmentPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAlignmentPtr, LONG) return HorizontalAlignment.from(TransferContext.readReturnValue(LONG) as Long) } @@ -350,61 +350,61 @@ public open class TextParagraph : RefCounted() { */ public final fun tabAlign(tabStops: PackedFloat32Array): Unit { TransferContext.writeArguments(PACKED_FLOAT_32_ARRAY to tabStops) - TransferContext.callMethod(rawPtr, MethodBindings.tabAlignPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.tabAlignPtr, NIL) } public final fun setBreakFlags(flags: TextServer.LineBreakFlag): Unit { TransferContext.writeArguments(LONG to flags.flag) - TransferContext.callMethod(rawPtr, MethodBindings.setBreakFlagsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBreakFlagsPtr, NIL) } public final fun getBreakFlags(): TextServer.LineBreakFlag { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBreakFlagsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBreakFlagsPtr, LONG) return LineBreakFlagValue(TransferContext.readReturnValue(LONG) as Long) } public final fun setJustificationFlags(flags: TextServer.JustificationFlag): Unit { TransferContext.writeArguments(LONG to flags.flag) - TransferContext.callMethod(rawPtr, MethodBindings.setJustificationFlagsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setJustificationFlagsPtr, NIL) } public final fun getJustificationFlags(): TextServer.JustificationFlag { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getJustificationFlagsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getJustificationFlagsPtr, LONG) return JustificationFlagValue(TransferContext.readReturnValue(LONG) as Long) } public final fun setTextOverrunBehavior(overrunBehavior: TextServer.OverrunBehavior): Unit { TransferContext.writeArguments(LONG to overrunBehavior.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTextOverrunBehaviorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextOverrunBehaviorPtr, NIL) } public final fun getTextOverrunBehavior(): TextServer.OverrunBehavior { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextOverrunBehaviorPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTextOverrunBehaviorPtr, LONG) return TextServer.OverrunBehavior.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setEllipsisChar(char: String): Unit { TransferContext.writeArguments(STRING to char) - TransferContext.callMethod(rawPtr, MethodBindings.setEllipsisCharPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEllipsisCharPtr, NIL) } public final fun getEllipsisChar(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEllipsisCharPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getEllipsisCharPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setWidth(width: Float): Unit { TransferContext.writeArguments(DOUBLE to width.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setWidthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setWidthPtr, NIL) } public final fun getWidth(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWidthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getWidthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -413,7 +413,7 @@ public open class TextParagraph : RefCounted() { */ public final fun getNonWrappedSize(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNonWrappedSizePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getNonWrappedSizePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -422,7 +422,7 @@ public open class TextParagraph : RefCounted() { */ public final fun getSize(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSizePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getSizePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -431,7 +431,7 @@ public open class TextParagraph : RefCounted() { */ public final fun getRid(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRidPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getRidPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -440,7 +440,7 @@ public open class TextParagraph : RefCounted() { */ public final fun getLineRid(line: Int): RID { TransferContext.writeArguments(LONG to line.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getLineRidPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getLineRidPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -449,7 +449,7 @@ public open class TextParagraph : RefCounted() { */ public final fun getDropcapRid(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDropcapRidPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getDropcapRidPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -458,18 +458,18 @@ public open class TextParagraph : RefCounted() { */ public final fun getLineCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLineCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLineCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setMaxLinesVisible(maxLinesVisible: Int): Unit { TransferContext.writeArguments(LONG to maxLinesVisible.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxLinesVisiblePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxLinesVisiblePtr, NIL) } public final fun getMaxLinesVisible(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxLinesVisiblePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMaxLinesVisiblePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -478,7 +478,7 @@ public open class TextParagraph : RefCounted() { */ public final fun getLineObjects(line: Int): VariantArray { TransferContext.writeArguments(LONG to line.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getLineObjectsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getLineObjectsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -487,7 +487,7 @@ public open class TextParagraph : RefCounted() { */ public final fun getLineObjectRect(line: Int, key: Any?): Rect2 { TransferContext.writeArguments(LONG to line.toLong(), ANY to key) - TransferContext.callMethod(rawPtr, MethodBindings.getLineObjectRectPtr, RECT2) + TransferContext.callMethod(ptr, MethodBindings.getLineObjectRectPtr, RECT2) return (TransferContext.readReturnValue(RECT2) as Rect2) } @@ -496,7 +496,7 @@ public open class TextParagraph : RefCounted() { */ public final fun getLineSize(line: Int): Vector2 { TransferContext.writeArguments(LONG to line.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getLineSizePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getLineSizePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -505,7 +505,7 @@ public open class TextParagraph : RefCounted() { */ public final fun getLineRange(line: Int): Vector2i { TransferContext.writeArguments(LONG to line.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getLineRangePtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getLineRangePtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -515,7 +515,7 @@ public open class TextParagraph : RefCounted() { */ public final fun getLineAscent(line: Int): Float { TransferContext.writeArguments(LONG to line.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getLineAscentPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLineAscentPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -525,7 +525,7 @@ public open class TextParagraph : RefCounted() { */ public final fun getLineDescent(line: Int): Float { TransferContext.writeArguments(LONG to line.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getLineDescentPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLineDescentPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -534,7 +534,7 @@ public open class TextParagraph : RefCounted() { */ public final fun getLineWidth(line: Int): Float { TransferContext.writeArguments(LONG to line.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getLineWidthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLineWidthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -543,7 +543,7 @@ public open class TextParagraph : RefCounted() { */ public final fun getLineUnderlinePosition(line: Int): Float { TransferContext.writeArguments(LONG to line.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getLineUnderlinePositionPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLineUnderlinePositionPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -552,7 +552,7 @@ public open class TextParagraph : RefCounted() { */ public final fun getLineUnderlineThickness(line: Int): Float { TransferContext.writeArguments(LONG to line.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getLineUnderlineThicknessPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getLineUnderlineThicknessPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -561,7 +561,7 @@ public open class TextParagraph : RefCounted() { */ public final fun getDropcapSize(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDropcapSizePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getDropcapSizePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -570,7 +570,7 @@ public open class TextParagraph : RefCounted() { */ public final fun getDropcapLines(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDropcapLinesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDropcapLinesPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -586,7 +586,7 @@ public open class TextParagraph : RefCounted() { dcColor: Color = Color(Color(1, 1, 1, 1)), ): Unit { TransferContext.writeArguments(_RID to canvas, VECTOR2 to pos, COLOR to color, COLOR to dcColor) - TransferContext.callMethod(rawPtr, MethodBindings.drawPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawPtr, NIL) } /** @@ -602,7 +602,7 @@ public open class TextParagraph : RefCounted() { dcColor: Color = Color(Color(1, 1, 1, 1)), ): Unit { TransferContext.writeArguments(_RID to canvas, VECTOR2 to pos, LONG to outlineSize.toLong(), COLOR to color, COLOR to dcColor) - TransferContext.callMethod(rawPtr, MethodBindings.drawOutlinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawOutlinePtr, NIL) } /** @@ -617,7 +617,7 @@ public open class TextParagraph : RefCounted() { color: Color = Color(Color(1, 1, 1, 1)), ): Unit { TransferContext.writeArguments(_RID to canvas, VECTOR2 to pos, LONG to line.toLong(), COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.drawLinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawLinePtr, NIL) } /** @@ -633,7 +633,7 @@ public open class TextParagraph : RefCounted() { color: Color = Color(Color(1, 1, 1, 1)), ): Unit { TransferContext.writeArguments(_RID to canvas, VECTOR2 to pos, LONG to line.toLong(), LONG to outlineSize.toLong(), COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.drawLineOutlinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawLineOutlinePtr, NIL) } /** @@ -647,7 +647,7 @@ public open class TextParagraph : RefCounted() { color: Color = Color(Color(1, 1, 1, 1)), ): Unit { TransferContext.writeArguments(_RID to canvas, VECTOR2 to pos, COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.drawDropcapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawDropcapPtr, NIL) } /** @@ -662,7 +662,7 @@ public open class TextParagraph : RefCounted() { color: Color = Color(Color(1, 1, 1, 1)), ): Unit { TransferContext.writeArguments(_RID to canvas, VECTOR2 to pos, LONG to outlineSize.toLong(), COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.drawDropcapOutlinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawDropcapOutlinePtr, NIL) } /** @@ -671,7 +671,7 @@ public open class TextParagraph : RefCounted() { */ public final fun hitTest(coords: Vector2): Int { TransferContext.writeArguments(VECTOR2 to coords) - TransferContext.callMethod(rawPtr, MethodBindings.hitTestPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.hitTestPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TextServer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TextServer.kt index c1c54236df..41143543b4 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TextServer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TextServer.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.Dictionary import godot.core.PackedByteArray @@ -43,7 +44,6 @@ import godot.core.Vector2 import godot.core.Vector2i import godot.core.Vector3i import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -82,7 +82,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun hasFeature(feature: Feature): Boolean { TransferContext.writeArguments(LONG to feature.id) - TransferContext.callMethod(rawPtr, MethodBindings.hasFeaturePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasFeaturePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -91,7 +91,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun getName(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -100,7 +100,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun getFeatures(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFeaturesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFeaturesPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -111,7 +111,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun loadSupportData(filename: String): Boolean { TransferContext.writeArguments(STRING to filename) - TransferContext.callMethod(rawPtr, MethodBindings.loadSupportDataPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.loadSupportDataPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -120,7 +120,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun getSupportDataFilename(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSupportDataFilenamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getSupportDataFilenamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -129,7 +129,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun getSupportDataInfo(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSupportDataInfoPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getSupportDataInfoPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -139,7 +139,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun saveSupportData(filename: String): Boolean { TransferContext.writeArguments(STRING to filename) - TransferContext.callMethod(rawPtr, MethodBindings.saveSupportDataPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.saveSupportDataPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -148,7 +148,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun isLocaleRightToLeft(locale: String): Boolean { TransferContext.writeArguments(STRING to locale) - TransferContext.callMethod(rawPtr, MethodBindings.isLocaleRightToLeftPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isLocaleRightToLeftPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -157,7 +157,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun nameToTag(name: String): Long { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.nameToTagPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.nameToTagPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -166,7 +166,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun tagToName(tag: Long): String { TransferContext.writeArguments(LONG to tag) - TransferContext.callMethod(rawPtr, MethodBindings.tagToNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.tagToNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -175,7 +175,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun has(rid: RID): Boolean { TransferContext.writeArguments(_RID to rid) - TransferContext.callMethod(rawPtr, MethodBindings.hasPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -184,7 +184,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun freeRid(rid: RID): Unit { TransferContext.writeArguments(_RID to rid) - TransferContext.callMethod(rawPtr, MethodBindings.freeRidPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.freeRidPtr, NIL) } /** @@ -193,7 +193,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun createFont(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.createFontPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.createFontPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -203,7 +203,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun createFontLinkedVariation(fontRid: RID): RID { TransferContext.writeArguments(_RID to fontRid) - TransferContext.callMethod(rawPtr, MethodBindings.createFontLinkedVariationPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.createFontLinkedVariationPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -212,7 +212,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontSetData(fontRid: RID, `data`: PackedByteArray): Unit { TransferContext.writeArguments(_RID to fontRid, PACKED_BYTE_ARRAY to data) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetDataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetDataPtr, NIL) } /** @@ -220,7 +220,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontSetFaceIndex(fontRid: RID, faceIndex: Long): Unit { TransferContext.writeArguments(_RID to fontRid, LONG to faceIndex) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetFaceIndexPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetFaceIndexPtr, NIL) } /** @@ -228,7 +228,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetFaceIndex(fontRid: RID): Long { TransferContext.writeArguments(_RID to fontRid) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetFaceIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.fontGetFaceIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -237,7 +237,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetFaceCount(fontRid: RID): Long { TransferContext.writeArguments(_RID to fontRid) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetFaceCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.fontGetFaceCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -249,7 +249,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontSetStyle(fontRid: RID, style: FontStyle): Unit { TransferContext.writeArguments(_RID to fontRid, LONG to style.flag) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetStylePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetStylePtr, NIL) } /** @@ -257,7 +257,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetStyle(fontRid: RID): FontStyle { TransferContext.writeArguments(_RID to fontRid) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetStylePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.fontGetStylePtr, LONG) return FontStyleValue(TransferContext.readReturnValue(LONG) as Long) } @@ -266,7 +266,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontSetName(fontRid: RID, name: String): Unit { TransferContext.writeArguments(_RID to fontRid, STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetNamePtr, NIL) } /** @@ -274,7 +274,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetName(fontRid: RID): String { TransferContext.writeArguments(_RID to fontRid) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.fontGetNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -284,7 +284,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetOtNameStrings(fontRid: RID): Dictionary { TransferContext.writeArguments(_RID to fontRid) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetOtNameStringsPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.fontGetOtNameStringsPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -293,7 +293,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontSetStyleName(fontRid: RID, name: String): Unit { TransferContext.writeArguments(_RID to fontRid, STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetStyleNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetStyleNamePtr, NIL) } /** @@ -301,7 +301,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetStyleName(fontRid: RID): String { TransferContext.writeArguments(_RID to fontRid) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetStyleNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.fontGetStyleNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -313,7 +313,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontSetWeight(fontRid: RID, weight: Long): Unit { TransferContext.writeArguments(_RID to fontRid, LONG to weight) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetWeightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetWeightPtr, NIL) } /** @@ -322,7 +322,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetWeight(fontRid: RID): Long { TransferContext.writeArguments(_RID to fontRid) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetWeightPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.fontGetWeightPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -334,7 +334,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontSetStretch(fontRid: RID, weight: Long): Unit { TransferContext.writeArguments(_RID to fontRid, LONG to weight) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetStretchPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetStretchPtr, NIL) } /** @@ -343,7 +343,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetStretch(fontRid: RID): Long { TransferContext.writeArguments(_RID to fontRid) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetStretchPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.fontGetStretchPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -352,7 +352,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontSetAntialiasing(fontRid: RID, antialiasing: FontAntialiasing): Unit { TransferContext.writeArguments(_RID to fontRid, LONG to antialiasing.id) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetAntialiasingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetAntialiasingPtr, NIL) } /** @@ -360,7 +360,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetAntialiasing(fontRid: RID): FontAntialiasing { TransferContext.writeArguments(_RID to fontRid) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetAntialiasingPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.fontGetAntialiasingPtr, LONG) return TextServer.FontAntialiasing.from(TransferContext.readReturnValue(LONG) as Long) } @@ -371,7 +371,7 @@ public open class TextServer internal constructor() : RefCounted() { public final fun fontSetDisableEmbeddedBitmaps(fontRid: RID, disableEmbeddedBitmaps: Boolean): Unit { TransferContext.writeArguments(_RID to fontRid, BOOL to disableEmbeddedBitmaps) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetDisableEmbeddedBitmapsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetDisableEmbeddedBitmapsPtr, NIL) } /** @@ -379,7 +379,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetDisableEmbeddedBitmaps(fontRid: RID): Boolean { TransferContext.writeArguments(_RID to fontRid) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetDisableEmbeddedBitmapsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.fontGetDisableEmbeddedBitmapsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -388,7 +388,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontSetGenerateMipmaps(fontRid: RID, generateMipmaps: Boolean): Unit { TransferContext.writeArguments(_RID to fontRid, BOOL to generateMipmaps) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetGenerateMipmapsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetGenerateMipmapsPtr, NIL) } /** @@ -396,7 +396,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetGenerateMipmaps(fontRid: RID): Boolean { TransferContext.writeArguments(_RID to fontRid) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetGenerateMipmapsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.fontGetGenerateMipmapsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -415,8 +415,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontSetMultichannelSignedDistanceField(fontRid: RID, msdf: Boolean): Unit { TransferContext.writeArguments(_RID to fontRid, BOOL to msdf) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetMultichannelSignedDistanceFieldPtr, - NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetMultichannelSignedDistanceFieldPtr, NIL) } /** @@ -425,8 +424,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontIsMultichannelSignedDistanceField(fontRid: RID): Boolean { TransferContext.writeArguments(_RID to fontRid) - TransferContext.callMethod(rawPtr, MethodBindings.fontIsMultichannelSignedDistanceFieldPtr, - BOOL) + TransferContext.callMethod(ptr, MethodBindings.fontIsMultichannelSignedDistanceFieldPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -436,7 +434,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontSetMsdfPixelRange(fontRid: RID, msdfPixelRange: Long): Unit { TransferContext.writeArguments(_RID to fontRid, LONG to msdfPixelRange) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetMsdfPixelRangePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetMsdfPixelRangePtr, NIL) } /** @@ -445,7 +443,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetMsdfPixelRange(fontRid: RID): Long { TransferContext.writeArguments(_RID to fontRid) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetMsdfPixelRangePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.fontGetMsdfPixelRangePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -454,7 +452,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontSetMsdfSize(fontRid: RID, msdfSize: Long): Unit { TransferContext.writeArguments(_RID to fontRid, LONG to msdfSize) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetMsdfSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetMsdfSizePtr, NIL) } /** @@ -462,7 +460,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetMsdfSize(fontRid: RID): Long { TransferContext.writeArguments(_RID to fontRid) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetMsdfSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.fontGetMsdfSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -472,7 +470,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontSetFixedSize(fontRid: RID, fixedSize: Long): Unit { TransferContext.writeArguments(_RID to fontRid, LONG to fixedSize) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetFixedSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetFixedSizePtr, NIL) } /** @@ -480,7 +478,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetFixedSize(fontRid: RID): Long { TransferContext.writeArguments(_RID to fontRid) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetFixedSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.fontGetFixedSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -490,7 +488,7 @@ public open class TextServer internal constructor() : RefCounted() { public final fun fontSetFixedSizeScaleMode(fontRid: RID, fixedSizeScaleMode: FixedSizeScaleMode): Unit { TransferContext.writeArguments(_RID to fontRid, LONG to fixedSizeScaleMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetFixedSizeScaleModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetFixedSizeScaleModePtr, NIL) } /** @@ -498,7 +496,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetFixedSizeScaleMode(fontRid: RID): FixedSizeScaleMode { TransferContext.writeArguments(_RID to fontRid) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetFixedSizeScaleModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.fontGetFixedSizeScaleModePtr, LONG) return TextServer.FixedSizeScaleMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -507,7 +505,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontSetAllowSystemFallback(fontRid: RID, allowSystemFallback: Boolean): Unit { TransferContext.writeArguments(_RID to fontRid, BOOL to allowSystemFallback) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetAllowSystemFallbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetAllowSystemFallbackPtr, NIL) } /** @@ -515,7 +513,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontIsAllowSystemFallback(fontRid: RID): Boolean { TransferContext.writeArguments(_RID to fontRid) - TransferContext.callMethod(rawPtr, MethodBindings.fontIsAllowSystemFallbackPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.fontIsAllowSystemFallbackPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -524,7 +522,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontSetForceAutohinter(fontRid: RID, forceAutohinter: Boolean): Unit { TransferContext.writeArguments(_RID to fontRid, BOOL to forceAutohinter) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetForceAutohinterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetForceAutohinterPtr, NIL) } /** @@ -533,7 +531,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontIsForceAutohinter(fontRid: RID): Boolean { TransferContext.writeArguments(_RID to fontRid) - TransferContext.callMethod(rawPtr, MethodBindings.fontIsForceAutohinterPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.fontIsForceAutohinterPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -542,7 +540,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontSetHinting(fontRid: RID, hinting: Hinting): Unit { TransferContext.writeArguments(_RID to fontRid, LONG to hinting.id) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetHintingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetHintingPtr, NIL) } /** @@ -550,7 +548,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetHinting(fontRid: RID): Hinting { TransferContext.writeArguments(_RID to fontRid) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetHintingPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.fontGetHintingPtr, LONG) return TextServer.Hinting.from(TransferContext.readReturnValue(LONG) as Long) } @@ -560,7 +558,7 @@ public open class TextServer internal constructor() : RefCounted() { public final fun fontSetSubpixelPositioning(fontRid: RID, subpixelPositioning: SubpixelPositioning): Unit { TransferContext.writeArguments(_RID to fontRid, LONG to subpixelPositioning.id) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetSubpixelPositioningPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetSubpixelPositioningPtr, NIL) } /** @@ -568,7 +566,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetSubpixelPositioning(fontRid: RID): SubpixelPositioning { TransferContext.writeArguments(_RID to fontRid) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetSubpixelPositioningPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.fontGetSubpixelPositioningPtr, LONG) return TextServer.SubpixelPositioning.from(TransferContext.readReturnValue(LONG) as Long) } @@ -578,7 +576,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontSetEmbolden(fontRid: RID, strength: Double): Unit { TransferContext.writeArguments(_RID to fontRid, DOUBLE to strength) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetEmboldenPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetEmboldenPtr, NIL) } /** @@ -586,7 +584,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetEmbolden(fontRid: RID): Double { TransferContext.writeArguments(_RID to fontRid) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetEmboldenPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.fontGetEmboldenPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -600,7 +598,7 @@ public open class TextServer internal constructor() : RefCounted() { `value`: Long, ): Unit { TransferContext.writeArguments(_RID to fontRid, LONG to spacing.id, LONG to value) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetSpacingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetSpacingPtr, NIL) } /** @@ -609,7 +607,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetSpacing(fontRid: RID, spacing: SpacingType): Long { TransferContext.writeArguments(_RID to fontRid, LONG to spacing.id) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetSpacingPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.fontGetSpacingPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -618,7 +616,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontSetBaselineOffset(fontRid: RID, baselineOffset: Double): Unit { TransferContext.writeArguments(_RID to fontRid, DOUBLE to baselineOffset) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetBaselineOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetBaselineOffsetPtr, NIL) } /** @@ -626,7 +624,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetBaselineOffset(fontRid: RID): Double { TransferContext.writeArguments(_RID to fontRid) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetBaselineOffsetPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.fontGetBaselineOffsetPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -638,7 +636,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontSetTransform(fontRid: RID, transform: Transform2D): Unit { TransferContext.writeArguments(_RID to fontRid, TRANSFORM2D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetTransformPtr, NIL) } /** @@ -646,7 +644,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetTransform(fontRid: RID): Transform2D { TransferContext.writeArguments(_RID to fontRid) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetTransformPtr, TRANSFORM2D) + TransferContext.callMethod(ptr, MethodBindings.fontGetTransformPtr, TRANSFORM2D) return (TransferContext.readReturnValue(TRANSFORM2D) as Transform2D) } @@ -657,7 +655,7 @@ public open class TextServer internal constructor() : RefCounted() { public final fun fontSetVariationCoordinates(fontRid: RID, variationCoordinates: Dictionary): Unit { TransferContext.writeArguments(_RID to fontRid, DICTIONARY to variationCoordinates) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetVariationCoordinatesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetVariationCoordinatesPtr, NIL) } /** @@ -666,7 +664,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetVariationCoordinates(fontRid: RID): Dictionary { TransferContext.writeArguments(_RID to fontRid) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetVariationCoordinatesPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.fontGetVariationCoordinatesPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -676,7 +674,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontSetOversampling(fontRid: RID, oversampling: Double): Unit { TransferContext.writeArguments(_RID to fontRid, DOUBLE to oversampling) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetOversamplingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetOversamplingPtr, NIL) } /** @@ -685,7 +683,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetOversampling(fontRid: RID): Double { TransferContext.writeArguments(_RID to fontRid) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetOversamplingPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.fontGetOversamplingPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -695,7 +693,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetSizeCacheList(fontRid: RID): VariantArray { TransferContext.writeArguments(_RID to fontRid) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetSizeCacheListPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.fontGetSizeCacheListPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -704,7 +702,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontClearSizeCache(fontRid: RID): Unit { TransferContext.writeArguments(_RID to fontRid) - TransferContext.callMethod(rawPtr, MethodBindings.fontClearSizeCachePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontClearSizeCachePtr, NIL) } /** @@ -712,7 +710,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontRemoveSizeCache(fontRid: RID, size: Vector2i): Unit { TransferContext.writeArguments(_RID to fontRid, VECTOR2I to size) - TransferContext.callMethod(rawPtr, MethodBindings.fontRemoveSizeCachePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontRemoveSizeCachePtr, NIL) } /** @@ -724,7 +722,7 @@ public open class TextServer internal constructor() : RefCounted() { ascent: Double, ): Unit { TransferContext.writeArguments(_RID to fontRid, LONG to size, DOUBLE to ascent) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetAscentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetAscentPtr, NIL) } /** @@ -732,7 +730,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetAscent(fontRid: RID, size: Long): Double { TransferContext.writeArguments(_RID to fontRid, LONG to size) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetAscentPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.fontGetAscentPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -745,7 +743,7 @@ public open class TextServer internal constructor() : RefCounted() { descent: Double, ): Unit { TransferContext.writeArguments(_RID to fontRid, LONG to size, DOUBLE to descent) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetDescentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetDescentPtr, NIL) } /** @@ -753,7 +751,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetDescent(fontRid: RID, size: Long): Double { TransferContext.writeArguments(_RID to fontRid, LONG to size) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetDescentPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.fontGetDescentPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -766,7 +764,7 @@ public open class TextServer internal constructor() : RefCounted() { underlinePosition: Double, ): Unit { TransferContext.writeArguments(_RID to fontRid, LONG to size, DOUBLE to underlinePosition) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetUnderlinePositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetUnderlinePositionPtr, NIL) } /** @@ -774,7 +772,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetUnderlinePosition(fontRid: RID, size: Long): Double { TransferContext.writeArguments(_RID to fontRid, LONG to size) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetUnderlinePositionPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.fontGetUnderlinePositionPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -787,7 +785,7 @@ public open class TextServer internal constructor() : RefCounted() { underlineThickness: Double, ): Unit { TransferContext.writeArguments(_RID to fontRid, LONG to size, DOUBLE to underlineThickness) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetUnderlineThicknessPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetUnderlineThicknessPtr, NIL) } /** @@ -795,7 +793,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetUnderlineThickness(fontRid: RID, size: Long): Double { TransferContext.writeArguments(_RID to fontRid, LONG to size) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetUnderlineThicknessPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.fontGetUnderlineThicknessPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -808,7 +806,7 @@ public open class TextServer internal constructor() : RefCounted() { scale: Double, ): Unit { TransferContext.writeArguments(_RID to fontRid, LONG to size, DOUBLE to scale) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetScalePtr, NIL) } /** @@ -816,7 +814,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetScale(fontRid: RID, size: Long): Double { TransferContext.writeArguments(_RID to fontRid, LONG to size) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.fontGetScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -825,7 +823,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetTextureCount(fontRid: RID, size: Vector2i): Long { TransferContext.writeArguments(_RID to fontRid, VECTOR2I to size) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetTextureCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.fontGetTextureCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -836,7 +834,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontClearTextures(fontRid: RID, size: Vector2i): Unit { TransferContext.writeArguments(_RID to fontRid, VECTOR2I to size) - TransferContext.callMethod(rawPtr, MethodBindings.fontClearTexturesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontClearTexturesPtr, NIL) } /** @@ -850,7 +848,7 @@ public open class TextServer internal constructor() : RefCounted() { textureIndex: Long, ): Unit { TransferContext.writeArguments(_RID to fontRid, VECTOR2I to size, LONG to textureIndex) - TransferContext.callMethod(rawPtr, MethodBindings.fontRemoveTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontRemoveTexturePtr, NIL) } /** @@ -863,7 +861,7 @@ public open class TextServer internal constructor() : RefCounted() { image: Image?, ): Unit { TransferContext.writeArguments(_RID to fontRid, VECTOR2I to size, LONG to textureIndex, OBJECT to image) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetTextureImagePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetTextureImagePtr, NIL) } /** @@ -875,7 +873,7 @@ public open class TextServer internal constructor() : RefCounted() { textureIndex: Long, ): Image? { TransferContext.writeArguments(_RID to fontRid, VECTOR2I to size, LONG to textureIndex) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetTextureImagePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.fontGetTextureImagePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Image?) } @@ -889,7 +887,7 @@ public open class TextServer internal constructor() : RefCounted() { offset: PackedInt32Array, ): Unit { TransferContext.writeArguments(_RID to fontRid, VECTOR2I to size, LONG to textureIndex, PACKED_INT_32_ARRAY to offset) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetTextureOffsetsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetTextureOffsetsPtr, NIL) } /** @@ -901,7 +899,7 @@ public open class TextServer internal constructor() : RefCounted() { textureIndex: Long, ): PackedInt32Array { TransferContext.writeArguments(_RID to fontRid, VECTOR2I to size, LONG to textureIndex) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetTextureOffsetsPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.fontGetTextureOffsetsPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } @@ -910,7 +908,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetGlyphList(fontRid: RID, size: Vector2i): PackedInt32Array { TransferContext.writeArguments(_RID to fontRid, VECTOR2I to size) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetGlyphListPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.fontGetGlyphListPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } @@ -921,7 +919,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontClearGlyphs(fontRid: RID, size: Vector2i): Unit { TransferContext.writeArguments(_RID to fontRid, VECTOR2I to size) - TransferContext.callMethod(rawPtr, MethodBindings.fontClearGlyphsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontClearGlyphsPtr, NIL) } /** @@ -935,7 +933,7 @@ public open class TextServer internal constructor() : RefCounted() { glyph: Long, ): Unit { TransferContext.writeArguments(_RID to fontRid, VECTOR2I to size, LONG to glyph) - TransferContext.callMethod(rawPtr, MethodBindings.fontRemoveGlyphPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontRemoveGlyphPtr, NIL) } /** @@ -948,7 +946,7 @@ public open class TextServer internal constructor() : RefCounted() { glyph: Long, ): Vector2 { TransferContext.writeArguments(_RID to fontRid, LONG to size, LONG to glyph) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetGlyphAdvancePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.fontGetGlyphAdvancePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -963,7 +961,7 @@ public open class TextServer internal constructor() : RefCounted() { advance: Vector2, ): Unit { TransferContext.writeArguments(_RID to fontRid, LONG to size, LONG to glyph, VECTOR2 to advance) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetGlyphAdvancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetGlyphAdvancePtr, NIL) } /** @@ -975,7 +973,7 @@ public open class TextServer internal constructor() : RefCounted() { glyph: Long, ): Vector2 { TransferContext.writeArguments(_RID to fontRid, VECTOR2I to size, LONG to glyph) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetGlyphOffsetPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.fontGetGlyphOffsetPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -989,7 +987,7 @@ public open class TextServer internal constructor() : RefCounted() { offset: Vector2, ): Unit { TransferContext.writeArguments(_RID to fontRid, VECTOR2I to size, LONG to glyph, VECTOR2 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetGlyphOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetGlyphOffsetPtr, NIL) } /** @@ -1001,7 +999,7 @@ public open class TextServer internal constructor() : RefCounted() { glyph: Long, ): Vector2 { TransferContext.writeArguments(_RID to fontRid, VECTOR2I to size, LONG to glyph) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetGlyphSizePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.fontGetGlyphSizePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -1015,7 +1013,7 @@ public open class TextServer internal constructor() : RefCounted() { glSize: Vector2, ): Unit { TransferContext.writeArguments(_RID to fontRid, VECTOR2I to size, LONG to glyph, VECTOR2 to glSize) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetGlyphSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetGlyphSizePtr, NIL) } /** @@ -1027,7 +1025,7 @@ public open class TextServer internal constructor() : RefCounted() { glyph: Long, ): Rect2 { TransferContext.writeArguments(_RID to fontRid, VECTOR2I to size, LONG to glyph) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetGlyphUvRectPtr, RECT2) + TransferContext.callMethod(ptr, MethodBindings.fontGetGlyphUvRectPtr, RECT2) return (TransferContext.readReturnValue(RECT2) as Rect2) } @@ -1041,7 +1039,7 @@ public open class TextServer internal constructor() : RefCounted() { uvRect: Rect2, ): Unit { TransferContext.writeArguments(_RID to fontRid, VECTOR2I to size, LONG to glyph, RECT2 to uvRect) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetGlyphUvRectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetGlyphUvRectPtr, NIL) } /** @@ -1053,7 +1051,7 @@ public open class TextServer internal constructor() : RefCounted() { glyph: Long, ): Long { TransferContext.writeArguments(_RID to fontRid, VECTOR2I to size, LONG to glyph) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetGlyphTextureIdxPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.fontGetGlyphTextureIdxPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -1067,7 +1065,7 @@ public open class TextServer internal constructor() : RefCounted() { textureIdx: Long, ): Unit { TransferContext.writeArguments(_RID to fontRid, VECTOR2I to size, LONG to glyph, LONG to textureIdx) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetGlyphTextureIdxPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetGlyphTextureIdxPtr, NIL) } /** @@ -1081,7 +1079,7 @@ public open class TextServer internal constructor() : RefCounted() { glyph: Long, ): RID { TransferContext.writeArguments(_RID to fontRid, VECTOR2I to size, LONG to glyph) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetGlyphTextureRidPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.fontGetGlyphTextureRidPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -1096,7 +1094,7 @@ public open class TextServer internal constructor() : RefCounted() { glyph: Long, ): Vector2 { TransferContext.writeArguments(_RID to fontRid, VECTOR2I to size, LONG to glyph) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetGlyphTextureSizePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.fontGetGlyphTextureSizePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -1113,7 +1111,7 @@ public open class TextServer internal constructor() : RefCounted() { index: Long, ): Dictionary { TransferContext.writeArguments(_RID to font, LONG to size, LONG to index) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetGlyphContoursPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.fontGetGlyphContoursPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -1122,7 +1120,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetKerningList(fontRid: RID, size: Long): VariantArray { TransferContext.writeArguments(_RID to fontRid, LONG to size) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetKerningListPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.fontGetKerningListPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -1131,7 +1129,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontClearKerningMap(fontRid: RID, size: Long): Unit { TransferContext.writeArguments(_RID to fontRid, LONG to size) - TransferContext.callMethod(rawPtr, MethodBindings.fontClearKerningMapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontClearKerningMapPtr, NIL) } /** @@ -1143,7 +1141,7 @@ public open class TextServer internal constructor() : RefCounted() { glyphPair: Vector2i, ): Unit { TransferContext.writeArguments(_RID to fontRid, LONG to size, VECTOR2I to glyphPair) - TransferContext.callMethod(rawPtr, MethodBindings.fontRemoveKerningPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontRemoveKerningPtr, NIL) } /** @@ -1156,7 +1154,7 @@ public open class TextServer internal constructor() : RefCounted() { kerning: Vector2, ): Unit { TransferContext.writeArguments(_RID to fontRid, LONG to size, VECTOR2I to glyphPair, VECTOR2 to kerning) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetKerningPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetKerningPtr, NIL) } /** @@ -1168,7 +1166,7 @@ public open class TextServer internal constructor() : RefCounted() { glyphPair: Vector2i, ): Vector2 { TransferContext.writeArguments(_RID to fontRid, LONG to size, VECTOR2I to glyphPair) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetKerningPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.fontGetKerningPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -1183,7 +1181,7 @@ public open class TextServer internal constructor() : RefCounted() { variationSelector: Long, ): Long { TransferContext.writeArguments(_RID to fontRid, LONG to size, LONG to char, LONG to variationSelector) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetGlyphIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.fontGetGlyphIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -1197,7 +1195,7 @@ public open class TextServer internal constructor() : RefCounted() { glyphIndex: Long, ): Long { TransferContext.writeArguments(_RID to fontRid, LONG to size, LONG to glyphIndex) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetCharFromGlyphIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.fontGetCharFromGlyphIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -1206,7 +1204,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontHasChar(fontRid: RID, char: Long): Boolean { TransferContext.writeArguments(_RID to fontRid, LONG to char) - TransferContext.callMethod(rawPtr, MethodBindings.fontHasCharPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.fontHasCharPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1215,7 +1213,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetSupportedChars(fontRid: RID): String { TransferContext.writeArguments(_RID to fontRid) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetSupportedCharsPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.fontGetSupportedCharsPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -1229,7 +1227,7 @@ public open class TextServer internal constructor() : RefCounted() { end: Long, ): Unit { TransferContext.writeArguments(_RID to fontRid, VECTOR2I to size, LONG to start, LONG to end) - TransferContext.callMethod(rawPtr, MethodBindings.fontRenderRangePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontRenderRangePtr, NIL) } /** @@ -1241,7 +1239,7 @@ public open class TextServer internal constructor() : RefCounted() { index: Long, ): Unit { TransferContext.writeArguments(_RID to fontRid, VECTOR2I to size, LONG to index) - TransferContext.callMethod(rawPtr, MethodBindings.fontRenderGlyphPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontRenderGlyphPtr, NIL) } /** @@ -1261,7 +1259,7 @@ public open class TextServer internal constructor() : RefCounted() { color: Color = Color(Color(1, 1, 1, 1)), ): Unit { TransferContext.writeArguments(_RID to fontRid, _RID to canvas, LONG to size, VECTOR2 to pos, LONG to index, COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.fontDrawGlyphPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontDrawGlyphPtr, NIL) } /** @@ -1283,7 +1281,7 @@ public open class TextServer internal constructor() : RefCounted() { color: Color = Color(Color(1, 1, 1, 1)), ): Unit { TransferContext.writeArguments(_RID to fontRid, _RID to canvas, LONG to size, LONG to outlineSize, VECTOR2 to pos, LONG to index, COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.fontDrawGlyphOutlinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontDrawGlyphOutlinePtr, NIL) } /** @@ -1292,7 +1290,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontIsLanguageSupported(fontRid: RID, language: String): Boolean { TransferContext.writeArguments(_RID to fontRid, STRING to language) - TransferContext.callMethod(rawPtr, MethodBindings.fontIsLanguageSupportedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.fontIsLanguageSupportedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1305,7 +1303,7 @@ public open class TextServer internal constructor() : RefCounted() { supported: Boolean, ): Unit { TransferContext.writeArguments(_RID to fontRid, STRING to language, BOOL to supported) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetLanguageSupportOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetLanguageSupportOverridePtr, NIL) } /** @@ -1313,7 +1311,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetLanguageSupportOverride(fontRid: RID, language: String): Boolean { TransferContext.writeArguments(_RID to fontRid, STRING to language) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetLanguageSupportOverridePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.fontGetLanguageSupportOverridePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1322,7 +1320,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontRemoveLanguageSupportOverride(fontRid: RID, language: String): Unit { TransferContext.writeArguments(_RID to fontRid, STRING to language) - TransferContext.callMethod(rawPtr, MethodBindings.fontRemoveLanguageSupportOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontRemoveLanguageSupportOverridePtr, NIL) } /** @@ -1330,7 +1328,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetLanguageSupportOverrides(fontRid: RID): PackedStringArray { TransferContext.writeArguments(_RID to fontRid) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetLanguageSupportOverridesPtr, + TransferContext.callMethod(ptr, MethodBindings.fontGetLanguageSupportOverridesPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -1340,7 +1338,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontIsScriptSupported(fontRid: RID, script: String): Boolean { TransferContext.writeArguments(_RID to fontRid, STRING to script) - TransferContext.callMethod(rawPtr, MethodBindings.fontIsScriptSupportedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.fontIsScriptSupportedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1353,7 +1351,7 @@ public open class TextServer internal constructor() : RefCounted() { supported: Boolean, ): Unit { TransferContext.writeArguments(_RID to fontRid, STRING to script, BOOL to supported) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetScriptSupportOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetScriptSupportOverridePtr, NIL) } /** @@ -1361,7 +1359,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetScriptSupportOverride(fontRid: RID, script: String): Boolean { TransferContext.writeArguments(_RID to fontRid, STRING to script) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetScriptSupportOverridePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.fontGetScriptSupportOverridePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1370,7 +1368,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontRemoveScriptSupportOverride(fontRid: RID, script: String): Unit { TransferContext.writeArguments(_RID to fontRid, STRING to script) - TransferContext.callMethod(rawPtr, MethodBindings.fontRemoveScriptSupportOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontRemoveScriptSupportOverridePtr, NIL) } /** @@ -1378,7 +1376,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetScriptSupportOverrides(fontRid: RID): PackedStringArray { TransferContext.writeArguments(_RID to fontRid) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetScriptSupportOverridesPtr, + TransferContext.callMethod(ptr, MethodBindings.fontGetScriptSupportOverridesPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -1389,7 +1387,7 @@ public open class TextServer internal constructor() : RefCounted() { public final fun fontSetOpentypeFeatureOverrides(fontRid: RID, overrides: Dictionary): Unit { TransferContext.writeArguments(_RID to fontRid, DICTIONARY to overrides) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetOpentypeFeatureOverridesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetOpentypeFeatureOverridesPtr, NIL) } /** @@ -1397,8 +1395,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetOpentypeFeatureOverrides(fontRid: RID): Dictionary { TransferContext.writeArguments(_RID to fontRid) - TransferContext.callMethod(rawPtr, MethodBindings.fontGetOpentypeFeatureOverridesPtr, - DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.fontGetOpentypeFeatureOverridesPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -1407,7 +1404,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontSupportedFeatureList(fontRid: RID): Dictionary { TransferContext.writeArguments(_RID to fontRid) - TransferContext.callMethod(rawPtr, MethodBindings.fontSupportedFeatureListPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.fontSupportedFeatureListPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -1416,7 +1413,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontSupportedVariationList(fontRid: RID): Dictionary { TransferContext.writeArguments(_RID to fontRid) - TransferContext.callMethod(rawPtr, MethodBindings.fontSupportedVariationListPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.fontSupportedVariationListPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -1425,7 +1422,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontGetGlobalOversampling(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.fontGetGlobalOversamplingPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.fontGetGlobalOversamplingPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -1435,7 +1432,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun fontSetGlobalOversampling(oversampling: Double): Unit { TransferContext.writeArguments(DOUBLE to oversampling) - TransferContext.callMethod(rawPtr, MethodBindings.fontSetGlobalOversamplingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fontSetGlobalOversamplingPtr, NIL) } /** @@ -1444,7 +1441,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun getHexCodeBoxSize(size: Long, index: Long): Vector2 { TransferContext.writeArguments(LONG to size, LONG to index) - TransferContext.callMethod(rawPtr, MethodBindings.getHexCodeBoxSizePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getHexCodeBoxSizePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -1459,7 +1456,7 @@ public open class TextServer internal constructor() : RefCounted() { color: Color, ): Unit { TransferContext.writeArguments(_RID to canvas, LONG to size, VECTOR2 to pos, LONG to index, COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.drawHexCodeBoxPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawHexCodeBoxPtr, NIL) } /** @@ -1474,7 +1471,7 @@ public open class TextServer internal constructor() : RefCounted() { public final fun createShapedText(direction: Direction = TextServer.Direction.DIRECTION_AUTO, orientation: Orientation = TextServer.Orientation.ORIENTATION_HORIZONTAL): RID { TransferContext.writeArguments(LONG to direction.id, LONG to orientation.id) - TransferContext.callMethod(rawPtr, MethodBindings.createShapedTextPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.createShapedTextPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -1483,7 +1480,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextClear(rid: RID): Unit { TransferContext.writeArguments(_RID to rid) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextClearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.shapedTextClearPtr, NIL) } /** @@ -1496,7 +1493,7 @@ public open class TextServer internal constructor() : RefCounted() { public final fun shapedTextSetDirection(shaped: RID, direction: Direction = TextServer.Direction.DIRECTION_AUTO): Unit { TransferContext.writeArguments(_RID to shaped, LONG to direction.id) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextSetDirectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.shapedTextSetDirectionPtr, NIL) } /** @@ -1504,7 +1501,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextGetDirection(shaped: RID): Direction { TransferContext.writeArguments(_RID to shaped) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextGetDirectionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.shapedTextGetDirectionPtr, LONG) return TextServer.Direction.from(TransferContext.readReturnValue(LONG) as Long) } @@ -1513,7 +1510,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextGetInferredDirection(shaped: RID): Direction { TransferContext.writeArguments(_RID to shaped) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextGetInferredDirectionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.shapedTextGetInferredDirectionPtr, LONG) return TextServer.Direction.from(TransferContext.readReturnValue(LONG) as Long) } @@ -1524,7 +1521,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextSetBidiOverride(shaped: RID, `override`: VariantArray): Unit { TransferContext.writeArguments(_RID to shaped, ARRAY to override) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextSetBidiOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.shapedTextSetBidiOverridePtr, NIL) } /** @@ -1533,7 +1530,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextSetCustomPunctuation(shaped: RID, punct: String): Unit { TransferContext.writeArguments(_RID to shaped, STRING to punct) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextSetCustomPunctuationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.shapedTextSetCustomPunctuationPtr, NIL) } /** @@ -1542,7 +1539,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextGetCustomPunctuation(shaped: RID): String { TransferContext.writeArguments(_RID to shaped) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextGetCustomPunctuationPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.shapedTextGetCustomPunctuationPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -1551,7 +1548,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextSetCustomEllipsis(shaped: RID, char: Long): Unit { TransferContext.writeArguments(_RID to shaped, LONG to char) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextSetCustomEllipsisPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.shapedTextSetCustomEllipsisPtr, NIL) } /** @@ -1559,7 +1556,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextGetCustomEllipsis(shaped: RID): Long { TransferContext.writeArguments(_RID to shaped) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextGetCustomEllipsisPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.shapedTextGetCustomEllipsisPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -1572,7 +1569,7 @@ public open class TextServer internal constructor() : RefCounted() { public final fun shapedTextSetOrientation(shaped: RID, orientation: Orientation = TextServer.Orientation.ORIENTATION_HORIZONTAL): Unit { TransferContext.writeArguments(_RID to shaped, LONG to orientation.id) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextSetOrientationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.shapedTextSetOrientationPtr, NIL) } /** @@ -1580,7 +1577,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextGetOrientation(shaped: RID): Orientation { TransferContext.writeArguments(_RID to shaped) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextGetOrientationPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.shapedTextGetOrientationPtr, LONG) return TextServer.Orientation.from(TransferContext.readReturnValue(LONG) as Long) } @@ -1590,7 +1587,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextSetPreserveInvalid(shaped: RID, enabled: Boolean): Unit { TransferContext.writeArguments(_RID to shaped, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextSetPreserveInvalidPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.shapedTextSetPreserveInvalidPtr, NIL) } /** @@ -1600,7 +1597,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextGetPreserveInvalid(shaped: RID): Boolean { TransferContext.writeArguments(_RID to shaped) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextGetPreserveInvalidPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.shapedTextGetPreserveInvalidPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1609,7 +1606,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextSetPreserveControl(shaped: RID, enabled: Boolean): Unit { TransferContext.writeArguments(_RID to shaped, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextSetPreserveControlPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.shapedTextSetPreserveControlPtr, NIL) } /** @@ -1617,7 +1614,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextGetPreserveControl(shaped: RID): Boolean { TransferContext.writeArguments(_RID to shaped) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextGetPreserveControlPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.shapedTextGetPreserveControlPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1630,7 +1627,7 @@ public open class TextServer internal constructor() : RefCounted() { `value`: Long, ): Unit { TransferContext.writeArguments(_RID to shaped, LONG to spacing.id, LONG to value) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextSetSpacingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.shapedTextSetSpacingPtr, NIL) } /** @@ -1638,7 +1635,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextGetSpacing(shaped: RID, spacing: SpacingType): Long { TransferContext.writeArguments(_RID to shaped, LONG to spacing.id) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextGetSpacingPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.shapedTextGetSpacingPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -1656,7 +1653,7 @@ public open class TextServer internal constructor() : RefCounted() { meta: Any? = null, ): Boolean { TransferContext.writeArguments(_RID to shaped, STRING to text, ARRAY to fonts, LONG to size, DICTIONARY to opentypeFeatures, STRING to language, ANY to meta) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextAddStringPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.shapedTextAddStringPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1674,7 +1671,7 @@ public open class TextServer internal constructor() : RefCounted() { baseline: Double = 0.0, ): Boolean { TransferContext.writeArguments(_RID to shaped, ANY to key, VECTOR2 to size, LONG to inlineAlign.id, LONG to length, DOUBLE to baseline) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextAddObjectPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.shapedTextAddObjectPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1690,7 +1687,7 @@ public open class TextServer internal constructor() : RefCounted() { baseline: Double = 0.0, ): Boolean { TransferContext.writeArguments(_RID to shaped, ANY to key, VECTOR2 to size, LONG to inlineAlign.id, DOUBLE to baseline) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextResizeObjectPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.shapedTextResizeObjectPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1699,7 +1696,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedGetSpanCount(shaped: RID): Long { TransferContext.writeArguments(_RID to shaped) - TransferContext.callMethod(rawPtr, MethodBindings.shapedGetSpanCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.shapedGetSpanCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -1708,7 +1705,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedGetSpanMeta(shaped: RID, index: Long): Any? { TransferContext.writeArguments(_RID to shaped, LONG to index) - TransferContext.callMethod(rawPtr, MethodBindings.shapedGetSpanMetaPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.shapedGetSpanMetaPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -1724,7 +1721,7 @@ public open class TextServer internal constructor() : RefCounted() { opentypeFeatures: Dictionary = Dictionary(), ): Unit { TransferContext.writeArguments(_RID to shaped, LONG to index, ARRAY to fonts, LONG to size, DICTIONARY to opentypeFeatures) - TransferContext.callMethod(rawPtr, MethodBindings.shapedSetSpanUpdateFontPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.shapedSetSpanUpdateFontPtr, NIL) } /** @@ -1737,7 +1734,7 @@ public open class TextServer internal constructor() : RefCounted() { length: Long, ): RID { TransferContext.writeArguments(_RID to shaped, LONG to start, LONG to length) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextSubstrPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.shapedTextSubstrPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -1746,7 +1743,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextGetParent(shaped: RID): RID { TransferContext.writeArguments(_RID to shaped) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextGetParentPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.shapedTextGetParentPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -1760,7 +1757,7 @@ public open class TextServer internal constructor() : RefCounted() { justificationFlags: JustificationFlag = TextServer.JustificationFlagValue(3), ): Double { TransferContext.writeArguments(_RID to shaped, DOUBLE to width, LONG to justificationFlags.flag) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextFitToWidthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.shapedTextFitToWidthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -1769,7 +1766,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextTabAlign(shaped: RID, tabStops: PackedFloat32Array): Double { TransferContext.writeArguments(_RID to shaped, PACKED_FLOAT_32_ARRAY to tabStops) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextTabAlignPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.shapedTextTabAlignPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -1780,7 +1777,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextShape(shaped: RID): Boolean { TransferContext.writeArguments(_RID to shaped) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextShapePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.shapedTextShapePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1789,7 +1786,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextIsReady(shaped: RID): Boolean { TransferContext.writeArguments(_RID to shaped) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextIsReadyPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.shapedTextIsReadyPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1798,7 +1795,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextHasVisibleChars(shaped: RID): Boolean { TransferContext.writeArguments(_RID to shaped) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextHasVisibleCharsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.shapedTextHasVisibleCharsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1807,7 +1804,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextGetGlyphs(shaped: RID): VariantArray> { TransferContext.writeArguments(_RID to shaped) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextGetGlyphsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.shapedTextGetGlyphsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray>) } @@ -1816,7 +1813,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextSortLogical(shaped: RID): VariantArray> { TransferContext.writeArguments(_RID to shaped) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextSortLogicalPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.shapedTextSortLogicalPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray>) } @@ -1825,7 +1822,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextGetGlyphCount(shaped: RID): Long { TransferContext.writeArguments(_RID to shaped) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextGetGlyphCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.shapedTextGetGlyphCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -1834,7 +1831,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextGetRange(shaped: RID): Vector2i { TransferContext.writeArguments(_RID to shaped) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextGetRangePtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.shapedTextGetRangePtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -1850,7 +1847,7 @@ public open class TextServer internal constructor() : RefCounted() { breakFlags: LineBreakFlag = TextServer.LineBreakFlagValue(3), ): PackedInt32Array { TransferContext.writeArguments(_RID to shaped, PACKED_FLOAT_32_ARRAY to width, LONG to start, BOOL to once, LONG to breakFlags.flag) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextGetLineBreaksAdvPtr, + TransferContext.callMethod(ptr, MethodBindings.shapedTextGetLineBreaksAdvPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } @@ -1866,8 +1863,7 @@ public open class TextServer internal constructor() : RefCounted() { breakFlags: LineBreakFlag = TextServer.LineBreakFlagValue(3), ): PackedInt32Array { TransferContext.writeArguments(_RID to shaped, DOUBLE to width, LONG to start, LONG to breakFlags.flag) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextGetLineBreaksPtr, - PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.shapedTextGetLineBreaksPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } @@ -1882,8 +1878,7 @@ public open class TextServer internal constructor() : RefCounted() { skipGraphemeFlags: GraphemeFlag = TextServer.GraphemeFlag.GRAPHEME_IS_VIRTUAL, ): PackedInt32Array { TransferContext.writeArguments(_RID to shaped, LONG to graphemeFlags.flag, LONG to skipGraphemeFlags.flag) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextGetWordBreaksPtr, - PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.shapedTextGetWordBreaksPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } @@ -1892,7 +1887,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextGetTrimPos(shaped: RID): Long { TransferContext.writeArguments(_RID to shaped) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextGetTrimPosPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.shapedTextGetTrimPosPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -1901,7 +1896,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextGetEllipsisPos(shaped: RID): Long { TransferContext.writeArguments(_RID to shaped) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextGetEllipsisPosPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.shapedTextGetEllipsisPosPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -1910,7 +1905,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextGetEllipsisGlyphs(shaped: RID): VariantArray> { TransferContext.writeArguments(_RID to shaped) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextGetEllipsisGlyphsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.shapedTextGetEllipsisGlyphsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray>) } @@ -1919,7 +1914,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextGetEllipsisGlyphCount(shaped: RID): Long { TransferContext.writeArguments(_RID to shaped) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextGetEllipsisGlyphCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.shapedTextGetEllipsisGlyphCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -1933,7 +1928,7 @@ public open class TextServer internal constructor() : RefCounted() { overrunTrimFlags: TextOverrunFlag = TextServer.TextOverrunFlag.OVERRUN_NO_TRIM, ): Unit { TransferContext.writeArguments(_RID to shaped, DOUBLE to width, LONG to overrunTrimFlags.flag) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextOverrunTrimToWidthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.shapedTextOverrunTrimToWidthPtr, NIL) } /** @@ -1941,7 +1936,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextGetObjects(shaped: RID): VariantArray { TransferContext.writeArguments(_RID to shaped) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextGetObjectsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.shapedTextGetObjectsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -1950,7 +1945,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextGetObjectRect(shaped: RID, key: Any?): Rect2 { TransferContext.writeArguments(_RID to shaped, ANY to key) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextGetObjectRectPtr, RECT2) + TransferContext.callMethod(ptr, MethodBindings.shapedTextGetObjectRectPtr, RECT2) return (TransferContext.readReturnValue(RECT2) as Rect2) } @@ -1959,7 +1954,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextGetObjectRange(shaped: RID, key: Any?): Vector2i { TransferContext.writeArguments(_RID to shaped, ANY to key) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextGetObjectRangePtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.shapedTextGetObjectRangePtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -1968,7 +1963,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextGetObjectGlyph(shaped: RID, key: Any?): Long { TransferContext.writeArguments(_RID to shaped, ANY to key) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextGetObjectGlyphPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.shapedTextGetObjectGlyphPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -1977,7 +1972,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextGetSize(shaped: RID): Vector2 { TransferContext.writeArguments(_RID to shaped) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextGetSizePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.shapedTextGetSizePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -1989,7 +1984,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextGetAscent(shaped: RID): Double { TransferContext.writeArguments(_RID to shaped) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextGetAscentPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.shapedTextGetAscentPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -2001,7 +1996,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextGetDescent(shaped: RID): Double { TransferContext.writeArguments(_RID to shaped) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextGetDescentPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.shapedTextGetDescentPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -2010,7 +2005,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextGetWidth(shaped: RID): Double { TransferContext.writeArguments(_RID to shaped) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextGetWidthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.shapedTextGetWidthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -2019,7 +2014,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextGetUnderlinePosition(shaped: RID): Double { TransferContext.writeArguments(_RID to shaped) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextGetUnderlinePositionPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.shapedTextGetUnderlinePositionPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -2028,7 +2023,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextGetUnderlineThickness(shaped: RID): Double { TransferContext.writeArguments(_RID to shaped) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextGetUnderlineThicknessPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.shapedTextGetUnderlineThicknessPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -2038,7 +2033,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextGetCarets(shaped: RID, position: Long): Dictionary { TransferContext.writeArguments(_RID to shaped, LONG to position) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextGetCaretsPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.shapedTextGetCaretsPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -2051,8 +2046,7 @@ public open class TextServer internal constructor() : RefCounted() { end: Long, ): PackedVector2Array { TransferContext.writeArguments(_RID to shaped, LONG to start, LONG to end) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextGetSelectionPtr, - PACKED_VECTOR2_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.shapedTextGetSelectionPtr, PACKED_VECTOR2_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR2_ARRAY) as PackedVector2Array) } @@ -2061,7 +2055,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextHitTestGrapheme(shaped: RID, coords: Double): Long { TransferContext.writeArguments(_RID to shaped, DOUBLE to coords) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextHitTestGraphemePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.shapedTextHitTestGraphemePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -2071,7 +2065,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextHitTestPosition(shaped: RID, coords: Double): Long { TransferContext.writeArguments(_RID to shaped, DOUBLE to coords) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextHitTestPositionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.shapedTextHitTestPositionPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -2080,7 +2074,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextGetGraphemeBounds(shaped: RID, pos: Long): Vector2 { TransferContext.writeArguments(_RID to shaped, LONG to pos) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextGetGraphemeBoundsPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.shapedTextGetGraphemeBoundsPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -2089,7 +2083,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextNextGraphemePos(shaped: RID, pos: Long): Long { TransferContext.writeArguments(_RID to shaped, LONG to pos) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextNextGraphemePosPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.shapedTextNextGraphemePosPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -2098,7 +2092,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextPrevGraphemePos(shaped: RID, pos: Long): Long { TransferContext.writeArguments(_RID to shaped, LONG to pos) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextPrevGraphemePosPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.shapedTextPrevGraphemePosPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -2107,7 +2101,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextGetCharacterBreaks(shaped: RID): PackedInt32Array { TransferContext.writeArguments(_RID to shaped) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextGetCharacterBreaksPtr, + TransferContext.callMethod(ptr, MethodBindings.shapedTextGetCharacterBreaksPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } @@ -2117,7 +2111,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextNextCharacterPos(shaped: RID, pos: Long): Long { TransferContext.writeArguments(_RID to shaped, LONG to pos) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextNextCharacterPosPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.shapedTextNextCharacterPosPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -2126,7 +2120,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextPrevCharacterPos(shaped: RID, pos: Long): Long { TransferContext.writeArguments(_RID to shaped, LONG to pos) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextPrevCharacterPosPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.shapedTextPrevCharacterPosPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -2135,7 +2129,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun shapedTextClosestCharacterPos(shaped: RID, pos: Long): Long { TransferContext.writeArguments(_RID to shaped, LONG to pos) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextClosestCharacterPosPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.shapedTextClosestCharacterPosPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -2154,7 +2148,7 @@ public open class TextServer internal constructor() : RefCounted() { color: Color = Color(Color(1, 1, 1, 1)), ): Unit { TransferContext.writeArguments(_RID to shaped, _RID to canvas, VECTOR2 to pos, DOUBLE to clipL, DOUBLE to clipR, COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextDrawPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.shapedTextDrawPtr, NIL) } /** @@ -2173,7 +2167,7 @@ public open class TextServer internal constructor() : RefCounted() { color: Color = Color(Color(1, 1, 1, 1)), ): Unit { TransferContext.writeArguments(_RID to shaped, _RID to canvas, VECTOR2 to pos, DOUBLE to clipL, DOUBLE to clipR, LONG to outlineSize, COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextDrawOutlinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.shapedTextDrawOutlinePtr, NIL) } /** @@ -2185,8 +2179,7 @@ public open class TextServer internal constructor() : RefCounted() { end: Long, ): Direction { TransferContext.writeArguments(_RID to shaped, LONG to start, LONG to end) - TransferContext.callMethod(rawPtr, MethodBindings.shapedTextGetDominantDirectionInRangePtr, - LONG) + TransferContext.callMethod(ptr, MethodBindings.shapedTextGetDominantDirectionInRangePtr, LONG) return TextServer.Direction.from(TransferContext.readReturnValue(LONG) as Long) } @@ -2197,7 +2190,7 @@ public open class TextServer internal constructor() : RefCounted() { @JvmOverloads public final fun formatNumber(number: String, language: String = ""): String { TransferContext.writeArguments(STRING to number, STRING to language) - TransferContext.callMethod(rawPtr, MethodBindings.formatNumberPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.formatNumberPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -2207,7 +2200,7 @@ public open class TextServer internal constructor() : RefCounted() { @JvmOverloads public final fun parseNumber(number: String, language: String = ""): String { TransferContext.writeArguments(STRING to number, STRING to language) - TransferContext.callMethod(rawPtr, MethodBindings.parseNumberPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.parseNumberPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -2217,7 +2210,7 @@ public open class TextServer internal constructor() : RefCounted() { @JvmOverloads public final fun percentSign(language: String = ""): String { TransferContext.writeArguments(STRING to language) - TransferContext.callMethod(rawPtr, MethodBindings.percentSignPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.percentSignPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -2242,7 +2235,7 @@ public open class TextServer internal constructor() : RefCounted() { charsPerLine: Long = 0, ): PackedInt32Array { TransferContext.writeArguments(STRING to string, STRING to language, LONG to charsPerLine) - TransferContext.callMethod(rawPtr, MethodBindings.stringGetWordBreaksPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.stringGetWordBreaksPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } @@ -2258,8 +2251,7 @@ public open class TextServer internal constructor() : RefCounted() { public final fun stringGetCharacterBreaks(string: String, language: String = ""): PackedInt32Array { TransferContext.writeArguments(STRING to string, STRING to language) - TransferContext.callMethod(rawPtr, MethodBindings.stringGetCharacterBreaksPtr, - PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.stringGetCharacterBreaksPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } @@ -2273,7 +2265,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun isConfusable(string: String, dict: PackedStringArray): Long { TransferContext.writeArguments(STRING to string, PACKED_STRING_ARRAY to dict) - TransferContext.callMethod(rawPtr, MethodBindings.isConfusablePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.isConfusablePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -2284,7 +2276,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun spoofCheck(string: String): Boolean { TransferContext.writeArguments(STRING to string) - TransferContext.callMethod(rawPtr, MethodBindings.spoofCheckPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.spoofCheckPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -2294,7 +2286,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun stripDiacritics(string: String): String { TransferContext.writeArguments(STRING to string) - TransferContext.callMethod(rawPtr, MethodBindings.stripDiacriticsPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.stripDiacriticsPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -2311,7 +2303,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun isValidIdentifier(string: String): Boolean { TransferContext.writeArguments(STRING to string) - TransferContext.callMethod(rawPtr, MethodBindings.isValidIdentifierPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isValidIdentifierPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -2321,7 +2313,7 @@ public open class TextServer internal constructor() : RefCounted() { */ public final fun isValidLetter(unicode: Long): Boolean { TransferContext.writeArguments(LONG to unicode) - TransferContext.callMethod(rawPtr, MethodBindings.isValidLetterPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isValidLetterPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -2334,7 +2326,7 @@ public open class TextServer internal constructor() : RefCounted() { @JvmOverloads public final fun stringToUpper(string: String, language: String = ""): String { TransferContext.writeArguments(STRING to string, STRING to language) - TransferContext.callMethod(rawPtr, MethodBindings.stringToUpperPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.stringToUpperPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -2347,7 +2339,7 @@ public open class TextServer internal constructor() : RefCounted() { @JvmOverloads public final fun stringToLower(string: String, language: String = ""): String { TransferContext.writeArguments(STRING to string, STRING to language) - TransferContext.callMethod(rawPtr, MethodBindings.stringToLowerPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.stringToLowerPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -2360,7 +2352,7 @@ public open class TextServer internal constructor() : RefCounted() { @JvmOverloads public final fun stringToTitle(string: String, language: String = ""): String { TransferContext.writeArguments(STRING to string, STRING to language) - TransferContext.callMethod(rawPtr, MethodBindings.stringToTitlePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.stringToTitlePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -2374,7 +2366,7 @@ public open class TextServer internal constructor() : RefCounted() { text: String, ): VariantArray { TransferContext.writeArguments(LONG to parserType.id, ARRAY to args, STRING to text) - TransferContext.callMethod(rawPtr, MethodBindings.parseStructuredTextPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.parseStructuredTextPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TextServerManager.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TextServerManager.kt index c0392e8a01..06ab155c04 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TextServerManager.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TextServerManager.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.Signal1 import godot.core.StringName @@ -18,7 +19,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Int import kotlin.Long @@ -56,7 +56,7 @@ public object TextServerManager : Object() { @JvmStatic public final fun addInterface(`interface`: TextServer?): Unit { TransferContext.writeArguments(OBJECT to `interface`) - TransferContext.callMethod(rawPtr, MethodBindings.addInterfacePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addInterfacePtr, NIL) } /** @@ -65,7 +65,7 @@ public object TextServerManager : Object() { @JvmStatic public final fun getInterfaceCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInterfaceCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getInterfaceCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -76,7 +76,7 @@ public object TextServerManager : Object() { @JvmStatic public final fun removeInterface(`interface`: TextServer?): Unit { TransferContext.writeArguments(OBJECT to `interface`) - TransferContext.callMethod(rawPtr, MethodBindings.removeInterfacePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeInterfacePtr, NIL) } /** @@ -85,7 +85,7 @@ public object TextServerManager : Object() { @JvmStatic public final fun getInterface(idx: Int): TextServer? { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getInterfacePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getInterfacePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as TextServer?) } @@ -95,7 +95,7 @@ public object TextServerManager : Object() { @JvmStatic public final fun getInterfaces(): VariantArray> { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInterfacesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getInterfacesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray>) } @@ -105,7 +105,7 @@ public object TextServerManager : Object() { @JvmStatic public final fun findInterface(name: String): TextServer? { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.findInterfacePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.findInterfacePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as TextServer?) } @@ -115,7 +115,7 @@ public object TextServerManager : Object() { @JvmStatic public final fun setPrimaryInterface(index: TextServer?): Unit { TransferContext.writeArguments(OBJECT to index) - TransferContext.callMethod(rawPtr, MethodBindings.setPrimaryInterfacePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPrimaryInterfacePtr, NIL) } /** @@ -124,7 +124,7 @@ public object TextServerManager : Object() { @JvmStatic public final fun getPrimaryInterface(): TextServer? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPrimaryInterfacePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getPrimaryInterfacePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as TextServer?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Texture2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Texture2D.kt index 816ef6a985..30062e3727 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Texture2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Texture2D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.RID import godot.core.Rect2 @@ -21,7 +22,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -126,7 +126,7 @@ public open class Texture2D : Texture() { */ public final fun getWidth(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWidthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getWidthPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -135,7 +135,7 @@ public open class Texture2D : Texture() { */ public final fun getHeight(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHeightPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getHeightPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -144,7 +144,7 @@ public open class Texture2D : Texture() { */ public final fun getSize(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSizePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getSizePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -153,7 +153,7 @@ public open class Texture2D : Texture() { */ public final fun hasAlpha(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasAlphaPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasAlphaPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -169,7 +169,7 @@ public open class Texture2D : Texture() { transpose: Boolean = false, ): Unit { TransferContext.writeArguments(_RID to canvasItem, VECTOR2 to position, COLOR to modulate, BOOL to transpose) - TransferContext.callMethod(rawPtr, MethodBindings.drawPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawPtr, NIL) } /** @@ -184,7 +184,7 @@ public open class Texture2D : Texture() { transpose: Boolean = false, ): Unit { TransferContext.writeArguments(_RID to canvasItem, RECT2 to rect, BOOL to tile, COLOR to modulate, BOOL to transpose) - TransferContext.callMethod(rawPtr, MethodBindings.drawRectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawRectPtr, NIL) } /** @@ -200,7 +200,7 @@ public open class Texture2D : Texture() { clipUv: Boolean = true, ): Unit { TransferContext.writeArguments(_RID to canvasItem, RECT2 to rect, RECT2 to srcRect, COLOR to modulate, BOOL to transpose, BOOL to clipUv) - TransferContext.callMethod(rawPtr, MethodBindings.drawRectRegionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.drawRectRegionPtr, NIL) } /** @@ -212,7 +212,7 @@ public open class Texture2D : Texture() { */ public final fun getImage(): Image? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getImagePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getImagePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Image?) } @@ -221,7 +221,7 @@ public open class Texture2D : Texture() { */ public final fun createPlaceholder(): Resource? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.createPlaceholderPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.createPlaceholderPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Resource?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Texture2DArray.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Texture2DArray.kt index ed913f1ad3..7dbc4c8d5d 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Texture2DArray.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Texture2DArray.kt @@ -7,10 +7,10 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -38,7 +38,7 @@ public open class Texture2DArray : ImageTextureLayered() { */ public final fun createPlaceholder(): Resource? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.createPlaceholderPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.createPlaceholderPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Resource?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Texture2DRD.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Texture2DRD.kt index d4b7737bc5..dd5730dca5 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Texture2DRD.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Texture2DRD.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser._RID import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -41,12 +41,12 @@ public open class Texture2DRD : Texture2D() { public final fun setTextureRdRid(textureRdRid: RID): Unit { TransferContext.writeArguments(_RID to textureRdRid) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureRdRidPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureRdRidPtr, NIL) } public final fun getTextureRdRid(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextureRdRidPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getTextureRdRidPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Texture3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Texture3D.kt index 8b4f21b64e..5f51da82da 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Texture3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Texture3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY @@ -14,7 +15,6 @@ import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -83,7 +83,7 @@ public open class Texture3D : Texture() { */ public final fun getFormat(): Image.Format { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFormatPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFormatPtr, LONG) return Image.Format.from(TransferContext.readReturnValue(LONG) as Long) } @@ -92,7 +92,7 @@ public open class Texture3D : Texture() { */ public final fun getWidth(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWidthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getWidthPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -101,7 +101,7 @@ public open class Texture3D : Texture() { */ public final fun getHeight(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHeightPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getHeightPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -111,7 +111,7 @@ public open class Texture3D : Texture() { */ public final fun getDepth(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDepthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDepthPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -120,7 +120,7 @@ public open class Texture3D : Texture() { */ public final fun hasMipmaps(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasMipmapsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasMipmapsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -130,7 +130,7 @@ public open class Texture3D : Texture() { */ public final fun getData(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDataPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getDataPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -139,7 +139,7 @@ public open class Texture3D : Texture() { */ public final fun createPlaceholder(): Resource? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.createPlaceholderPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.createPlaceholderPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Resource?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Texture3DRD.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Texture3DRD.kt index 2b8cdd6f61..31c84a2ce8 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Texture3DRD.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Texture3DRD.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser._RID import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -41,12 +41,12 @@ public open class Texture3DRD : Texture3D() { public final fun setTextureRdRid(textureRdRid: RID): Unit { TransferContext.writeArguments(_RID to textureRdRid) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureRdRidPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureRdRidPtr, NIL) } public final fun getTextureRdRid(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextureRdRidPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getTextureRdRidPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TextureButton.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TextureButton.kt index 9219b614b4..f810c8fe44 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TextureButton.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TextureButton.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -156,111 +156,111 @@ public open class TextureButton : BaseButton() { public final fun setTextureNormal(texture: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureNormalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureNormalPtr, NIL) } public final fun setTexturePressed(texture: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setTexturePressedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTexturePressedPtr, NIL) } public final fun setTextureHover(texture: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureHoverPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureHoverPtr, NIL) } public final fun setTextureDisabled(texture: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureDisabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureDisabledPtr, NIL) } public final fun setTextureFocused(texture: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureFocusedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureFocusedPtr, NIL) } public final fun setClickMask(mask: BitMap?): Unit { TransferContext.writeArguments(OBJECT to mask) - TransferContext.callMethod(rawPtr, MethodBindings.setClickMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setClickMaskPtr, NIL) } public final fun setIgnoreTextureSize(ignore: Boolean): Unit { TransferContext.writeArguments(BOOL to ignore) - TransferContext.callMethod(rawPtr, MethodBindings.setIgnoreTextureSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIgnoreTextureSizePtr, NIL) } public final fun setStretchMode(mode: StretchMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setStretchModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStretchModePtr, NIL) } public final fun setFlipH(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setFlipHPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFlipHPtr, NIL) } public final fun isFlippedH(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isFlippedHPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isFlippedHPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setFlipV(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setFlipVPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFlipVPtr, NIL) } public final fun isFlippedV(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isFlippedVPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isFlippedVPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun getTextureNormal(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextureNormalPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTextureNormalPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } public final fun getTexturePressed(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTexturePressedPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTexturePressedPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } public final fun getTextureHover(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextureHoverPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTextureHoverPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } public final fun getTextureDisabled(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextureDisabledPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTextureDisabledPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } public final fun getTextureFocused(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextureFocusedPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTextureFocusedPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } public final fun getClickMask(): BitMap? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getClickMaskPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getClickMaskPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as BitMap?) } public final fun getIgnoreTextureSize(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getIgnoreTextureSizePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getIgnoreTextureSizePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun getStretchMode(): StretchMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStretchModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getStretchModePtr, LONG) return TextureButton.StretchMode.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TextureLayered.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TextureLayered.kt index ad3bb56f20..ab78908aff 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TextureLayered.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TextureLayered.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -89,7 +89,7 @@ public open class TextureLayered : Texture() { */ public final fun getFormat(): Image.Format { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFormatPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFormatPtr, LONG) return Image.Format.from(TransferContext.readReturnValue(LONG) as Long) } @@ -99,7 +99,7 @@ public open class TextureLayered : Texture() { */ public final fun getLayeredType(): LayeredType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLayeredTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLayeredTypePtr, LONG) return TextureLayered.LayeredType.from(TransferContext.readReturnValue(LONG) as Long) } @@ -108,7 +108,7 @@ public open class TextureLayered : Texture() { */ public final fun getWidth(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWidthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getWidthPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -117,7 +117,7 @@ public open class TextureLayered : Texture() { */ public final fun getHeight(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHeightPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getHeightPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -126,7 +126,7 @@ public open class TextureLayered : Texture() { */ public final fun getLayers(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLayersPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLayersPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -135,7 +135,7 @@ public open class TextureLayered : Texture() { */ public final fun hasMipmaps(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasMipmapsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasMipmapsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -144,7 +144,7 @@ public open class TextureLayered : Texture() { */ public final fun getLayerData(layer: Int): Image? { TransferContext.writeArguments(LONG to layer.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getLayerDataPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getLayerDataPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Image?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TextureLayeredRD.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TextureLayeredRD.kt index 81e15de5b3..4b17c1e155 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TextureLayeredRD.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TextureLayeredRD.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser._RID import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -41,12 +41,12 @@ public open class TextureLayeredRD internal constructor() : TextureLayered() { public final fun setTextureRdRid(textureRdRid: RID): Unit { TransferContext.writeArguments(_RID to textureRdRid) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureRdRidPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureRdRidPtr, NIL) } public final fun getTextureRdRid(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextureRdRidPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getTextureRdRidPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TextureProgressBar.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TextureProgressBar.kt index 1fdd776cb7..b452298c81 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TextureProgressBar.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TextureProgressBar.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -20,7 +21,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -365,122 +365,122 @@ public open class TextureProgressBar : Range() { public final fun setUnderTexture(tex: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to tex) - TransferContext.callMethod(rawPtr, MethodBindings.setUnderTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUnderTexturePtr, NIL) } public final fun getUnderTexture(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUnderTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getUnderTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } public final fun setProgressTexture(tex: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to tex) - TransferContext.callMethod(rawPtr, MethodBindings.setProgressTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setProgressTexturePtr, NIL) } public final fun getProgressTexture(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getProgressTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getProgressTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } public final fun setOverTexture(tex: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to tex) - TransferContext.callMethod(rawPtr, MethodBindings.setOverTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOverTexturePtr, NIL) } public final fun getOverTexture(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOverTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getOverTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } public final fun setFillMode(mode: Int): Unit { TransferContext.writeArguments(LONG to mode.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setFillModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFillModePtr, NIL) } public final fun getFillMode(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFillModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFillModePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setTintUnder(tint: Color): Unit { TransferContext.writeArguments(COLOR to tint) - TransferContext.callMethod(rawPtr, MethodBindings.setTintUnderPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTintUnderPtr, NIL) } public final fun getTintUnder(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTintUnderPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getTintUnderPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setTintProgress(tint: Color): Unit { TransferContext.writeArguments(COLOR to tint) - TransferContext.callMethod(rawPtr, MethodBindings.setTintProgressPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTintProgressPtr, NIL) } public final fun getTintProgress(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTintProgressPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getTintProgressPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setTintOver(tint: Color): Unit { TransferContext.writeArguments(COLOR to tint) - TransferContext.callMethod(rawPtr, MethodBindings.setTintOverPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTintOverPtr, NIL) } public final fun getTintOver(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTintOverPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getTintOverPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setTextureProgressOffset(offset: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureProgressOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureProgressOffsetPtr, NIL) } public final fun getTextureProgressOffset(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextureProgressOffsetPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getTextureProgressOffsetPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setRadialInitialAngle(mode: Float): Unit { TransferContext.writeArguments(DOUBLE to mode.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRadialInitialAnglePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRadialInitialAnglePtr, NIL) } public final fun getRadialInitialAngle(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRadialInitialAnglePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRadialInitialAnglePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setRadialCenterOffset(mode: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to mode) - TransferContext.callMethod(rawPtr, MethodBindings.setRadialCenterOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRadialCenterOffsetPtr, NIL) } public final fun getRadialCenterOffset(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRadialCenterOffsetPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getRadialCenterOffsetPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setFillDegrees(mode: Float): Unit { TransferContext.writeArguments(DOUBLE to mode.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFillDegreesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFillDegreesPtr, NIL) } public final fun getFillDegrees(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFillDegreesPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFillDegreesPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -490,7 +490,7 @@ public open class TextureProgressBar : Range() { */ public final fun setStretchMargin(margin: Side, `value`: Int): Unit { TransferContext.writeArguments(LONG to margin.id, LONG to value.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setStretchMarginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStretchMarginPtr, NIL) } /** @@ -499,18 +499,18 @@ public open class TextureProgressBar : Range() { */ public final fun getStretchMargin(margin: Side): Int { TransferContext.writeArguments(LONG to margin.id) - TransferContext.callMethod(rawPtr, MethodBindings.getStretchMarginPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getStretchMarginPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setNinePatchStretch(stretch: Boolean): Unit { TransferContext.writeArguments(BOOL to stretch) - TransferContext.callMethod(rawPtr, MethodBindings.setNinePatchStretchPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNinePatchStretchPtr, NIL) } public final fun getNinePatchStretch(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNinePatchStretchPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getNinePatchStretchPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TextureRect.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TextureRect.kt index e9063b8b35..fafc9f6b67 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TextureRect.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TextureRect.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -90,56 +90,56 @@ public open class TextureRect : Control() { public final fun setTexture(texture: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTexturePtr, NIL) } public final fun getTexture(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } public final fun setExpandMode(expandMode: ExpandMode): Unit { TransferContext.writeArguments(LONG to expandMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setExpandModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExpandModePtr, NIL) } public final fun getExpandMode(): ExpandMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getExpandModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getExpandModePtr, LONG) return TextureRect.ExpandMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setFlipH(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setFlipHPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFlipHPtr, NIL) } public final fun isFlippedH(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isFlippedHPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isFlippedHPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setFlipV(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setFlipVPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFlipVPtr, NIL) } public final fun isFlippedV(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isFlippedVPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isFlippedVPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setStretchMode(stretchMode: StretchMode): Unit { TransferContext.writeArguments(LONG to stretchMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setStretchModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStretchModePtr, NIL) } public final fun getStretchMode(): StretchMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStretchModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getStretchModePtr, LONG) return TextureRect.StretchMode.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Theme.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Theme.kt index 343c9fb2ec..2f025933e2 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Theme.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Theme.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.PackedStringArray import godot.core.StringName @@ -22,7 +23,6 @@ import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -106,7 +106,7 @@ public open class Theme : Resource() { texture: Texture2D?, ): Unit { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType, OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setIconPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIconPtr, NIL) } /** @@ -116,7 +116,7 @@ public open class Theme : Resource() { */ public final fun getIcon(name: StringName, themeType: StringName): Texture2D? { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.getIconPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getIconPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } @@ -126,7 +126,7 @@ public open class Theme : Resource() { */ public final fun hasIcon(name: StringName, themeType: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.hasIconPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasIconPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -141,7 +141,7 @@ public open class Theme : Resource() { themeType: StringName, ): Unit { TransferContext.writeArguments(STRING_NAME to oldName, STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.renameIconPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.renameIconPtr, NIL) } /** @@ -150,7 +150,7 @@ public open class Theme : Resource() { */ public final fun clearIcon(name: StringName, themeType: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.clearIconPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearIconPtr, NIL) } /** @@ -159,7 +159,7 @@ public open class Theme : Resource() { */ public final fun getIconList(themeType: String): PackedStringArray { TransferContext.writeArguments(STRING to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.getIconListPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getIconListPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -169,7 +169,7 @@ public open class Theme : Resource() { */ public final fun getIconTypeList(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getIconTypeListPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getIconTypeListPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -183,7 +183,7 @@ public open class Theme : Resource() { texture: StyleBox?, ): Unit { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType, OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setStyleboxPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStyleboxPtr, NIL) } /** @@ -193,7 +193,7 @@ public open class Theme : Resource() { */ public final fun getStylebox(name: StringName, themeType: StringName): StyleBox? { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.getStyleboxPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getStyleboxPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as StyleBox?) } @@ -203,7 +203,7 @@ public open class Theme : Resource() { */ public final fun hasStylebox(name: StringName, themeType: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.hasStyleboxPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasStyleboxPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -218,7 +218,7 @@ public open class Theme : Resource() { themeType: StringName, ): Unit { TransferContext.writeArguments(STRING_NAME to oldName, STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.renameStyleboxPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.renameStyleboxPtr, NIL) } /** @@ -227,7 +227,7 @@ public open class Theme : Resource() { */ public final fun clearStylebox(name: StringName, themeType: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.clearStyleboxPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearStyleboxPtr, NIL) } /** @@ -236,7 +236,7 @@ public open class Theme : Resource() { */ public final fun getStyleboxList(themeType: String): PackedStringArray { TransferContext.writeArguments(STRING to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.getStyleboxListPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getStyleboxListPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -246,7 +246,7 @@ public open class Theme : Resource() { */ public final fun getStyleboxTypeList(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStyleboxTypeListPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getStyleboxTypeListPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -260,7 +260,7 @@ public open class Theme : Resource() { font: Font?, ): Unit { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType, OBJECT to font) - TransferContext.callMethod(rawPtr, MethodBindings.setFontPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFontPtr, NIL) } /** @@ -272,7 +272,7 @@ public open class Theme : Resource() { */ public final fun getFont(name: StringName, themeType: StringName): Font? { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.getFontPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getFontPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Font?) } @@ -283,7 +283,7 @@ public open class Theme : Resource() { */ public final fun hasFont(name: StringName, themeType: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.hasFontPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasFontPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -298,7 +298,7 @@ public open class Theme : Resource() { themeType: StringName, ): Unit { TransferContext.writeArguments(STRING_NAME to oldName, STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.renameFontPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.renameFontPtr, NIL) } /** @@ -307,7 +307,7 @@ public open class Theme : Resource() { */ public final fun clearFont(name: StringName, themeType: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.clearFontPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearFontPtr, NIL) } /** @@ -316,7 +316,7 @@ public open class Theme : Resource() { */ public final fun getFontList(themeType: String): PackedStringArray { TransferContext.writeArguments(STRING to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.getFontListPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getFontListPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -326,7 +326,7 @@ public open class Theme : Resource() { */ public final fun getFontTypeList(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFontTypeListPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getFontTypeListPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -340,7 +340,7 @@ public open class Theme : Resource() { fontSize: Int, ): Unit { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType, LONG to fontSize.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setFontSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFontSizePtr, NIL) } /** @@ -352,7 +352,7 @@ public open class Theme : Resource() { */ public final fun getFontSize(name: StringName, themeType: StringName): Int { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.getFontSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFontSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -363,7 +363,7 @@ public open class Theme : Resource() { */ public final fun hasFontSize(name: StringName, themeType: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.hasFontSizePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasFontSizePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -378,7 +378,7 @@ public open class Theme : Resource() { themeType: StringName, ): Unit { TransferContext.writeArguments(STRING_NAME to oldName, STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.renameFontSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.renameFontSizePtr, NIL) } /** @@ -387,7 +387,7 @@ public open class Theme : Resource() { */ public final fun clearFontSize(name: StringName, themeType: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.clearFontSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearFontSizePtr, NIL) } /** @@ -396,7 +396,7 @@ public open class Theme : Resource() { */ public final fun getFontSizeList(themeType: String): PackedStringArray { TransferContext.writeArguments(STRING to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.getFontSizeListPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getFontSizeListPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -406,7 +406,7 @@ public open class Theme : Resource() { */ public final fun getFontSizeTypeList(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFontSizeTypeListPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getFontSizeTypeListPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -420,7 +420,7 @@ public open class Theme : Resource() { color: Color, ): Unit { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType, COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColorPtr, NIL) } /** @@ -430,7 +430,7 @@ public open class Theme : Resource() { */ public final fun getColor(name: StringName, themeType: StringName): Color { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.getColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } @@ -440,7 +440,7 @@ public open class Theme : Resource() { */ public final fun hasColor(name: StringName, themeType: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.hasColorPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasColorPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -455,7 +455,7 @@ public open class Theme : Resource() { themeType: StringName, ): Unit { TransferContext.writeArguments(STRING_NAME to oldName, STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.renameColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.renameColorPtr, NIL) } /** @@ -464,7 +464,7 @@ public open class Theme : Resource() { */ public final fun clearColor(name: StringName, themeType: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.clearColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearColorPtr, NIL) } /** @@ -473,7 +473,7 @@ public open class Theme : Resource() { */ public final fun getColorList(themeType: String): PackedStringArray { TransferContext.writeArguments(STRING to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.getColorListPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getColorListPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -483,7 +483,7 @@ public open class Theme : Resource() { */ public final fun getColorTypeList(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColorTypeListPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getColorTypeListPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -497,7 +497,7 @@ public open class Theme : Resource() { constant: Int, ): Unit { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType, LONG to constant.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setConstantPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setConstantPtr, NIL) } /** @@ -506,7 +506,7 @@ public open class Theme : Resource() { */ public final fun getConstant(name: StringName, themeType: StringName): Int { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.getConstantPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getConstantPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -516,7 +516,7 @@ public open class Theme : Resource() { */ public final fun hasConstant(name: StringName, themeType: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.hasConstantPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasConstantPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -531,7 +531,7 @@ public open class Theme : Resource() { themeType: StringName, ): Unit { TransferContext.writeArguments(STRING_NAME to oldName, STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.renameConstantPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.renameConstantPtr, NIL) } /** @@ -540,7 +540,7 @@ public open class Theme : Resource() { */ public final fun clearConstant(name: StringName, themeType: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.clearConstantPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearConstantPtr, NIL) } /** @@ -549,7 +549,7 @@ public open class Theme : Resource() { */ public final fun getConstantList(themeType: String): PackedStringArray { TransferContext.writeArguments(STRING to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.getConstantListPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getConstantListPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -559,18 +559,18 @@ public open class Theme : Resource() { */ public final fun getConstantTypeList(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConstantTypeListPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getConstantTypeListPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } public final fun setDefaultBaseScale(baseScale: Float): Unit { TransferContext.writeArguments(DOUBLE to baseScale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDefaultBaseScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDefaultBaseScalePtr, NIL) } public final fun getDefaultBaseScale(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDefaultBaseScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDefaultBaseScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -580,18 +580,18 @@ public open class Theme : Resource() { */ public final fun hasDefaultBaseScale(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasDefaultBaseScalePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasDefaultBaseScalePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDefaultFont(font: Font?): Unit { TransferContext.writeArguments(OBJECT to font) - TransferContext.callMethod(rawPtr, MethodBindings.setDefaultFontPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDefaultFontPtr, NIL) } public final fun getDefaultFont(): Font? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDefaultFontPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getDefaultFontPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Font?) } @@ -601,18 +601,18 @@ public open class Theme : Resource() { */ public final fun hasDefaultFont(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasDefaultFontPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasDefaultFontPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDefaultFontSize(fontSize: Int): Unit { TransferContext.writeArguments(LONG to fontSize.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setDefaultFontSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDefaultFontSizePtr, NIL) } public final fun getDefaultFontSize(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDefaultFontSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDefaultFontSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -622,7 +622,7 @@ public open class Theme : Resource() { */ public final fun hasDefaultFontSize(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasDefaultFontSizePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasDefaultFontSizePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -640,7 +640,7 @@ public open class Theme : Resource() { `value`: Any?, ): Unit { TransferContext.writeArguments(LONG to dataType.id, STRING_NAME to name, STRING_NAME to themeType, ANY to value) - TransferContext.callMethod(rawPtr, MethodBindings.setThemeItemPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setThemeItemPtr, NIL) } /** @@ -656,7 +656,7 @@ public open class Theme : Resource() { themeType: StringName, ): Any? { TransferContext.writeArguments(LONG to dataType.id, STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.getThemeItemPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getThemeItemPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -672,7 +672,7 @@ public open class Theme : Resource() { themeType: StringName, ): Boolean { TransferContext.writeArguments(LONG to dataType.id, STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.hasThemeItemPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasThemeItemPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -691,7 +691,7 @@ public open class Theme : Resource() { themeType: StringName, ): Unit { TransferContext.writeArguments(LONG to dataType.id, STRING_NAME to oldName, STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.renameThemeItemPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.renameThemeItemPtr, NIL) } /** @@ -706,7 +706,7 @@ public open class Theme : Resource() { themeType: StringName, ): Unit { TransferContext.writeArguments(LONG to dataType.id, STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.clearThemeItemPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearThemeItemPtr, NIL) } /** @@ -717,7 +717,7 @@ public open class Theme : Resource() { */ public final fun getThemeItemList(dataType: DataType, themeType: String): PackedStringArray { TransferContext.writeArguments(LONG to dataType.id, STRING to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.getThemeItemListPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getThemeItemListPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -729,7 +729,7 @@ public open class Theme : Resource() { */ public final fun getThemeItemTypeList(dataType: DataType): PackedStringArray { TransferContext.writeArguments(LONG to dataType.id) - TransferContext.callMethod(rawPtr, MethodBindings.getThemeItemTypeListPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getThemeItemTypeListPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -745,7 +745,7 @@ public open class Theme : Resource() { */ public final fun setTypeVariation(themeType: StringName, baseType: StringName): Unit { TransferContext.writeArguments(STRING_NAME to themeType, STRING_NAME to baseType) - TransferContext.callMethod(rawPtr, MethodBindings.setTypeVariationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTypeVariationPtr, NIL) } /** @@ -753,7 +753,7 @@ public open class Theme : Resource() { */ public final fun isTypeVariation(themeType: StringName, baseType: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to themeType, STRING_NAME to baseType) - TransferContext.callMethod(rawPtr, MethodBindings.isTypeVariationPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isTypeVariationPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -762,7 +762,7 @@ public open class Theme : Resource() { */ public final fun clearTypeVariation(themeType: StringName): Unit { TransferContext.writeArguments(STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.clearTypeVariationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearTypeVariationPtr, NIL) } /** @@ -771,7 +771,7 @@ public open class Theme : Resource() { */ public final fun getTypeVariationBase(themeType: StringName): StringName { TransferContext.writeArguments(STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.getTypeVariationBasePtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getTypeVariationBasePtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } @@ -780,7 +780,7 @@ public open class Theme : Resource() { */ public final fun getTypeVariationList(baseType: StringName): PackedStringArray { TransferContext.writeArguments(STRING_NAME to baseType) - TransferContext.callMethod(rawPtr, MethodBindings.getTypeVariationListPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getTypeVariationListPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -791,7 +791,7 @@ public open class Theme : Resource() { */ public final fun addType(themeType: StringName): Unit { TransferContext.writeArguments(STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.addTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addTypePtr, NIL) } /** @@ -801,7 +801,7 @@ public open class Theme : Resource() { */ public final fun removeType(themeType: StringName): Unit { TransferContext.writeArguments(STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.removeTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeTypePtr, NIL) } /** @@ -810,7 +810,7 @@ public open class Theme : Resource() { */ public final fun getTypeList(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTypeListPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getTypeListPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -821,7 +821,7 @@ public open class Theme : Resource() { */ public final fun mergeWith(other: Theme?): Unit { TransferContext.writeArguments(OBJECT to other) - TransferContext.callMethod(rawPtr, MethodBindings.mergeWithPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.mergeWithPtr, NIL) } /** @@ -829,7 +829,7 @@ public open class Theme : Resource() { */ public final fun clear(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPtr, NIL) } public enum class DataType( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ThemeDB.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ThemeDB.kt index 8c837fd99c..bbbd42f0c4 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ThemeDB.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ThemeDB.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.TypeManager import godot.core.VariantParser.DOUBLE @@ -14,7 +15,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -49,7 +49,7 @@ public object ThemeDB : Object() { @JvmStatic public final fun getDefaultTheme(): Theme? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDefaultThemePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getDefaultThemePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Theme?) } @@ -61,72 +61,72 @@ public object ThemeDB : Object() { @JvmStatic public final fun getProjectTheme(): Theme? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getProjectThemePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getProjectThemePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Theme?) } @JvmStatic public final fun setFallbackBaseScale(baseScale: Float): Unit { TransferContext.writeArguments(DOUBLE to baseScale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFallbackBaseScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFallbackBaseScalePtr, NIL) } @JvmStatic public final fun getFallbackBaseScale(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFallbackBaseScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFallbackBaseScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @JvmStatic public final fun setFallbackFont(font: Font?): Unit { TransferContext.writeArguments(OBJECT to font) - TransferContext.callMethod(rawPtr, MethodBindings.setFallbackFontPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFallbackFontPtr, NIL) } @JvmStatic public final fun getFallbackFont(): Font? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFallbackFontPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getFallbackFontPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Font?) } @JvmStatic public final fun setFallbackFontSize(fontSize: Int): Unit { TransferContext.writeArguments(LONG to fontSize.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setFallbackFontSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFallbackFontSizePtr, NIL) } @JvmStatic public final fun getFallbackFontSize(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFallbackFontSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFallbackFontSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @JvmStatic public final fun setFallbackIcon(icon: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to icon) - TransferContext.callMethod(rawPtr, MethodBindings.setFallbackIconPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFallbackIconPtr, NIL) } @JvmStatic public final fun getFallbackIcon(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFallbackIconPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getFallbackIconPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } @JvmStatic public final fun setFallbackStylebox(stylebox: StyleBox?): Unit { TransferContext.writeArguments(OBJECT to stylebox) - TransferContext.callMethod(rawPtr, MethodBindings.setFallbackStyleboxPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFallbackStyleboxPtr, NIL) } @JvmStatic public final fun getFallbackStylebox(): StyleBox? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFallbackStyleboxPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getFallbackStyleboxPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as StyleBox?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Thread.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Thread.kt index 8df59e8dc3..5e3ca3b682 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Thread.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Thread.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.TypeManager import godot.core.VariantCaster.ANY @@ -16,7 +17,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -52,7 +52,7 @@ public open class Thread : RefCounted() { public final fun start(callable: Callable, priority: Priority = Thread.Priority.PRIORITY_NORMAL): Error { TransferContext.writeArguments(CALLABLE to callable, LONG to priority.id) - TransferContext.callMethod(rawPtr, MethodBindings.startPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.startPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -62,7 +62,7 @@ public open class Thread : RefCounted() { */ public final fun getId(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getIdPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getIdPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -73,7 +73,7 @@ public open class Thread : RefCounted() { */ public final fun isStarted(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isStartedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isStartedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -84,7 +84,7 @@ public open class Thread : RefCounted() { */ public final fun isAlive(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isAlivePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isAlivePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -98,7 +98,7 @@ public open class Thread : RefCounted() { */ public final fun waitToFinish(): Any? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.waitToFinishPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.waitToFinishPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TileData.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TileData.kt index 80741c420a..bd76c1dd4c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TileData.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TileData.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.PackedVector2Array import godot.core.Signal0 @@ -27,7 +28,6 @@ import godot.core.VariantParser.VECTOR2I import godot.core.Vector2 import godot.core.Vector2i import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -230,89 +230,89 @@ public open class TileData : Object() { public final fun setFlipH(flipH: Boolean): Unit { TransferContext.writeArguments(BOOL to flipH) - TransferContext.callMethod(rawPtr, MethodBindings.setFlipHPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFlipHPtr, NIL) } public final fun getFlipH(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFlipHPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getFlipHPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setFlipV(flipV: Boolean): Unit { TransferContext.writeArguments(BOOL to flipV) - TransferContext.callMethod(rawPtr, MethodBindings.setFlipVPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFlipVPtr, NIL) } public final fun getFlipV(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFlipVPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getFlipVPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setTranspose(transpose: Boolean): Unit { TransferContext.writeArguments(BOOL to transpose) - TransferContext.callMethod(rawPtr, MethodBindings.setTransposePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTransposePtr, NIL) } public final fun getTranspose(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTransposePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getTransposePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setMaterial(material: Material?): Unit { TransferContext.writeArguments(OBJECT to material) - TransferContext.callMethod(rawPtr, MethodBindings.setMaterialPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaterialPtr, NIL) } public final fun getMaterial(): Material? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaterialPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getMaterialPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Material?) } public final fun setTextureOrigin(textureOrigin: Vector2i): Unit { TransferContext.writeArguments(VECTOR2I to textureOrigin) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureOriginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureOriginPtr, NIL) } public final fun getTextureOrigin(): Vector2i { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextureOriginPtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getTextureOriginPtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } public final fun setModulate(modulate: Color): Unit { TransferContext.writeArguments(COLOR to modulate) - TransferContext.callMethod(rawPtr, MethodBindings.setModulatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setModulatePtr, NIL) } public final fun getModulate(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getModulatePtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getModulatePtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setZIndex(zIndex: Int): Unit { TransferContext.writeArguments(LONG to zIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setZIndexPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setZIndexPtr, NIL) } public final fun getZIndex(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getZIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getZIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setYSortOrigin(ySortOrigin: Int): Unit { TransferContext.writeArguments(LONG to ySortOrigin.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setYSortOriginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setYSortOriginPtr, NIL) } public final fun getYSortOrigin(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getYSortOriginPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getYSortOriginPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -321,7 +321,7 @@ public open class TileData : Object() { */ public final fun setOccluder(layerId: Int, occluderPolygon: OccluderPolygon2D?): Unit { TransferContext.writeArguments(LONG to layerId.toLong(), OBJECT to occluderPolygon) - TransferContext.callMethod(rawPtr, MethodBindings.setOccluderPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOccluderPtr, NIL) } /** @@ -336,7 +336,7 @@ public open class TileData : Object() { transpose: Boolean = false, ): OccluderPolygon2D? { TransferContext.writeArguments(LONG to layerId.toLong(), BOOL to flipH, BOOL to flipV, BOOL to transpose) - TransferContext.callMethod(rawPtr, MethodBindings.getOccluderPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getOccluderPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as OccluderPolygon2D?) } @@ -346,7 +346,7 @@ public open class TileData : Object() { */ public final fun setConstantLinearVelocity(layerId: Int, velocity: Vector2): Unit { TransferContext.writeArguments(LONG to layerId.toLong(), VECTOR2 to velocity) - TransferContext.callMethod(rawPtr, MethodBindings.setConstantLinearVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setConstantLinearVelocityPtr, NIL) } /** @@ -354,7 +354,7 @@ public open class TileData : Object() { */ public final fun getConstantLinearVelocity(layerId: Int): Vector2 { TransferContext.writeArguments(LONG to layerId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getConstantLinearVelocityPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getConstantLinearVelocityPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -364,7 +364,7 @@ public open class TileData : Object() { */ public final fun setConstantAngularVelocity(layerId: Int, velocity: Float): Unit { TransferContext.writeArguments(LONG to layerId.toLong(), DOUBLE to velocity.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setConstantAngularVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setConstantAngularVelocityPtr, NIL) } /** @@ -372,7 +372,7 @@ public open class TileData : Object() { */ public final fun getConstantAngularVelocity(layerId: Int): Float { TransferContext.writeArguments(LONG to layerId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getConstantAngularVelocityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getConstantAngularVelocityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -381,7 +381,7 @@ public open class TileData : Object() { */ public final fun setCollisionPolygonsCount(layerId: Int, polygonsCount: Int): Unit { TransferContext.writeArguments(LONG to layerId.toLong(), LONG to polygonsCount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionPolygonsCountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionPolygonsCountPtr, NIL) } /** @@ -389,7 +389,7 @@ public open class TileData : Object() { */ public final fun getCollisionPolygonsCount(layerId: Int): Int { TransferContext.writeArguments(LONG to layerId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionPolygonsCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCollisionPolygonsCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -398,7 +398,7 @@ public open class TileData : Object() { */ public final fun addCollisionPolygon(layerId: Int): Unit { TransferContext.writeArguments(LONG to layerId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addCollisionPolygonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addCollisionPolygonPtr, NIL) } /** @@ -406,7 +406,7 @@ public open class TileData : Object() { */ public final fun removeCollisionPolygon(layerId: Int, polygonIndex: Int): Unit { TransferContext.writeArguments(LONG to layerId.toLong(), LONG to polygonIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeCollisionPolygonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeCollisionPolygonPtr, NIL) } /** @@ -419,7 +419,7 @@ public open class TileData : Object() { polygon: PackedVector2Array, ): Unit { TransferContext.writeArguments(LONG to layerId.toLong(), LONG to polygonIndex.toLong(), PACKED_VECTOR2_ARRAY to polygon) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionPolygonPointsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionPolygonPointsPtr, NIL) } /** @@ -428,7 +428,7 @@ public open class TileData : Object() { */ public final fun getCollisionPolygonPoints(layerId: Int, polygonIndex: Int): PackedVector2Array { TransferContext.writeArguments(LONG to layerId.toLong(), LONG to polygonIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionPolygonPointsPtr, + TransferContext.callMethod(ptr, MethodBindings.getCollisionPolygonPointsPtr, PACKED_VECTOR2_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR2_ARRAY) as PackedVector2Array) } @@ -443,7 +443,7 @@ public open class TileData : Object() { oneWay: Boolean, ): Unit { TransferContext.writeArguments(LONG to layerId.toLong(), LONG to polygonIndex.toLong(), BOOL to oneWay) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionPolygonOneWayPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionPolygonOneWayPtr, NIL) } /** @@ -452,7 +452,7 @@ public open class TileData : Object() { */ public final fun isCollisionPolygonOneWay(layerId: Int, polygonIndex: Int): Boolean { TransferContext.writeArguments(LONG to layerId.toLong(), LONG to polygonIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isCollisionPolygonOneWayPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCollisionPolygonOneWayPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -466,7 +466,7 @@ public open class TileData : Object() { oneWayMargin: Float, ): Unit { TransferContext.writeArguments(LONG to layerId.toLong(), LONG to polygonIndex.toLong(), DOUBLE to oneWayMargin.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionPolygonOneWayMarginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionPolygonOneWayMarginPtr, NIL) } /** @@ -475,29 +475,29 @@ public open class TileData : Object() { */ public final fun getCollisionPolygonOneWayMargin(layerId: Int, polygonIndex: Int): Float { TransferContext.writeArguments(LONG to layerId.toLong(), LONG to polygonIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionPolygonOneWayMarginPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getCollisionPolygonOneWayMarginPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setTerrainSet(terrainSet: Int): Unit { TransferContext.writeArguments(LONG to terrainSet.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setTerrainSetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTerrainSetPtr, NIL) } public final fun getTerrainSet(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTerrainSetPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTerrainSetPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setTerrain(terrain: Int): Unit { TransferContext.writeArguments(LONG to terrain.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setTerrainPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTerrainPtr, NIL) } public final fun getTerrain(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTerrainPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTerrainPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -507,7 +507,7 @@ public open class TileData : Object() { */ public final fun setTerrainPeeringBit(peeringBit: TileSet.CellNeighbor, terrain: Int): Unit { TransferContext.writeArguments(LONG to peeringBit.id, LONG to terrain.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setTerrainPeeringBitPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTerrainPeeringBitPtr, NIL) } /** @@ -516,7 +516,7 @@ public open class TileData : Object() { */ public final fun getTerrainPeeringBit(peeringBit: TileSet.CellNeighbor): Int { TransferContext.writeArguments(LONG to peeringBit.id) - TransferContext.callMethod(rawPtr, MethodBindings.getTerrainPeeringBitPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTerrainPeeringBitPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -525,7 +525,7 @@ public open class TileData : Object() { */ public final fun isValidTerrainPeeringBit(peeringBit: TileSet.CellNeighbor): Boolean { TransferContext.writeArguments(LONG to peeringBit.id) - TransferContext.callMethod(rawPtr, MethodBindings.isValidTerrainPeeringBitPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isValidTerrainPeeringBitPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -534,7 +534,7 @@ public open class TileData : Object() { */ public final fun setNavigationPolygon(layerId: Int, navigationPolygon: NavigationPolygon?): Unit { TransferContext.writeArguments(LONG to layerId.toLong(), OBJECT to navigationPolygon) - TransferContext.callMethod(rawPtr, MethodBindings.setNavigationPolygonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNavigationPolygonPtr, NIL) } /** @@ -550,18 +550,18 @@ public open class TileData : Object() { transpose: Boolean = false, ): NavigationPolygon? { TransferContext.writeArguments(LONG to layerId.toLong(), BOOL to flipH, BOOL to flipV, BOOL to transpose) - TransferContext.callMethod(rawPtr, MethodBindings.getNavigationPolygonPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getNavigationPolygonPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as NavigationPolygon?) } public final fun setProbability(probability: Float): Unit { TransferContext.writeArguments(DOUBLE to probability.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setProbabilityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setProbabilityPtr, NIL) } public final fun getProbability(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getProbabilityPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getProbabilityPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -570,7 +570,7 @@ public open class TileData : Object() { */ public final fun setCustomData(layerName: String, `value`: Any?): Unit { TransferContext.writeArguments(STRING to layerName, ANY to value) - TransferContext.callMethod(rawPtr, MethodBindings.setCustomDataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCustomDataPtr, NIL) } /** @@ -578,7 +578,7 @@ public open class TileData : Object() { */ public final fun getCustomData(layerName: String): Any? { TransferContext.writeArguments(STRING to layerName) - TransferContext.callMethod(rawPtr, MethodBindings.getCustomDataPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getCustomDataPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -587,7 +587,7 @@ public open class TileData : Object() { */ public final fun setCustomDataByLayerId(layerId: Int, `value`: Any?): Unit { TransferContext.writeArguments(LONG to layerId.toLong(), ANY to value) - TransferContext.callMethod(rawPtr, MethodBindings.setCustomDataByLayerIdPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCustomDataByLayerIdPtr, NIL) } /** @@ -595,7 +595,7 @@ public open class TileData : Object() { */ public final fun getCustomDataByLayerId(layerId: Int): Any? { TransferContext.writeArguments(LONG to layerId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCustomDataByLayerIdPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getCustomDataByLayerIdPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TileMap.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TileMap.kt index 0aa812cb9b..3fa028a38b 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TileMap.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TileMap.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.RID import godot.core.Rect2i @@ -27,7 +28,6 @@ import godot.core.VariantParser._RID import godot.core.Vector2 import godot.core.Vector2i import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -160,7 +160,7 @@ public open class TileMap : Node2D() { */ public final fun setNavigationMap(layer: Int, map: RID): Unit { TransferContext.writeArguments(LONG to layer.toLong(), _RID to map) - TransferContext.callMethod(rawPtr, MethodBindings.setNavigationMapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNavigationMapPtr, NIL) } /** @@ -169,7 +169,7 @@ public open class TileMap : Node2D() { */ public final fun getNavigationMap(layer: Int): RID { TransferContext.writeArguments(LONG to layer.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getNavigationMapPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getNavigationMapPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -179,28 +179,28 @@ public open class TileMap : Node2D() { @JvmOverloads public final fun forceUpdate(layer: Int = -1): Unit { TransferContext.writeArguments(LONG to layer.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.forceUpdatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.forceUpdatePtr, NIL) } public final fun setTileset(tileset: TileSet?): Unit { TransferContext.writeArguments(OBJECT to tileset) - TransferContext.callMethod(rawPtr, MethodBindings.setTilesetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTilesetPtr, NIL) } public final fun getTileset(): TileSet? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTilesetPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTilesetPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as TileSet?) } public final fun setRenderingQuadrantSize(size: Int): Unit { TransferContext.writeArguments(LONG to size.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setRenderingQuadrantSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRenderingQuadrantSizePtr, NIL) } public final fun getRenderingQuadrantSize(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRenderingQuadrantSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getRenderingQuadrantSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -209,7 +209,7 @@ public open class TileMap : Node2D() { */ public final fun getLayersCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLayersCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLayersCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -219,7 +219,7 @@ public open class TileMap : Node2D() { */ public final fun addLayer(toPosition: Int): Unit { TransferContext.writeArguments(LONG to toPosition.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addLayerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addLayerPtr, NIL) } /** @@ -227,7 +227,7 @@ public open class TileMap : Node2D() { */ public final fun moveLayer(layer: Int, toPosition: Int): Unit { TransferContext.writeArguments(LONG to layer.toLong(), LONG to toPosition.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.moveLayerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.moveLayerPtr, NIL) } /** @@ -235,7 +235,7 @@ public open class TileMap : Node2D() { */ public final fun removeLayer(layer: Int): Unit { TransferContext.writeArguments(LONG to layer.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeLayerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeLayerPtr, NIL) } /** @@ -244,7 +244,7 @@ public open class TileMap : Node2D() { */ public final fun setLayerName(layer: Int, name: String): Unit { TransferContext.writeArguments(LONG to layer.toLong(), STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.setLayerNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLayerNamePtr, NIL) } /** @@ -253,7 +253,7 @@ public open class TileMap : Node2D() { */ public final fun getLayerName(layer: Int): String { TransferContext.writeArguments(LONG to layer.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getLayerNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getLayerNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -264,7 +264,7 @@ public open class TileMap : Node2D() { */ public final fun setLayerEnabled(layer: Int, enabled: Boolean): Unit { TransferContext.writeArguments(LONG to layer.toLong(), BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setLayerEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLayerEnabledPtr, NIL) } /** @@ -273,7 +273,7 @@ public open class TileMap : Node2D() { */ public final fun isLayerEnabled(layer: Int): Boolean { TransferContext.writeArguments(LONG to layer.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isLayerEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isLayerEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -283,7 +283,7 @@ public open class TileMap : Node2D() { */ public final fun setLayerModulate(layer: Int, modulate: Color): Unit { TransferContext.writeArguments(LONG to layer.toLong(), COLOR to modulate) - TransferContext.callMethod(rawPtr, MethodBindings.setLayerModulatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLayerModulatePtr, NIL) } /** @@ -292,7 +292,7 @@ public open class TileMap : Node2D() { */ public final fun getLayerModulate(layer: Int): Color { TransferContext.writeArguments(LONG to layer.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getLayerModulatePtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getLayerModulatePtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } @@ -306,7 +306,7 @@ public open class TileMap : Node2D() { */ public final fun setLayerYSortEnabled(layer: Int, ySortEnabled: Boolean): Unit { TransferContext.writeArguments(LONG to layer.toLong(), BOOL to ySortEnabled) - TransferContext.callMethod(rawPtr, MethodBindings.setLayerYSortEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLayerYSortEnabledPtr, NIL) } /** @@ -315,7 +315,7 @@ public open class TileMap : Node2D() { */ public final fun isLayerYSortEnabled(layer: Int): Boolean { TransferContext.writeArguments(LONG to layer.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isLayerYSortEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isLayerYSortEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -328,7 +328,7 @@ public open class TileMap : Node2D() { */ public final fun setLayerYSortOrigin(layer: Int, ySortOrigin: Int): Unit { TransferContext.writeArguments(LONG to layer.toLong(), LONG to ySortOrigin.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setLayerYSortOriginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLayerYSortOriginPtr, NIL) } /** @@ -337,7 +337,7 @@ public open class TileMap : Node2D() { */ public final fun getLayerYSortOrigin(layer: Int): Int { TransferContext.writeArguments(LONG to layer.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getLayerYSortOriginPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLayerYSortOriginPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -347,7 +347,7 @@ public open class TileMap : Node2D() { */ public final fun setLayerZIndex(layer: Int, zIndex: Int): Unit { TransferContext.writeArguments(LONG to layer.toLong(), LONG to zIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setLayerZIndexPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLayerZIndexPtr, NIL) } /** @@ -356,7 +356,7 @@ public open class TileMap : Node2D() { */ public final fun getLayerZIndex(layer: Int): Int { TransferContext.writeArguments(LONG to layer.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getLayerZIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLayerZIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -366,7 +366,7 @@ public open class TileMap : Node2D() { */ public final fun setLayerNavigationEnabled(layer: Int, enabled: Boolean): Unit { TransferContext.writeArguments(LONG to layer.toLong(), BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setLayerNavigationEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLayerNavigationEnabledPtr, NIL) } /** @@ -374,7 +374,7 @@ public open class TileMap : Node2D() { */ public final fun isLayerNavigationEnabled(layer: Int): Boolean { TransferContext.writeArguments(LONG to layer.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isLayerNavigationEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isLayerNavigationEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -389,7 +389,7 @@ public open class TileMap : Node2D() { */ public final fun setLayerNavigationMap(layer: Int, map: RID): Unit { TransferContext.writeArguments(LONG to layer.toLong(), _RID to map) - TransferContext.callMethod(rawPtr, MethodBindings.setLayerNavigationMapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLayerNavigationMapPtr, NIL) } /** @@ -404,40 +404,40 @@ public open class TileMap : Node2D() { */ public final fun getLayerNavigationMap(layer: Int): RID { TransferContext.writeArguments(LONG to layer.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getLayerNavigationMapPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getLayerNavigationMapPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } public final fun setCollisionAnimatable(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionAnimatablePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionAnimatablePtr, NIL) } public final fun isCollisionAnimatable(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCollisionAnimatablePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCollisionAnimatablePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCollisionVisibilityMode(collisionVisibilityMode: VisibilityMode): Unit { TransferContext.writeArguments(LONG to collisionVisibilityMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionVisibilityModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionVisibilityModePtr, NIL) } public final fun getCollisionVisibilityMode(): VisibilityMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionVisibilityModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCollisionVisibilityModePtr, LONG) return TileMap.VisibilityMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setNavigationVisibilityMode(navigationVisibilityMode: VisibilityMode): Unit { TransferContext.writeArguments(LONG to navigationVisibilityMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setNavigationVisibilityModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNavigationVisibilityModePtr, NIL) } public final fun getNavigationVisibilityMode(): VisibilityMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNavigationVisibilityModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getNavigationVisibilityModePtr, LONG) return TileMap.VisibilityMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -465,7 +465,7 @@ public open class TileMap : Node2D() { alternativeTile: Int = 0, ): Unit { TransferContext.writeArguments(LONG to layer.toLong(), VECTOR2I to coords, LONG to sourceId.toLong(), VECTOR2I to atlasCoords, LONG to alternativeTile.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setCellPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCellPtr, NIL) } /** @@ -474,7 +474,7 @@ public open class TileMap : Node2D() { */ public final fun eraseCell(layer: Int, coords: Vector2i): Unit { TransferContext.writeArguments(LONG to layer.toLong(), VECTOR2I to coords) - TransferContext.callMethod(rawPtr, MethodBindings.eraseCellPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.eraseCellPtr, NIL) } /** @@ -491,7 +491,7 @@ public open class TileMap : Node2D() { useProxies: Boolean = false, ): Int { TransferContext.writeArguments(LONG to layer.toLong(), VECTOR2I to coords, BOOL to useProxies) - TransferContext.callMethod(rawPtr, MethodBindings.getCellSourceIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCellSourceIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -509,7 +509,7 @@ public open class TileMap : Node2D() { useProxies: Boolean = false, ): Vector2i { TransferContext.writeArguments(LONG to layer.toLong(), VECTOR2I to coords, BOOL to useProxies) - TransferContext.callMethod(rawPtr, MethodBindings.getCellAtlasCoordsPtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getCellAtlasCoordsPtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -526,7 +526,7 @@ public open class TileMap : Node2D() { useProxies: Boolean = false, ): Int { TransferContext.writeArguments(LONG to layer.toLong(), VECTOR2I to coords, BOOL to useProxies) - TransferContext.callMethod(rawPtr, MethodBindings.getCellAlternativeTilePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCellAlternativeTilePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -552,7 +552,7 @@ public open class TileMap : Node2D() { useProxies: Boolean = false, ): TileData? { TransferContext.writeArguments(LONG to layer.toLong(), VECTOR2I to coords, BOOL to useProxies) - TransferContext.callMethod(rawPtr, MethodBindings.getCellTileDataPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getCellTileDataPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as TileData?) } @@ -562,7 +562,7 @@ public open class TileMap : Node2D() { */ public final fun getCoordsForBodyRid(body: RID): Vector2i { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.getCoordsForBodyRidPtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getCoordsForBodyRidPtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -572,7 +572,7 @@ public open class TileMap : Node2D() { */ public final fun getLayerForBodyRid(body: RID): Int { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.getLayerForBodyRidPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLayerForBodyRidPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -582,7 +582,7 @@ public open class TileMap : Node2D() { */ public final fun getPattern(layer: Int, coordsArray: VariantArray): TileMapPattern? { TransferContext.writeArguments(LONG to layer.toLong(), ARRAY to coordsArray) - TransferContext.callMethod(rawPtr, MethodBindings.getPatternPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getPatternPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as TileMapPattern?) } @@ -598,7 +598,7 @@ public open class TileMap : Node2D() { pattern: TileMapPattern?, ): Vector2i { TransferContext.writeArguments(VECTOR2I to positionInTilemap, VECTOR2I to coordsInPattern, OBJECT to pattern) - TransferContext.callMethod(rawPtr, MethodBindings.mapPatternPtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.mapPatternPtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -612,7 +612,7 @@ public open class TileMap : Node2D() { pattern: TileMapPattern?, ): Unit { TransferContext.writeArguments(LONG to layer.toLong(), VECTOR2I to position, OBJECT to pattern) - TransferContext.callMethod(rawPtr, MethodBindings.setPatternPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPatternPtr, NIL) } /** @@ -635,7 +635,7 @@ public open class TileMap : Node2D() { ignoreEmptyTerrains: Boolean = true, ): Unit { TransferContext.writeArguments(LONG to layer.toLong(), ARRAY to cells, LONG to terrainSet.toLong(), LONG to terrain.toLong(), BOOL to ignoreEmptyTerrains) - TransferContext.callMethod(rawPtr, MethodBindings.setCellsTerrainConnectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCellsTerrainConnectPtr, NIL) } /** @@ -658,7 +658,7 @@ public open class TileMap : Node2D() { ignoreEmptyTerrains: Boolean = true, ): Unit { TransferContext.writeArguments(LONG to layer.toLong(), ARRAY to path, LONG to terrainSet.toLong(), LONG to terrain.toLong(), BOOL to ignoreEmptyTerrains) - TransferContext.callMethod(rawPtr, MethodBindings.setCellsTerrainPathPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCellsTerrainPathPtr, NIL) } /** @@ -666,7 +666,7 @@ public open class TileMap : Node2D() { */ public final fun fixInvalidTiles(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.fixInvalidTilesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fixInvalidTilesPtr, NIL) } /** @@ -675,7 +675,7 @@ public open class TileMap : Node2D() { */ public final fun clearLayer(layer: Int): Unit { TransferContext.writeArguments(LONG to layer.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.clearLayerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearLayerPtr, NIL) } /** @@ -683,7 +683,7 @@ public open class TileMap : Node2D() { */ public final fun clear(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPtr, NIL) } /** @@ -696,7 +696,7 @@ public open class TileMap : Node2D() { */ public final fun updateInternals(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.updateInternalsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.updateInternalsPtr, NIL) } /** @@ -712,7 +712,7 @@ public open class TileMap : Node2D() { @JvmOverloads public final fun notifyRuntimeTileDataUpdate(layer: Int = -1): Unit { TransferContext.writeArguments(LONG to layer.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.notifyRuntimeTileDataUpdatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.notifyRuntimeTileDataUpdatePtr, NIL) } /** @@ -720,7 +720,7 @@ public open class TileMap : Node2D() { */ public final fun getSurroundingCells(coords: Vector2i): VariantArray { TransferContext.writeArguments(VECTOR2I to coords) - TransferContext.callMethod(rawPtr, MethodBindings.getSurroundingCellsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getSurroundingCellsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -732,7 +732,7 @@ public open class TileMap : Node2D() { */ public final fun getUsedCells(layer: Int): VariantArray { TransferContext.writeArguments(LONG to layer.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getUsedCellsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getUsedCellsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -755,7 +755,7 @@ public open class TileMap : Node2D() { alternativeTile: Int = -1, ): VariantArray { TransferContext.writeArguments(LONG to layer.toLong(), LONG to sourceId.toLong(), VECTOR2I to atlasCoords, LONG to alternativeTile.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getUsedCellsByIdPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getUsedCellsByIdPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -764,7 +764,7 @@ public open class TileMap : Node2D() { */ public final fun getUsedRect(): Rect2i { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUsedRectPtr, RECT2I) + TransferContext.callMethod(ptr, MethodBindings.getUsedRectPtr, RECT2I) return (TransferContext.readReturnValue(RECT2I) as Rect2i) } @@ -776,7 +776,7 @@ public open class TileMap : Node2D() { */ public final fun mapToLocal(mapPosition: Vector2i): Vector2 { TransferContext.writeArguments(VECTOR2I to mapPosition) - TransferContext.callMethod(rawPtr, MethodBindings.mapToLocalPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.mapToLocalPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -787,7 +787,7 @@ public open class TileMap : Node2D() { */ public final fun localToMap(localPosition: Vector2): Vector2i { TransferContext.writeArguments(VECTOR2 to localPosition) - TransferContext.callMethod(rawPtr, MethodBindings.localToMapPtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.localToMapPtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -797,7 +797,7 @@ public open class TileMap : Node2D() { */ public final fun getNeighborCell(coords: Vector2i, neighbor: TileSet.CellNeighbor): Vector2i { TransferContext.writeArguments(VECTOR2I to coords, LONG to neighbor.id) - TransferContext.callMethod(rawPtr, MethodBindings.getNeighborCellPtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getNeighborCellPtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TileMapLayer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TileMapLayer.kt index 2041072d1a..9cab5dfd01 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TileMapLayer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TileMapLayer.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedByteArray import godot.core.RID import godot.core.Rect2i @@ -26,7 +27,6 @@ import godot.core.VariantParser._RID import godot.core.Vector2 import godot.core.Vector2i import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -242,7 +242,7 @@ public open class TileMapLayer : Node2D() { alternativeTile: Int = 0, ): Unit { TransferContext.writeArguments(VECTOR2I to coords, LONG to sourceId.toLong(), VECTOR2I to atlasCoords, LONG to alternativeTile.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setCellPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCellPtr, NIL) } /** @@ -250,7 +250,7 @@ public open class TileMapLayer : Node2D() { */ public final fun eraseCell(coords: Vector2i): Unit { TransferContext.writeArguments(VECTOR2I to coords) - TransferContext.callMethod(rawPtr, MethodBindings.eraseCellPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.eraseCellPtr, NIL) } /** @@ -258,7 +258,7 @@ public open class TileMapLayer : Node2D() { */ public final fun fixInvalidTiles(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.fixInvalidTilesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.fixInvalidTilesPtr, NIL) } /** @@ -266,7 +266,7 @@ public open class TileMapLayer : Node2D() { */ public final fun clear(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPtr, NIL) } /** @@ -275,7 +275,7 @@ public open class TileMapLayer : Node2D() { */ public final fun getCellSourceId(coords: Vector2i): Int { TransferContext.writeArguments(VECTOR2I to coords) - TransferContext.callMethod(rawPtr, MethodBindings.getCellSourceIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCellSourceIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -285,7 +285,7 @@ public open class TileMapLayer : Node2D() { */ public final fun getCellAtlasCoords(coords: Vector2i): Vector2i { TransferContext.writeArguments(VECTOR2I to coords) - TransferContext.callMethod(rawPtr, MethodBindings.getCellAtlasCoordsPtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getCellAtlasCoordsPtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -294,7 +294,7 @@ public open class TileMapLayer : Node2D() { */ public final fun getCellAlternativeTile(coords: Vector2i): Int { TransferContext.writeArguments(VECTOR2I to coords) - TransferContext.callMethod(rawPtr, MethodBindings.getCellAlternativeTilePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCellAlternativeTilePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -313,7 +313,7 @@ public open class TileMapLayer : Node2D() { */ public final fun getCellTileData(coords: Vector2i): TileData? { TransferContext.writeArguments(VECTOR2I to coords) - TransferContext.callMethod(rawPtr, MethodBindings.getCellTileDataPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getCellTileDataPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as TileData?) } @@ -324,7 +324,7 @@ public open class TileMapLayer : Node2D() { */ public final fun getUsedCells(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUsedCellsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getUsedCellsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -345,7 +345,7 @@ public open class TileMapLayer : Node2D() { alternativeTile: Int = -1, ): VariantArray { TransferContext.writeArguments(LONG to sourceId.toLong(), VECTOR2I to atlasCoords, LONG to alternativeTile.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getUsedCellsByIdPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getUsedCellsByIdPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -354,7 +354,7 @@ public open class TileMapLayer : Node2D() { */ public final fun getUsedRect(): Rect2i { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUsedRectPtr, RECT2I) + TransferContext.callMethod(ptr, MethodBindings.getUsedRectPtr, RECT2I) return (TransferContext.readReturnValue(RECT2I) as Rect2i) } @@ -364,7 +364,7 @@ public open class TileMapLayer : Node2D() { */ public final fun getPattern(coordsArray: VariantArray): TileMapPattern? { TransferContext.writeArguments(ARRAY to coordsArray) - TransferContext.callMethod(rawPtr, MethodBindings.getPatternPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getPatternPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as TileMapPattern?) } @@ -373,7 +373,7 @@ public open class TileMapLayer : Node2D() { */ public final fun setPattern(position: Vector2i, pattern: TileMapPattern?): Unit { TransferContext.writeArguments(VECTOR2I to position, OBJECT to pattern) - TransferContext.callMethod(rawPtr, MethodBindings.setPatternPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPatternPtr, NIL) } /** @@ -394,7 +394,7 @@ public open class TileMapLayer : Node2D() { ignoreEmptyTerrains: Boolean = true, ): Unit { TransferContext.writeArguments(ARRAY to cells, LONG to terrainSet.toLong(), LONG to terrain.toLong(), BOOL to ignoreEmptyTerrains) - TransferContext.callMethod(rawPtr, MethodBindings.setCellsTerrainConnectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCellsTerrainConnectPtr, NIL) } /** @@ -415,7 +415,7 @@ public open class TileMapLayer : Node2D() { ignoreEmptyTerrains: Boolean = true, ): Unit { TransferContext.writeArguments(ARRAY to path, LONG to terrainSet.toLong(), LONG to terrain.toLong(), BOOL to ignoreEmptyTerrains) - TransferContext.callMethod(rawPtr, MethodBindings.setCellsTerrainPathPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCellsTerrainPathPtr, NIL) } /** @@ -423,7 +423,7 @@ public open class TileMapLayer : Node2D() { */ public final fun hasBodyRid(body: RID): Boolean { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.hasBodyRidPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasBodyRidPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -433,7 +433,7 @@ public open class TileMapLayer : Node2D() { */ public final fun getCoordsForBodyRid(body: RID): Vector2i { TransferContext.writeArguments(_RID to body) - TransferContext.callMethod(rawPtr, MethodBindings.getCoordsForBodyRidPtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getCoordsForBodyRidPtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -447,7 +447,7 @@ public open class TileMapLayer : Node2D() { */ public final fun updateInternals(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.updateInternalsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.updateInternalsPtr, NIL) } /** @@ -461,7 +461,7 @@ public open class TileMapLayer : Node2D() { */ public final fun notifyRuntimeTileDataUpdate(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.notifyRuntimeTileDataUpdatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.notifyRuntimeTileDataUpdatePtr, NIL) } /** @@ -476,7 +476,7 @@ public open class TileMapLayer : Node2D() { pattern: TileMapPattern?, ): Vector2i { TransferContext.writeArguments(VECTOR2I to positionInTilemap, VECTOR2I to coordsInPattern, OBJECT to pattern) - TransferContext.callMethod(rawPtr, MethodBindings.mapPatternPtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.mapPatternPtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -485,7 +485,7 @@ public open class TileMapLayer : Node2D() { */ public final fun getSurroundingCells(coords: Vector2i): VariantArray { TransferContext.writeArguments(VECTOR2I to coords) - TransferContext.callMethod(rawPtr, MethodBindings.getSurroundingCellsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getSurroundingCellsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -495,7 +495,7 @@ public open class TileMapLayer : Node2D() { */ public final fun getNeighborCell(coords: Vector2i, neighbor: TileSet.CellNeighbor): Vector2i { TransferContext.writeArguments(VECTOR2I to coords, LONG to neighbor.id) - TransferContext.callMethod(rawPtr, MethodBindings.getNeighborCellPtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getNeighborCellPtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -507,7 +507,7 @@ public open class TileMapLayer : Node2D() { */ public final fun mapToLocal(mapPosition: Vector2i): Vector2 { TransferContext.writeArguments(VECTOR2I to mapPosition) - TransferContext.callMethod(rawPtr, MethodBindings.mapToLocalPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.mapToLocalPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -518,117 +518,117 @@ public open class TileMapLayer : Node2D() { */ public final fun localToMap(localPosition: Vector2): Vector2i { TransferContext.writeArguments(VECTOR2 to localPosition) - TransferContext.callMethod(rawPtr, MethodBindings.localToMapPtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.localToMapPtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } public final fun setTileMapDataFromArray(tileMapLayerData: PackedByteArray): Unit { TransferContext.writeArguments(PACKED_BYTE_ARRAY to tileMapLayerData) - TransferContext.callMethod(rawPtr, MethodBindings.setTileMapDataFromArrayPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTileMapDataFromArrayPtr, NIL) } public final fun getTileMapDataAsArray(): PackedByteArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTileMapDataAsArrayPtr, PACKED_BYTE_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getTileMapDataAsArrayPtr, PACKED_BYTE_ARRAY) return (TransferContext.readReturnValue(PACKED_BYTE_ARRAY) as PackedByteArray) } public final fun setEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnabledPtr, NIL) } public final fun isEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setTileSet(tileSet: TileSet?): Unit { TransferContext.writeArguments(OBJECT to tileSet) - TransferContext.callMethod(rawPtr, MethodBindings.setTileSetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTileSetPtr, NIL) } public final fun getTileSet(): TileSet? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTileSetPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTileSetPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as TileSet?) } public final fun setYSortOrigin(ySortOrigin: Int): Unit { TransferContext.writeArguments(LONG to ySortOrigin.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setYSortOriginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setYSortOriginPtr, NIL) } public final fun getYSortOrigin(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getYSortOriginPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getYSortOriginPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setXDrawOrderReversed(xDrawOrderReversed: Boolean): Unit { TransferContext.writeArguments(BOOL to xDrawOrderReversed) - TransferContext.callMethod(rawPtr, MethodBindings.setXDrawOrderReversedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setXDrawOrderReversedPtr, NIL) } public final fun isXDrawOrderReversed(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isXDrawOrderReversedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isXDrawOrderReversedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setRenderingQuadrantSize(size: Int): Unit { TransferContext.writeArguments(LONG to size.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setRenderingQuadrantSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRenderingQuadrantSizePtr, NIL) } public final fun getRenderingQuadrantSize(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRenderingQuadrantSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getRenderingQuadrantSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setCollisionEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionEnabledPtr, NIL) } public final fun isCollisionEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCollisionEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCollisionEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setUseKinematicBodies(useKinematicBodies: Boolean): Unit { TransferContext.writeArguments(BOOL to useKinematicBodies) - TransferContext.callMethod(rawPtr, MethodBindings.setUseKinematicBodiesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseKinematicBodiesPtr, NIL) } public final fun isUsingKinematicBodies(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUsingKinematicBodiesPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUsingKinematicBodiesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCollisionVisibilityMode(visibilityMode: DebugVisibilityMode): Unit { TransferContext.writeArguments(LONG to visibilityMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setCollisionVisibilityModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollisionVisibilityModePtr, NIL) } public final fun getCollisionVisibilityMode(): DebugVisibilityMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCollisionVisibilityModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCollisionVisibilityModePtr, LONG) return TileMapLayer.DebugVisibilityMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setNavigationEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setNavigationEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNavigationEnabledPtr, NIL) } public final fun isNavigationEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isNavigationEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isNavigationEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -638,7 +638,7 @@ public open class TileMapLayer : Node2D() { */ public final fun setNavigationMap(map: RID): Unit { TransferContext.writeArguments(_RID to map) - TransferContext.callMethod(rawPtr, MethodBindings.setNavigationMapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNavigationMapPtr, NIL) } /** @@ -648,18 +648,18 @@ public open class TileMapLayer : Node2D() { */ public final fun getNavigationMap(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNavigationMapPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getNavigationMapPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } public final fun setNavigationVisibilityMode(showNavigation: DebugVisibilityMode): Unit { TransferContext.writeArguments(LONG to showNavigation.id) - TransferContext.callMethod(rawPtr, MethodBindings.setNavigationVisibilityModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNavigationVisibilityModePtr, NIL) } public final fun getNavigationVisibilityMode(): DebugVisibilityMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNavigationVisibilityModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getNavigationVisibilityModePtr, LONG) return TileMapLayer.DebugVisibilityMode.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TileMapPattern.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TileMapPattern.kt index 6eae24bbc6..7cf6ea80a1 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TileMapPattern.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TileMapPattern.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY @@ -16,7 +17,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2I import godot.core.Vector2i import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -46,7 +46,7 @@ public open class TileMapPattern : Resource() { alternativeTile: Int = -1, ): Unit { TransferContext.writeArguments(VECTOR2I to coords, LONG to sourceId.toLong(), VECTOR2I to atlasCoords, LONG to alternativeTile.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setCellPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCellPtr, NIL) } /** @@ -54,7 +54,7 @@ public open class TileMapPattern : Resource() { */ public final fun hasCell(coords: Vector2i): Boolean { TransferContext.writeArguments(VECTOR2I to coords) - TransferContext.callMethod(rawPtr, MethodBindings.hasCellPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasCellPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -63,7 +63,7 @@ public open class TileMapPattern : Resource() { */ public final fun removeCell(coords: Vector2i, updateSize: Boolean): Unit { TransferContext.writeArguments(VECTOR2I to coords, BOOL to updateSize) - TransferContext.callMethod(rawPtr, MethodBindings.removeCellPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeCellPtr, NIL) } /** @@ -71,7 +71,7 @@ public open class TileMapPattern : Resource() { */ public final fun getCellSourceId(coords: Vector2i): Int { TransferContext.writeArguments(VECTOR2I to coords) - TransferContext.callMethod(rawPtr, MethodBindings.getCellSourceIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCellSourceIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -80,7 +80,7 @@ public open class TileMapPattern : Resource() { */ public final fun getCellAtlasCoords(coords: Vector2i): Vector2i { TransferContext.writeArguments(VECTOR2I to coords) - TransferContext.callMethod(rawPtr, MethodBindings.getCellAtlasCoordsPtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getCellAtlasCoordsPtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -89,7 +89,7 @@ public open class TileMapPattern : Resource() { */ public final fun getCellAlternativeTile(coords: Vector2i): Int { TransferContext.writeArguments(VECTOR2I to coords) - TransferContext.callMethod(rawPtr, MethodBindings.getCellAlternativeTilePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCellAlternativeTilePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -98,7 +98,7 @@ public open class TileMapPattern : Resource() { */ public final fun getUsedCells(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUsedCellsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getUsedCellsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -107,7 +107,7 @@ public open class TileMapPattern : Resource() { */ public final fun getSize(): Vector2i { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSizePtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getSizePtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -116,7 +116,7 @@ public open class TileMapPattern : Resource() { */ public final fun setSize(size: Vector2i): Unit { TransferContext.writeArguments(VECTOR2I to size) - TransferContext.callMethod(rawPtr, MethodBindings.setSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSizePtr, NIL) } /** @@ -124,7 +124,7 @@ public open class TileMapPattern : Resource() { */ public final fun isEmpty(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isEmptyPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isEmptyPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TileSet.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TileSet.kt index 3b5007f13b..2998cbd8f8 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TileSet.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TileSet.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.TypeManager import godot.core.VariantArray @@ -22,7 +23,6 @@ import godot.core.VariantParser.STRING import godot.core.VariantParser.VECTOR2I import godot.core.Vector2i import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -144,7 +144,7 @@ public open class TileSet : Resource() { */ public final fun getNextSourceId(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNextSourceIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getNextSourceIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -158,7 +158,7 @@ public open class TileSet : Resource() { @JvmOverloads public final fun addSource(source: TileSetSource?, atlasSourceIdOverride: Int = -1): Int { TransferContext.writeArguments(OBJECT to source, LONG to atlasSourceIdOverride.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addSourcePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.addSourcePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -167,7 +167,7 @@ public open class TileSet : Resource() { */ public final fun removeSource(sourceId: Int): Unit { TransferContext.writeArguments(LONG to sourceId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeSourcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeSourcePtr, NIL) } /** @@ -175,7 +175,7 @@ public open class TileSet : Resource() { */ public final fun setSourceId(sourceId: Int, newSourceId: Int): Unit { TransferContext.writeArguments(LONG to sourceId.toLong(), LONG to newSourceId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSourceIdPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSourceIdPtr, NIL) } /** @@ -183,7 +183,7 @@ public open class TileSet : Resource() { */ public final fun getSourceCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSourceCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSourceCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -192,7 +192,7 @@ public open class TileSet : Resource() { */ public final fun getSourceId(index: Int): Int { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSourceIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSourceIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -201,7 +201,7 @@ public open class TileSet : Resource() { */ public final fun hasSource(sourceId: Int): Boolean { TransferContext.writeArguments(LONG to sourceId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.hasSourcePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasSourcePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -210,62 +210,62 @@ public open class TileSet : Resource() { */ public final fun getSource(sourceId: Int): TileSetSource? { TransferContext.writeArguments(LONG to sourceId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSourcePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getSourcePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as TileSetSource?) } public final fun setTileShape(shape: TileShape): Unit { TransferContext.writeArguments(LONG to shape.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTileShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTileShapePtr, NIL) } public final fun getTileShape(): TileShape { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTileShapePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTileShapePtr, LONG) return TileSet.TileShape.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setTileLayout(layout: TileLayout): Unit { TransferContext.writeArguments(LONG to layout.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTileLayoutPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTileLayoutPtr, NIL) } public final fun getTileLayout(): TileLayout { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTileLayoutPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTileLayoutPtr, LONG) return TileSet.TileLayout.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setTileOffsetAxis(alignment: TileOffsetAxis): Unit { TransferContext.writeArguments(LONG to alignment.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTileOffsetAxisPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTileOffsetAxisPtr, NIL) } public final fun getTileOffsetAxis(): TileOffsetAxis { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTileOffsetAxisPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTileOffsetAxisPtr, LONG) return TileSet.TileOffsetAxis.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setTileSize(size: Vector2i): Unit { TransferContext.writeArguments(VECTOR2I to size) - TransferContext.callMethod(rawPtr, MethodBindings.setTileSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTileSizePtr, NIL) } public final fun getTileSize(): Vector2i { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTileSizePtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getTileSizePtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } public final fun setUvClipping(uvClipping: Boolean): Unit { TransferContext.writeArguments(BOOL to uvClipping) - TransferContext.callMethod(rawPtr, MethodBindings.setUvClippingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUvClippingPtr, NIL) } public final fun isUvClipping(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUvClippingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUvClippingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -274,7 +274,7 @@ public open class TileSet : Resource() { */ public final fun getOcclusionLayersCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOcclusionLayersCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOcclusionLayersCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -286,7 +286,7 @@ public open class TileSet : Resource() { @JvmOverloads public final fun addOcclusionLayer(toPosition: Int = -1): Unit { TransferContext.writeArguments(LONG to toPosition.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addOcclusionLayerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addOcclusionLayerPtr, NIL) } /** @@ -295,7 +295,7 @@ public open class TileSet : Resource() { */ public final fun moveOcclusionLayer(layerIndex: Int, toPosition: Int): Unit { TransferContext.writeArguments(LONG to layerIndex.toLong(), LONG to toPosition.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.moveOcclusionLayerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.moveOcclusionLayerPtr, NIL) } /** @@ -303,7 +303,7 @@ public open class TileSet : Resource() { */ public final fun removeOcclusionLayer(layerIndex: Int): Unit { TransferContext.writeArguments(LONG to layerIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeOcclusionLayerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeOcclusionLayerPtr, NIL) } /** @@ -312,7 +312,7 @@ public open class TileSet : Resource() { */ public final fun setOcclusionLayerLightMask(layerIndex: Int, lightMask: Int): Unit { TransferContext.writeArguments(LONG to layerIndex.toLong(), LONG to lightMask.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setOcclusionLayerLightMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOcclusionLayerLightMaskPtr, NIL) } /** @@ -320,7 +320,7 @@ public open class TileSet : Resource() { */ public final fun getOcclusionLayerLightMask(layerIndex: Int): Int { TransferContext.writeArguments(LONG to layerIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getOcclusionLayerLightMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOcclusionLayerLightMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -329,7 +329,7 @@ public open class TileSet : Resource() { */ public final fun setOcclusionLayerSdfCollision(layerIndex: Int, sdfCollision: Boolean): Unit { TransferContext.writeArguments(LONG to layerIndex.toLong(), BOOL to sdfCollision) - TransferContext.callMethod(rawPtr, MethodBindings.setOcclusionLayerSdfCollisionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOcclusionLayerSdfCollisionPtr, NIL) } /** @@ -337,7 +337,7 @@ public open class TileSet : Resource() { */ public final fun getOcclusionLayerSdfCollision(layerIndex: Int): Boolean { TransferContext.writeArguments(LONG to layerIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getOcclusionLayerSdfCollisionPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getOcclusionLayerSdfCollisionPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -346,7 +346,7 @@ public open class TileSet : Resource() { */ public final fun getPhysicsLayersCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPhysicsLayersCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPhysicsLayersCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -358,7 +358,7 @@ public open class TileSet : Resource() { @JvmOverloads public final fun addPhysicsLayer(toPosition: Int = -1): Unit { TransferContext.writeArguments(LONG to toPosition.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addPhysicsLayerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addPhysicsLayerPtr, NIL) } /** @@ -367,7 +367,7 @@ public open class TileSet : Resource() { */ public final fun movePhysicsLayer(layerIndex: Int, toPosition: Int): Unit { TransferContext.writeArguments(LONG to layerIndex.toLong(), LONG to toPosition.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.movePhysicsLayerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.movePhysicsLayerPtr, NIL) } /** @@ -375,7 +375,7 @@ public open class TileSet : Resource() { */ public final fun removePhysicsLayer(layerIndex: Int): Unit { TransferContext.writeArguments(LONG to layerIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removePhysicsLayerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removePhysicsLayerPtr, NIL) } /** @@ -384,7 +384,7 @@ public open class TileSet : Resource() { */ public final fun setPhysicsLayerCollisionLayer(layerIndex: Int, layer: Long): Unit { TransferContext.writeArguments(LONG to layerIndex.toLong(), LONG to layer) - TransferContext.callMethod(rawPtr, MethodBindings.setPhysicsLayerCollisionLayerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPhysicsLayerCollisionLayerPtr, NIL) } /** @@ -393,7 +393,7 @@ public open class TileSet : Resource() { */ public final fun getPhysicsLayerCollisionLayer(layerIndex: Int): Long { TransferContext.writeArguments(LONG to layerIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getPhysicsLayerCollisionLayerPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPhysicsLayerCollisionLayerPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -403,7 +403,7 @@ public open class TileSet : Resource() { */ public final fun setPhysicsLayerCollisionMask(layerIndex: Int, mask: Long): Unit { TransferContext.writeArguments(LONG to layerIndex.toLong(), LONG to mask) - TransferContext.callMethod(rawPtr, MethodBindings.setPhysicsLayerCollisionMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPhysicsLayerCollisionMaskPtr, NIL) } /** @@ -411,7 +411,7 @@ public open class TileSet : Resource() { */ public final fun getPhysicsLayerCollisionMask(layerIndex: Int): Long { TransferContext.writeArguments(LONG to layerIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getPhysicsLayerCollisionMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPhysicsLayerCollisionMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -421,7 +421,7 @@ public open class TileSet : Resource() { public final fun setPhysicsLayerPhysicsMaterial(layerIndex: Int, physicsMaterial: PhysicsMaterial?): Unit { TransferContext.writeArguments(LONG to layerIndex.toLong(), OBJECT to physicsMaterial) - TransferContext.callMethod(rawPtr, MethodBindings.setPhysicsLayerPhysicsMaterialPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPhysicsLayerPhysicsMaterialPtr, NIL) } /** @@ -429,7 +429,7 @@ public open class TileSet : Resource() { */ public final fun getPhysicsLayerPhysicsMaterial(layerIndex: Int): PhysicsMaterial? { TransferContext.writeArguments(LONG to layerIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getPhysicsLayerPhysicsMaterialPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getPhysicsLayerPhysicsMaterialPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as PhysicsMaterial?) } @@ -438,7 +438,7 @@ public open class TileSet : Resource() { */ public final fun getTerrainSetsCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTerrainSetsCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTerrainSetsCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -449,7 +449,7 @@ public open class TileSet : Resource() { @JvmOverloads public final fun addTerrainSet(toPosition: Int = -1): Unit { TransferContext.writeArguments(LONG to toPosition.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addTerrainSetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addTerrainSetPtr, NIL) } /** @@ -458,7 +458,7 @@ public open class TileSet : Resource() { */ public final fun moveTerrainSet(terrainSet: Int, toPosition: Int): Unit { TransferContext.writeArguments(LONG to terrainSet.toLong(), LONG to toPosition.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.moveTerrainSetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.moveTerrainSetPtr, NIL) } /** @@ -466,7 +466,7 @@ public open class TileSet : Resource() { */ public final fun removeTerrainSet(terrainSet: Int): Unit { TransferContext.writeArguments(LONG to terrainSet.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeTerrainSetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeTerrainSetPtr, NIL) } /** @@ -475,7 +475,7 @@ public open class TileSet : Resource() { */ public final fun setTerrainSetMode(terrainSet: Int, mode: TerrainMode): Unit { TransferContext.writeArguments(LONG to terrainSet.toLong(), LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTerrainSetModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTerrainSetModePtr, NIL) } /** @@ -483,7 +483,7 @@ public open class TileSet : Resource() { */ public final fun getTerrainSetMode(terrainSet: Int): TerrainMode { TransferContext.writeArguments(LONG to terrainSet.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTerrainSetModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTerrainSetModePtr, LONG) return TileSet.TerrainMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -492,7 +492,7 @@ public open class TileSet : Resource() { */ public final fun getTerrainsCount(terrainSet: Int): Int { TransferContext.writeArguments(LONG to terrainSet.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTerrainsCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTerrainsCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -503,7 +503,7 @@ public open class TileSet : Resource() { @JvmOverloads public final fun addTerrain(terrainSet: Int, toPosition: Int = -1): Unit { TransferContext.writeArguments(LONG to terrainSet.toLong(), LONG to toPosition.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addTerrainPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addTerrainPtr, NIL) } /** @@ -516,7 +516,7 @@ public open class TileSet : Resource() { toPosition: Int, ): Unit { TransferContext.writeArguments(LONG to terrainSet.toLong(), LONG to terrainIndex.toLong(), LONG to toPosition.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.moveTerrainPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.moveTerrainPtr, NIL) } /** @@ -525,7 +525,7 @@ public open class TileSet : Resource() { */ public final fun removeTerrain(terrainSet: Int, terrainIndex: Int): Unit { TransferContext.writeArguments(LONG to terrainSet.toLong(), LONG to terrainIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeTerrainPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeTerrainPtr, NIL) } /** @@ -537,7 +537,7 @@ public open class TileSet : Resource() { name: String, ): Unit { TransferContext.writeArguments(LONG to terrainSet.toLong(), LONG to terrainIndex.toLong(), STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.setTerrainNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTerrainNamePtr, NIL) } /** @@ -545,7 +545,7 @@ public open class TileSet : Resource() { */ public final fun getTerrainName(terrainSet: Int, terrainIndex: Int): String { TransferContext.writeArguments(LONG to terrainSet.toLong(), LONG to terrainIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTerrainNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getTerrainNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -559,7 +559,7 @@ public open class TileSet : Resource() { color: Color, ): Unit { TransferContext.writeArguments(LONG to terrainSet.toLong(), LONG to terrainIndex.toLong(), COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setTerrainColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTerrainColorPtr, NIL) } /** @@ -567,7 +567,7 @@ public open class TileSet : Resource() { */ public final fun getTerrainColor(terrainSet: Int, terrainIndex: Int): Color { TransferContext.writeArguments(LONG to terrainSet.toLong(), LONG to terrainIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTerrainColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getTerrainColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } @@ -576,7 +576,7 @@ public open class TileSet : Resource() { */ public final fun getNavigationLayersCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNavigationLayersCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getNavigationLayersCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -588,7 +588,7 @@ public open class TileSet : Resource() { @JvmOverloads public final fun addNavigationLayer(toPosition: Int = -1): Unit { TransferContext.writeArguments(LONG to toPosition.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addNavigationLayerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addNavigationLayerPtr, NIL) } /** @@ -597,7 +597,7 @@ public open class TileSet : Resource() { */ public final fun moveNavigationLayer(layerIndex: Int, toPosition: Int): Unit { TransferContext.writeArguments(LONG to layerIndex.toLong(), LONG to toPosition.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.moveNavigationLayerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.moveNavigationLayerPtr, NIL) } /** @@ -605,7 +605,7 @@ public open class TileSet : Resource() { */ public final fun removeNavigationLayer(layerIndex: Int): Unit { TransferContext.writeArguments(LONG to layerIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeNavigationLayerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeNavigationLayerPtr, NIL) } /** @@ -614,7 +614,7 @@ public open class TileSet : Resource() { */ public final fun setNavigationLayerLayers(layerIndex: Int, layers: Long): Unit { TransferContext.writeArguments(LONG to layerIndex.toLong(), LONG to layers) - TransferContext.callMethod(rawPtr, MethodBindings.setNavigationLayerLayersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNavigationLayerLayersPtr, NIL) } /** @@ -623,7 +623,7 @@ public open class TileSet : Resource() { */ public final fun getNavigationLayerLayers(layerIndex: Int): Long { TransferContext.writeArguments(LONG to layerIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getNavigationLayerLayersPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getNavigationLayerLayersPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -638,7 +638,7 @@ public open class TileSet : Resource() { `value`: Boolean, ): Unit { TransferContext.writeArguments(LONG to layerIndex.toLong(), LONG to layerNumber.toLong(), BOOL to value) - TransferContext.callMethod(rawPtr, MethodBindings.setNavigationLayerLayerValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNavigationLayerLayerValuePtr, NIL) } /** @@ -648,7 +648,7 @@ public open class TileSet : Resource() { */ public final fun getNavigationLayerLayerValue(layerIndex: Int, layerNumber: Int): Boolean { TransferContext.writeArguments(LONG to layerIndex.toLong(), LONG to layerNumber.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getNavigationLayerLayerValuePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getNavigationLayerLayerValuePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -657,7 +657,7 @@ public open class TileSet : Resource() { */ public final fun getCustomDataLayersCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCustomDataLayersCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCustomDataLayersCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -669,7 +669,7 @@ public open class TileSet : Resource() { @JvmOverloads public final fun addCustomDataLayer(toPosition: Int = -1): Unit { TransferContext.writeArguments(LONG to toPosition.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addCustomDataLayerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addCustomDataLayerPtr, NIL) } /** @@ -678,7 +678,7 @@ public open class TileSet : Resource() { */ public final fun moveCustomDataLayer(layerIndex: Int, toPosition: Int): Unit { TransferContext.writeArguments(LONG to layerIndex.toLong(), LONG to toPosition.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.moveCustomDataLayerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.moveCustomDataLayerPtr, NIL) } /** @@ -686,7 +686,7 @@ public open class TileSet : Resource() { */ public final fun removeCustomDataLayer(layerIndex: Int): Unit { TransferContext.writeArguments(LONG to layerIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeCustomDataLayerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeCustomDataLayerPtr, NIL) } /** @@ -694,7 +694,7 @@ public open class TileSet : Resource() { */ public final fun getCustomDataLayerByName(layerName: String): Int { TransferContext.writeArguments(STRING to layerName) - TransferContext.callMethod(rawPtr, MethodBindings.getCustomDataLayerByNamePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCustomDataLayerByNamePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -704,7 +704,7 @@ public open class TileSet : Resource() { */ public final fun setCustomDataLayerName(layerIndex: Int, layerName: String): Unit { TransferContext.writeArguments(LONG to layerIndex.toLong(), STRING to layerName) - TransferContext.callMethod(rawPtr, MethodBindings.setCustomDataLayerNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCustomDataLayerNamePtr, NIL) } /** @@ -712,7 +712,7 @@ public open class TileSet : Resource() { */ public final fun getCustomDataLayerName(layerIndex: Int): String { TransferContext.writeArguments(LONG to layerIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCustomDataLayerNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getCustomDataLayerNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -721,7 +721,7 @@ public open class TileSet : Resource() { */ public final fun setCustomDataLayerType(layerIndex: Int, layerType: VariantType): Unit { TransferContext.writeArguments(LONG to layerIndex.toLong(), LONG to layerType.id) - TransferContext.callMethod(rawPtr, MethodBindings.setCustomDataLayerTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCustomDataLayerTypePtr, NIL) } /** @@ -729,7 +729,7 @@ public open class TileSet : Resource() { */ public final fun getCustomDataLayerType(layerIndex: Int): VariantType { TransferContext.writeArguments(LONG to layerIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCustomDataLayerTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCustomDataLayerTypePtr, LONG) return VariantType.from(TransferContext.readReturnValue(LONG) as Long) } @@ -743,7 +743,7 @@ public open class TileSet : Resource() { */ public final fun setSourceLevelTileProxy(sourceFrom: Int, sourceTo: Int): Unit { TransferContext.writeArguments(LONG to sourceFrom.toLong(), LONG to sourceTo.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSourceLevelTileProxyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSourceLevelTileProxyPtr, NIL) } /** @@ -752,7 +752,7 @@ public open class TileSet : Resource() { */ public final fun getSourceLevelTileProxy(sourceFrom: Int): Int { TransferContext.writeArguments(LONG to sourceFrom.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSourceLevelTileProxyPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSourceLevelTileProxyPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -761,7 +761,7 @@ public open class TileSet : Resource() { */ public final fun hasSourceLevelTileProxy(sourceFrom: Int): Boolean { TransferContext.writeArguments(LONG to sourceFrom.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.hasSourceLevelTileProxyPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasSourceLevelTileProxyPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -770,7 +770,7 @@ public open class TileSet : Resource() { */ public final fun removeSourceLevelTileProxy(sourceFrom: Int): Unit { TransferContext.writeArguments(LONG to sourceFrom.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeSourceLevelTileProxyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeSourceLevelTileProxyPtr, NIL) } /** @@ -788,7 +788,7 @@ public open class TileSet : Resource() { coordsTo: Vector2i, ): Unit { TransferContext.writeArguments(LONG to pSourceFrom.toLong(), VECTOR2I to coordsFrom, LONG to sourceTo.toLong(), VECTOR2I to coordsTo) - TransferContext.callMethod(rawPtr, MethodBindings.setCoordsLevelTileProxyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCoordsLevelTileProxyPtr, NIL) } /** @@ -799,7 +799,7 @@ public open class TileSet : Resource() { public final fun getCoordsLevelTileProxy(sourceFrom: Int, coordsFrom: Vector2i): VariantArray { TransferContext.writeArguments(LONG to sourceFrom.toLong(), VECTOR2I to coordsFrom) - TransferContext.callMethod(rawPtr, MethodBindings.getCoordsLevelTileProxyPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getCoordsLevelTileProxyPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -808,7 +808,7 @@ public open class TileSet : Resource() { */ public final fun hasCoordsLevelTileProxy(sourceFrom: Int, coordsFrom: Vector2i): Boolean { TransferContext.writeArguments(LONG to sourceFrom.toLong(), VECTOR2I to coordsFrom) - TransferContext.callMethod(rawPtr, MethodBindings.hasCoordsLevelTileProxyPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasCoordsLevelTileProxyPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -817,7 +817,7 @@ public open class TileSet : Resource() { */ public final fun removeCoordsLevelTileProxy(sourceFrom: Int, coordsFrom: Vector2i): Unit { TransferContext.writeArguments(LONG to sourceFrom.toLong(), VECTOR2I to coordsFrom) - TransferContext.callMethod(rawPtr, MethodBindings.removeCoordsLevelTileProxyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeCoordsLevelTileProxyPtr, NIL) } /** @@ -836,7 +836,7 @@ public open class TileSet : Resource() { alternativeTo: Int, ): Unit { TransferContext.writeArguments(LONG to sourceFrom.toLong(), VECTOR2I to coordsFrom, LONG to alternativeFrom.toLong(), LONG to sourceTo.toLong(), VECTOR2I to coordsTo, LONG to alternativeTo.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setAlternativeLevelTileProxyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAlternativeLevelTileProxyPtr, NIL) } /** @@ -850,7 +850,7 @@ public open class TileSet : Resource() { alternativeFrom: Int, ): VariantArray { TransferContext.writeArguments(LONG to sourceFrom.toLong(), VECTOR2I to coordsFrom, LONG to alternativeFrom.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getAlternativeLevelTileProxyPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getAlternativeLevelTileProxyPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -863,7 +863,7 @@ public open class TileSet : Resource() { alternativeFrom: Int, ): Boolean { TransferContext.writeArguments(LONG to sourceFrom.toLong(), VECTOR2I to coordsFrom, LONG to alternativeFrom.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.hasAlternativeLevelTileProxyPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasAlternativeLevelTileProxyPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -876,7 +876,7 @@ public open class TileSet : Resource() { alternativeFrom: Int, ): Unit { TransferContext.writeArguments(LONG to sourceFrom.toLong(), VECTOR2I to coordsFrom, LONG to alternativeFrom.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeAlternativeLevelTileProxyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeAlternativeLevelTileProxyPtr, NIL) } /** @@ -893,7 +893,7 @@ public open class TileSet : Resource() { alternativeFrom: Int, ): VariantArray { TransferContext.writeArguments(LONG to sourceFrom.toLong(), VECTOR2I to coordsFrom, LONG to alternativeFrom.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.mapTileProxyPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.mapTileProxyPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -902,7 +902,7 @@ public open class TileSet : Resource() { */ public final fun cleanupInvalidTileProxies(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.cleanupInvalidTileProxiesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.cleanupInvalidTileProxiesPtr, NIL) } /** @@ -910,7 +910,7 @@ public open class TileSet : Resource() { */ public final fun clearTileProxies(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearTileProxiesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearTileProxiesPtr, NIL) } /** @@ -920,7 +920,7 @@ public open class TileSet : Resource() { @JvmOverloads public final fun addPattern(pattern: TileMapPattern?, index: Int = -1): Int { TransferContext.writeArguments(OBJECT to pattern, LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addPatternPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.addPatternPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -930,7 +930,7 @@ public open class TileSet : Resource() { @JvmOverloads public final fun getPattern(index: Int = -1): TileMapPattern? { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getPatternPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getPatternPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as TileMapPattern?) } @@ -939,7 +939,7 @@ public open class TileSet : Resource() { */ public final fun removePattern(index: Int): Unit { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removePatternPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removePatternPtr, NIL) } /** @@ -947,7 +947,7 @@ public open class TileSet : Resource() { */ public final fun getPatternsCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPatternsCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPatternsCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TileSetAtlasSource.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TileSetAtlasSource.kt index 686f537c7a..4a4fb20cfd 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TileSetAtlasSource.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TileSetAtlasSource.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedVector2Array import godot.core.Rect2i import godot.core.TypeManager @@ -22,7 +23,6 @@ import godot.core.VariantParser.RECT2I import godot.core.VariantParser.VECTOR2I import godot.core.Vector2i import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -192,56 +192,56 @@ public open class TileSetAtlasSource : TileSetSource() { public final fun setTexture(texture: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTexturePtr, NIL) } public final fun getTexture(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } public final fun setMargins(margins: Vector2i): Unit { TransferContext.writeArguments(VECTOR2I to margins) - TransferContext.callMethod(rawPtr, MethodBindings.setMarginsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMarginsPtr, NIL) } public final fun getMargins(): Vector2i { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMarginsPtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getMarginsPtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } public final fun setSeparation(separation: Vector2i): Unit { TransferContext.writeArguments(VECTOR2I to separation) - TransferContext.callMethod(rawPtr, MethodBindings.setSeparationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSeparationPtr, NIL) } public final fun getSeparation(): Vector2i { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSeparationPtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getSeparationPtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } public final fun setTextureRegionSize(textureRegionSize: Vector2i): Unit { TransferContext.writeArguments(VECTOR2I to textureRegionSize) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureRegionSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureRegionSizePtr, NIL) } public final fun getTextureRegionSize(): Vector2i { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextureRegionSizePtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getTextureRegionSizePtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } public final fun setUseTexturePadding(useTexturePadding: Boolean): Unit { TransferContext.writeArguments(BOOL to useTexturePadding) - TransferContext.callMethod(rawPtr, MethodBindings.setUseTexturePaddingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseTexturePaddingPtr, NIL) } public final fun getUseTexturePadding(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUseTexturePaddingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getUseTexturePaddingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -251,7 +251,7 @@ public open class TileSetAtlasSource : TileSetSource() { @JvmOverloads public final fun createTile(atlasCoords: Vector2i, size: Vector2i = Vector2i(1, 1)): Unit { TransferContext.writeArguments(VECTOR2I to atlasCoords, VECTOR2I to size) - TransferContext.callMethod(rawPtr, MethodBindings.createTilePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.createTilePtr, NIL) } /** @@ -259,7 +259,7 @@ public open class TileSetAtlasSource : TileSetSource() { */ public final fun removeTile(atlasCoords: Vector2i): Unit { TransferContext.writeArguments(VECTOR2I to atlasCoords) - TransferContext.callMethod(rawPtr, MethodBindings.removeTilePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeTilePtr, NIL) } /** @@ -277,7 +277,7 @@ public open class TileSetAtlasSource : TileSetSource() { newSize: Vector2i = Vector2i(-1, -1), ): Unit { TransferContext.writeArguments(VECTOR2I to atlasCoords, VECTOR2I to newAtlasCoords, VECTOR2I to newSize) - TransferContext.callMethod(rawPtr, MethodBindings.moveTileInAtlasPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.moveTileInAtlasPtr, NIL) } /** @@ -285,7 +285,7 @@ public open class TileSetAtlasSource : TileSetSource() { */ public final fun getTileSizeInAtlas(atlasCoords: Vector2i): Vector2i { TransferContext.writeArguments(VECTOR2I to atlasCoords) - TransferContext.callMethod(rawPtr, MethodBindings.getTileSizeInAtlasPtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getTileSizeInAtlasPtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -304,7 +304,7 @@ public open class TileSetAtlasSource : TileSetSource() { ignoredTile: Vector2i = Vector2i(-1, -1), ): Boolean { TransferContext.writeArguments(VECTOR2I to atlasCoords, VECTOR2I to size, LONG to animationColumns.toLong(), VECTOR2I to animationSeparation, LONG to framesCount.toLong(), VECTOR2I to ignoredTile) - TransferContext.callMethod(rawPtr, MethodBindings.hasRoomForTilePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasRoomForTilePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -320,7 +320,7 @@ public open class TileSetAtlasSource : TileSetSource() { textureRegionSize: Vector2i, ): PackedVector2Array { TransferContext.writeArguments(OBJECT to texture, VECTOR2I to margins, VECTOR2I to separation, VECTOR2I to textureRegionSize) - TransferContext.callMethod(rawPtr, MethodBindings.getTilesToBeRemovedOnChangePtr, + TransferContext.callMethod(ptr, MethodBindings.getTilesToBeRemovedOnChangePtr, PACKED_VECTOR2_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR2_ARRAY) as PackedVector2Array) } @@ -331,7 +331,7 @@ public open class TileSetAtlasSource : TileSetSource() { */ public final fun getTileAtCoords(atlasCoords: Vector2i): Vector2i { TransferContext.writeArguments(VECTOR2I to atlasCoords) - TransferContext.callMethod(rawPtr, MethodBindings.getTileAtCoordsPtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getTileAtCoordsPtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -341,7 +341,7 @@ public open class TileSetAtlasSource : TileSetSource() { */ public final fun hasTilesOutsideTexture(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasTilesOutsideTexturePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasTilesOutsideTexturePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -351,7 +351,7 @@ public open class TileSetAtlasSource : TileSetSource() { */ public final fun clearTilesOutsideTexture(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearTilesOutsideTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearTilesOutsideTexturePtr, NIL) } /** @@ -361,7 +361,7 @@ public open class TileSetAtlasSource : TileSetSource() { */ public final fun setTileAnimationColumns(atlasCoords: Vector2i, frameColumns: Int): Unit { TransferContext.writeArguments(VECTOR2I to atlasCoords, LONG to frameColumns.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setTileAnimationColumnsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTileAnimationColumnsPtr, NIL) } /** @@ -369,7 +369,7 @@ public open class TileSetAtlasSource : TileSetSource() { */ public final fun getTileAnimationColumns(atlasCoords: Vector2i): Int { TransferContext.writeArguments(VECTOR2I to atlasCoords) - TransferContext.callMethod(rawPtr, MethodBindings.getTileAnimationColumnsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTileAnimationColumnsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -379,7 +379,7 @@ public open class TileSetAtlasSource : TileSetSource() { */ public final fun setTileAnimationSeparation(atlasCoords: Vector2i, separation: Vector2i): Unit { TransferContext.writeArguments(VECTOR2I to atlasCoords, VECTOR2I to separation) - TransferContext.callMethod(rawPtr, MethodBindings.setTileAnimationSeparationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTileAnimationSeparationPtr, NIL) } /** @@ -388,7 +388,7 @@ public open class TileSetAtlasSource : TileSetSource() { */ public final fun getTileAnimationSeparation(atlasCoords: Vector2i): Vector2i { TransferContext.writeArguments(VECTOR2I to atlasCoords) - TransferContext.callMethod(rawPtr, MethodBindings.getTileAnimationSeparationPtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getTileAnimationSeparationPtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -397,7 +397,7 @@ public open class TileSetAtlasSource : TileSetSource() { */ public final fun setTileAnimationSpeed(atlasCoords: Vector2i, speed: Float): Unit { TransferContext.writeArguments(VECTOR2I to atlasCoords, DOUBLE to speed.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTileAnimationSpeedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTileAnimationSpeedPtr, NIL) } /** @@ -405,7 +405,7 @@ public open class TileSetAtlasSource : TileSetSource() { */ public final fun getTileAnimationSpeed(atlasCoords: Vector2i): Float { TransferContext.writeArguments(VECTOR2I to atlasCoords) - TransferContext.callMethod(rawPtr, MethodBindings.getTileAnimationSpeedPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTileAnimationSpeedPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -415,7 +415,7 @@ public open class TileSetAtlasSource : TileSetSource() { */ public final fun setTileAnimationMode(atlasCoords: Vector2i, mode: TileAnimationMode): Unit { TransferContext.writeArguments(VECTOR2I to atlasCoords, LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTileAnimationModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTileAnimationModePtr, NIL) } /** @@ -423,7 +423,7 @@ public open class TileSetAtlasSource : TileSetSource() { */ public final fun getTileAnimationMode(atlasCoords: Vector2i): TileAnimationMode { TransferContext.writeArguments(VECTOR2I to atlasCoords) - TransferContext.callMethod(rawPtr, MethodBindings.getTileAnimationModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTileAnimationModePtr, LONG) return TileSetAtlasSource.TileAnimationMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -432,7 +432,7 @@ public open class TileSetAtlasSource : TileSetSource() { */ public final fun setTileAnimationFramesCount(atlasCoords: Vector2i, framesCount: Int): Unit { TransferContext.writeArguments(VECTOR2I to atlasCoords, LONG to framesCount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setTileAnimationFramesCountPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTileAnimationFramesCountPtr, NIL) } /** @@ -440,7 +440,7 @@ public open class TileSetAtlasSource : TileSetSource() { */ public final fun getTileAnimationFramesCount(atlasCoords: Vector2i): Int { TransferContext.writeArguments(VECTOR2I to atlasCoords) - TransferContext.callMethod(rawPtr, MethodBindings.getTileAnimationFramesCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTileAnimationFramesCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -454,7 +454,7 @@ public open class TileSetAtlasSource : TileSetSource() { duration: Float, ): Unit { TransferContext.writeArguments(VECTOR2I to atlasCoords, LONG to frameIndex.toLong(), DOUBLE to duration.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTileAnimationFrameDurationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTileAnimationFrameDurationPtr, NIL) } /** @@ -463,7 +463,7 @@ public open class TileSetAtlasSource : TileSetSource() { */ public final fun getTileAnimationFrameDuration(atlasCoords: Vector2i, frameIndex: Int): Float { TransferContext.writeArguments(VECTOR2I to atlasCoords, LONG to frameIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTileAnimationFrameDurationPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTileAnimationFrameDurationPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -473,7 +473,7 @@ public open class TileSetAtlasSource : TileSetSource() { */ public final fun getTileAnimationTotalDuration(atlasCoords: Vector2i): Float { TransferContext.writeArguments(VECTOR2I to atlasCoords) - TransferContext.callMethod(rawPtr, MethodBindings.getTileAnimationTotalDurationPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTileAnimationTotalDurationPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -488,7 +488,7 @@ public open class TileSetAtlasSource : TileSetSource() { public final fun createAlternativeTile(atlasCoords: Vector2i, alternativeIdOverride: Int = -1): Int { TransferContext.writeArguments(VECTOR2I to atlasCoords, LONG to alternativeIdOverride.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.createAlternativeTilePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.createAlternativeTilePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -499,7 +499,7 @@ public open class TileSetAtlasSource : TileSetSource() { */ public final fun removeAlternativeTile(atlasCoords: Vector2i, alternativeTile: Int): Unit { TransferContext.writeArguments(VECTOR2I to atlasCoords, LONG to alternativeTile.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeAlternativeTilePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeAlternativeTilePtr, NIL) } /** @@ -513,7 +513,7 @@ public open class TileSetAtlasSource : TileSetSource() { newId: Int, ): Unit { TransferContext.writeArguments(VECTOR2I to atlasCoords, LONG to alternativeTile.toLong(), LONG to newId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setAlternativeTileIdPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAlternativeTileIdPtr, NIL) } /** @@ -521,7 +521,7 @@ public open class TileSetAtlasSource : TileSetSource() { */ public final fun getNextAlternativeTileId(atlasCoords: Vector2i): Int { TransferContext.writeArguments(VECTOR2I to atlasCoords) - TransferContext.callMethod(rawPtr, MethodBindings.getNextAlternativeTileIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getNextAlternativeTileIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -530,7 +530,7 @@ public open class TileSetAtlasSource : TileSetSource() { */ public final fun getTileData(atlasCoords: Vector2i, alternativeTile: Int): TileData? { TransferContext.writeArguments(VECTOR2I to atlasCoords, LONG to alternativeTile.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTileDataPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTileDataPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as TileData?) } @@ -540,7 +540,7 @@ public open class TileSetAtlasSource : TileSetSource() { */ public final fun getAtlasGridSize(): Vector2i { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAtlasGridSizePtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getAtlasGridSizePtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -551,7 +551,7 @@ public open class TileSetAtlasSource : TileSetSource() { @JvmOverloads public final fun getTileTextureRegion(atlasCoords: Vector2i, frame: Int = 0): Rect2i { TransferContext.writeArguments(VECTOR2I to atlasCoords, LONG to frame.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTileTextureRegionPtr, RECT2I) + TransferContext.callMethod(ptr, MethodBindings.getTileTextureRegionPtr, RECT2I) return (TransferContext.readReturnValue(RECT2I) as Rect2i) } @@ -561,7 +561,7 @@ public open class TileSetAtlasSource : TileSetSource() { */ public final fun getRuntimeTexture(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRuntimeTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getRuntimeTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } @@ -572,7 +572,7 @@ public open class TileSetAtlasSource : TileSetSource() { */ public final fun getRuntimeTileTextureRegion(atlasCoords: Vector2i, frame: Int): Rect2i { TransferContext.writeArguments(VECTOR2I to atlasCoords, LONG to frame.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getRuntimeTileTextureRegionPtr, RECT2I) + TransferContext.callMethod(ptr, MethodBindings.getRuntimeTileTextureRegionPtr, RECT2I) return (TransferContext.readReturnValue(RECT2I) as Rect2i) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TileSetScenesCollectionSource.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TileSetScenesCollectionSource.kt index d2f0b35278..7563b1f518 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TileSetScenesCollectionSource.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TileSetScenesCollectionSource.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -68,7 +68,7 @@ public open class TileSetScenesCollectionSource : TileSetSource() { */ public final fun getSceneTilesCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSceneTilesCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSceneTilesCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -77,7 +77,7 @@ public open class TileSetScenesCollectionSource : TileSetSource() { */ public final fun getSceneTileId(index: Int): Int { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSceneTileIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSceneTileIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -86,7 +86,7 @@ public open class TileSetScenesCollectionSource : TileSetSource() { */ public final fun hasSceneTileId(id: Int): Boolean { TransferContext.writeArguments(LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.hasSceneTileIdPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasSceneTileIdPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -97,7 +97,7 @@ public open class TileSetScenesCollectionSource : TileSetSource() { @JvmOverloads public final fun createSceneTile(packedScene: PackedScene?, idOverride: Int = -1): Int { TransferContext.writeArguments(OBJECT to packedScene, LONG to idOverride.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.createSceneTilePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.createSceneTilePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -107,7 +107,7 @@ public open class TileSetScenesCollectionSource : TileSetSource() { */ public final fun setSceneTileId(id: Int, newId: Int): Unit { TransferContext.writeArguments(LONG to id.toLong(), LONG to newId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSceneTileIdPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSceneTileIdPtr, NIL) } /** @@ -116,7 +116,7 @@ public open class TileSetScenesCollectionSource : TileSetSource() { */ public final fun setSceneTileScene(id: Int, packedScene: PackedScene?): Unit { TransferContext.writeArguments(LONG to id.toLong(), OBJECT to packedScene) - TransferContext.callMethod(rawPtr, MethodBindings.setSceneTileScenePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSceneTileScenePtr, NIL) } /** @@ -124,7 +124,7 @@ public open class TileSetScenesCollectionSource : TileSetSource() { */ public final fun getSceneTileScene(id: Int): PackedScene? { TransferContext.writeArguments(LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSceneTileScenePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getSceneTileScenePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as PackedScene?) } @@ -134,7 +134,7 @@ public open class TileSetScenesCollectionSource : TileSetSource() { */ public final fun setSceneTileDisplayPlaceholder(id: Int, displayPlaceholder: Boolean): Unit { TransferContext.writeArguments(LONG to id.toLong(), BOOL to displayPlaceholder) - TransferContext.callMethod(rawPtr, MethodBindings.setSceneTileDisplayPlaceholderPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSceneTileDisplayPlaceholderPtr, NIL) } /** @@ -142,7 +142,7 @@ public open class TileSetScenesCollectionSource : TileSetSource() { */ public final fun getSceneTileDisplayPlaceholder(id: Int): Boolean { TransferContext.writeArguments(LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSceneTileDisplayPlaceholderPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getSceneTileDisplayPlaceholderPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -151,7 +151,7 @@ public open class TileSetScenesCollectionSource : TileSetSource() { */ public final fun removeSceneTile(id: Int): Unit { TransferContext.writeArguments(LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeSceneTilePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeSceneTilePtr, NIL) } /** @@ -159,7 +159,7 @@ public open class TileSetScenesCollectionSource : TileSetSource() { */ public final fun getNextSceneTileId(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNextSceneTileIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getNextSceneTileIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TileSetSource.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TileSetSource.kt index 0cd08f8ad6..3956d1780e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TileSetSource.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TileSetSource.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.VECTOR2I import godot.core.Vector2i import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -43,7 +43,7 @@ public open class TileSetSource internal constructor() : Resource() { */ public final fun getTilesCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTilesCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTilesCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -52,7 +52,7 @@ public open class TileSetSource internal constructor() : Resource() { */ public final fun getTileId(index: Int): Vector2i { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTileIdPtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getTileIdPtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -61,7 +61,7 @@ public open class TileSetSource internal constructor() : Resource() { */ public final fun hasTile(atlasCoords: Vector2i): Boolean { TransferContext.writeArguments(VECTOR2I to atlasCoords) - TransferContext.callMethod(rawPtr, MethodBindings.hasTilePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasTilePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -73,7 +73,7 @@ public open class TileSetSource internal constructor() : Resource() { */ public final fun getAlternativeTilesCount(atlasCoords: Vector2i): Int { TransferContext.writeArguments(VECTOR2I to atlasCoords) - TransferContext.callMethod(rawPtr, MethodBindings.getAlternativeTilesCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAlternativeTilesCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -82,7 +82,7 @@ public open class TileSetSource internal constructor() : Resource() { */ public final fun getAlternativeTileId(atlasCoords: Vector2i, index: Int): Int { TransferContext.writeArguments(VECTOR2I to atlasCoords, LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getAlternativeTileIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAlternativeTileIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -92,7 +92,7 @@ public open class TileSetSource internal constructor() : Resource() { */ public final fun hasAlternativeTile(atlasCoords: Vector2i, alternativeTile: Int): Boolean { TransferContext.writeArguments(VECTOR2I to atlasCoords, LONG to alternativeTile.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.hasAlternativeTilePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasAlternativeTilePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Time.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Time.kt index 4398808cf2..e83b2a5915 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Time.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Time.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -15,7 +16,6 @@ import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -62,7 +62,7 @@ public object Time : Object() { @JvmStatic public final fun getDatetimeDictFromUnixTime(unixTimeVal: Long): Dictionary { TransferContext.writeArguments(LONG to unixTimeVal) - TransferContext.callMethod(rawPtr, MethodBindings.getDatetimeDictFromUnixTimePtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getDatetimeDictFromUnixTimePtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -73,7 +73,7 @@ public object Time : Object() { @JvmStatic public final fun getDateDictFromUnixTime(unixTimeVal: Long): Dictionary { TransferContext.writeArguments(LONG to unixTimeVal) - TransferContext.callMethod(rawPtr, MethodBindings.getDateDictFromUnixTimePtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getDateDictFromUnixTimePtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -83,7 +83,7 @@ public object Time : Object() { @JvmStatic public final fun getTimeDictFromUnixTime(unixTimeVal: Long): Dictionary { TransferContext.writeArguments(LONG to unixTimeVal) - TransferContext.callMethod(rawPtr, MethodBindings.getTimeDictFromUnixTimePtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getTimeDictFromUnixTimePtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -97,7 +97,7 @@ public object Time : Object() { public final fun getDatetimeStringFromUnixTime(unixTimeVal: Long, useSpace: Boolean = false): String { TransferContext.writeArguments(LONG to unixTimeVal, BOOL to useSpace) - TransferContext.callMethod(rawPtr, MethodBindings.getDatetimeStringFromUnixTimePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getDatetimeStringFromUnixTimePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -107,7 +107,7 @@ public object Time : Object() { @JvmStatic public final fun getDateStringFromUnixTime(unixTimeVal: Long): String { TransferContext.writeArguments(LONG to unixTimeVal) - TransferContext.callMethod(rawPtr, MethodBindings.getDateStringFromUnixTimePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getDateStringFromUnixTimePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -117,7 +117,7 @@ public object Time : Object() { @JvmStatic public final fun getTimeStringFromUnixTime(unixTimeVal: Long): String { TransferContext.writeArguments(LONG to unixTimeVal) - TransferContext.callMethod(rawPtr, MethodBindings.getTimeStringFromUnixTimePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getTimeStringFromUnixTimePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -132,8 +132,7 @@ public object Time : Object() { public final fun getDatetimeDictFromDatetimeString(datetime: String, weekday: Boolean): Dictionary { TransferContext.writeArguments(STRING to datetime, BOOL to weekday) - TransferContext.callMethod(rawPtr, MethodBindings.getDatetimeDictFromDatetimeStringPtr, - DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getDatetimeDictFromDatetimeStringPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -151,7 +150,7 @@ public object Time : Object() { public final fun getDatetimeStringFromDatetimeDict(datetime: Dictionary, useSpace: Boolean): String { TransferContext.writeArguments(DICTIONARY to datetime, BOOL to useSpace) - TransferContext.callMethod(rawPtr, MethodBindings.getDatetimeStringFromDatetimeDictPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getDatetimeStringFromDatetimeDictPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -169,7 +168,7 @@ public object Time : Object() { @JvmStatic public final fun getUnixTimeFromDatetimeDict(datetime: Dictionary): Long { TransferContext.writeArguments(DICTIONARY to datetime) - TransferContext.callMethod(rawPtr, MethodBindings.getUnixTimeFromDatetimeDictPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getUnixTimeFromDatetimeDictPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -183,7 +182,7 @@ public object Time : Object() { @JvmStatic public final fun getUnixTimeFromDatetimeString(datetime: String): Long { TransferContext.writeArguments(STRING to datetime) - TransferContext.callMethod(rawPtr, MethodBindings.getUnixTimeFromDatetimeStringPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getUnixTimeFromDatetimeStringPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -194,7 +193,7 @@ public object Time : Object() { @JvmStatic public final fun getOffsetStringFromOffsetMinutes(offsetMinutes: Long): String { TransferContext.writeArguments(LONG to offsetMinutes) - TransferContext.callMethod(rawPtr, MethodBindings.getOffsetStringFromOffsetMinutesPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getOffsetStringFromOffsetMinutesPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -206,7 +205,7 @@ public object Time : Object() { @JvmStatic public final fun getDatetimeDictFromSystem(utc: Boolean = false): Dictionary { TransferContext.writeArguments(BOOL to utc) - TransferContext.callMethod(rawPtr, MethodBindings.getDatetimeDictFromSystemPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getDatetimeDictFromSystemPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -219,7 +218,7 @@ public object Time : Object() { @JvmStatic public final fun getDateDictFromSystem(utc: Boolean = false): Dictionary { TransferContext.writeArguments(BOOL to utc) - TransferContext.callMethod(rawPtr, MethodBindings.getDateDictFromSystemPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getDateDictFromSystemPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -232,7 +231,7 @@ public object Time : Object() { @JvmStatic public final fun getTimeDictFromSystem(utc: Boolean = false): Dictionary { TransferContext.writeArguments(BOOL to utc) - TransferContext.callMethod(rawPtr, MethodBindings.getTimeDictFromSystemPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getTimeDictFromSystemPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -248,7 +247,7 @@ public object Time : Object() { public final fun getDatetimeStringFromSystem(utc: Boolean = false, useSpace: Boolean = false): String { TransferContext.writeArguments(BOOL to utc, BOOL to useSpace) - TransferContext.callMethod(rawPtr, MethodBindings.getDatetimeStringFromSystemPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getDatetimeStringFromSystemPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -261,7 +260,7 @@ public object Time : Object() { @JvmStatic public final fun getDateStringFromSystem(utc: Boolean = false): String { TransferContext.writeArguments(BOOL to utc) - TransferContext.callMethod(rawPtr, MethodBindings.getDateStringFromSystemPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getDateStringFromSystemPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -274,7 +273,7 @@ public object Time : Object() { @JvmStatic public final fun getTimeStringFromSystem(utc: Boolean = false): String { TransferContext.writeArguments(BOOL to utc) - TransferContext.callMethod(rawPtr, MethodBindings.getTimeStringFromSystemPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getTimeStringFromSystemPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -288,7 +287,7 @@ public object Time : Object() { @JvmStatic public final fun getTimeZoneFromSystem(): Dictionary { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTimeZoneFromSystemPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getTimeZoneFromSystemPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -303,7 +302,7 @@ public object Time : Object() { @JvmStatic public final fun getUnixTimeFromSystem(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getUnixTimeFromSystemPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getUnixTimeFromSystemPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -315,7 +314,7 @@ public object Time : Object() { @JvmStatic public final fun getTicksMsec(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTicksMsecPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTicksMsecPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -327,7 +326,7 @@ public object Time : Object() { @JvmStatic public final fun getTicksUsec(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTicksUsecPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTicksUsecPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Timer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Timer.kt index c6feae67f3..d87a53dffd 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Timer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Timer.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -14,7 +15,6 @@ import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Int @@ -124,34 +124,34 @@ public open class Timer : Node() { public final fun setWaitTime(timeSec: Double): Unit { TransferContext.writeArguments(DOUBLE to timeSec) - TransferContext.callMethod(rawPtr, MethodBindings.setWaitTimePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setWaitTimePtr, NIL) } public final fun getWaitTime(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWaitTimePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getWaitTimePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun setOneShot(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setOneShotPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOneShotPtr, NIL) } public final fun isOneShot(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isOneShotPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isOneShotPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAutostart(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setAutostartPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutostartPtr, NIL) } public final fun hasAutostart(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasAutostartPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasAutostartPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -163,7 +163,7 @@ public open class Timer : Node() { @JvmOverloads public final fun start(timeSec: Double = -1.0): Unit { TransferContext.writeArguments(DOUBLE to timeSec) - TransferContext.callMethod(rawPtr, MethodBindings.startPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.startPtr, NIL) } /** @@ -171,17 +171,17 @@ public open class Timer : Node() { */ public final fun stop(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.stopPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.stopPtr, NIL) } public final fun setPaused(paused: Boolean): Unit { TransferContext.writeArguments(BOOL to paused) - TransferContext.callMethod(rawPtr, MethodBindings.setPausedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPausedPtr, NIL) } public final fun isPaused(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isPausedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPausedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -190,24 +190,24 @@ public open class Timer : Node() { */ public final fun isStopped(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isStoppedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isStoppedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun getTimeLeft(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTimeLeftPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTimeLeftPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun setTimerProcessCallback(callback: TimerProcessCallback): Unit { TransferContext.writeArguments(LONG to callback.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTimerProcessCallbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTimerProcessCallbackPtr, NIL) } public final fun getTimerProcessCallback(): TimerProcessCallback { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTimerProcessCallbackPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTimerProcessCallbackPtr, LONG) return Timer.TimerProcessCallback.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TorusMesh.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TorusMesh.kt index cdd73ed536..10f37c3d3e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TorusMesh.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TorusMesh.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -76,45 +76,45 @@ public open class TorusMesh : PrimitiveMesh() { public final fun setInnerRadius(radius: Float): Unit { TransferContext.writeArguments(DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setInnerRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInnerRadiusPtr, NIL) } public final fun getInnerRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInnerRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getInnerRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setOuterRadius(radius: Float): Unit { TransferContext.writeArguments(DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setOuterRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOuterRadiusPtr, NIL) } public final fun getOuterRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOuterRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getOuterRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setRings(rings: Int): Unit { TransferContext.writeArguments(LONG to rings.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setRingsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRingsPtr, NIL) } public final fun getRings(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRingsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getRingsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setRingSegments(rings: Int): Unit { TransferContext.writeArguments(LONG to rings.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setRingSegmentsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRingSegmentsPtr, NIL) } public final fun getRingSegments(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRingSegmentsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getRingSegmentsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TouchScreenButton.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TouchScreenButton.kt index bb0b5b5a5c..5bf883f7d8 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TouchScreenButton.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TouchScreenButton.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -15,7 +16,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -156,100 +156,100 @@ public open class TouchScreenButton : Node2D() { public final fun setTextureNormal(texture: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureNormalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureNormalPtr, NIL) } public final fun getTextureNormal(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextureNormalPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTextureNormalPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } public final fun setTexturePressed(texture: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setTexturePressedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTexturePressedPtr, NIL) } public final fun getTexturePressed(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTexturePressedPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTexturePressedPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } public final fun setBitmask(bitmask: BitMap?): Unit { TransferContext.writeArguments(OBJECT to bitmask) - TransferContext.callMethod(rawPtr, MethodBindings.setBitmaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBitmaskPtr, NIL) } public final fun getBitmask(): BitMap? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBitmaskPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getBitmaskPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as BitMap?) } public final fun setShape(shape: Shape2D?): Unit { TransferContext.writeArguments(OBJECT to shape) - TransferContext.callMethod(rawPtr, MethodBindings.setShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShapePtr, NIL) } public final fun getShape(): Shape2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getShapePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getShapePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Shape2D?) } public final fun setShapeCentered(bool: Boolean): Unit { TransferContext.writeArguments(BOOL to bool) - TransferContext.callMethod(rawPtr, MethodBindings.setShapeCenteredPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShapeCenteredPtr, NIL) } public final fun isShapeCentered(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isShapeCenteredPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isShapeCenteredPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setShapeVisible(bool: Boolean): Unit { TransferContext.writeArguments(BOOL to bool) - TransferContext.callMethod(rawPtr, MethodBindings.setShapeVisiblePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShapeVisiblePtr, NIL) } public final fun isShapeVisible(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isShapeVisiblePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isShapeVisiblePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAction(action: String): Unit { TransferContext.writeArguments(STRING to action) - TransferContext.callMethod(rawPtr, MethodBindings.setActionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setActionPtr, NIL) } public final fun getAction(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getActionPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getActionPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setVisibilityMode(mode: VisibilityMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setVisibilityModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVisibilityModePtr, NIL) } public final fun getVisibilityMode(): VisibilityMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVisibilityModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVisibilityModePtr, LONG) return TouchScreenButton.VisibilityMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setPassbyPress(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setPassbyPressPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPassbyPressPtr, NIL) } public final fun isPassbyPressEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isPassbyPressEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPassbyPressEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -258,7 +258,7 @@ public open class TouchScreenButton : Node2D() { */ public final fun isPressed(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isPressedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPressedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Translation.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Translation.kt index 45d6eb4470..cc00a66251 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Translation.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Translation.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedStringArray import godot.core.StringName import godot.core.TypeManager @@ -16,7 +17,6 @@ import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.NotImplementedError @@ -69,12 +69,12 @@ public open class Translation : Resource() { public final fun setLocale(locale: String): Unit { TransferContext.writeArguments(STRING to locale) - TransferContext.callMethod(rawPtr, MethodBindings.setLocalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLocalePtr, NIL) } public final fun getLocale(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLocalePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getLocalePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -90,7 +90,7 @@ public open class Translation : Resource() { context: StringName = StringName(""), ): Unit { TransferContext.writeArguments(STRING_NAME to srcMessage, STRING_NAME to xlatedMessage, STRING_NAME to context) - TransferContext.callMethod(rawPtr, MethodBindings.addMessagePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addMessagePtr, NIL) } /** @@ -105,7 +105,7 @@ public open class Translation : Resource() { context: StringName = StringName(""), ): Unit { TransferContext.writeArguments(STRING_NAME to srcMessage, PACKED_STRING_ARRAY to xlatedMessages, STRING_NAME to context) - TransferContext.callMethod(rawPtr, MethodBindings.addPluralMessagePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addPluralMessagePtr, NIL) } /** @@ -115,7 +115,7 @@ public open class Translation : Resource() { public final fun getMessage(srcMessage: StringName, context: StringName = StringName("")): StringName { TransferContext.writeArguments(STRING_NAME to srcMessage, STRING_NAME to context) - TransferContext.callMethod(rawPtr, MethodBindings.getMessagePtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getMessagePtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } @@ -132,7 +132,7 @@ public open class Translation : Resource() { context: StringName = StringName(""), ): StringName { TransferContext.writeArguments(STRING_NAME to srcMessage, STRING_NAME to srcPluralMessage, LONG to n.toLong(), STRING_NAME to context) - TransferContext.callMethod(rawPtr, MethodBindings.getPluralMessagePtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getPluralMessagePtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } @@ -143,7 +143,7 @@ public open class Translation : Resource() { public final fun eraseMessage(srcMessage: StringName, context: StringName = StringName("")): Unit { TransferContext.writeArguments(STRING_NAME to srcMessage, STRING_NAME to context) - TransferContext.callMethod(rawPtr, MethodBindings.eraseMessagePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.eraseMessagePtr, NIL) } /** @@ -151,7 +151,7 @@ public open class Translation : Resource() { */ public final fun getMessageList(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMessageListPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getMessageListPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -160,8 +160,7 @@ public open class Translation : Resource() { */ public final fun getTranslatedMessageList(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTranslatedMessageListPtr, - PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getTranslatedMessageListPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -170,7 +169,7 @@ public open class Translation : Resource() { */ public final fun getMessageCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMessageCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMessageCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TranslationServer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TranslationServer.kt index 2a1b3992d7..6cec5e655c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TranslationServer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TranslationServer.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedStringArray import godot.core.StringName import godot.core.TypeManager @@ -18,7 +19,6 @@ import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -46,7 +46,7 @@ public object TranslationServer : Object() { @JvmStatic public final fun setLocale(locale: String): Unit { TransferContext.writeArguments(STRING to locale) - TransferContext.callMethod(rawPtr, MethodBindings.setLocalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLocalePtr, NIL) } /** @@ -56,7 +56,7 @@ public object TranslationServer : Object() { @JvmStatic public final fun getLocale(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLocalePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getLocalePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -67,7 +67,7 @@ public object TranslationServer : Object() { @JvmStatic public final fun getToolLocale(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getToolLocalePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getToolLocalePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -78,7 +78,7 @@ public object TranslationServer : Object() { @JvmStatic public final fun compareLocales(localeA: String, localeB: String): Int { TransferContext.writeArguments(STRING to localeA, STRING to localeB) - TransferContext.callMethod(rawPtr, MethodBindings.compareLocalesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.compareLocalesPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -89,7 +89,7 @@ public object TranslationServer : Object() { @JvmStatic public final fun standardizeLocale(locale: String): String { TransferContext.writeArguments(STRING to locale) - TransferContext.callMethod(rawPtr, MethodBindings.standardizeLocalePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.standardizeLocalePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -99,7 +99,7 @@ public object TranslationServer : Object() { @JvmStatic public final fun getAllLanguages(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAllLanguagesPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getAllLanguagesPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -109,7 +109,7 @@ public object TranslationServer : Object() { @JvmStatic public final fun getLanguageName(language: String): String { TransferContext.writeArguments(STRING to language) - TransferContext.callMethod(rawPtr, MethodBindings.getLanguageNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getLanguageNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -119,7 +119,7 @@ public object TranslationServer : Object() { @JvmStatic public final fun getAllScripts(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAllScriptsPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getAllScriptsPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -129,7 +129,7 @@ public object TranslationServer : Object() { @JvmStatic public final fun getScriptName(script: String): String { TransferContext.writeArguments(STRING to script) - TransferContext.callMethod(rawPtr, MethodBindings.getScriptNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getScriptNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -139,7 +139,7 @@ public object TranslationServer : Object() { @JvmStatic public final fun getAllCountries(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAllCountriesPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getAllCountriesPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -149,7 +149,7 @@ public object TranslationServer : Object() { @JvmStatic public final fun getCountryName(country: String): String { TransferContext.writeArguments(STRING to country) - TransferContext.callMethod(rawPtr, MethodBindings.getCountryNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getCountryNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -160,7 +160,7 @@ public object TranslationServer : Object() { @JvmStatic public final fun getLocaleName(locale: String): String { TransferContext.writeArguments(STRING to locale) - TransferContext.callMethod(rawPtr, MethodBindings.getLocaleNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getLocaleNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -172,7 +172,7 @@ public object TranslationServer : Object() { public final fun translate(message: StringName, context: StringName = StringName("")): StringName { TransferContext.writeArguments(STRING_NAME to message, STRING_NAME to context) - TransferContext.callMethod(rawPtr, MethodBindings.translatePtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.translatePtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } @@ -191,7 +191,7 @@ public object TranslationServer : Object() { context: StringName = StringName(""), ): StringName { TransferContext.writeArguments(STRING_NAME to message, STRING_NAME to pluralMessage, LONG to n.toLong(), STRING_NAME to context) - TransferContext.callMethod(rawPtr, MethodBindings.translatePluralPtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.translatePluralPtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } @@ -201,7 +201,7 @@ public object TranslationServer : Object() { @JvmStatic public final fun addTranslation(translation: Translation?): Unit { TransferContext.writeArguments(OBJECT to translation) - TransferContext.callMethod(rawPtr, MethodBindings.addTranslationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addTranslationPtr, NIL) } /** @@ -210,7 +210,7 @@ public object TranslationServer : Object() { @JvmStatic public final fun removeTranslation(translation: Translation?): Unit { TransferContext.writeArguments(OBJECT to translation) - TransferContext.callMethod(rawPtr, MethodBindings.removeTranslationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeTranslationPtr, NIL) } /** @@ -220,7 +220,7 @@ public object TranslationServer : Object() { @JvmStatic public final fun getTranslationObject(locale: String): Translation? { TransferContext.writeArguments(STRING to locale) - TransferContext.callMethod(rawPtr, MethodBindings.getTranslationObjectPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTranslationObjectPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Translation?) } @@ -230,7 +230,7 @@ public object TranslationServer : Object() { @JvmStatic public final fun clear(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPtr, NIL) } /** @@ -239,21 +239,21 @@ public object TranslationServer : Object() { @JvmStatic public final fun getLoadedLocales(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLoadedLocalesPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getLoadedLocalesPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @JvmStatic public final fun isPseudolocalizationEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isPseudolocalizationEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPseudolocalizationEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @JvmStatic public final fun setPseudolocalizationEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setPseudolocalizationEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPseudolocalizationEnabledPtr, NIL) } /** @@ -262,7 +262,7 @@ public object TranslationServer : Object() { @JvmStatic public final fun reloadPseudolocalization(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.reloadPseudolocalizationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.reloadPseudolocalizationPtr, NIL) } /** @@ -271,7 +271,7 @@ public object TranslationServer : Object() { @JvmStatic public final fun pseudolocalize(message: StringName): StringName { TransferContext.writeArguments(STRING_NAME to message) - TransferContext.callMethod(rawPtr, MethodBindings.pseudolocalizePtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.pseudolocalizePtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Tree.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Tree.kt index 234b6a8958..f47baca6b1 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Tree.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Tree.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Rect2 import godot.core.Signal0 import godot.core.Signal1 @@ -23,7 +24,6 @@ import godot.core.VariantParser.STRING import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -307,7 +307,7 @@ public open class Tree : Control() { */ public final fun clear(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearPtr, NIL) } /** @@ -321,7 +321,7 @@ public open class Tree : Control() { @JvmOverloads public final fun createItem(parent: TreeItem? = null, index: Int = -1): TreeItem? { TransferContext.writeArguments(OBJECT to parent, LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.createItemPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.createItemPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as TreeItem?) } @@ -330,7 +330,7 @@ public open class Tree : Control() { */ public final fun getRoot(): TreeItem? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRootPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getRootPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as TreeItem?) } @@ -341,7 +341,7 @@ public open class Tree : Control() { */ public final fun setColumnCustomMinimumWidth(column: Int, minWidth: Int): Unit { TransferContext.writeArguments(LONG to column.toLong(), LONG to minWidth.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setColumnCustomMinimumWidthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColumnCustomMinimumWidthPtr, NIL) } /** @@ -351,7 +351,7 @@ public open class Tree : Control() { */ public final fun setColumnExpand(column: Int, expand: Boolean): Unit { TransferContext.writeArguments(LONG to column.toLong(), BOOL to expand) - TransferContext.callMethod(rawPtr, MethodBindings.setColumnExpandPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColumnExpandPtr, NIL) } /** @@ -359,7 +359,7 @@ public open class Tree : Control() { */ public final fun setColumnExpandRatio(column: Int, ratio: Int): Unit { TransferContext.writeArguments(LONG to column.toLong(), LONG to ratio.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setColumnExpandRatioPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColumnExpandRatioPtr, NIL) } /** @@ -367,7 +367,7 @@ public open class Tree : Control() { */ public final fun setColumnClipContent(column: Int, enable: Boolean): Unit { TransferContext.writeArguments(LONG to column.toLong(), BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setColumnClipContentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColumnClipContentPtr, NIL) } /** @@ -375,7 +375,7 @@ public open class Tree : Control() { */ public final fun isColumnExpanding(column: Int): Boolean { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isColumnExpandingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isColumnExpandingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -384,7 +384,7 @@ public open class Tree : Control() { */ public final fun isColumnClippingContent(column: Int): Boolean { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isColumnClippingContentPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isColumnClippingContentPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -393,7 +393,7 @@ public open class Tree : Control() { */ public final fun getColumnExpandRatio(column: Int): Int { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getColumnExpandRatioPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getColumnExpandRatioPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -402,18 +402,18 @@ public open class Tree : Control() { */ public final fun getColumnWidth(column: Int): Int { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getColumnWidthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getColumnWidthPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setHideRoot(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setHideRootPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHideRootPtr, NIL) } public final fun isRootHidden(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isRootHiddenPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isRootHiddenPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -423,7 +423,7 @@ public open class Tree : Control() { */ public final fun getNextSelected(from: TreeItem?): TreeItem? { TransferContext.writeArguments(OBJECT to from) - TransferContext.callMethod(rawPtr, MethodBindings.getNextSelectedPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getNextSelectedPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as TreeItem?) } @@ -436,7 +436,7 @@ public open class Tree : Control() { */ public final fun getSelected(): TreeItem? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSelectedPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getSelectedPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as TreeItem?) } @@ -445,7 +445,7 @@ public open class Tree : Control() { */ public final fun setSelected(item: TreeItem?, column: Int): Unit { TransferContext.writeArguments(OBJECT to item, LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSelectedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSelectedPtr, NIL) } /** @@ -457,7 +457,7 @@ public open class Tree : Control() { */ public final fun getSelectedColumn(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSelectedColumnPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSelectedColumnPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -466,18 +466,18 @@ public open class Tree : Control() { */ public final fun getPressedButton(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPressedButtonPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPressedButtonPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setSelectMode(mode: SelectMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setSelectModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSelectModePtr, NIL) } public final fun getSelectMode(): SelectMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSelectModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSelectModePtr, LONG) return Tree.SelectMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -487,17 +487,17 @@ public open class Tree : Control() { */ public final fun deselectAll(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.deselectAllPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.deselectAllPtr, NIL) } public final fun setColumns(amount: Int): Unit { TransferContext.writeArguments(LONG to amount.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setColumnsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColumnsPtr, NIL) } public final fun getColumns(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColumnsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getColumnsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -528,7 +528,7 @@ public open class Tree : Control() { */ public final fun getEdited(): TreeItem? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEditedPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getEditedPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as TreeItem?) } @@ -537,7 +537,7 @@ public open class Tree : Control() { */ public final fun getEditedColumn(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEditedColumnPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getEditedColumnPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -549,7 +549,7 @@ public open class Tree : Control() { @JvmOverloads public final fun editSelected(forceEdit: Boolean = false): Boolean { TransferContext.writeArguments(BOOL to forceEdit) - TransferContext.callMethod(rawPtr, MethodBindings.editSelectedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.editSelectedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -559,7 +559,7 @@ public open class Tree : Control() { */ public final fun getCustomPopupRect(): Rect2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCustomPopupRectPtr, RECT2) + TransferContext.callMethod(ptr, MethodBindings.getCustomPopupRectPtr, RECT2) return (TransferContext.readReturnValue(RECT2) as Rect2) } @@ -575,7 +575,7 @@ public open class Tree : Control() { buttonIndex: Int = -1, ): Rect2 { TransferContext.writeArguments(OBJECT to item, LONG to column.toLong(), LONG to buttonIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getItemAreaRectPtr, RECT2) + TransferContext.callMethod(ptr, MethodBindings.getItemAreaRectPtr, RECT2) return (TransferContext.readReturnValue(RECT2) as Rect2) } @@ -584,7 +584,7 @@ public open class Tree : Control() { */ public final fun getItemAtPosition(position: Vector2): TreeItem? { TransferContext.writeArguments(VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.getItemAtPositionPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getItemAtPositionPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as TreeItem?) } @@ -593,7 +593,7 @@ public open class Tree : Control() { */ public final fun getColumnAtPosition(position: Vector2): Int { TransferContext.writeArguments(VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.getColumnAtPositionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getColumnAtPositionPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -605,7 +605,7 @@ public open class Tree : Control() { */ public final fun getDropSectionAtPosition(position: Vector2): Int { TransferContext.writeArguments(VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.getDropSectionAtPositionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDropSectionAtPositionPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -614,7 +614,7 @@ public open class Tree : Control() { */ public final fun getButtonIdAtPosition(position: Vector2): Int { TransferContext.writeArguments(VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.getButtonIdAtPositionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getButtonIdAtPositionPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -627,17 +627,17 @@ public open class Tree : Control() { */ public final fun ensureCursorIsVisible(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.ensureCursorIsVisiblePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.ensureCursorIsVisiblePtr, NIL) } public final fun setColumnTitlesVisible(visible: Boolean): Unit { TransferContext.writeArguments(BOOL to visible) - TransferContext.callMethod(rawPtr, MethodBindings.setColumnTitlesVisiblePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColumnTitlesVisiblePtr, NIL) } public final fun areColumnTitlesVisible(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.areColumnTitlesVisiblePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.areColumnTitlesVisiblePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -646,7 +646,7 @@ public open class Tree : Control() { */ public final fun setColumnTitle(column: Int, title: String): Unit { TransferContext.writeArguments(LONG to column.toLong(), STRING to title) - TransferContext.callMethod(rawPtr, MethodBindings.setColumnTitlePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColumnTitlePtr, NIL) } /** @@ -654,7 +654,7 @@ public open class Tree : Control() { */ public final fun getColumnTitle(column: Int): String { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getColumnTitlePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getColumnTitlePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -664,7 +664,7 @@ public open class Tree : Control() { */ public final fun setColumnTitleAlignment(column: Int, titleAlignment: HorizontalAlignment): Unit { TransferContext.writeArguments(LONG to column.toLong(), LONG to titleAlignment.id) - TransferContext.callMethod(rawPtr, MethodBindings.setColumnTitleAlignmentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColumnTitleAlignmentPtr, NIL) } /** @@ -672,7 +672,7 @@ public open class Tree : Control() { */ public final fun getColumnTitleAlignment(column: Int): HorizontalAlignment { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getColumnTitleAlignmentPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getColumnTitleAlignmentPtr, LONG) return HorizontalAlignment.from(TransferContext.readReturnValue(LONG) as Long) } @@ -681,7 +681,7 @@ public open class Tree : Control() { */ public final fun setColumnTitleDirection(column: Int, direction: Control.TextDirection): Unit { TransferContext.writeArguments(LONG to column.toLong(), LONG to direction.id) - TransferContext.callMethod(rawPtr, MethodBindings.setColumnTitleDirectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColumnTitleDirectionPtr, NIL) } /** @@ -689,7 +689,7 @@ public open class Tree : Control() { */ public final fun getColumnTitleDirection(column: Int): Control.TextDirection { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getColumnTitleDirectionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getColumnTitleDirectionPtr, LONG) return Control.TextDirection.from(TransferContext.readReturnValue(LONG) as Long) } @@ -699,7 +699,7 @@ public open class Tree : Control() { */ public final fun setColumnTitleLanguage(column: Int, language: String): Unit { TransferContext.writeArguments(LONG to column.toLong(), STRING to language) - TransferContext.callMethod(rawPtr, MethodBindings.setColumnTitleLanguagePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColumnTitleLanguagePtr, NIL) } /** @@ -707,7 +707,7 @@ public open class Tree : Control() { */ public final fun getColumnTitleLanguage(column: Int): String { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getColumnTitleLanguagePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getColumnTitleLanguagePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -716,7 +716,7 @@ public open class Tree : Control() { */ public final fun getScroll(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScrollPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getScrollPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -726,94 +726,94 @@ public open class Tree : Control() { @JvmOverloads public final fun scrollToItem(item: TreeItem?, centerOnItem: Boolean = false): Unit { TransferContext.writeArguments(OBJECT to item, BOOL to centerOnItem) - TransferContext.callMethod(rawPtr, MethodBindings.scrollToItemPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.scrollToItemPtr, NIL) } public final fun setHScrollEnabled(hScroll: Boolean): Unit { TransferContext.writeArguments(BOOL to hScroll) - TransferContext.callMethod(rawPtr, MethodBindings.setHScrollEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHScrollEnabledPtr, NIL) } public final fun isHScrollEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isHScrollEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isHScrollEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setVScrollEnabled(hScroll: Boolean): Unit { TransferContext.writeArguments(BOOL to hScroll) - TransferContext.callMethod(rawPtr, MethodBindings.setVScrollEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVScrollEnabledPtr, NIL) } public final fun isVScrollEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isVScrollEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isVScrollEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setHideFolding(hide: Boolean): Unit { TransferContext.writeArguments(BOOL to hide) - TransferContext.callMethod(rawPtr, MethodBindings.setHideFoldingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHideFoldingPtr, NIL) } public final fun isFoldingHidden(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isFoldingHiddenPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isFoldingHiddenPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setEnableRecursiveFolding(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setEnableRecursiveFoldingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnableRecursiveFoldingPtr, NIL) } public final fun isRecursiveFoldingEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isRecursiveFoldingEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isRecursiveFoldingEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDropModeFlags(flags: Int): Unit { TransferContext.writeArguments(LONG to flags.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setDropModeFlagsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDropModeFlagsPtr, NIL) } public final fun getDropModeFlags(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDropModeFlagsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDropModeFlagsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setAllowRmbSelect(allow: Boolean): Unit { TransferContext.writeArguments(BOOL to allow) - TransferContext.callMethod(rawPtr, MethodBindings.setAllowRmbSelectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAllowRmbSelectPtr, NIL) } public final fun getAllowRmbSelect(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAllowRmbSelectPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getAllowRmbSelectPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAllowReselect(allow: Boolean): Unit { TransferContext.writeArguments(BOOL to allow) - TransferContext.callMethod(rawPtr, MethodBindings.setAllowReselectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAllowReselectPtr, NIL) } public final fun getAllowReselect(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAllowReselectPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getAllowReselectPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAllowSearch(allow: Boolean): Unit { TransferContext.writeArguments(BOOL to allow) - TransferContext.callMethod(rawPtr, MethodBindings.setAllowSearchPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAllowSearchPtr, NIL) } public final fun getAllowSearch(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAllowSearchPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getAllowSearchPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TreeItem.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TreeItem.kt index f70a72c8ba..09f54a39f3 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TreeItem.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TreeItem.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.Color import godot.core.Dictionary @@ -28,7 +29,6 @@ import godot.core.VariantParser.RECT2 import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -107,7 +107,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun setCellMode(column: Int, mode: TreeCellMode): Unit { TransferContext.writeArguments(LONG to column.toLong(), LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setCellModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCellModePtr, NIL) } /** @@ -115,7 +115,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getCellMode(column: Int): TreeCellMode { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCellModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCellModePtr, LONG) return TreeItem.TreeCellMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -127,7 +127,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun setEditMultiline(column: Int, multiline: Boolean): Unit { TransferContext.writeArguments(LONG to column.toLong(), BOOL to multiline) - TransferContext.callMethod(rawPtr, MethodBindings.setEditMultilinePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEditMultilinePtr, NIL) } /** @@ -135,7 +135,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun isEditMultiline(column: Int): Boolean { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isEditMultilinePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isEditMultilinePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -144,7 +144,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun setChecked(column: Int, checked: Boolean): Unit { TransferContext.writeArguments(LONG to column.toLong(), BOOL to checked) - TransferContext.callMethod(rawPtr, MethodBindings.setCheckedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCheckedPtr, NIL) } /** @@ -153,7 +153,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun setIndeterminate(column: Int, indeterminate: Boolean): Unit { TransferContext.writeArguments(LONG to column.toLong(), BOOL to indeterminate) - TransferContext.callMethod(rawPtr, MethodBindings.setIndeterminatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIndeterminatePtr, NIL) } /** @@ -161,7 +161,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun isChecked(column: Int): Boolean { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isCheckedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCheckedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -170,7 +170,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun isIndeterminate(column: Int): Boolean { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isIndeterminatePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isIndeterminatePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -184,7 +184,7 @@ public open class TreeItem internal constructor() : Object() { @JvmOverloads public final fun propagateCheck(column: Int, emitSignal: Boolean = true): Unit { TransferContext.writeArguments(LONG to column.toLong(), BOOL to emitSignal) - TransferContext.callMethod(rawPtr, MethodBindings.propagateCheckPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.propagateCheckPtr, NIL) } /** @@ -192,7 +192,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun setText(column: Int, text: String): Unit { TransferContext.writeArguments(LONG to column.toLong(), STRING to text) - TransferContext.callMethod(rawPtr, MethodBindings.setTextPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextPtr, NIL) } /** @@ -200,7 +200,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getText(column: Int): String { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTextPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getTextPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -209,7 +209,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun setTextDirection(column: Int, direction: Control.TextDirection): Unit { TransferContext.writeArguments(LONG to column.toLong(), LONG to direction.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTextDirectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextDirectionPtr, NIL) } /** @@ -217,7 +217,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getTextDirection(column: Int): Control.TextDirection { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTextDirectionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTextDirectionPtr, LONG) return Control.TextDirection.from(TransferContext.readReturnValue(LONG) as Long) } @@ -227,7 +227,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun setAutowrapMode(column: Int, autowrapMode: TextServer.AutowrapMode): Unit { TransferContext.writeArguments(LONG to column.toLong(), LONG to autowrapMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setAutowrapModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutowrapModePtr, NIL) } /** @@ -236,7 +236,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getAutowrapMode(column: Int): TextServer.AutowrapMode { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getAutowrapModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAutowrapModePtr, LONG) return TextServer.AutowrapMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -247,7 +247,7 @@ public open class TreeItem internal constructor() : Object() { public final fun setTextOverrunBehavior(column: Int, overrunBehavior: TextServer.OverrunBehavior): Unit { TransferContext.writeArguments(LONG to column.toLong(), LONG to overrunBehavior.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTextOverrunBehaviorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextOverrunBehaviorPtr, NIL) } /** @@ -256,7 +256,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getTextOverrunBehavior(column: Int): TextServer.OverrunBehavior { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTextOverrunBehaviorPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTextOverrunBehaviorPtr, LONG) return TextServer.OverrunBehavior.from(TransferContext.readReturnValue(LONG) as Long) } @@ -266,7 +266,7 @@ public open class TreeItem internal constructor() : Object() { public final fun setStructuredTextBidiOverride(column: Int, parser: TextServer.StructuredTextParser): Unit { TransferContext.writeArguments(LONG to column.toLong(), LONG to parser.id) - TransferContext.callMethod(rawPtr, MethodBindings.setStructuredTextBidiOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStructuredTextBidiOverridePtr, NIL) } /** @@ -274,7 +274,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getStructuredTextBidiOverride(column: Int): TextServer.StructuredTextParser { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getStructuredTextBidiOverridePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getStructuredTextBidiOverridePtr, LONG) return TextServer.StructuredTextParser.from(TransferContext.readReturnValue(LONG) as Long) } @@ -284,7 +284,7 @@ public open class TreeItem internal constructor() : Object() { public final fun setStructuredTextBidiOverrideOptions(column: Int, args: VariantArray): Unit { TransferContext.writeArguments(LONG to column.toLong(), ARRAY to args) - TransferContext.callMethod(rawPtr, MethodBindings.setStructuredTextBidiOverrideOptionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStructuredTextBidiOverrideOptionsPtr, NIL) } /** @@ -292,8 +292,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getStructuredTextBidiOverrideOptions(column: Int): VariantArray { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getStructuredTextBidiOverrideOptionsPtr, - ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getStructuredTextBidiOverrideOptionsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -303,7 +302,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun setLanguage(column: Int, language: String): Unit { TransferContext.writeArguments(LONG to column.toLong(), STRING to language) - TransferContext.callMethod(rawPtr, MethodBindings.setLanguagePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLanguagePtr, NIL) } /** @@ -311,7 +310,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getLanguage(column: Int): String { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getLanguagePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getLanguagePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -320,7 +319,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun setSuffix(column: Int, text: String): Unit { TransferContext.writeArguments(LONG to column.toLong(), STRING to text) - TransferContext.callMethod(rawPtr, MethodBindings.setSuffixPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSuffixPtr, NIL) } /** @@ -328,7 +327,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getSuffix(column: Int): String { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getSuffixPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getSuffixPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -337,7 +336,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun setIcon(column: Int, texture: Texture2D?): Unit { TransferContext.writeArguments(LONG to column.toLong(), OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setIconPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIconPtr, NIL) } /** @@ -345,7 +344,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getIcon(column: Int): Texture2D? { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getIconPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getIconPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } @@ -354,7 +353,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun setIconRegion(column: Int, region: Rect2): Unit { TransferContext.writeArguments(LONG to column.toLong(), RECT2 to region) - TransferContext.callMethod(rawPtr, MethodBindings.setIconRegionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIconRegionPtr, NIL) } /** @@ -362,7 +361,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getIconRegion(column: Int): Rect2 { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getIconRegionPtr, RECT2) + TransferContext.callMethod(ptr, MethodBindings.getIconRegionPtr, RECT2) return (TransferContext.readReturnValue(RECT2) as Rect2) } @@ -373,7 +372,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun setIconMaxWidth(column: Int, width: Int): Unit { TransferContext.writeArguments(LONG to column.toLong(), LONG to width.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setIconMaxWidthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIconMaxWidthPtr, NIL) } /** @@ -381,7 +380,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getIconMaxWidth(column: Int): Int { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getIconMaxWidthPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getIconMaxWidthPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -390,7 +389,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun setIconModulate(column: Int, modulate: Color): Unit { TransferContext.writeArguments(LONG to column.toLong(), COLOR to modulate) - TransferContext.callMethod(rawPtr, MethodBindings.setIconModulatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIconModulatePtr, NIL) } /** @@ -398,7 +397,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getIconModulate(column: Int): Color { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getIconModulatePtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getIconModulatePtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } @@ -407,7 +406,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun setRange(column: Int, `value`: Double): Unit { TransferContext.writeArguments(LONG to column.toLong(), DOUBLE to value) - TransferContext.callMethod(rawPtr, MethodBindings.setRangePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRangePtr, NIL) } /** @@ -415,7 +414,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getRange(column: Int): Double { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getRangePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRangePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -434,7 +433,7 @@ public open class TreeItem internal constructor() : Object() { expr: Boolean = false, ): Unit { TransferContext.writeArguments(LONG to column.toLong(), DOUBLE to min, DOUBLE to max, DOUBLE to step, BOOL to expr) - TransferContext.callMethod(rawPtr, MethodBindings.setRangeConfigPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRangeConfigPtr, NIL) } /** @@ -443,7 +442,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getRangeConfig(column: Int): Dictionary { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getRangeConfigPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getRangeConfigPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -453,7 +452,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun setMetadata(column: Int, meta: Any?): Unit { TransferContext.writeArguments(LONG to column.toLong(), ANY to meta) - TransferContext.callMethod(rawPtr, MethodBindings.setMetadataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMetadataPtr, NIL) } /** @@ -461,7 +460,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getMetadata(column: Int): Any? { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getMetadataPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getMetadataPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -476,7 +475,7 @@ public open class TreeItem internal constructor() : Object() { callback: StringName, ): Unit { TransferContext.writeArguments(LONG to column.toLong(), OBJECT to `object`, STRING_NAME to callback) - TransferContext.callMethod(rawPtr, MethodBindings.setCustomDrawPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCustomDrawPtr, NIL) } /** @@ -488,7 +487,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun setCustomDrawCallback(column: Int, callback: Callable): Unit { TransferContext.writeArguments(LONG to column.toLong(), CALLABLE to callback) - TransferContext.callMethod(rawPtr, MethodBindings.setCustomDrawCallbackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCustomDrawCallbackPtr, NIL) } /** @@ -496,18 +495,18 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getCustomDrawCallback(column: Int): Callable { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCustomDrawCallbackPtr, CALLABLE) + TransferContext.callMethod(ptr, MethodBindings.getCustomDrawCallbackPtr, CALLABLE) return (TransferContext.readReturnValue(CALLABLE) as Callable) } public final fun setCollapsed(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setCollapsedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollapsedPtr, NIL) } public final fun isCollapsed(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCollapsedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCollapsedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -516,7 +515,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun setCollapsedRecursive(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setCollapsedRecursivePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCollapsedRecursivePtr, NIL) } /** @@ -526,18 +525,18 @@ public open class TreeItem internal constructor() : Object() { @JvmOverloads public final fun isAnyCollapsed(onlyVisible: Boolean = false): Boolean { TransferContext.writeArguments(BOOL to onlyVisible) - TransferContext.callMethod(rawPtr, MethodBindings.isAnyCollapsedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isAnyCollapsedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setVisible(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setVisiblePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVisiblePtr, NIL) } public final fun isVisible(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isVisiblePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isVisiblePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -546,7 +545,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun isVisibleInTree(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isVisibleInTreePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isVisibleInTreePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -555,17 +554,17 @@ public open class TreeItem internal constructor() : Object() { */ public final fun uncollapseTree(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.uncollapseTreePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.uncollapseTreePtr, NIL) } public final fun setCustomMinimumHeight(height: Int): Unit { TransferContext.writeArguments(LONG to height.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setCustomMinimumHeightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCustomMinimumHeightPtr, NIL) } public final fun getCustomMinimumHeight(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCustomMinimumHeightPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCustomMinimumHeightPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -574,7 +573,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun setSelectable(column: Int, selectable: Boolean): Unit { TransferContext.writeArguments(LONG to column.toLong(), BOOL to selectable) - TransferContext.callMethod(rawPtr, MethodBindings.setSelectablePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSelectablePtr, NIL) } /** @@ -582,7 +581,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun isSelectable(column: Int): Boolean { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isSelectablePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSelectablePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -591,7 +590,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun isSelected(column: Int): Boolean { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isSelectedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSelectedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -600,7 +599,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun select(column: Int): Unit { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.selectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.selectPtr, NIL) } /** @@ -608,7 +607,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun deselect(column: Int): Unit { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.deselectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.deselectPtr, NIL) } /** @@ -616,7 +615,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun setEditable(column: Int, enabled: Boolean): Unit { TransferContext.writeArguments(LONG to column.toLong(), BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setEditablePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEditablePtr, NIL) } /** @@ -624,7 +623,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun isEditable(column: Int): Boolean { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isEditablePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isEditablePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -633,7 +632,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun setCustomColor(column: Int, color: Color): Unit { TransferContext.writeArguments(LONG to column.toLong(), COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setCustomColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCustomColorPtr, NIL) } /** @@ -641,7 +640,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getCustomColor(column: Int): Color { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCustomColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getCustomColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } @@ -650,7 +649,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun clearCustomColor(column: Int): Unit { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.clearCustomColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearCustomColorPtr, NIL) } /** @@ -658,7 +657,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun setCustomFont(column: Int, font: Font?): Unit { TransferContext.writeArguments(LONG to column.toLong(), OBJECT to font) - TransferContext.callMethod(rawPtr, MethodBindings.setCustomFontPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCustomFontPtr, NIL) } /** @@ -666,7 +665,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getCustomFont(column: Int): Font? { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCustomFontPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getCustomFontPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Font?) } @@ -675,7 +674,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun setCustomFontSize(column: Int, fontSize: Int): Unit { TransferContext.writeArguments(LONG to column.toLong(), LONG to fontSize.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setCustomFontSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCustomFontSizePtr, NIL) } /** @@ -683,7 +682,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getCustomFontSize(column: Int): Int { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCustomFontSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCustomFontSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -697,7 +696,7 @@ public open class TreeItem internal constructor() : Object() { justOutline: Boolean = false, ): Unit { TransferContext.writeArguments(LONG to column.toLong(), COLOR to color, BOOL to justOutline) - TransferContext.callMethod(rawPtr, MethodBindings.setCustomBgColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCustomBgColorPtr, NIL) } /** @@ -705,7 +704,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun clearCustomBgColor(column: Int): Unit { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.clearCustomBgColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearCustomBgColorPtr, NIL) } /** @@ -713,7 +712,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getCustomBgColor(column: Int): Color { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getCustomBgColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getCustomBgColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } @@ -722,7 +721,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun setCustomAsButton(column: Int, enable: Boolean): Unit { TransferContext.writeArguments(LONG to column.toLong(), BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setCustomAsButtonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCustomAsButtonPtr, NIL) } /** @@ -730,7 +729,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun isCustomSetAsButton(column: Int): Boolean { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isCustomSetAsButtonPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCustomSetAsButtonPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -750,7 +749,7 @@ public open class TreeItem internal constructor() : Object() { tooltipText: String = "", ): Unit { TransferContext.writeArguments(LONG to column.toLong(), OBJECT to button, LONG to id.toLong(), BOOL to disabled, STRING to tooltipText) - TransferContext.callMethod(rawPtr, MethodBindings.addButtonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addButtonPtr, NIL) } /** @@ -758,7 +757,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getButtonCount(column: Int): Int { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getButtonCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getButtonCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -767,7 +766,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getButtonTooltipText(column: Int, buttonIndex: Int): String { TransferContext.writeArguments(LONG to column.toLong(), LONG to buttonIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getButtonTooltipTextPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getButtonTooltipTextPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -776,7 +775,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getButtonId(column: Int, buttonIndex: Int): Int { TransferContext.writeArguments(LONG to column.toLong(), LONG to buttonIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getButtonIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getButtonIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -786,7 +785,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getButtonById(column: Int, id: Int): Int { TransferContext.writeArguments(LONG to column.toLong(), LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getButtonByIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getButtonByIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -796,7 +795,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getButtonColor(column: Int, id: Int): Color { TransferContext.writeArguments(LONG to column.toLong(), LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getButtonColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getButtonColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } @@ -805,7 +804,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getButton(column: Int, buttonIndex: Int): Texture2D? { TransferContext.writeArguments(LONG to column.toLong(), LONG to buttonIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getButtonPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getButtonPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } @@ -818,7 +817,7 @@ public open class TreeItem internal constructor() : Object() { tooltip: String, ): Unit { TransferContext.writeArguments(LONG to column.toLong(), LONG to buttonIndex.toLong(), STRING to tooltip) - TransferContext.callMethod(rawPtr, MethodBindings.setButtonTooltipTextPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setButtonTooltipTextPtr, NIL) } /** @@ -830,7 +829,7 @@ public open class TreeItem internal constructor() : Object() { button: Texture2D?, ): Unit { TransferContext.writeArguments(LONG to column.toLong(), LONG to buttonIndex.toLong(), OBJECT to button) - TransferContext.callMethod(rawPtr, MethodBindings.setButtonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setButtonPtr, NIL) } /** @@ -838,7 +837,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun eraseButton(column: Int, buttonIndex: Int): Unit { TransferContext.writeArguments(LONG to column.toLong(), LONG to buttonIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.eraseButtonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.eraseButtonPtr, NIL) } /** @@ -850,7 +849,7 @@ public open class TreeItem internal constructor() : Object() { disabled: Boolean, ): Unit { TransferContext.writeArguments(LONG to column.toLong(), LONG to buttonIndex.toLong(), BOOL to disabled) - TransferContext.callMethod(rawPtr, MethodBindings.setButtonDisabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setButtonDisabledPtr, NIL) } /** @@ -862,7 +861,7 @@ public open class TreeItem internal constructor() : Object() { color: Color, ): Unit { TransferContext.writeArguments(LONG to column.toLong(), LONG to buttonIndex.toLong(), COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setButtonColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setButtonColorPtr, NIL) } /** @@ -870,7 +869,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun isButtonDisabled(column: Int, buttonIndex: Int): Boolean { TransferContext.writeArguments(LONG to column.toLong(), LONG to buttonIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isButtonDisabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isButtonDisabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -879,7 +878,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun setTooltipText(column: Int, tooltip: String): Unit { TransferContext.writeArguments(LONG to column.toLong(), STRING to tooltip) - TransferContext.callMethod(rawPtr, MethodBindings.setTooltipTextPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTooltipTextPtr, NIL) } /** @@ -887,7 +886,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getTooltipText(column: Int): String { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTooltipTextPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getTooltipTextPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -896,7 +895,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun setTextAlignment(column: Int, textAlignment: HorizontalAlignment): Unit { TransferContext.writeArguments(LONG to column.toLong(), LONG to textAlignment.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTextAlignmentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextAlignmentPtr, NIL) } /** @@ -904,7 +903,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getTextAlignment(column: Int): HorizontalAlignment { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTextAlignmentPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTextAlignmentPtr, LONG) return HorizontalAlignment.from(TransferContext.readReturnValue(LONG) as Long) } @@ -913,7 +912,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun setExpandRight(column: Int, enable: Boolean): Unit { TransferContext.writeArguments(LONG to column.toLong(), BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setExpandRightPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExpandRightPtr, NIL) } /** @@ -921,18 +920,18 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getExpandRight(column: Int): Boolean { TransferContext.writeArguments(LONG to column.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getExpandRightPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getExpandRightPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDisableFolding(disable: Boolean): Unit { TransferContext.writeArguments(BOOL to disable) - TransferContext.callMethod(rawPtr, MethodBindings.setDisableFoldingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDisableFoldingPtr, NIL) } public final fun isFoldingDisabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isFoldingDisabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isFoldingDisabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -944,7 +943,7 @@ public open class TreeItem internal constructor() : Object() { @JvmOverloads public final fun createChild(index: Int = -1): TreeItem? { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.createChildPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.createChildPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as TreeItem?) } @@ -954,7 +953,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun addChild(child: TreeItem?): Unit { TransferContext.writeArguments(OBJECT to child) - TransferContext.callMethod(rawPtr, MethodBindings.addChildPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addChildPtr, NIL) } /** @@ -966,7 +965,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun removeChild(child: TreeItem?): Unit { TransferContext.writeArguments(OBJECT to child) - TransferContext.callMethod(rawPtr, MethodBindings.removeChildPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeChildPtr, NIL) } /** @@ -974,7 +973,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getTree(): Tree? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTreePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTreePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Tree?) } @@ -983,7 +982,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getNext(): TreeItem? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNextPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getNextPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as TreeItem?) } @@ -992,7 +991,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getPrev(): TreeItem? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPrevPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getPrevPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as TreeItem?) } @@ -1001,7 +1000,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getParent(): TreeItem? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getParentPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getParentPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as TreeItem?) } @@ -1010,7 +1009,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getFirstChild(): TreeItem? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFirstChildPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getFirstChildPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as TreeItem?) } @@ -1023,7 +1022,7 @@ public open class TreeItem internal constructor() : Object() { @JvmOverloads public final fun getNextInTree(wrap: Boolean = false): TreeItem? { TransferContext.writeArguments(BOOL to wrap) - TransferContext.callMethod(rawPtr, MethodBindings.getNextInTreePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getNextInTreePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as TreeItem?) } @@ -1036,7 +1035,7 @@ public open class TreeItem internal constructor() : Object() { @JvmOverloads public final fun getPrevInTree(wrap: Boolean = false): TreeItem? { TransferContext.writeArguments(BOOL to wrap) - TransferContext.callMethod(rawPtr, MethodBindings.getPrevInTreePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getPrevInTreePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as TreeItem?) } @@ -1049,7 +1048,7 @@ public open class TreeItem internal constructor() : Object() { @JvmOverloads public final fun getNextVisible(wrap: Boolean = false): TreeItem? { TransferContext.writeArguments(BOOL to wrap) - TransferContext.callMethod(rawPtr, MethodBindings.getNextVisiblePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getNextVisiblePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as TreeItem?) } @@ -1062,7 +1061,7 @@ public open class TreeItem internal constructor() : Object() { @JvmOverloads public final fun getPrevVisible(wrap: Boolean = false): TreeItem? { TransferContext.writeArguments(BOOL to wrap) - TransferContext.callMethod(rawPtr, MethodBindings.getPrevVisiblePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getPrevVisiblePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as TreeItem?) } @@ -1073,7 +1072,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getChild(index: Int): TreeItem? { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getChildPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getChildPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as TreeItem?) } @@ -1082,7 +1081,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getChildCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getChildCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getChildCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1091,7 +1090,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getChildren(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getChildrenPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getChildrenPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -1101,7 +1100,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun getIndex(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1111,7 +1110,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun moveBefore(item: TreeItem?): Unit { TransferContext.writeArguments(OBJECT to item) - TransferContext.callMethod(rawPtr, MethodBindings.moveBeforePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.moveBeforePtr, NIL) } /** @@ -1120,7 +1119,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun moveAfter(item: TreeItem?): Unit { TransferContext.writeArguments(OBJECT to item) - TransferContext.callMethod(rawPtr, MethodBindings.moveAfterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.moveAfterPtr, NIL) } /** @@ -1129,7 +1128,7 @@ public open class TreeItem internal constructor() : Object() { */ public final fun callRecursive(method: StringName, vararg __var_args: Any?): Unit { TransferContext.writeArguments(STRING_NAME to method, *__var_args.map { ANY to it }.toTypedArray()) - TransferContext.callMethod(rawPtr, MethodBindings.callRecursivePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.callRecursivePtr, NIL) } public enum class TreeCellMode( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/TubeTrailMesh.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/TubeTrailMesh.kt index 0a7c3f2caa..80fc4a7301 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/TubeTrailMesh.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/TubeTrailMesh.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE @@ -14,7 +15,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -134,89 +134,89 @@ public open class TubeTrailMesh : PrimitiveMesh() { public final fun setRadius(radius: Float): Unit { TransferContext.writeArguments(DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRadiusPtr, NIL) } public final fun getRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setRadialSteps(radialSteps: Int): Unit { TransferContext.writeArguments(LONG to radialSteps.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setRadialStepsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRadialStepsPtr, NIL) } public final fun getRadialSteps(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRadialStepsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getRadialStepsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setSections(sections: Int): Unit { TransferContext.writeArguments(LONG to sections.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSectionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSectionsPtr, NIL) } public final fun getSections(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSectionsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSectionsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setSectionLength(sectionLength: Float): Unit { TransferContext.writeArguments(DOUBLE to sectionLength.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSectionLengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSectionLengthPtr, NIL) } public final fun getSectionLength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSectionLengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSectionLengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSectionRings(sectionRings: Int): Unit { TransferContext.writeArguments(LONG to sectionRings.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSectionRingsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSectionRingsPtr, NIL) } public final fun getSectionRings(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSectionRingsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSectionRingsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setCapTop(capTop: Boolean): Unit { TransferContext.writeArguments(BOOL to capTop) - TransferContext.callMethod(rawPtr, MethodBindings.setCapTopPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCapTopPtr, NIL) } public final fun isCapTop(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCapTopPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCapTopPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCapBottom(capBottom: Boolean): Unit { TransferContext.writeArguments(BOOL to capBottom) - TransferContext.callMethod(rawPtr, MethodBindings.setCapBottomPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCapBottomPtr, NIL) } public final fun isCapBottom(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCapBottomPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCapBottomPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setCurve(curve: Curve?): Unit { TransferContext.writeArguments(OBJECT to curve) - TransferContext.callMethod(rawPtr, MethodBindings.setCurvePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCurvePtr, NIL) } public final fun getCurve(): Curve? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCurvePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getCurvePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Curve?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Tween.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Tween.kt index ef59a31251..4cc63de6da 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Tween.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Tween.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.NodePath import godot.core.Signal0 @@ -21,7 +22,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -237,7 +237,7 @@ public open class Tween : RefCounted() { duration: Double, ): PropertyTweener? { TransferContext.writeArguments(OBJECT to `object`, NODE_PATH to property, ANY to finalVal, DOUBLE to duration) - TransferContext.callMethod(rawPtr, MethodBindings.tweenPropertyPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.tweenPropertyPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as PropertyTweener?) } @@ -285,7 +285,7 @@ public open class Tween : RefCounted() { */ public final fun tweenInterval(time: Double): IntervalTweener? { TransferContext.writeArguments(DOUBLE to time) - TransferContext.callMethod(rawPtr, MethodBindings.tweenIntervalPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.tweenIntervalPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as IntervalTweener?) } @@ -323,7 +323,7 @@ public open class Tween : RefCounted() { */ public final fun tweenCallback(callback: Callable): CallbackTweener? { TransferContext.writeArguments(CALLABLE to callback) - TransferContext.callMethod(rawPtr, MethodBindings.tweenCallbackPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.tweenCallbackPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as CallbackTweener?) } @@ -384,7 +384,7 @@ public open class Tween : RefCounted() { duration: Double, ): MethodTweener? { TransferContext.writeArguments(CALLABLE to method, ANY to from, ANY to to, DOUBLE to duration) - TransferContext.callMethod(rawPtr, MethodBindings.tweenMethodPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.tweenMethodPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as MethodTweener?) } @@ -396,7 +396,7 @@ public open class Tween : RefCounted() { */ public final fun customStep(delta: Double): Boolean { TransferContext.writeArguments(DOUBLE to delta) - TransferContext.callMethod(rawPtr, MethodBindings.customStepPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.customStepPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -409,7 +409,7 @@ public open class Tween : RefCounted() { */ public final fun stop(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.stopPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.stopPtr, NIL) } /** @@ -420,7 +420,7 @@ public open class Tween : RefCounted() { */ public final fun pause(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.pausePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pausePtr, NIL) } /** @@ -428,7 +428,7 @@ public open class Tween : RefCounted() { */ public final fun play(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.playPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.playPtr, NIL) } /** @@ -436,7 +436,7 @@ public open class Tween : RefCounted() { */ public final fun kill(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.killPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.killPtr, NIL) } /** @@ -448,7 +448,7 @@ public open class Tween : RefCounted() { */ public final fun getTotalElapsedTime(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTotalElapsedTimePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTotalElapsedTimePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @@ -457,7 +457,7 @@ public open class Tween : RefCounted() { */ public final fun isRunning(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isRunningPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isRunningPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -469,7 +469,7 @@ public open class Tween : RefCounted() { */ public final fun isValid(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isValidPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isValidPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -483,7 +483,7 @@ public open class Tween : RefCounted() { */ public final fun bindNode(node: Node?): Tween? { TransferContext.writeArguments(OBJECT to node) - TransferContext.callMethod(rawPtr, MethodBindings.bindNodePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.bindNodePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Tween?) } @@ -494,7 +494,7 @@ public open class Tween : RefCounted() { */ public final fun setProcessMode(mode: TweenProcessMode): Tween? { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setProcessModePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.setProcessModePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Tween?) } @@ -505,7 +505,7 @@ public open class Tween : RefCounted() { */ public final fun setPauseMode(mode: TweenPauseMode): Tween? { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setPauseModePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.setPauseModePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Tween?) } @@ -524,7 +524,7 @@ public open class Tween : RefCounted() { @JvmOverloads public final fun setParallel(parallel: Boolean = true): Tween? { TransferContext.writeArguments(BOOL to parallel) - TransferContext.callMethod(rawPtr, MethodBindings.setParallelPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.setParallelPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Tween?) } @@ -542,7 +542,7 @@ public open class Tween : RefCounted() { @JvmOverloads public final fun setLoops(loops: Int = 0): Tween? { TransferContext.writeArguments(LONG to loops.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setLoopsPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.setLoopsPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Tween?) } @@ -553,7 +553,7 @@ public open class Tween : RefCounted() { */ public final fun getLoopsLeft(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLoopsLeftPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLoopsLeftPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -562,7 +562,7 @@ public open class Tween : RefCounted() { */ public final fun setSpeedScale(speed: Float): Tween? { TransferContext.writeArguments(DOUBLE to speed.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSpeedScalePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.setSpeedScalePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Tween?) } @@ -573,7 +573,7 @@ public open class Tween : RefCounted() { */ public final fun setTrans(trans: TransitionType): Tween? { TransferContext.writeArguments(LONG to trans.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTransPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.setTransPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Tween?) } @@ -584,7 +584,7 @@ public open class Tween : RefCounted() { */ public final fun setEase(ease: EaseType): Tween? { TransferContext.writeArguments(LONG to ease.id) - TransferContext.callMethod(rawPtr, MethodBindings.setEasePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.setEasePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Tween?) } @@ -612,7 +612,7 @@ public open class Tween : RefCounted() { */ public final fun parallel(): Tween? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.parallelPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.parallelPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Tween?) } @@ -636,7 +636,7 @@ public open class Tween : RefCounted() { */ public final fun chain(): Tween? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.chainPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.chainPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Tween?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/UDPServer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/UDPServer.kt index ea06285f62..3a898eb948 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/UDPServer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/UDPServer.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG @@ -14,7 +15,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -177,7 +177,7 @@ public open class UDPServer : RefCounted() { @JvmOverloads public final fun listen(port: Int, bindAddress: String = "*"): Error { TransferContext.writeArguments(LONG to port.toLong(), STRING to bindAddress) - TransferContext.callMethod(rawPtr, MethodBindings.listenPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.listenPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -190,7 +190,7 @@ public open class UDPServer : RefCounted() { */ public final fun poll(): Error { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.pollPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.pollPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -199,7 +199,7 @@ public open class UDPServer : RefCounted() { */ public final fun isConnectionAvailable(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isConnectionAvailablePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isConnectionAvailablePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -208,7 +208,7 @@ public open class UDPServer : RefCounted() { */ public final fun getLocalPort(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLocalPortPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLocalPortPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -217,7 +217,7 @@ public open class UDPServer : RefCounted() { */ public final fun isListening(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isListeningPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isListeningPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -228,7 +228,7 @@ public open class UDPServer : RefCounted() { */ public final fun takeConnection(): PacketPeerUDP? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.takeConnectionPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.takeConnectionPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as PacketPeerUDP?) } @@ -238,17 +238,17 @@ public open class UDPServer : RefCounted() { */ public final fun stop(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.stopPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.stopPtr, NIL) } public final fun setMaxPendingConnections(maxPendingConnections: Int): Unit { TransferContext.writeArguments(LONG to maxPendingConnections.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxPendingConnectionsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxPendingConnectionsPtr, NIL) } public final fun getMaxPendingConnections(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxPendingConnectionsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMaxPendingConnectionsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/UPNP.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/UPNP.kt index 307c359bd0..0fde5d71ed 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/UPNP.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/UPNP.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG @@ -14,7 +15,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -150,7 +150,7 @@ public open class UPNP : RefCounted() { */ public final fun getDeviceCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDeviceCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDeviceCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -159,7 +159,7 @@ public open class UPNP : RefCounted() { */ public final fun getDevice(index: Int): UPNPDevice? { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getDevicePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getDevicePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as UPNPDevice?) } @@ -168,7 +168,7 @@ public open class UPNP : RefCounted() { */ public final fun addDevice(device: UPNPDevice?): Unit { TransferContext.writeArguments(OBJECT to device) - TransferContext.callMethod(rawPtr, MethodBindings.addDevicePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addDevicePtr, NIL) } /** @@ -176,7 +176,7 @@ public open class UPNP : RefCounted() { */ public final fun setDevice(index: Int, device: UPNPDevice?): Unit { TransferContext.writeArguments(LONG to index.toLong(), OBJECT to device) - TransferContext.callMethod(rawPtr, MethodBindings.setDevicePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDevicePtr, NIL) } /** @@ -184,7 +184,7 @@ public open class UPNP : RefCounted() { */ public final fun removeDevice(index: Int): Unit { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeDevicePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeDevicePtr, NIL) } /** @@ -192,7 +192,7 @@ public open class UPNP : RefCounted() { */ public final fun clearDevices(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearDevicesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearDevicesPtr, NIL) } /** @@ -201,7 +201,7 @@ public open class UPNP : RefCounted() { */ public final fun getGateway(): UPNPDevice? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGatewayPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getGatewayPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as UPNPDevice?) } @@ -219,7 +219,7 @@ public open class UPNP : RefCounted() { deviceFilter: String = "InternetGatewayDevice", ): Int { TransferContext.writeArguments(LONG to timeout.toLong(), LONG to ttl.toLong(), STRING to deviceFilter) - TransferContext.callMethod(rawPtr, MethodBindings.discoverPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.discoverPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -229,7 +229,7 @@ public open class UPNP : RefCounted() { */ public final fun queryExternalAddress(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.queryExternalAddressPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.queryExternalAddressPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -267,7 +267,7 @@ public open class UPNP : RefCounted() { duration: Int = 0, ): Int { TransferContext.writeArguments(LONG to port.toLong(), LONG to portInternal.toLong(), STRING to desc, STRING to proto, LONG to duration.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addPortMappingPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.addPortMappingPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -281,40 +281,40 @@ public open class UPNP : RefCounted() { @JvmOverloads public final fun deletePortMapping(port: Int, proto: String = "UDP"): Int { TransferContext.writeArguments(LONG to port.toLong(), STRING to proto) - TransferContext.callMethod(rawPtr, MethodBindings.deletePortMappingPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.deletePortMappingPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setDiscoverMulticastIf(mIf: String): Unit { TransferContext.writeArguments(STRING to mIf) - TransferContext.callMethod(rawPtr, MethodBindings.setDiscoverMulticastIfPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDiscoverMulticastIfPtr, NIL) } public final fun getDiscoverMulticastIf(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDiscoverMulticastIfPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getDiscoverMulticastIfPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setDiscoverLocalPort(port: Int): Unit { TransferContext.writeArguments(LONG to port.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setDiscoverLocalPortPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDiscoverLocalPortPtr, NIL) } public final fun getDiscoverLocalPort(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDiscoverLocalPortPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDiscoverLocalPortPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setDiscoverIpv6(ipv6: Boolean): Unit { TransferContext.writeArguments(BOOL to ipv6) - TransferContext.callMethod(rawPtr, MethodBindings.setDiscoverIpv6Ptr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDiscoverIpv6Ptr, NIL) } public final fun isDiscoverIpv6(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDiscoverIpv6Ptr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDiscoverIpv6Ptr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/UPNPDevice.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/UPNPDevice.kt index bffb491bbb..10cb2cef05 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/UPNPDevice.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/UPNPDevice.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -107,7 +107,7 @@ public open class UPNPDevice : RefCounted() { */ public final fun isValidGateway(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isValidGatewayPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isValidGatewayPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -116,7 +116,7 @@ public open class UPNPDevice : RefCounted() { */ public final fun queryExternalAddress(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.queryExternalAddressPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.queryExternalAddressPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -133,7 +133,7 @@ public open class UPNPDevice : RefCounted() { duration: Int = 0, ): Int { TransferContext.writeArguments(LONG to port.toLong(), LONG to portInternal.toLong(), STRING to desc, STRING to proto, LONG to duration.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addPortMappingPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.addPortMappingPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -144,73 +144,73 @@ public open class UPNPDevice : RefCounted() { @JvmOverloads public final fun deletePortMapping(port: Int, proto: String = "UDP"): Int { TransferContext.writeArguments(LONG to port.toLong(), STRING to proto) - TransferContext.callMethod(rawPtr, MethodBindings.deletePortMappingPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.deletePortMappingPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setDescriptionUrl(url: String): Unit { TransferContext.writeArguments(STRING to url) - TransferContext.callMethod(rawPtr, MethodBindings.setDescriptionUrlPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDescriptionUrlPtr, NIL) } public final fun getDescriptionUrl(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDescriptionUrlPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getDescriptionUrlPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setServiceType(type: String): Unit { TransferContext.writeArguments(STRING to type) - TransferContext.callMethod(rawPtr, MethodBindings.setServiceTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setServiceTypePtr, NIL) } public final fun getServiceType(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getServiceTypePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getServiceTypePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setIgdControlUrl(url: String): Unit { TransferContext.writeArguments(STRING to url) - TransferContext.callMethod(rawPtr, MethodBindings.setIgdControlUrlPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIgdControlUrlPtr, NIL) } public final fun getIgdControlUrl(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getIgdControlUrlPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getIgdControlUrlPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setIgdServiceType(type: String): Unit { TransferContext.writeArguments(STRING to type) - TransferContext.callMethod(rawPtr, MethodBindings.setIgdServiceTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIgdServiceTypePtr, NIL) } public final fun getIgdServiceType(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getIgdServiceTypePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getIgdServiceTypePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setIgdOurAddr(addr: String): Unit { TransferContext.writeArguments(STRING to addr) - TransferContext.callMethod(rawPtr, MethodBindings.setIgdOurAddrPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIgdOurAddrPtr, NIL) } public final fun getIgdOurAddr(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getIgdOurAddrPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getIgdOurAddrPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setIgdStatus(status: IGDStatus): Unit { TransferContext.writeArguments(LONG to status.id) - TransferContext.callMethod(rawPtr, MethodBindings.setIgdStatusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setIgdStatusPtr, NIL) } public final fun getIgdStatus(): IGDStatus { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getIgdStatusPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getIgdStatusPtr, LONG) return UPNPDevice.IGDStatus.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/UndoRedo.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/UndoRedo.kt index 3c3e9628bc..95fd593d75 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/UndoRedo.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/UndoRedo.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.Signal0 import godot.core.StringName @@ -20,7 +21,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -169,7 +169,7 @@ public open class UndoRedo : Object() { backwardUndoOps: Boolean = false, ): Unit { TransferContext.writeArguments(STRING to name, LONG to mergeMode.id, BOOL to backwardUndoOps) - TransferContext.callMethod(rawPtr, MethodBindings.createActionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.createActionPtr, NIL) } /** @@ -179,7 +179,7 @@ public open class UndoRedo : Object() { @JvmOverloads public final fun commitAction(execute: Boolean = true): Unit { TransferContext.writeArguments(BOOL to execute) - TransferContext.callMethod(rawPtr, MethodBindings.commitActionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.commitActionPtr, NIL) } /** @@ -188,7 +188,7 @@ public open class UndoRedo : Object() { */ public final fun isCommittingAction(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCommittingActionPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCommittingActionPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -197,7 +197,7 @@ public open class UndoRedo : Object() { */ public final fun addDoMethod(callable: Callable): Unit { TransferContext.writeArguments(CALLABLE to callable) - TransferContext.callMethod(rawPtr, MethodBindings.addDoMethodPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addDoMethodPtr, NIL) } /** @@ -205,7 +205,7 @@ public open class UndoRedo : Object() { */ public final fun addUndoMethod(callable: Callable): Unit { TransferContext.writeArguments(CALLABLE to callable) - TransferContext.callMethod(rawPtr, MethodBindings.addUndoMethodPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addUndoMethodPtr, NIL) } /** @@ -217,7 +217,7 @@ public open class UndoRedo : Object() { `value`: Any?, ): Unit { TransferContext.writeArguments(OBJECT to `object`, STRING_NAME to property, ANY to value) - TransferContext.callMethod(rawPtr, MethodBindings.addDoPropertyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addDoPropertyPtr, NIL) } /** @@ -229,7 +229,7 @@ public open class UndoRedo : Object() { `value`: Any?, ): Unit { TransferContext.writeArguments(OBJECT to `object`, STRING_NAME to property, ANY to value) - TransferContext.callMethod(rawPtr, MethodBindings.addUndoPropertyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addUndoPropertyPtr, NIL) } /** @@ -248,7 +248,7 @@ public open class UndoRedo : Object() { */ public final fun addDoReference(`object`: Object?): Unit { TransferContext.writeArguments(OBJECT to `object`) - TransferContext.callMethod(rawPtr, MethodBindings.addDoReferencePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addDoReferencePtr, NIL) } /** @@ -267,7 +267,7 @@ public open class UndoRedo : Object() { */ public final fun addUndoReference(`object`: Object?): Unit { TransferContext.writeArguments(OBJECT to `object`) - TransferContext.callMethod(rawPtr, MethodBindings.addUndoReferencePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addUndoReferencePtr, NIL) } /** @@ -276,7 +276,7 @@ public open class UndoRedo : Object() { */ public final fun startForceKeepInMergeEnds(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.startForceKeepInMergeEndsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.startForceKeepInMergeEndsPtr, NIL) } /** @@ -285,7 +285,7 @@ public open class UndoRedo : Object() { */ public final fun endForceKeepInMergeEnds(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.endForceKeepInMergeEndsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.endForceKeepInMergeEndsPtr, NIL) } /** @@ -293,7 +293,7 @@ public open class UndoRedo : Object() { */ public final fun getHistoryCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHistoryCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getHistoryCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -302,7 +302,7 @@ public open class UndoRedo : Object() { */ public final fun getCurrentAction(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCurrentActionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCurrentActionPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -311,7 +311,7 @@ public open class UndoRedo : Object() { */ public final fun getActionName(id: Int): String { TransferContext.writeArguments(LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getActionNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getActionNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -323,7 +323,7 @@ public open class UndoRedo : Object() { @JvmOverloads public final fun clearHistory(increaseVersion: Boolean = true): Unit { TransferContext.writeArguments(BOOL to increaseVersion) - TransferContext.callMethod(rawPtr, MethodBindings.clearHistoryPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearHistoryPtr, NIL) } /** @@ -331,7 +331,7 @@ public open class UndoRedo : Object() { */ public final fun getCurrentActionName(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCurrentActionNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getCurrentActionNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -340,7 +340,7 @@ public open class UndoRedo : Object() { */ public final fun hasUndo(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasUndoPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasUndoPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -349,7 +349,7 @@ public open class UndoRedo : Object() { */ public final fun hasRedo(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasRedoPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasRedoPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -360,18 +360,18 @@ public open class UndoRedo : Object() { */ public final fun getVersion(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVersionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVersionPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun setMaxSteps(maxSteps: Int): Unit { TransferContext.writeArguments(LONG to maxSteps.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxStepsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxStepsPtr, NIL) } public final fun getMaxSteps(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxStepsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMaxStepsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -380,7 +380,7 @@ public open class UndoRedo : Object() { */ public final fun redo(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.redoPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.redoPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -389,7 +389,7 @@ public open class UndoRedo : Object() { */ public final fun undo(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.undoPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.undoPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/UniformSetCacheRD.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/UniformSetCacheRD.kt index 9e97c21473..cedbe29ecf 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/UniformSetCacheRD.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/UniformSetCacheRD.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.TypeManager import godot.core.VariantArray @@ -14,7 +15,6 @@ import godot.core.VariantParser.ARRAY import godot.core.VariantParser.LONG import godot.core.VariantParser._RID import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VehicleBody3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VehicleBody3D.kt index 2643e65642..21278465c5 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VehicleBody3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VehicleBody3D.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -87,34 +87,34 @@ public open class VehicleBody3D : RigidBody3D() { public final fun setEngineForce(engineForce: Float): Unit { TransferContext.writeArguments(DOUBLE to engineForce.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setEngineForcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEngineForcePtr, NIL) } public final fun getEngineForce(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEngineForcePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getEngineForcePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setBrake(brake: Float): Unit { TransferContext.writeArguments(DOUBLE to brake.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setBrakePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBrakePtr, NIL) } public final fun getBrake(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBrakePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getBrakePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSteering(steering: Float): Unit { TransferContext.writeArguments(DOUBLE to steering.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSteeringPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSteeringPtr, NIL) } public final fun getSteering(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSteeringPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSteeringPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VehicleWheel3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VehicleWheel3D.kt index 26c0e95acb..0ba44804f7 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VehicleWheel3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VehicleWheel3D.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -221,111 +221,111 @@ public open class VehicleWheel3D : Node3D() { public final fun setRadius(length: Float): Unit { TransferContext.writeArguments(DOUBLE to length.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRadiusPtr, NIL) } public final fun getRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSuspensionRestLength(length: Float): Unit { TransferContext.writeArguments(DOUBLE to length.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSuspensionRestLengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSuspensionRestLengthPtr, NIL) } public final fun getSuspensionRestLength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSuspensionRestLengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSuspensionRestLengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSuspensionTravel(length: Float): Unit { TransferContext.writeArguments(DOUBLE to length.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSuspensionTravelPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSuspensionTravelPtr, NIL) } public final fun getSuspensionTravel(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSuspensionTravelPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSuspensionTravelPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSuspensionStiffness(length: Float): Unit { TransferContext.writeArguments(DOUBLE to length.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSuspensionStiffnessPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSuspensionStiffnessPtr, NIL) } public final fun getSuspensionStiffness(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSuspensionStiffnessPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSuspensionStiffnessPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSuspensionMaxForce(length: Float): Unit { TransferContext.writeArguments(DOUBLE to length.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSuspensionMaxForcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSuspensionMaxForcePtr, NIL) } public final fun getSuspensionMaxForce(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSuspensionMaxForcePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSuspensionMaxForcePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDampingCompression(length: Float): Unit { TransferContext.writeArguments(DOUBLE to length.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDampingCompressionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDampingCompressionPtr, NIL) } public final fun getDampingCompression(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDampingCompressionPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDampingCompressionPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDampingRelaxation(length: Float): Unit { TransferContext.writeArguments(DOUBLE to length.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDampingRelaxationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDampingRelaxationPtr, NIL) } public final fun getDampingRelaxation(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDampingRelaxationPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDampingRelaxationPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setUseAsTraction(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setUseAsTractionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseAsTractionPtr, NIL) } public final fun isUsedAsTraction(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUsedAsTractionPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUsedAsTractionPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setUseAsSteering(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setUseAsSteeringPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseAsSteeringPtr, NIL) } public final fun isUsedAsSteering(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUsedAsSteeringPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUsedAsSteeringPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setFrictionSlip(length: Float): Unit { TransferContext.writeArguments(DOUBLE to length.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFrictionSlipPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFrictionSlipPtr, NIL) } public final fun getFrictionSlip(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFrictionSlipPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFrictionSlipPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -334,7 +334,7 @@ public open class VehicleWheel3D : Node3D() { */ public final fun isInContact(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isInContactPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isInContactPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -346,18 +346,18 @@ public open class VehicleWheel3D : Node3D() { */ public final fun getContactBody(): Node3D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getContactBodyPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getContactBodyPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Node3D?) } public final fun setRollInfluence(rollInfluence: Float): Unit { TransferContext.writeArguments(DOUBLE to rollInfluence.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setRollInfluencePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRollInfluencePtr, NIL) } public final fun getRollInfluence(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRollInfluencePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRollInfluencePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -368,7 +368,7 @@ public open class VehicleWheel3D : Node3D() { */ public final fun getSkidinfo(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSkidinfoPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSkidinfoPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -377,40 +377,40 @@ public open class VehicleWheel3D : Node3D() { */ public final fun getRpm(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRpmPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getRpmPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setEngineForce(engineForce: Float): Unit { TransferContext.writeArguments(DOUBLE to engineForce.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setEngineForcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEngineForcePtr, NIL) } public final fun getEngineForce(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEngineForcePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getEngineForcePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setBrake(brake: Float): Unit { TransferContext.writeArguments(DOUBLE to brake.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setBrakePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBrakePtr, NIL) } public final fun getBrake(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBrakePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getBrakePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSteering(steering: Float): Unit { TransferContext.writeArguments(DOUBLE to steering.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSteeringPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSteeringPtr, NIL) } public final fun getSteering(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSteeringPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSteeringPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VideoStream.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VideoStream.kt index f60d4e1d84..d92973b3c8 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VideoStream.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VideoStream.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.NotImplementedError import kotlin.String @@ -52,12 +52,12 @@ public open class VideoStream : Resource() { public final fun setFile(`file`: String): Unit { TransferContext.writeArguments(STRING to file) - TransferContext.callMethod(rawPtr, MethodBindings.setFilePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFilePtr, NIL) } public final fun getFile(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFilePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getFilePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VideoStreamPlayback.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VideoStreamPlayback.kt index 234f622855..614a1a7eaa 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VideoStreamPlayback.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VideoStreamPlayback.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedFloat32Array import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.PACKED_FLOAT_32_ARRAY import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Int @@ -135,7 +135,7 @@ public open class VideoStreamPlayback : Resource() { offset: Int = 0, ): Int { TransferContext.writeArguments(LONG to numFrames.toLong(), PACKED_FLOAT_32_ARRAY to buffer, LONG to offset.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.mixAudioPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.mixAudioPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VideoStreamPlayer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VideoStreamPlayer.kt index bd2d47cc96..5c57bf84b7 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VideoStreamPlayer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VideoStreamPlayer.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.StringName import godot.core.TypeManager @@ -18,7 +19,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -173,12 +173,12 @@ public open class VideoStreamPlayer : Control() { public final fun setStream(stream: VideoStream?): Unit { TransferContext.writeArguments(OBJECT to stream) - TransferContext.callMethod(rawPtr, MethodBindings.setStreamPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStreamPtr, NIL) } public final fun getStream(): VideoStream? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStreamPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getStreamPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as VideoStream?) } @@ -188,7 +188,7 @@ public open class VideoStreamPlayer : Control() { */ public final fun play(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.playPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.playPtr, NIL) } /** @@ -198,7 +198,7 @@ public open class VideoStreamPlayer : Control() { */ public final fun stop(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.stopPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.stopPtr, NIL) } /** @@ -207,62 +207,62 @@ public open class VideoStreamPlayer : Control() { */ public final fun isPlaying(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isPlayingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPlayingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setPaused(paused: Boolean): Unit { TransferContext.writeArguments(BOOL to paused) - TransferContext.callMethod(rawPtr, MethodBindings.setPausedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPausedPtr, NIL) } public final fun isPaused(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isPausedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPausedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setLoop(loop: Boolean): Unit { TransferContext.writeArguments(BOOL to loop) - TransferContext.callMethod(rawPtr, MethodBindings.setLoopPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLoopPtr, NIL) } public final fun hasLoop(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasLoopPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasLoopPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setVolume(volume: Float): Unit { TransferContext.writeArguments(DOUBLE to volume.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVolumePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVolumePtr, NIL) } public final fun getVolume(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVolumePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVolumePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVolumeDb(db: Float): Unit { TransferContext.writeArguments(DOUBLE to db.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVolumeDbPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVolumeDbPtr, NIL) } public final fun getVolumeDb(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVolumeDbPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVolumeDbPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAudioTrack(track: Int): Unit { TransferContext.writeArguments(LONG to track.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setAudioTrackPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAudioTrackPtr, NIL) } public final fun getAudioTrack(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAudioTrackPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAudioTrackPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -271,7 +271,7 @@ public open class VideoStreamPlayer : Control() { */ public final fun getStreamName(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStreamNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getStreamNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -283,62 +283,62 @@ public open class VideoStreamPlayer : Control() { */ public final fun getStreamLength(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStreamLengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getStreamLengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun setStreamPosition(position: Double): Unit { TransferContext.writeArguments(DOUBLE to position) - TransferContext.callMethod(rawPtr, MethodBindings.setStreamPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStreamPositionPtr, NIL) } public final fun getStreamPosition(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStreamPositionPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getStreamPositionPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } public final fun setAutoplay(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setAutoplayPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutoplayPtr, NIL) } public final fun hasAutoplay(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasAutoplayPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasAutoplayPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setExpand(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setExpandPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExpandPtr, NIL) } public final fun hasExpand(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasExpandPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasExpandPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setBufferingMsec(msec: Int): Unit { TransferContext.writeArguments(LONG to msec.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setBufferingMsecPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBufferingMsecPtr, NIL) } public final fun getBufferingMsec(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBufferingMsecPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBufferingMsecPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setBus(bus: StringName): Unit { TransferContext.writeArguments(STRING_NAME to bus) - TransferContext.callMethod(rawPtr, MethodBindings.setBusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBusPtr, NIL) } public final fun getBus(): StringName { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBusPtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getBusPtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } @@ -347,7 +347,7 @@ public open class VideoStreamPlayer : Control() { */ public final fun getVideoTexture(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVideoTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getVideoTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Viewport.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Viewport.kt index 35cf27f8af..232234526b 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Viewport.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Viewport.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.Rect2 import godot.core.Signal0 @@ -30,7 +31,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -770,12 +770,12 @@ public open class Viewport internal constructor() : Node() { public final fun setWorld2d(world2d: World2D?): Unit { TransferContext.writeArguments(OBJECT to world2d) - TransferContext.callMethod(rawPtr, MethodBindings.setWorld2dPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setWorld2dPtr, NIL) } public final fun getWorld2d(): World2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWorld2dPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getWorld2dPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as World2D?) } @@ -785,29 +785,29 @@ public open class Viewport internal constructor() : Node() { */ public final fun findWorld2d(): World2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.findWorld2dPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.findWorld2dPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as World2D?) } public final fun setCanvasTransform(xform: Transform2D): Unit { TransferContext.writeArguments(TRANSFORM2D to xform) - TransferContext.callMethod(rawPtr, MethodBindings.setCanvasTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCanvasTransformPtr, NIL) } public final fun getCanvasTransform(): Transform2D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCanvasTransformPtr, TRANSFORM2D) + TransferContext.callMethod(ptr, MethodBindings.getCanvasTransformPtr, TRANSFORM2D) return (TransferContext.readReturnValue(TRANSFORM2D) as Transform2D) } public final fun setGlobalCanvasTransform(xform: Transform2D): Unit { TransferContext.writeArguments(TRANSFORM2D to xform) - TransferContext.callMethod(rawPtr, MethodBindings.setGlobalCanvasTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGlobalCanvasTransformPtr, NIL) } public final fun getGlobalCanvasTransform(): Transform2D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGlobalCanvasTransformPtr, TRANSFORM2D) + TransferContext.callMethod(ptr, MethodBindings.getGlobalCanvasTransformPtr, TRANSFORM2D) return (TransferContext.readReturnValue(TRANSFORM2D) as Transform2D) } @@ -817,7 +817,7 @@ public open class Viewport internal constructor() : Node() { */ public final fun getFinalTransform(): Transform2D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFinalTransformPtr, TRANSFORM2D) + TransferContext.callMethod(ptr, MethodBindings.getFinalTransformPtr, TRANSFORM2D) return (TransferContext.readReturnValue(TRANSFORM2D) as Transform2D) } @@ -827,7 +827,7 @@ public open class Viewport internal constructor() : Node() { */ public final fun getScreenTransform(): Transform2D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScreenTransformPtr, TRANSFORM2D) + TransferContext.callMethod(ptr, MethodBindings.getScreenTransformPtr, TRANSFORM2D) return (TransferContext.readReturnValue(TRANSFORM2D) as Transform2D) } @@ -836,106 +836,106 @@ public open class Viewport internal constructor() : Node() { */ public final fun getVisibleRect(): Rect2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVisibleRectPtr, RECT2) + TransferContext.callMethod(ptr, MethodBindings.getVisibleRectPtr, RECT2) return (TransferContext.readReturnValue(RECT2) as Rect2) } public final fun setTransparentBackground(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setTransparentBackgroundPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTransparentBackgroundPtr, NIL) } public final fun hasTransparentBackground(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasTransparentBackgroundPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasTransparentBackgroundPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setUseHdr2d(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setUseHdr2dPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseHdr2dPtr, NIL) } public final fun isUsingHdr2d(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUsingHdr2dPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUsingHdr2dPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setMsaa2d(msaa: MSAA): Unit { TransferContext.writeArguments(LONG to msaa.id) - TransferContext.callMethod(rawPtr, MethodBindings.setMsaa2dPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMsaa2dPtr, NIL) } public final fun getMsaa2d(): MSAA { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMsaa2dPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMsaa2dPtr, LONG) return Viewport.MSAA.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setMsaa3d(msaa: MSAA): Unit { TransferContext.writeArguments(LONG to msaa.id) - TransferContext.callMethod(rawPtr, MethodBindings.setMsaa3dPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMsaa3dPtr, NIL) } public final fun getMsaa3d(): MSAA { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMsaa3dPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMsaa3dPtr, LONG) return Viewport.MSAA.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setScreenSpaceAa(screenSpaceAa: ScreenSpaceAA): Unit { TransferContext.writeArguments(LONG to screenSpaceAa.id) - TransferContext.callMethod(rawPtr, MethodBindings.setScreenSpaceAaPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setScreenSpaceAaPtr, NIL) } public final fun getScreenSpaceAa(): ScreenSpaceAA { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScreenSpaceAaPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getScreenSpaceAaPtr, LONG) return Viewport.ScreenSpaceAA.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setUseTaa(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setUseTaaPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseTaaPtr, NIL) } public final fun isUsingTaa(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUsingTaaPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUsingTaaPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setUseDebanding(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setUseDebandingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseDebandingPtr, NIL) } public final fun isUsingDebanding(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUsingDebandingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUsingDebandingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setUseOcclusionCulling(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setUseOcclusionCullingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseOcclusionCullingPtr, NIL) } public final fun isUsingOcclusionCulling(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUsingOcclusionCullingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUsingOcclusionCullingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDebugDraw(debugDraw: DebugDraw): Unit { TransferContext.writeArguments(LONG to debugDraw.id) - TransferContext.callMethod(rawPtr, MethodBindings.setDebugDrawPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDebugDrawPtr, NIL) } public final fun getDebugDraw(): DebugDraw { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDebugDrawPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDebugDrawPtr, LONG) return Viewport.DebugDraw.from(TransferContext.readReturnValue(LONG) as Long) } @@ -945,7 +945,7 @@ public open class Viewport internal constructor() : Node() { */ public final fun getRenderInfo(type: RenderInfoType, info: RenderInfo): Int { TransferContext.writeArguments(LONG to type.id, LONG to info.id) - TransferContext.callMethod(rawPtr, MethodBindings.getRenderInfoPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getRenderInfoPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -962,40 +962,40 @@ public open class Viewport internal constructor() : Node() { */ public final fun getTexture(): ViewportTexture? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as ViewportTexture?) } public final fun setPhysicsObjectPicking(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setPhysicsObjectPickingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPhysicsObjectPickingPtr, NIL) } public final fun getPhysicsObjectPicking(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPhysicsObjectPickingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getPhysicsObjectPickingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setPhysicsObjectPickingSort(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setPhysicsObjectPickingSortPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPhysicsObjectPickingSortPtr, NIL) } public final fun getPhysicsObjectPickingSort(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPhysicsObjectPickingSortPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getPhysicsObjectPickingSortPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setPhysicsObjectPickingFirstOnly(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setPhysicsObjectPickingFirstOnlyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPhysicsObjectPickingFirstOnlyPtr, NIL) } public final fun getPhysicsObjectPickingFirstOnly(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPhysicsObjectPickingFirstOnlyPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getPhysicsObjectPickingFirstOnlyPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1004,7 +1004,7 @@ public open class Viewport internal constructor() : Node() { */ public final fun getViewportRid(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getViewportRidPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getViewportRidPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -1014,7 +1014,7 @@ public open class Viewport internal constructor() : Node() { */ public final fun pushTextInput(text: String): Unit { TransferContext.writeArguments(STRING to text) - TransferContext.callMethod(rawPtr, MethodBindings.pushTextInputPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pushTextInputPtr, NIL) } /** @@ -1041,7 +1041,7 @@ public open class Viewport internal constructor() : Node() { @JvmOverloads public final fun pushInput(event: InputEvent?, inLocalCoords: Boolean = false): Unit { TransferContext.writeArguments(OBJECT to event, BOOL to inLocalCoords) - TransferContext.callMethod(rawPtr, MethodBindings.pushInputPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pushInputPtr, NIL) } /** @@ -1064,7 +1064,7 @@ public open class Viewport internal constructor() : Node() { @JvmOverloads public final fun pushUnhandledInput(event: InputEvent?, inLocalCoords: Boolean = false): Unit { TransferContext.writeArguments(OBJECT to event, BOOL to inLocalCoords) - TransferContext.callMethod(rawPtr, MethodBindings.pushUnhandledInputPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pushUnhandledInputPtr, NIL) } /** @@ -1072,7 +1072,7 @@ public open class Viewport internal constructor() : Node() { */ public final fun getMousePosition(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMousePositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getMousePositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -1084,7 +1084,7 @@ public open class Viewport internal constructor() : Node() { */ public final fun warpMouse(position: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.warpMousePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.warpMousePtr, NIL) } /** @@ -1095,7 +1095,7 @@ public open class Viewport internal constructor() : Node() { */ public final fun updateMouseCursorState(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.updateMouseCursorStatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.updateMouseCursorStatePtr, NIL) } /** @@ -1103,7 +1103,7 @@ public open class Viewport internal constructor() : Node() { */ public final fun guiGetDragData(): Any? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.guiGetDragDataPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.guiGetDragDataPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -1114,7 +1114,7 @@ public open class Viewport internal constructor() : Node() { */ public final fun guiIsDragging(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.guiIsDraggingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.guiIsDraggingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1123,7 +1123,7 @@ public open class Viewport internal constructor() : Node() { */ public final fun guiIsDragSuccessful(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.guiIsDragSuccessfulPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.guiIsDragSuccessfulPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1133,7 +1133,7 @@ public open class Viewport internal constructor() : Node() { */ public final fun guiReleaseFocus(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.guiReleaseFocusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.guiReleaseFocusPtr, NIL) } /** @@ -1142,7 +1142,7 @@ public open class Viewport internal constructor() : Node() { */ public final fun guiGetFocusOwner(): Control? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.guiGetFocusOwnerPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.guiGetFocusOwnerPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Control?) } @@ -1155,73 +1155,73 @@ public open class Viewport internal constructor() : Node() { */ public final fun guiGetHoveredControl(): Control? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.guiGetHoveredControlPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.guiGetHoveredControlPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Control?) } public final fun setDisableInput(disable: Boolean): Unit { TransferContext.writeArguments(BOOL to disable) - TransferContext.callMethod(rawPtr, MethodBindings.setDisableInputPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDisableInputPtr, NIL) } public final fun isInputDisabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isInputDisabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isInputDisabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setPositionalShadowAtlasSize(size: Int): Unit { TransferContext.writeArguments(LONG to size.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setPositionalShadowAtlasSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPositionalShadowAtlasSizePtr, NIL) } public final fun getPositionalShadowAtlasSize(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPositionalShadowAtlasSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPositionalShadowAtlasSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setPositionalShadowAtlas16Bits(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setPositionalShadowAtlas16BitsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPositionalShadowAtlas16BitsPtr, NIL) } public final fun getPositionalShadowAtlas16Bits(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPositionalShadowAtlas16BitsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getPositionalShadowAtlas16BitsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSnapControlsToPixels(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setSnapControlsToPixelsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSnapControlsToPixelsPtr, NIL) } public final fun isSnapControlsToPixelsEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSnapControlsToPixelsEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSnapControlsToPixelsEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSnap2dTransformsToPixel(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setSnap2dTransformsToPixelPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSnap2dTransformsToPixelPtr, NIL) } public final fun isSnap2dTransformsToPixelEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSnap2dTransformsToPixelEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSnap2dTransformsToPixelEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSnap2dVerticesToPixel(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setSnap2dVerticesToPixelPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSnap2dVerticesToPixelPtr, NIL) } public final fun isSnap2dVerticesToPixelEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSnap2dVerticesToPixelEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSnap2dVerticesToPixelEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1234,8 +1234,7 @@ public open class Viewport internal constructor() : Node() { public final fun setPositionalShadowAtlasQuadrantSubdiv(quadrant: Int, subdiv: PositionalShadowAtlasQuadrantSubdiv): Unit { TransferContext.writeArguments(LONG to quadrant.toLong(), LONG to subdiv.id) - TransferContext.callMethod(rawPtr, MethodBindings.setPositionalShadowAtlasQuadrantSubdivPtr, - NIL) + TransferContext.callMethod(ptr, MethodBindings.setPositionalShadowAtlasQuadrantSubdivPtr, NIL) } /** @@ -1244,8 +1243,7 @@ public open class Viewport internal constructor() : Node() { public final fun getPositionalShadowAtlasQuadrantSubdiv(quadrant: Int): PositionalShadowAtlasQuadrantSubdiv { TransferContext.writeArguments(LONG to quadrant.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getPositionalShadowAtlasQuadrantSubdivPtr, - LONG) + TransferContext.callMethod(ptr, MethodBindings.getPositionalShadowAtlasQuadrantSubdivPtr, LONG) return Viewport.PositionalShadowAtlasQuadrantSubdiv.from(TransferContext.readReturnValue(LONG) as Long) } @@ -1255,7 +1253,7 @@ public open class Viewport internal constructor() : Node() { */ public final fun setInputAsHandled(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.setInputAsHandledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInputAsHandledPtr, NIL) } /** @@ -1268,40 +1266,40 @@ public open class Viewport internal constructor() : Node() { */ public final fun isInputHandled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isInputHandledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isInputHandledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setHandleInputLocally(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setHandleInputLocallyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHandleInputLocallyPtr, NIL) } public final fun isHandlingInputLocally(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isHandlingInputLocallyPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isHandlingInputLocallyPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDefaultCanvasItemTextureFilter(mode: DefaultCanvasItemTextureFilter): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setDefaultCanvasItemTextureFilterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDefaultCanvasItemTextureFilterPtr, NIL) } public final fun getDefaultCanvasItemTextureFilter(): DefaultCanvasItemTextureFilter { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDefaultCanvasItemTextureFilterPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDefaultCanvasItemTextureFilterPtr, LONG) return Viewport.DefaultCanvasItemTextureFilter.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setEmbeddingSubwindows(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setEmbeddingSubwindowsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEmbeddingSubwindowsPtr, NIL) } public final fun isEmbeddingSubwindows(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isEmbeddingSubwindowsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isEmbeddingSubwindowsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1311,18 +1309,18 @@ public open class Viewport internal constructor() : Node() { */ public final fun getEmbeddedSubwindows(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEmbeddedSubwindowsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getEmbeddedSubwindowsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } public final fun setCanvasCullMask(mask: Long): Unit { TransferContext.writeArguments(LONG to mask) - TransferContext.callMethod(rawPtr, MethodBindings.setCanvasCullMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCanvasCullMaskPtr, NIL) } public final fun getCanvasCullMask(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCanvasCullMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCanvasCullMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -1332,7 +1330,7 @@ public open class Viewport internal constructor() : Node() { */ public final fun setCanvasCullMaskBit(layer: Long, enable: Boolean): Unit { TransferContext.writeArguments(LONG to layer, BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setCanvasCullMaskBitPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCanvasCullMaskBitPtr, NIL) } /** @@ -1340,62 +1338,62 @@ public open class Viewport internal constructor() : Node() { */ public final fun getCanvasCullMaskBit(layer: Long): Boolean { TransferContext.writeArguments(LONG to layer) - TransferContext.callMethod(rawPtr, MethodBindings.getCanvasCullMaskBitPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getCanvasCullMaskBitPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDefaultCanvasItemTextureRepeat(mode: DefaultCanvasItemTextureRepeat): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setDefaultCanvasItemTextureRepeatPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDefaultCanvasItemTextureRepeatPtr, NIL) } public final fun getDefaultCanvasItemTextureRepeat(): DefaultCanvasItemTextureRepeat { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDefaultCanvasItemTextureRepeatPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDefaultCanvasItemTextureRepeatPtr, LONG) return Viewport.DefaultCanvasItemTextureRepeat.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setSdfOversize(oversize: SDFOversize): Unit { TransferContext.writeArguments(LONG to oversize.id) - TransferContext.callMethod(rawPtr, MethodBindings.setSdfOversizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSdfOversizePtr, NIL) } public final fun getSdfOversize(): SDFOversize { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSdfOversizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSdfOversizePtr, LONG) return Viewport.SDFOversize.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setSdfScale(scale: SDFScale): Unit { TransferContext.writeArguments(LONG to scale.id) - TransferContext.callMethod(rawPtr, MethodBindings.setSdfScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSdfScalePtr, NIL) } public final fun getSdfScale(): SDFScale { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSdfScalePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSdfScalePtr, LONG) return Viewport.SDFScale.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setMeshLodThreshold(pixels: Float): Unit { TransferContext.writeArguments(DOUBLE to pixels.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMeshLodThresholdPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMeshLodThresholdPtr, NIL) } public final fun getMeshLodThreshold(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMeshLodThresholdPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMeshLodThresholdPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setAsAudioListener2d(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setAsAudioListener2dPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAsAudioListener2dPtr, NIL) } public final fun isAudioListener2d(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isAudioListener2dPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isAudioListener2dPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1404,18 +1402,18 @@ public open class Viewport internal constructor() : Node() { */ public final fun getCamera2d(): Camera2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCamera2dPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getCamera2dPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Camera2D?) } public final fun setWorld3d(world3d: World3D?): Unit { TransferContext.writeArguments(OBJECT to world3d) - TransferContext.callMethod(rawPtr, MethodBindings.setWorld3dPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setWorld3dPtr, NIL) } public final fun getWorld3d(): World3D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWorld3dPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getWorld3dPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as World3D?) } @@ -1425,18 +1423,18 @@ public open class Viewport internal constructor() : Node() { */ public final fun findWorld3d(): World3D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.findWorld3dPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.findWorld3dPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as World3D?) } public final fun setUseOwnWorld3d(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setUseOwnWorld3dPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseOwnWorld3dPtr, NIL) } public final fun isUsingOwnWorld3d(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUsingOwnWorld3dPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUsingOwnWorld3dPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1445,117 +1443,117 @@ public open class Viewport internal constructor() : Node() { */ public final fun getCamera3d(): Camera3D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCamera3dPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getCamera3dPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Camera3D?) } public final fun setAsAudioListener3d(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setAsAudioListener3dPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAsAudioListener3dPtr, NIL) } public final fun isAudioListener3d(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isAudioListener3dPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isAudioListener3dPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDisable3d(disable: Boolean): Unit { TransferContext.writeArguments(BOOL to disable) - TransferContext.callMethod(rawPtr, MethodBindings.setDisable3dPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDisable3dPtr, NIL) } public final fun is3dDisabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.is3dDisabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.is3dDisabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setUseXr(use: Boolean): Unit { TransferContext.writeArguments(BOOL to use) - TransferContext.callMethod(rawPtr, MethodBindings.setUseXrPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseXrPtr, NIL) } public final fun isUsingXr(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUsingXrPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUsingXrPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setScaling3dMode(scaling3dMode: Scaling3DMode): Unit { TransferContext.writeArguments(LONG to scaling3dMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setScaling3dModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setScaling3dModePtr, NIL) } public final fun getScaling3dMode(): Scaling3DMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScaling3dModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getScaling3dModePtr, LONG) return Viewport.Scaling3DMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setScaling3dScale(scale: Float): Unit { TransferContext.writeArguments(DOUBLE to scale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setScaling3dScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setScaling3dScalePtr, NIL) } public final fun getScaling3dScale(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScaling3dScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getScaling3dScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setFsrSharpness(fsrSharpness: Float): Unit { TransferContext.writeArguments(DOUBLE to fsrSharpness.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setFsrSharpnessPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFsrSharpnessPtr, NIL) } public final fun getFsrSharpness(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFsrSharpnessPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFsrSharpnessPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setTextureMipmapBias(textureMipmapBias: Float): Unit { TransferContext.writeArguments(DOUBLE to textureMipmapBias.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureMipmapBiasPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureMipmapBiasPtr, NIL) } public final fun getTextureMipmapBias(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextureMipmapBiasPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getTextureMipmapBiasPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVrsMode(mode: VRSMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setVrsModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVrsModePtr, NIL) } public final fun getVrsMode(): VRSMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVrsModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVrsModePtr, LONG) return Viewport.VRSMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setVrsUpdateMode(mode: VRSUpdateMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setVrsUpdateModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVrsUpdateModePtr, NIL) } public final fun getVrsUpdateMode(): VRSUpdateMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVrsUpdateModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVrsUpdateModePtr, LONG) return Viewport.VRSUpdateMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setVrsTexture(texture: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setVrsTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVrsTexturePtr, NIL) } public final fun getVrsTexture(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVrsTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getVrsTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ViewportTexture.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ViewportTexture.kt index 68aa0c7187..552b4305d2 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ViewportTexture.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ViewportTexture.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -51,12 +51,12 @@ public open class ViewportTexture : Texture2D() { public final fun setViewportPathInScene(path: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to path) - TransferContext.callMethod(rawPtr, MethodBindings.setViewportPathInScenePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setViewportPathInScenePtr, NIL) } public final fun getViewportPathInScene(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getViewportPathInScenePtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getViewportPathInScenePtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenEnabler2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenEnabler2D.kt index daf450e302..92654723e0 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenEnabler2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenEnabler2D.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -64,23 +64,23 @@ public open class VisibleOnScreenEnabler2D : VisibleOnScreenNotifier2D() { public final fun setEnableMode(mode: EnableMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setEnableModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnableModePtr, NIL) } public final fun getEnableMode(): EnableMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnableModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getEnableModePtr, LONG) return VisibleOnScreenEnabler2D.EnableMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setEnableNodePath(path: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to path) - TransferContext.callMethod(rawPtr, MethodBindings.setEnableNodePathPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnableNodePathPtr, NIL) } public final fun getEnableNodePath(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnableNodePathPtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getEnableNodePathPtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenEnabler3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenEnabler3D.kt index 25ada6b195..127de90247 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenEnabler3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenEnabler3D.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -65,23 +65,23 @@ public open class VisibleOnScreenEnabler3D : VisibleOnScreenNotifier3D() { public final fun setEnableMode(mode: EnableMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setEnableModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnableModePtr, NIL) } public final fun getEnableMode(): EnableMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnableModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getEnableModePtr, LONG) return VisibleOnScreenEnabler3D.EnableMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setEnableNodePath(path: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to path) - TransferContext.callMethod(rawPtr, MethodBindings.setEnableNodePathPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnableNodePathPtr, NIL) } public final fun getEnableNodePath(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnableNodePathPtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getEnableNodePathPtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenNotifier2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenNotifier2D.kt index 55cf15e216..ba3a8ead7e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenNotifier2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenNotifier2D.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Rect2 import godot.core.Signal0 import godot.core.TypeManager @@ -16,7 +17,6 @@ import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser.RECT2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -86,12 +86,12 @@ public open class VisibleOnScreenNotifier2D : Node2D() { public final fun setRect(rect: Rect2): Unit { TransferContext.writeArguments(RECT2 to rect) - TransferContext.callMethod(rawPtr, MethodBindings.setRectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRectPtr, NIL) } public final fun getRect(): Rect2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRectPtr, RECT2) + TransferContext.callMethod(ptr, MethodBindings.getRectPtr, RECT2) return (TransferContext.readReturnValue(RECT2) as Rect2) } @@ -103,7 +103,7 @@ public open class VisibleOnScreenNotifier2D : Node2D() { */ public final fun isOnScreen(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isOnScreenPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isOnScreenPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenNotifier3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenNotifier3D.kt index f6e5b9d709..fd63a9c630 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenNotifier3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenNotifier3D.kt @@ -9,13 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.AABB import godot.core.Signal0 import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -87,7 +87,7 @@ public open class VisibleOnScreenNotifier3D : VisualInstance3D() { public final fun setAabb(rect: AABB): Unit { TransferContext.writeArguments(godot.core.VariantParser.AABB to rect) - TransferContext.callMethod(rawPtr, MethodBindings.setAabbPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAabbPtr, NIL) } /** @@ -98,7 +98,7 @@ public open class VisibleOnScreenNotifier3D : VisualInstance3D() { */ public final fun isOnScreen(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isOnScreenPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isOnScreenPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualInstance3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualInstance3D.kt index 389ee01780..95d875be65 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualInstance3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualInstance3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.AABB import godot.core.RID import godot.core.TypeManager @@ -16,7 +17,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser._RID import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -103,7 +103,7 @@ public open class VisualInstance3D : Node3D() { */ public final fun setBase(base: RID): Unit { TransferContext.writeArguments(_RID to base) - TransferContext.callMethod(rawPtr, MethodBindings.setBasePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBasePtr, NIL) } /** @@ -112,7 +112,7 @@ public open class VisualInstance3D : Node3D() { */ public final fun getBase(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBasePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getBasePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -123,18 +123,18 @@ public open class VisualInstance3D : Node3D() { */ public final fun getInstance(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInstancePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getInstancePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } public final fun setLayerMask(mask: Long): Unit { TransferContext.writeArguments(LONG to mask) - TransferContext.callMethod(rawPtr, MethodBindings.setLayerMaskPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLayerMaskPtr, NIL) } public final fun getLayerMask(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLayerMaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLayerMaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -144,7 +144,7 @@ public open class VisualInstance3D : Node3D() { */ public final fun setLayerMaskValue(layerNumber: Int, `value`: Boolean): Unit { TransferContext.writeArguments(LONG to layerNumber.toLong(), BOOL to value) - TransferContext.callMethod(rawPtr, MethodBindings.setLayerMaskValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLayerMaskValuePtr, NIL) } /** @@ -153,29 +153,29 @@ public open class VisualInstance3D : Node3D() { */ public final fun getLayerMaskValue(layerNumber: Int): Boolean { TransferContext.writeArguments(LONG to layerNumber.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getLayerMaskValuePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getLayerMaskValuePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSortingOffset(offset: Float): Unit { TransferContext.writeArguments(DOUBLE to offset.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setSortingOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSortingOffsetPtr, NIL) } public final fun getSortingOffset(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSortingOffsetPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getSortingOffsetPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setSortingUseAabbCenter(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setSortingUseAabbCenterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSortingUseAabbCenterPtr, NIL) } public final fun isSortingUseAabbCenter(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isSortingUseAabbCenterPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isSortingUseAabbCenterPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -184,7 +184,7 @@ public open class VisualInstance3D : Node3D() { */ public final fun getAabb(): AABB { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAabbPtr, godot.core.VariantParser.AABB) + TransferContext.callMethod(ptr, MethodBindings.getAabbPtr, godot.core.VariantParser.AABB) return (TransferContext.readReturnValue(godot.core.VariantParser.AABB) as AABB) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShader.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShader.kt index 0f85745c60..8d288e78b3 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShader.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShader.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedInt32Array import godot.core.StringName @@ -25,7 +26,6 @@ import godot.core.VariantParser.STRING_NAME import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -88,7 +88,7 @@ public open class VisualShader : Shader() { */ public final fun setMode(mode: Shader.Mode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setModePtr, NIL) } /** @@ -101,7 +101,7 @@ public open class VisualShader : Shader() { id: Int, ): Unit { TransferContext.writeArguments(LONG to type.id, OBJECT to node, VECTOR2 to position, LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addNodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addNodePtr, NIL) } /** @@ -109,7 +109,7 @@ public open class VisualShader : Shader() { */ public final fun getNode(type: Type, id: Int): VisualShaderNode? { TransferContext.writeArguments(LONG to type.id, LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getNodePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getNodePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as VisualShaderNode?) } @@ -122,7 +122,7 @@ public open class VisualShader : Shader() { position: Vector2, ): Unit { TransferContext.writeArguments(LONG to type.id, LONG to id.toLong(), VECTOR2 to position) - TransferContext.callMethod(rawPtr, MethodBindings.setNodePositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNodePositionPtr, NIL) } /** @@ -130,7 +130,7 @@ public open class VisualShader : Shader() { */ public final fun getNodePosition(type: Type, id: Int): Vector2 { TransferContext.writeArguments(LONG to type.id, LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getNodePositionPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getNodePositionPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -139,7 +139,7 @@ public open class VisualShader : Shader() { */ public final fun getNodeList(type: Type): PackedInt32Array { TransferContext.writeArguments(LONG to type.id) - TransferContext.callMethod(rawPtr, MethodBindings.getNodeListPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getNodeListPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } @@ -148,7 +148,7 @@ public open class VisualShader : Shader() { */ public final fun getValidNodeId(type: Type): Int { TransferContext.writeArguments(LONG to type.id) - TransferContext.callMethod(rawPtr, MethodBindings.getValidNodeIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getValidNodeIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -157,7 +157,7 @@ public open class VisualShader : Shader() { */ public final fun removeNode(type: Type, id: Int): Unit { TransferContext.writeArguments(LONG to type.id, LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeNodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeNodePtr, NIL) } /** @@ -169,7 +169,7 @@ public open class VisualShader : Shader() { newClass: StringName, ): Unit { TransferContext.writeArguments(LONG to type.id, LONG to id.toLong(), STRING_NAME to newClass) - TransferContext.callMethod(rawPtr, MethodBindings.replaceNodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.replaceNodePtr, NIL) } /** @@ -183,7 +183,7 @@ public open class VisualShader : Shader() { toPort: Int, ): Boolean { TransferContext.writeArguments(LONG to type.id, LONG to fromNode.toLong(), LONG to fromPort.toLong(), LONG to toNode.toLong(), LONG to toPort.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isNodeConnectionPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isNodeConnectionPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -198,7 +198,7 @@ public open class VisualShader : Shader() { toPort: Int, ): Boolean { TransferContext.writeArguments(LONG to type.id, LONG to fromNode.toLong(), LONG to fromPort.toLong(), LONG to toNode.toLong(), LONG to toPort.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.canConnectNodesPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.canConnectNodesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -213,7 +213,7 @@ public open class VisualShader : Shader() { toPort: Int, ): Error { TransferContext.writeArguments(LONG to type.id, LONG to fromNode.toLong(), LONG to fromPort.toLong(), LONG to toNode.toLong(), LONG to toPort.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.connectNodesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.connectNodesPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -228,7 +228,7 @@ public open class VisualShader : Shader() { toPort: Int, ): Unit { TransferContext.writeArguments(LONG to type.id, LONG to fromNode.toLong(), LONG to fromPort.toLong(), LONG to toNode.toLong(), LONG to toPort.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.disconnectNodesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.disconnectNodesPtr, NIL) } /** @@ -243,7 +243,7 @@ public open class VisualShader : Shader() { toPort: Int, ): Unit { TransferContext.writeArguments(LONG to type.id, LONG to fromNode.toLong(), LONG to fromPort.toLong(), LONG to toNode.toLong(), LONG to toPort.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.connectNodesForcedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.connectNodesForcedPtr, NIL) } /** @@ -251,18 +251,18 @@ public open class VisualShader : Shader() { */ public final fun getNodeConnections(type: Type): VariantArray> { TransferContext.writeArguments(LONG to type.id) - TransferContext.callMethod(rawPtr, MethodBindings.getNodeConnectionsPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getNodeConnectionsPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray>) } public final fun setGraphOffset(offset: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to offset) - TransferContext.callMethod(rawPtr, MethodBindings.setGraphOffsetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setGraphOffsetPtr, NIL) } public final fun getGraphOffset(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGraphOffsetPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getGraphOffsetPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -275,7 +275,7 @@ public open class VisualShader : Shader() { frame: Int, ): Unit { TransferContext.writeArguments(LONG to type.id, LONG to id.toLong(), LONG to frame.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.attachNodeToFramePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.attachNodeToFramePtr, NIL) } /** @@ -283,7 +283,7 @@ public open class VisualShader : Shader() { */ public final fun detachNodeFromFrame(type: Type, id: Int): Unit { TransferContext.writeArguments(LONG to type.id, LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.detachNodeFromFramePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.detachNodeFromFramePtr, NIL) } /** @@ -295,7 +295,7 @@ public open class VisualShader : Shader() { type: VaryingType, ): Unit { TransferContext.writeArguments(STRING to name, LONG to mode.id, LONG to type.id) - TransferContext.callMethod(rawPtr, MethodBindings.addVaryingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addVaryingPtr, NIL) } /** @@ -304,7 +304,7 @@ public open class VisualShader : Shader() { */ public final fun removeVarying(name: String): Unit { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.removeVaryingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeVaryingPtr, NIL) } /** @@ -312,7 +312,7 @@ public open class VisualShader : Shader() { */ public final fun hasVarying(name: String): Boolean { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.hasVaryingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasVaryingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNode.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNode.kt index 4d84bb367f..7549adf152 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNode.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNode.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantArray import godot.core.VariantCaster.ANY @@ -14,7 +15,6 @@ import godot.core.VariantParser.ARRAY import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Int import kotlin.Long @@ -72,18 +72,18 @@ public open class VisualShaderNode internal constructor() : Resource() { */ public final fun getDefaultInputPort(type: PortType): Int { TransferContext.writeArguments(LONG to type.id) - TransferContext.callMethod(rawPtr, MethodBindings.getDefaultInputPortPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDefaultInputPortPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setOutputPortForPreview(port: Int): Unit { TransferContext.writeArguments(LONG to port.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setOutputPortForPreviewPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOutputPortForPreviewPtr, NIL) } public final fun getOutputPortForPreview(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOutputPortForPreviewPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOutputPortForPreviewPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -97,7 +97,7 @@ public open class VisualShaderNode internal constructor() : Resource() { prevValue: Any? = null, ): Unit { TransferContext.writeArguments(LONG to port.toLong(), ANY to value, ANY to prevValue) - TransferContext.callMethod(rawPtr, MethodBindings.setInputPortDefaultValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInputPortDefaultValuePtr, NIL) } /** @@ -105,7 +105,7 @@ public open class VisualShaderNode internal constructor() : Resource() { */ public final fun getInputPortDefaultValue(port: Int): Any? { TransferContext.writeArguments(LONG to port.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getInputPortDefaultValuePtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getInputPortDefaultValuePtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -114,7 +114,7 @@ public open class VisualShaderNode internal constructor() : Resource() { */ public final fun removeInputPortDefaultValue(port: Int): Unit { TransferContext.writeArguments(LONG to port.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeInputPortDefaultValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeInputPortDefaultValuePtr, NIL) } /** @@ -122,7 +122,7 @@ public open class VisualShaderNode internal constructor() : Resource() { */ public final fun clearDefaultInputValues(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearDefaultInputValuesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearDefaultInputValuesPtr, NIL) } /** @@ -131,7 +131,7 @@ public open class VisualShaderNode internal constructor() : Resource() { */ public final fun setDefaultInputValues(values: VariantArray): Unit { TransferContext.writeArguments(ARRAY to values) - TransferContext.callMethod(rawPtr, MethodBindings.setDefaultInputValuesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDefaultInputValuesPtr, NIL) } /** @@ -140,18 +140,18 @@ public open class VisualShaderNode internal constructor() : Resource() { */ public final fun getDefaultInputValues(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDefaultInputValuesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getDefaultInputValuesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } public final fun setFrame(frame: Int): Unit { TransferContext.writeArguments(LONG to frame.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setFramePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFramePtr, NIL) } public final fun getFrame(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFramePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFramePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeBillboard.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeBillboard.kt index 5facab4693..8568470ce5 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeBillboard.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeBillboard.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -55,23 +55,23 @@ public open class VisualShaderNodeBillboard : VisualShaderNode() { public final fun setBillboardType(billboardType: BillboardType): Unit { TransferContext.writeArguments(LONG to billboardType.id) - TransferContext.callMethod(rawPtr, MethodBindings.setBillboardTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBillboardTypePtr, NIL) } public final fun getBillboardType(): BillboardType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBillboardTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBillboardTypePtr, LONG) return VisualShaderNodeBillboard.BillboardType.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setKeepScaleEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setKeepScaleEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setKeepScaleEnabledPtr, NIL) } public final fun isKeepScaleEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isKeepScaleEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isKeepScaleEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeBooleanConstant.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeBooleanConstant.kt index 5882d02ddd..a5152f0532 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeBooleanConstant.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeBooleanConstant.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -41,12 +41,12 @@ public open class VisualShaderNodeBooleanConstant : VisualShaderNodeConstant() { public final fun setConstant(constant: Boolean): Unit { TransferContext.writeArguments(BOOL to constant) - TransferContext.callMethod(rawPtr, MethodBindings.setConstantPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setConstantPtr, NIL) } public final fun getConstant(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConstantPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getConstantPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeBooleanParameter.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeBooleanParameter.kt index b53aeb5cbc..f4bcc4595c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeBooleanParameter.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeBooleanParameter.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -51,23 +51,23 @@ public open class VisualShaderNodeBooleanParameter : VisualShaderNodeParameter() public final fun setDefaultValueEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDefaultValueEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDefaultValueEnabledPtr, NIL) } public final fun isDefaultValueEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDefaultValueEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDefaultValueEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDefaultValue(`value`: Boolean): Unit { TransferContext.writeArguments(BOOL to value) - TransferContext.callMethod(rawPtr, MethodBindings.setDefaultValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDefaultValuePtr, NIL) } public final fun getDefaultValue(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDefaultValuePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getDefaultValuePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeClamp.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeClamp.kt index db1c287a6a..f1002748fd 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeClamp.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeClamp.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -40,12 +40,12 @@ public open class VisualShaderNodeClamp : VisualShaderNode() { public final fun setOpType(opType: OpType): Unit { TransferContext.writeArguments(LONG to opType.id) - TransferContext.callMethod(rawPtr, MethodBindings.setOpTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOpTypePtr, NIL) } public final fun getOpType(): OpType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOpTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOpTypePtr, LONG) return VisualShaderNodeClamp.OpType.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorConstant.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorConstant.kt index 152458e26b..e49cac3e52 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorConstant.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorConstant.kt @@ -9,12 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.TypeManager import godot.core.VariantParser.COLOR import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -68,12 +68,12 @@ public open class VisualShaderNodeColorConstant : VisualShaderNodeConstant() { public final fun setConstant(constant: Color): Unit { TransferContext.writeArguments(COLOR to constant) - TransferContext.callMethod(rawPtr, MethodBindings.setConstantPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setConstantPtr, NIL) } public final fun getConstant(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConstantPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getConstantPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorFunc.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorFunc.kt index 1b5440db3b..9562b312bb 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorFunc.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorFunc.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -40,12 +40,12 @@ public open class VisualShaderNodeColorFunc : VisualShaderNode() { public final fun setFunction(func: Function): Unit { TransferContext.writeArguments(LONG to func.id) - TransferContext.callMethod(rawPtr, MethodBindings.setFunctionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFunctionPtr, NIL) } public final fun getFunction(): Function { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFunctionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFunctionPtr, LONG) return VisualShaderNodeColorFunc.Function.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorOp.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorOp.kt index 52518cf729..5c7dbcf9d1 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorOp.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorOp.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -40,12 +40,12 @@ public open class VisualShaderNodeColorOp : VisualShaderNode() { public final fun setOperator(op: Operator): Unit { TransferContext.writeArguments(LONG to op.id) - TransferContext.callMethod(rawPtr, MethodBindings.setOperatorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOperatorPtr, NIL) } public final fun getOperator(): Operator { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOperatorPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOperatorPtr, LONG) return VisualShaderNodeColorOp.Operator.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorParameter.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorParameter.kt index ced0566951..b0626cb83a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorParameter.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorParameter.kt @@ -9,13 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -80,23 +80,23 @@ public open class VisualShaderNodeColorParameter : VisualShaderNodeParameter() { public final fun setDefaultValueEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDefaultValueEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDefaultValueEnabledPtr, NIL) } public final fun isDefaultValueEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDefaultValueEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDefaultValueEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDefaultValue(`value`: Color): Unit { TransferContext.writeArguments(COLOR to value) - TransferContext.callMethod(rawPtr, MethodBindings.setDefaultValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDefaultValuePtr, NIL) } public final fun getDefaultValue(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDefaultValuePtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getDefaultValuePtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeComment.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeComment.kt index 29f64c4062..1384fe35f2 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeComment.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeComment.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.String import kotlin.Suppress @@ -42,12 +42,12 @@ public open class VisualShaderNodeComment : VisualShaderNodeFrame() { public final fun setDescription(description: String): Unit { TransferContext.writeArguments(STRING to description) - TransferContext.callMethod(rawPtr, MethodBindings.setDescriptionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDescriptionPtr, NIL) } public final fun getDescription(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDescriptionPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getDescriptionPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCompare.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCompare.kt index 2abbae3693..e5d9d20e94 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCompare.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCompare.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -63,34 +63,34 @@ public open class VisualShaderNodeCompare : VisualShaderNode() { public final fun setComparisonType(type: ComparisonType): Unit { TransferContext.writeArguments(LONG to type.id) - TransferContext.callMethod(rawPtr, MethodBindings.setComparisonTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setComparisonTypePtr, NIL) } public final fun getComparisonType(): ComparisonType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getComparisonTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getComparisonTypePtr, LONG) return VisualShaderNodeCompare.ComparisonType.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setFunction(func: Function): Unit { TransferContext.writeArguments(LONG to func.id) - TransferContext.callMethod(rawPtr, MethodBindings.setFunctionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFunctionPtr, NIL) } public final fun getFunction(): Function { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFunctionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFunctionPtr, LONG) return VisualShaderNodeCompare.Function.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setCondition(condition: Condition): Unit { TransferContext.writeArguments(LONG to condition.id) - TransferContext.callMethod(rawPtr, MethodBindings.setConditionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setConditionPtr, NIL) } public final fun getCondition(): Condition { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConditionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getConditionPtr, LONG) return VisualShaderNodeCompare.Condition.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCubemap.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCubemap.kt index 54cd0117d3..cc84b13a55 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCubemap.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCubemap.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -64,34 +64,34 @@ public open class VisualShaderNodeCubemap : VisualShaderNode() { public final fun setSource(`value`: Source): Unit { TransferContext.writeArguments(LONG to value.id) - TransferContext.callMethod(rawPtr, MethodBindings.setSourcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSourcePtr, NIL) } public final fun getSource(): Source { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSourcePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSourcePtr, LONG) return VisualShaderNodeCubemap.Source.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setCubeMap(`value`: Cubemap?): Unit { TransferContext.writeArguments(OBJECT to value) - TransferContext.callMethod(rawPtr, MethodBindings.setCubeMapPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCubeMapPtr, NIL) } public final fun getCubeMap(): Cubemap? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCubeMapPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getCubeMapPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Cubemap?) } public final fun setTextureType(`value`: TextureType): Unit { TransferContext.writeArguments(LONG to value.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureTypePtr, NIL) } public final fun getTextureType(): TextureType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextureTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTextureTypePtr, LONG) return VisualShaderNodeCubemap.TextureType.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCurveTexture.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCurveTexture.kt index eafd054cc8..c266dba21f 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCurveTexture.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCurveTexture.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -39,12 +39,12 @@ public open class VisualShaderNodeCurveTexture : VisualShaderNodeResizableBase() public final fun setTexture(texture: CurveTexture?): Unit { TransferContext.writeArguments(OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTexturePtr, NIL) } public final fun getTexture(): CurveTexture? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as CurveTexture?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCurveXYZTexture.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCurveXYZTexture.kt index 82e6426bf2..179718ac80 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCurveXYZTexture.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCurveXYZTexture.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -39,12 +39,12 @@ public open class VisualShaderNodeCurveXYZTexture : VisualShaderNodeResizableBas public final fun setTexture(texture: CurveXYZTexture?): Unit { TransferContext.writeArguments(OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.setTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTexturePtr, NIL) } public final fun getTexture(): CurveXYZTexture? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as CurveXYZTexture?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCustom.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCustom.kt index 6489eb43f6..39de8b8cda 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCustom.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCustom.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedStringArray import godot.core.TypeManager import godot.core.VariantArray import godot.core.VariantParser.LONG import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -262,7 +262,7 @@ public open class VisualShaderNodeCustom : VisualShaderNode() { */ public final fun getOptionIndex(option: Int): Int { TransferContext.writeArguments(LONG to option.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getOptionIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOptionIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeDerivativeFunc.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeDerivativeFunc.kt index 290f6a3496..680aaba6e2 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeDerivativeFunc.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeDerivativeFunc.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -63,34 +63,34 @@ public open class VisualShaderNodeDerivativeFunc : VisualShaderNode() { public final fun setOpType(type: OpType): Unit { TransferContext.writeArguments(LONG to type.id) - TransferContext.callMethod(rawPtr, MethodBindings.setOpTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOpTypePtr, NIL) } public final fun getOpType(): OpType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOpTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOpTypePtr, LONG) return VisualShaderNodeDerivativeFunc.OpType.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setFunction(func: Function): Unit { TransferContext.writeArguments(LONG to func.id) - TransferContext.callMethod(rawPtr, MethodBindings.setFunctionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFunctionPtr, NIL) } public final fun getFunction(): Function { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFunctionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFunctionPtr, LONG) return VisualShaderNodeDerivativeFunc.Function.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setPrecision(precision: Precision): Unit { TransferContext.writeArguments(LONG to precision.id) - TransferContext.callMethod(rawPtr, MethodBindings.setPrecisionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPrecisionPtr, NIL) } public final fun getPrecision(): Precision { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPrecisionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPrecisionPtr, LONG) return VisualShaderNodeDerivativeFunc.Precision.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeExpression.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeExpression.kt index dfe18d84a7..38c5c631d4 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeExpression.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeExpression.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.String import kotlin.Suppress @@ -45,12 +45,12 @@ public open class VisualShaderNodeExpression : VisualShaderNodeGroupBase() { public final fun setExpression(expression: String): Unit { TransferContext.writeArguments(STRING to expression) - TransferContext.callMethod(rawPtr, MethodBindings.setExpressionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExpressionPtr, NIL) } public final fun getExpression(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getExpressionPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getExpressionPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatConstant.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatConstant.kt index ad85571d4d..e767865466 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatConstant.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatConstant.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -41,12 +41,12 @@ public open class VisualShaderNodeFloatConstant : VisualShaderNodeConstant() { public final fun setConstant(constant: Float): Unit { TransferContext.writeArguments(DOUBLE to constant.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setConstantPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setConstantPtr, NIL) } public final fun getConstant(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConstantPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getConstantPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatFunc.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatFunc.kt index 908ec65ae1..523c024581 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatFunc.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatFunc.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -40,12 +40,12 @@ public open class VisualShaderNodeFloatFunc : VisualShaderNode() { public final fun setFunction(func: Function): Unit { TransferContext.writeArguments(LONG to func.id) - TransferContext.callMethod(rawPtr, MethodBindings.setFunctionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFunctionPtr, NIL) } public final fun getFunction(): Function { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFunctionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFunctionPtr, LONG) return VisualShaderNodeFloatFunc.Function.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatOp.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatOp.kt index 70d43070de..30ca7e21fa 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatOp.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatOp.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -40,12 +40,12 @@ public open class VisualShaderNodeFloatOp : VisualShaderNode() { public final fun setOperator(op: Operator): Unit { TransferContext.writeArguments(LONG to op.id) - TransferContext.callMethod(rawPtr, MethodBindings.setOperatorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOperatorPtr, NIL) } public final fun getOperator(): Operator { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOperatorPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOperatorPtr, LONG) return VisualShaderNodeFloatOp.Operator.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatParameter.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatParameter.kt index 1b65fbb340..a70d1be8de 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatParameter.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatParameter.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -102,67 +102,67 @@ public open class VisualShaderNodeFloatParameter : VisualShaderNodeParameter() { public final fun setHint(hint: Hint): Unit { TransferContext.writeArguments(LONG to hint.id) - TransferContext.callMethod(rawPtr, MethodBindings.setHintPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHintPtr, NIL) } public final fun getHint(): Hint { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHintPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getHintPtr, LONG) return VisualShaderNodeFloatParameter.Hint.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setMin(`value`: Float): Unit { TransferContext.writeArguments(DOUBLE to value.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMinPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMinPtr, NIL) } public final fun getMin(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMinPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMinPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setMax(`value`: Float): Unit { TransferContext.writeArguments(DOUBLE to value.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxPtr, NIL) } public final fun getMax(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getMaxPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setStep(`value`: Float): Unit { TransferContext.writeArguments(DOUBLE to value.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setStepPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStepPtr, NIL) } public final fun getStep(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStepPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getStepPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setDefaultValueEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDefaultValueEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDefaultValueEnabledPtr, NIL) } public final fun isDefaultValueEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDefaultValueEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDefaultValueEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDefaultValue(`value`: Float): Unit { TransferContext.writeArguments(DOUBLE to value.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDefaultValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDefaultValuePtr, NIL) } public final fun getDefaultValue(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDefaultValuePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDefaultValuePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFrame.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFrame.kt index 522b75acc4..e59951b5c2 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFrame.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFrame.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.PackedInt32Array import godot.core.TypeManager @@ -19,7 +20,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_INT_32_ARRAY import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.String @@ -122,45 +122,45 @@ public open class VisualShaderNodeFrame : VisualShaderNodeResizableBase() { public final fun setTitle(title: String): Unit { TransferContext.writeArguments(STRING to title) - TransferContext.callMethod(rawPtr, MethodBindings.setTitlePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTitlePtr, NIL) } public final fun getTitle(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTitlePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getTitlePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setTintColorEnabled(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setTintColorEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTintColorEnabledPtr, NIL) } public final fun isTintColorEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isTintColorEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isTintColorEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setTintColor(color: Color): Unit { TransferContext.writeArguments(COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.setTintColorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTintColorPtr, NIL) } public final fun getTintColor(): Color { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTintColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getTintColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } public final fun setAutoshrinkEnabled(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setAutoshrinkEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutoshrinkEnabledPtr, NIL) } public final fun isAutoshrinkEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isAutoshrinkEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isAutoshrinkEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -170,7 +170,7 @@ public open class VisualShaderNodeFrame : VisualShaderNodeResizableBase() { */ public final fun addAttachedNode(node: Int): Unit { TransferContext.writeArguments(LONG to node.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addAttachedNodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addAttachedNodePtr, NIL) } /** @@ -179,17 +179,17 @@ public open class VisualShaderNodeFrame : VisualShaderNodeResizableBase() { */ public final fun removeAttachedNode(node: Int): Unit { TransferContext.writeArguments(LONG to node.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeAttachedNodePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeAttachedNodePtr, NIL) } public final fun setAttachedNodes(attachedNodes: PackedInt32Array): Unit { TransferContext.writeArguments(PACKED_INT_32_ARRAY to attachedNodes) - TransferContext.callMethod(rawPtr, MethodBindings.setAttachedNodesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAttachedNodesPtr, NIL) } public final fun getAttachedNodes(): PackedInt32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAttachedNodesPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getAttachedNodesPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeGroupBase.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeGroupBase.kt index 9dcf111209..d7774b395b 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeGroupBase.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeGroupBase.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -37,7 +37,7 @@ public open class VisualShaderNodeGroupBase internal constructor() : VisualShade */ public final fun setInputs(inputs: String): Unit { TransferContext.writeArguments(STRING to inputs) - TransferContext.callMethod(rawPtr, MethodBindings.setInputsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInputsPtr, NIL) } /** @@ -46,7 +46,7 @@ public open class VisualShaderNodeGroupBase internal constructor() : VisualShade */ public final fun getInputs(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInputsPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getInputsPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -56,7 +56,7 @@ public open class VisualShaderNodeGroupBase internal constructor() : VisualShade */ public final fun setOutputs(outputs: String): Unit { TransferContext.writeArguments(STRING to outputs) - TransferContext.callMethod(rawPtr, MethodBindings.setOutputsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOutputsPtr, NIL) } /** @@ -65,7 +65,7 @@ public open class VisualShaderNodeGroupBase internal constructor() : VisualShade */ public final fun getOutputs(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOutputsPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getOutputsPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -75,7 +75,7 @@ public open class VisualShaderNodeGroupBase internal constructor() : VisualShade */ public final fun isValidPortName(name: String): Boolean { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.isValidPortNamePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isValidPortNamePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -88,7 +88,7 @@ public open class VisualShaderNodeGroupBase internal constructor() : VisualShade name: String, ): Unit { TransferContext.writeArguments(LONG to id.toLong(), LONG to type.toLong(), STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.addInputPortPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addInputPortPtr, NIL) } /** @@ -96,7 +96,7 @@ public open class VisualShaderNodeGroupBase internal constructor() : VisualShade */ public final fun removeInputPort(id: Int): Unit { TransferContext.writeArguments(LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeInputPortPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeInputPortPtr, NIL) } /** @@ -104,7 +104,7 @@ public open class VisualShaderNodeGroupBase internal constructor() : VisualShade */ public final fun getInputPortCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInputPortCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getInputPortCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -113,7 +113,7 @@ public open class VisualShaderNodeGroupBase internal constructor() : VisualShade */ public final fun hasInputPort(id: Int): Boolean { TransferContext.writeArguments(LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.hasInputPortPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasInputPortPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -122,7 +122,7 @@ public open class VisualShaderNodeGroupBase internal constructor() : VisualShade */ public final fun clearInputPorts(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearInputPortsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearInputPortsPtr, NIL) } /** @@ -134,7 +134,7 @@ public open class VisualShaderNodeGroupBase internal constructor() : VisualShade name: String, ): Unit { TransferContext.writeArguments(LONG to id.toLong(), LONG to type.toLong(), STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.addOutputPortPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addOutputPortPtr, NIL) } /** @@ -142,7 +142,7 @@ public open class VisualShaderNodeGroupBase internal constructor() : VisualShade */ public final fun removeOutputPort(id: Int): Unit { TransferContext.writeArguments(LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removeOutputPortPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeOutputPortPtr, NIL) } /** @@ -150,7 +150,7 @@ public open class VisualShaderNodeGroupBase internal constructor() : VisualShade */ public final fun getOutputPortCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOutputPortCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOutputPortCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -159,7 +159,7 @@ public open class VisualShaderNodeGroupBase internal constructor() : VisualShade */ public final fun hasOutputPort(id: Int): Boolean { TransferContext.writeArguments(LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.hasOutputPortPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasOutputPortPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -168,7 +168,7 @@ public open class VisualShaderNodeGroupBase internal constructor() : VisualShade */ public final fun clearOutputPorts(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearOutputPortsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearOutputPortsPtr, NIL) } /** @@ -176,7 +176,7 @@ public open class VisualShaderNodeGroupBase internal constructor() : VisualShade */ public final fun setInputPortName(id: Int, name: String): Unit { TransferContext.writeArguments(LONG to id.toLong(), STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.setInputPortNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInputPortNamePtr, NIL) } /** @@ -184,7 +184,7 @@ public open class VisualShaderNodeGroupBase internal constructor() : VisualShade */ public final fun setInputPortType(id: Int, type: Int): Unit { TransferContext.writeArguments(LONG to id.toLong(), LONG to type.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setInputPortTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInputPortTypePtr, NIL) } /** @@ -192,7 +192,7 @@ public open class VisualShaderNodeGroupBase internal constructor() : VisualShade */ public final fun setOutputPortName(id: Int, name: String): Unit { TransferContext.writeArguments(LONG to id.toLong(), STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.setOutputPortNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOutputPortNamePtr, NIL) } /** @@ -200,7 +200,7 @@ public open class VisualShaderNodeGroupBase internal constructor() : VisualShade */ public final fun setOutputPortType(id: Int, type: Int): Unit { TransferContext.writeArguments(LONG to id.toLong(), LONG to type.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setOutputPortTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOutputPortTypePtr, NIL) } /** @@ -208,7 +208,7 @@ public open class VisualShaderNodeGroupBase internal constructor() : VisualShade */ public final fun getFreeInputPortId(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFreeInputPortIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFreeInputPortIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -217,7 +217,7 @@ public open class VisualShaderNodeGroupBase internal constructor() : VisualShade */ public final fun getFreeOutputPortId(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFreeOutputPortIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFreeOutputPortIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeInput.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeInput.kt index 398ff11cac..b49b66af8d 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeInput.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeInput.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.String import kotlin.Suppress @@ -48,12 +48,12 @@ public open class VisualShaderNodeInput : VisualShaderNode() { public final fun setInputName(name: String): Unit { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.setInputNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInputNamePtr, NIL) } public final fun getInputName(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInputNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getInputNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -63,7 +63,7 @@ public open class VisualShaderNodeInput : VisualShaderNode() { */ public final fun getInputRealName(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInputRealNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getInputRealNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntConstant.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntConstant.kt index b95ec64b83..1b0a355b82 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntConstant.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntConstant.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -40,12 +40,12 @@ public open class VisualShaderNodeIntConstant : VisualShaderNodeConstant() { public final fun setConstant(constant: Int): Unit { TransferContext.writeArguments(LONG to constant.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setConstantPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setConstantPtr, NIL) } public final fun getConstant(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConstantPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getConstantPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntFunc.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntFunc.kt index d9fead970d..befa2d7880 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntFunc.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntFunc.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -40,12 +40,12 @@ public open class VisualShaderNodeIntFunc : VisualShaderNode() { public final fun setFunction(func: Function): Unit { TransferContext.writeArguments(LONG to func.id) - TransferContext.callMethod(rawPtr, MethodBindings.setFunctionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFunctionPtr, NIL) } public final fun getFunction(): Function { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFunctionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFunctionPtr, LONG) return VisualShaderNodeIntFunc.Function.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntOp.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntOp.kt index b9c5927750..4f3d045f65 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntOp.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntOp.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -40,12 +40,12 @@ public open class VisualShaderNodeIntOp : VisualShaderNode() { public final fun setOperator(op: Operator): Unit { TransferContext.writeArguments(LONG to op.id) - TransferContext.callMethod(rawPtr, MethodBindings.setOperatorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOperatorPtr, NIL) } public final fun getOperator(): Operator { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOperatorPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOperatorPtr, LONG) return VisualShaderNodeIntOp.Operator.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntParameter.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntParameter.kt index a5c67d3fc0..9fa85ecad7 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntParameter.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntParameter.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -102,67 +102,67 @@ public open class VisualShaderNodeIntParameter : VisualShaderNodeParameter() { public final fun setHint(hint: Hint): Unit { TransferContext.writeArguments(LONG to hint.id) - TransferContext.callMethod(rawPtr, MethodBindings.setHintPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHintPtr, NIL) } public final fun getHint(): Hint { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHintPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getHintPtr, LONG) return VisualShaderNodeIntParameter.Hint.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setMin(`value`: Int): Unit { TransferContext.writeArguments(LONG to value.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMinPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMinPtr, NIL) } public final fun getMin(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMinPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMinPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setMax(`value`: Int): Unit { TransferContext.writeArguments(LONG to value.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxPtr, NIL) } public final fun getMax(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMaxPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setStep(`value`: Int): Unit { TransferContext.writeArguments(LONG to value.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setStepPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setStepPtr, NIL) } public final fun getStep(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getStepPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getStepPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setDefaultValueEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDefaultValueEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDefaultValueEnabledPtr, NIL) } public final fun isDefaultValueEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDefaultValueEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDefaultValueEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDefaultValue(`value`: Int): Unit { TransferContext.writeArguments(LONG to value.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setDefaultValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDefaultValuePtr, NIL) } public final fun getDefaultValue(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDefaultValuePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDefaultValuePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIs.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIs.kt index f7063026be..49b24d20ca 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIs.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIs.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -40,12 +40,12 @@ public open class VisualShaderNodeIs : VisualShaderNode() { public final fun setFunction(func: Function): Unit { TransferContext.writeArguments(LONG to func.id) - TransferContext.callMethod(rawPtr, MethodBindings.setFunctionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFunctionPtr, NIL) } public final fun getFunction(): Function { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFunctionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFunctionPtr, LONG) return VisualShaderNodeIs.Function.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeMix.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeMix.kt index 04a0d2a979..e91d808e1d 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeMix.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeMix.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -40,12 +40,12 @@ public open class VisualShaderNodeMix : VisualShaderNode() { public final fun setOpType(opType: OpType): Unit { TransferContext.writeArguments(LONG to opType.id) - TransferContext.callMethod(rawPtr, MethodBindings.setOpTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOpTypePtr, NIL) } public final fun getOpType(): OpType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOpTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOpTypePtr, LONG) return VisualShaderNodeMix.OpType.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeMultiplyAdd.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeMultiplyAdd.kt index 001f6296fc..326234491a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeMultiplyAdd.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeMultiplyAdd.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -40,12 +40,12 @@ public open class VisualShaderNodeMultiplyAdd : VisualShaderNode() { public final fun setOpType(type: OpType): Unit { TransferContext.writeArguments(LONG to type.id) - TransferContext.callMethod(rawPtr, MethodBindings.setOpTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOpTypePtr, NIL) } public final fun getOpType(): OpType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOpTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOpTypePtr, LONG) return VisualShaderNodeMultiplyAdd.OpType.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParameter.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParameter.kt index 8ffb259525..5b4d260002 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParameter.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParameter.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.String @@ -55,23 +55,23 @@ public open class VisualShaderNodeParameter internal constructor() : VisualShade public final fun setParameterName(name: String): Unit { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.setParameterNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setParameterNamePtr, NIL) } public final fun getParameterName(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getParameterNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getParameterNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setQualifier(qualifier: Qualifier): Unit { TransferContext.writeArguments(LONG to qualifier.id) - TransferContext.callMethod(rawPtr, MethodBindings.setQualifierPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setQualifierPtr, NIL) } public final fun getQualifier(): Qualifier { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getQualifierPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getQualifierPtr, LONG) return VisualShaderNodeParameter.Qualifier.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParameterRef.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParameterRef.kt index d50e6729e8..8b875b9e84 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParameterRef.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParameterRef.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.String import kotlin.Suppress @@ -41,12 +41,12 @@ public open class VisualShaderNodeParameterRef : VisualShaderNode() { public final fun setParameterName(name: String): Unit { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.setParameterNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setParameterNamePtr, NIL) } public final fun getParameterName(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getParameterNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getParameterNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleAccelerator.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleAccelerator.kt index f2a7e69c1d..078271ca29 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleAccelerator.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleAccelerator.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -41,12 +41,12 @@ public open class VisualShaderNodeParticleAccelerator : VisualShaderNode() { public final fun setMode(mode: Mode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setModePtr, NIL) } public final fun getMode(): Mode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getModePtr, LONG) return VisualShaderNodeParticleAccelerator.Mode.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleEmit.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleEmit.kt index c2a2776fa3..cfa3c4184b 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleEmit.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleEmit.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -42,12 +42,12 @@ public open class VisualShaderNodeParticleEmit : VisualShaderNode() { public final fun setFlags(flags: EmitFlags): Unit { TransferContext.writeArguments(LONG to flags.id) - TransferContext.callMethod(rawPtr, MethodBindings.setFlagsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFlagsPtr, NIL) } public final fun getFlags(): EmitFlags { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFlagsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFlagsPtr, LONG) return VisualShaderNodeParticleEmit.EmitFlags.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleEmitter.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleEmitter.kt index eee357bd01..c1f5bd2419 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleEmitter.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleEmitter.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -42,12 +42,12 @@ public open class VisualShaderNodeParticleEmitter internal constructor() : Visua public final fun setMode2d(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setMode2dPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMode2dPtr, NIL) } public final fun isMode2d(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isMode2dPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isMode2dPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleMeshEmitter.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleMeshEmitter.kt index a2003a00c0..f1957cca8f 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleMeshEmitter.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleMeshEmitter.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -67,34 +67,34 @@ public open class VisualShaderNodeParticleMeshEmitter : VisualShaderNodeParticle public final fun setMesh(mesh: Mesh?): Unit { TransferContext.writeArguments(OBJECT to mesh) - TransferContext.callMethod(rawPtr, MethodBindings.setMeshPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMeshPtr, NIL) } public final fun getMesh(): Mesh? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMeshPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getMeshPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Mesh?) } public final fun setUseAllSurfaces(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setUseAllSurfacesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseAllSurfacesPtr, NIL) } public final fun isUseAllSurfaces(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUseAllSurfacesPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUseAllSurfacesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setSurfaceIndex(surfaceIndex: Int): Unit { TransferContext.writeArguments(LONG to surfaceIndex.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setSurfaceIndexPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSurfaceIndexPtr, NIL) } public final fun getSurfaceIndex(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSurfaceIndexPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSurfaceIndexPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleMultiplyByAxisAngle.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleMultiplyByAxisAngle.kt index 4684577216..b8ae1d2aba 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleMultiplyByAxisAngle.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleMultiplyByAxisAngle.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -41,12 +41,12 @@ public open class VisualShaderNodeParticleMultiplyByAxisAngle : VisualShaderNode public final fun setDegreesMode(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDegreesModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDegreesModePtr, NIL) } public final fun isDegreesMode(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDegreesModePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDegreesModePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleRandomness.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleRandomness.kt index 38af8ac1f4..8f2c3c2a70 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleRandomness.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleRandomness.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -41,12 +41,12 @@ public open class VisualShaderNodeParticleRandomness : VisualShaderNode() { public final fun setOpType(type: OpType): Unit { TransferContext.writeArguments(LONG to type.id) - TransferContext.callMethod(rawPtr, MethodBindings.setOpTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOpTypePtr, NIL) } public final fun getOpType(): OpType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOpTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOpTypePtr, LONG) return VisualShaderNodeParticleRandomness.OpType.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeReroute.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeReroute.kt index 139c5988a8..316a141832 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeReroute.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeReroute.kt @@ -7,10 +7,10 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -36,7 +36,7 @@ public open class VisualShaderNodeReroute : VisualShaderNode() { */ public final fun getPortType(): VisualShaderNode.PortType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPortTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPortTypePtr, LONG) return VisualShaderNode.PortType.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeResizableBase.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeResizableBase.kt index 4a85abb845..35aebb8978 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeResizableBase.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeResizableBase.kt @@ -9,12 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -67,12 +67,12 @@ public open class VisualShaderNodeResizableBase internal constructor() : VisualS public final fun setSize(size: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to size) - TransferContext.callMethod(rawPtr, MethodBindings.setSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSizePtr, NIL) } public final fun getSize(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSizePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getSizePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSample3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSample3D.kt index 5a0f5a658c..6b42c322bf 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSample3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSample3D.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -40,12 +40,12 @@ public open class VisualShaderNodeSample3D internal constructor() : VisualShader public final fun setSource(`value`: Source): Unit { TransferContext.writeArguments(LONG to value.id) - TransferContext.callMethod(rawPtr, MethodBindings.setSourcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSourcePtr, NIL) } public final fun getSource(): Source { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSourcePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSourcePtr, LONG) return VisualShaderNodeSample3D.Source.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSmoothStep.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSmoothStep.kt index e462e7e1b1..44c1579e1c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSmoothStep.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSmoothStep.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -42,12 +42,12 @@ public open class VisualShaderNodeSmoothStep : VisualShaderNode() { public final fun setOpType(opType: OpType): Unit { TransferContext.writeArguments(LONG to opType.id) - TransferContext.callMethod(rawPtr, MethodBindings.setOpTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOpTypePtr, NIL) } public final fun getOpType(): OpType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOpTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOpTypePtr, LONG) return VisualShaderNodeSmoothStep.OpType.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeStep.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeStep.kt index be67ae1547..21deede099 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeStep.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeStep.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -41,12 +41,12 @@ public open class VisualShaderNodeStep : VisualShaderNode() { public final fun setOpType(opType: OpType): Unit { TransferContext.writeArguments(LONG to opType.id) - TransferContext.callMethod(rawPtr, MethodBindings.setOpTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOpTypePtr, NIL) } public final fun getOpType(): OpType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOpTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOpTypePtr, LONG) return VisualShaderNodeStep.OpType.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSwitch.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSwitch.kt index f2d1e1d305..63193a9e38 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSwitch.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSwitch.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -41,12 +41,12 @@ public open class VisualShaderNodeSwitch : VisualShaderNode() { public final fun setOpType(type: OpType): Unit { TransferContext.writeArguments(LONG to type.id) - TransferContext.callMethod(rawPtr, MethodBindings.setOpTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOpTypePtr, NIL) } public final fun getOpType(): OpType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOpTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOpTypePtr, LONG) return VisualShaderNodeSwitch.OpType.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture.kt index 2dcc9881db..287ae94c8d 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -65,34 +65,34 @@ public open class VisualShaderNodeTexture : VisualShaderNode() { public final fun setSource(`value`: Source): Unit { TransferContext.writeArguments(LONG to value.id) - TransferContext.callMethod(rawPtr, MethodBindings.setSourcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSourcePtr, NIL) } public final fun getSource(): Source { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSourcePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSourcePtr, LONG) return VisualShaderNodeTexture.Source.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setTexture(`value`: Texture2D?): Unit { TransferContext.writeArguments(OBJECT to value) - TransferContext.callMethod(rawPtr, MethodBindings.setTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTexturePtr, NIL) } public final fun getTexture(): Texture2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } public final fun setTextureType(`value`: TextureType): Unit { TransferContext.writeArguments(LONG to value.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureTypePtr, NIL) } public final fun getTextureType(): TextureType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextureTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTextureTypePtr, LONG) return VisualShaderNodeTexture.TextureType.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture2DArray.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture2DArray.kt index 971af46c64..989a54877d 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture2DArray.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture2DArray.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -40,12 +40,12 @@ public open class VisualShaderNodeTexture2DArray : VisualShaderNodeSample3D() { public final fun setTextureArray(`value`: Texture2DArray?): Unit { TransferContext.writeArguments(OBJECT to value) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureArrayPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureArrayPtr, NIL) } public final fun getTextureArray(): Texture2DArray? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextureArrayPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTextureArrayPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2DArray?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture3D.kt index 9bd70683a8..5215b6b720 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture3D.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -41,12 +41,12 @@ public open class VisualShaderNodeTexture3D : VisualShaderNodeSample3D() { public final fun setTexture(`value`: Texture3D?): Unit { TransferContext.writeArguments(OBJECT to value) - TransferContext.callMethod(rawPtr, MethodBindings.setTexturePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTexturePtr, NIL) } public final fun getTexture(): Texture3D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTexturePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTexturePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture3D?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTextureParameter.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTextureParameter.kt index 2c5a670ab0..0af22ee3f4 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTextureParameter.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTextureParameter.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -86,56 +86,56 @@ public open class VisualShaderNodeTextureParameter internal constructor() : public final fun setTextureType(type: TextureType): Unit { TransferContext.writeArguments(LONG to type.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureTypePtr, NIL) } public final fun getTextureType(): TextureType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextureTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTextureTypePtr, LONG) return VisualShaderNodeTextureParameter.TextureType.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setColorDefault(color: ColorDefault): Unit { TransferContext.writeArguments(LONG to color.id) - TransferContext.callMethod(rawPtr, MethodBindings.setColorDefaultPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setColorDefaultPtr, NIL) } public final fun getColorDefault(): ColorDefault { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColorDefaultPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getColorDefaultPtr, LONG) return VisualShaderNodeTextureParameter.ColorDefault.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setTextureFilter(filter: TextureFilter): Unit { TransferContext.writeArguments(LONG to filter.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureFilterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureFilterPtr, NIL) } public final fun getTextureFilter(): TextureFilter { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextureFilterPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTextureFilterPtr, LONG) return VisualShaderNodeTextureParameter.TextureFilter.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setTextureRepeat(repeat: TextureRepeat): Unit { TransferContext.writeArguments(LONG to repeat.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureRepeatPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureRepeatPtr, NIL) } public final fun getTextureRepeat(): TextureRepeat { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextureRepeatPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTextureRepeatPtr, LONG) return VisualShaderNodeTextureParameter.TextureRepeat.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setTextureSource(source: TextureSource): Unit { TransferContext.writeArguments(LONG to source.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTextureSourcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTextureSourcePtr, NIL) } public final fun getTextureSource(): TextureSource { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTextureSourcePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTextureSourcePtr, LONG) return VisualShaderNodeTextureParameter.TextureSource.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformConstant.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformConstant.kt index 5d237d95bc..46230f1637 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformConstant.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformConstant.kt @@ -9,12 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Transform3D import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.TRANSFORM3D import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -67,12 +67,12 @@ public open class VisualShaderNodeTransformConstant : VisualShaderNodeConstant() public final fun setConstant(constant: Transform3D): Unit { TransferContext.writeArguments(TRANSFORM3D to constant) - TransferContext.callMethod(rawPtr, MethodBindings.setConstantPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setConstantPtr, NIL) } public final fun getConstant(): Transform3D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConstantPtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.getConstantPtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformFunc.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformFunc.kt index fbaba2da2e..9e6940891e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformFunc.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformFunc.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -40,12 +40,12 @@ public open class VisualShaderNodeTransformFunc : VisualShaderNode() { public final fun setFunction(func: Function): Unit { TransferContext.writeArguments(LONG to func.id) - TransferContext.callMethod(rawPtr, MethodBindings.setFunctionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFunctionPtr, NIL) } public final fun getFunction(): Function { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFunctionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFunctionPtr, LONG) return VisualShaderNodeTransformFunc.Function.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformOp.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformOp.kt index 6301bc2903..0e3299c0af 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformOp.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformOp.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -40,12 +40,12 @@ public open class VisualShaderNodeTransformOp : VisualShaderNode() { public final fun setOperator(op: Operator): Unit { TransferContext.writeArguments(LONG to op.id) - TransferContext.callMethod(rawPtr, MethodBindings.setOperatorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOperatorPtr, NIL) } public final fun getOperator(): Operator { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOperatorPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOperatorPtr, LONG) return VisualShaderNodeTransformOp.Operator.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformParameter.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformParameter.kt index af46f6af18..e7be730a25 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformParameter.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformParameter.kt @@ -9,13 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Transform3D import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser.TRANSFORM3D import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -81,23 +81,23 @@ public open class VisualShaderNodeTransformParameter : VisualShaderNodeParameter public final fun setDefaultValueEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDefaultValueEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDefaultValueEnabledPtr, NIL) } public final fun isDefaultValueEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDefaultValueEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDefaultValueEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDefaultValue(`value`: Transform3D): Unit { TransferContext.writeArguments(TRANSFORM3D to value) - TransferContext.callMethod(rawPtr, MethodBindings.setDefaultValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDefaultValuePtr, NIL) } public final fun getDefaultValue(): Transform3D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDefaultValuePtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.getDefaultValuePtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformVecMult.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformVecMult.kt index 4337ebce1b..8d5567365b 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformVecMult.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformVecMult.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -41,12 +41,12 @@ public open class VisualShaderNodeTransformVecMult : VisualShaderNode() { public final fun setOperator(op: Operator): Unit { TransferContext.writeArguments(LONG to op.id) - TransferContext.callMethod(rawPtr, MethodBindings.setOperatorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOperatorPtr, NIL) } public final fun getOperator(): Operator { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOperatorPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOperatorPtr, LONG) return VisualShaderNodeTransformVecMult.Operator.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntConstant.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntConstant.kt index b757bb0089..a051f3fab3 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntConstant.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntConstant.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -40,12 +40,12 @@ public open class VisualShaderNodeUIntConstant : VisualShaderNodeConstant() { public final fun setConstant(constant: Int): Unit { TransferContext.writeArguments(LONG to constant.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setConstantPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setConstantPtr, NIL) } public final fun getConstant(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConstantPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getConstantPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntFunc.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntFunc.kt index a82776f13f..c7704c4fbe 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntFunc.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntFunc.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -41,12 +41,12 @@ public open class VisualShaderNodeUIntFunc : VisualShaderNode() { public final fun setFunction(func: Function): Unit { TransferContext.writeArguments(LONG to func.id) - TransferContext.callMethod(rawPtr, MethodBindings.setFunctionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFunctionPtr, NIL) } public final fun getFunction(): Function { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFunctionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFunctionPtr, LONG) return VisualShaderNodeUIntFunc.Function.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntOp.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntOp.kt index 8914cb3731..d3e2795ed7 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntOp.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntOp.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -40,12 +40,12 @@ public open class VisualShaderNodeUIntOp : VisualShaderNode() { public final fun setOperator(op: Operator): Unit { TransferContext.writeArguments(LONG to op.id) - TransferContext.callMethod(rawPtr, MethodBindings.setOperatorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOperatorPtr, NIL) } public final fun getOperator(): Operator { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOperatorPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOperatorPtr, LONG) return VisualShaderNodeUIntOp.Operator.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntParameter.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntParameter.kt index 30c18f4bca..e75aeba67c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntParameter.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntParameter.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -55,23 +55,23 @@ public open class VisualShaderNodeUIntParameter : VisualShaderNodeParameter() { public final fun setDefaultValueEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDefaultValueEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDefaultValueEnabledPtr, NIL) } public final fun isDefaultValueEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDefaultValueEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDefaultValueEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDefaultValue(`value`: Int): Unit { TransferContext.writeArguments(LONG to value.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setDefaultValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDefaultValuePtr, NIL) } public final fun getDefaultValue(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDefaultValuePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getDefaultValuePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUVFunc.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUVFunc.kt index a9514fd87b..2a0327d14a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUVFunc.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUVFunc.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -41,12 +41,12 @@ public open class VisualShaderNodeUVFunc : VisualShaderNode() { public final fun setFunction(func: Function): Unit { TransferContext.writeArguments(LONG to func.id) - TransferContext.callMethod(rawPtr, MethodBindings.setFunctionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFunctionPtr, NIL) } public final fun getFunction(): Function { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFunctionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFunctionPtr, LONG) return VisualShaderNodeUVFunc.Function.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVarying.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVarying.kt index 3b654d80ed..e64b3a0389 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVarying.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVarying.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.String @@ -54,23 +54,23 @@ public open class VisualShaderNodeVarying internal constructor() : VisualShaderN public final fun setVaryingName(name: String): Unit { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.setVaryingNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVaryingNamePtr, NIL) } public final fun getVaryingName(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVaryingNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getVaryingNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setVaryingType(type: VisualShader.VaryingType): Unit { TransferContext.writeArguments(LONG to type.id) - TransferContext.callMethod(rawPtr, MethodBindings.setVaryingTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVaryingTypePtr, NIL) } public final fun getVaryingType(): VisualShader.VaryingType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVaryingTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getVaryingTypePtr, LONG) return VisualShader.VaryingType.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec2Constant.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec2Constant.kt index 934250922b..ec1d8f40e1 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec2Constant.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec2Constant.kt @@ -9,12 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -67,12 +67,12 @@ public open class VisualShaderNodeVec2Constant : VisualShaderNodeConstant() { public final fun setConstant(constant: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to constant) - TransferContext.callMethod(rawPtr, MethodBindings.setConstantPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setConstantPtr, NIL) } public final fun getConstant(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConstantPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getConstantPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec2Parameter.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec2Parameter.kt index d2fc4aa1fe..5606d5d3e5 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec2Parameter.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec2Parameter.kt @@ -9,13 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -80,23 +80,23 @@ public open class VisualShaderNodeVec2Parameter : VisualShaderNodeParameter() { public final fun setDefaultValueEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDefaultValueEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDefaultValueEnabledPtr, NIL) } public final fun isDefaultValueEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDefaultValueEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDefaultValueEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDefaultValue(`value`: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to value) - TransferContext.callMethod(rawPtr, MethodBindings.setDefaultValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDefaultValuePtr, NIL) } public final fun getDefaultValue(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDefaultValuePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getDefaultValuePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec3Constant.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec3Constant.kt index 96f1fccba6..9b296df055 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec3Constant.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec3Constant.kt @@ -9,12 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -67,12 +67,12 @@ public open class VisualShaderNodeVec3Constant : VisualShaderNodeConstant() { public final fun setConstant(constant: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to constant) - TransferContext.callMethod(rawPtr, MethodBindings.setConstantPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setConstantPtr, NIL) } public final fun getConstant(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConstantPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getConstantPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec3Parameter.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec3Parameter.kt index c4d054a440..1b22983794 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec3Parameter.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec3Parameter.kt @@ -9,13 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -80,23 +80,23 @@ public open class VisualShaderNodeVec3Parameter : VisualShaderNodeParameter() { public final fun setDefaultValueEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDefaultValueEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDefaultValueEnabledPtr, NIL) } public final fun isDefaultValueEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDefaultValueEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDefaultValueEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDefaultValue(`value`: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to value) - TransferContext.callMethod(rawPtr, MethodBindings.setDefaultValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDefaultValuePtr, NIL) } public final fun getDefaultValue(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDefaultValuePtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getDefaultValuePtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec4Constant.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec4Constant.kt index db993f9d9e..0c1a4715b4 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec4Constant.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec4Constant.kt @@ -9,12 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Quaternion import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.QUATERNION import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -67,12 +67,12 @@ public open class VisualShaderNodeVec4Constant : VisualShaderNodeConstant() { public final fun setConstant(constant: Quaternion): Unit { TransferContext.writeArguments(QUATERNION to constant) - TransferContext.callMethod(rawPtr, MethodBindings.setConstantPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setConstantPtr, NIL) } public final fun getConstant(): Quaternion { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConstantPtr, QUATERNION) + TransferContext.callMethod(ptr, MethodBindings.getConstantPtr, QUATERNION) return (TransferContext.readReturnValue(QUATERNION) as Quaternion) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec4Parameter.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec4Parameter.kt index 599e0f6cac..e7597fa6ce 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec4Parameter.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec4Parameter.kt @@ -9,13 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR4 import godot.core.Vector4 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -80,23 +80,23 @@ public open class VisualShaderNodeVec4Parameter : VisualShaderNodeParameter() { public final fun setDefaultValueEnabled(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setDefaultValueEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDefaultValueEnabledPtr, NIL) } public final fun isDefaultValueEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isDefaultValueEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isDefaultValueEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setDefaultValue(`value`: Vector4): Unit { TransferContext.writeArguments(VECTOR4 to value) - TransferContext.callMethod(rawPtr, MethodBindings.setDefaultValuePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDefaultValuePtr, NIL) } public final fun getDefaultValue(): Vector4 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDefaultValuePtr, VECTOR4) + TransferContext.callMethod(ptr, MethodBindings.getDefaultValuePtr, VECTOR4) return (TransferContext.readReturnValue(VECTOR4) as Vector4) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorBase.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorBase.kt index c90b4faf8e..400c959de9 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorBase.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorBase.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -40,12 +40,12 @@ public open class VisualShaderNodeVectorBase internal constructor() : VisualShad public final fun setOpType(type: OpType): Unit { TransferContext.writeArguments(LONG to type.id) - TransferContext.callMethod(rawPtr, MethodBindings.setOpTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOpTypePtr, NIL) } public final fun getOpType(): OpType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOpTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOpTypePtr, LONG) return VisualShaderNodeVectorBase.OpType.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorFunc.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorFunc.kt index 4bc44aaceb..27a565ee79 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorFunc.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorFunc.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -40,12 +40,12 @@ public open class VisualShaderNodeVectorFunc : VisualShaderNodeVectorBase() { public final fun setFunction(func: Function): Unit { TransferContext.writeArguments(LONG to func.id) - TransferContext.callMethod(rawPtr, MethodBindings.setFunctionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFunctionPtr, NIL) } public final fun getFunction(): Function { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFunctionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getFunctionPtr, LONG) return VisualShaderNodeVectorFunc.Function.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorOp.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorOp.kt index ad99b5e17d..976e806fd4 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorOp.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorOp.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -40,12 +40,12 @@ public open class VisualShaderNodeVectorOp : VisualShaderNodeVectorBase() { public final fun setOperator(op: Operator): Unit { TransferContext.writeArguments(LONG to op.id) - TransferContext.callMethod(rawPtr, MethodBindings.setOperatorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOperatorPtr, NIL) } public final fun getOperator(): Operator { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOperatorPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOperatorPtr, LONG) return VisualShaderNodeVectorOp.Operator.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VoxelGI.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VoxelGI.kt index 2eac5290fb..30336cc2dd 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VoxelGI.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VoxelGI.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG @@ -17,7 +18,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -138,45 +138,45 @@ public open class VoxelGI : VisualInstance3D() { public final fun setProbeData(`data`: VoxelGIData?): Unit { TransferContext.writeArguments(OBJECT to data) - TransferContext.callMethod(rawPtr, MethodBindings.setProbeDataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setProbeDataPtr, NIL) } public final fun getProbeData(): VoxelGIData? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getProbeDataPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getProbeDataPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as VoxelGIData?) } public final fun setSubdiv(subdiv: Subdiv): Unit { TransferContext.writeArguments(LONG to subdiv.id) - TransferContext.callMethod(rawPtr, MethodBindings.setSubdivPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSubdivPtr, NIL) } public final fun getSubdiv(): Subdiv { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSubdivPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSubdivPtr, LONG) return VoxelGI.Subdiv.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setSize(size: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to size) - TransferContext.callMethod(rawPtr, MethodBindings.setSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSizePtr, NIL) } public final fun getSize(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSizePtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getSizePtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setCameraAttributes(cameraAttributes: CameraAttributes?): Unit { TransferContext.writeArguments(OBJECT to cameraAttributes) - TransferContext.callMethod(rawPtr, MethodBindings.setCameraAttributesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCameraAttributesPtr, NIL) } public final fun getCameraAttributes(): CameraAttributes? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCameraAttributesPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getCameraAttributesPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as CameraAttributes?) } @@ -196,7 +196,7 @@ public open class VoxelGI : VisualInstance3D() { @JvmOverloads public final fun bake(fromNode: Node? = null, createVisualDebug: Boolean = false): Unit { TransferContext.writeArguments(OBJECT to fromNode, BOOL to createVisualDebug) - TransferContext.callMethod(rawPtr, MethodBindings.bakePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.bakePtr, NIL) } /** @@ -204,7 +204,7 @@ public open class VoxelGI : VisualInstance3D() { */ public final fun debugBake(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.debugBakePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.debugBakePtr, NIL) } public enum class Subdiv( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/VoxelGIData.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/VoxelGIData.kt index 93eeaeea01..e90217daa3 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/VoxelGIData.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/VoxelGIData.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.AABB import godot.core.PackedByteArray import godot.core.PackedInt32Array @@ -21,7 +22,6 @@ import godot.core.VariantParser.TRANSFORM3D import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -153,7 +153,7 @@ public open class VoxelGIData : Resource() { levelCounts: PackedInt32Array, ): Unit { TransferContext.writeArguments(TRANSFORM3D to toCellXform, godot.core.VariantParser.AABB to aabb, VECTOR3 to octreeSize, PACKED_BYTE_ARRAY to octreeCells, PACKED_BYTE_ARRAY to dataCells, PACKED_BYTE_ARRAY to distanceField, PACKED_INT_32_ARRAY to levelCounts) - TransferContext.callMethod(rawPtr, MethodBindings.allocatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.allocatePtr, NIL) } /** @@ -164,114 +164,114 @@ public open class VoxelGIData : Resource() { */ public final fun getBounds(): AABB { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBoundsPtr, godot.core.VariantParser.AABB) + TransferContext.callMethod(ptr, MethodBindings.getBoundsPtr, godot.core.VariantParser.AABB) return (TransferContext.readReturnValue(godot.core.VariantParser.AABB) as AABB) } public final fun getOctreeSize(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOctreeSizePtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getOctreeSizePtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun getToCellXform(): Transform3D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getToCellXformPtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.getToCellXformPtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } public final fun getOctreeCells(): PackedByteArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOctreeCellsPtr, PACKED_BYTE_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getOctreeCellsPtr, PACKED_BYTE_ARRAY) return (TransferContext.readReturnValue(PACKED_BYTE_ARRAY) as PackedByteArray) } public final fun getDataCells(): PackedByteArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDataCellsPtr, PACKED_BYTE_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getDataCellsPtr, PACKED_BYTE_ARRAY) return (TransferContext.readReturnValue(PACKED_BYTE_ARRAY) as PackedByteArray) } public final fun getLevelCounts(): PackedInt32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLevelCountsPtr, PACKED_INT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getLevelCountsPtr, PACKED_INT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_INT_32_ARRAY) as PackedInt32Array) } public final fun setDynamicRange(dynamicRange: Float): Unit { TransferContext.writeArguments(DOUBLE to dynamicRange.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDynamicRangePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDynamicRangePtr, NIL) } public final fun getDynamicRange(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDynamicRangePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDynamicRangePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setEnergy(energy: Float): Unit { TransferContext.writeArguments(DOUBLE to energy.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setEnergyPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnergyPtr, NIL) } public final fun getEnergy(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnergyPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getEnergyPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setBias(bias: Float): Unit { TransferContext.writeArguments(DOUBLE to bias.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setBiasPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBiasPtr, NIL) } public final fun getBias(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBiasPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getBiasPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setNormalBias(bias: Float): Unit { TransferContext.writeArguments(DOUBLE to bias.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setNormalBiasPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNormalBiasPtr, NIL) } public final fun getNormalBias(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNormalBiasPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getNormalBiasPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setPropagation(propagation: Float): Unit { TransferContext.writeArguments(DOUBLE to propagation.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setPropagationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPropagationPtr, NIL) } public final fun getPropagation(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPropagationPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getPropagationPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setInterior(interior: Boolean): Unit { TransferContext.writeArguments(BOOL to interior) - TransferContext.callMethod(rawPtr, MethodBindings.setInteriorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInteriorPtr, NIL) } public final fun isInterior(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isInteriorPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isInteriorPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setUseTwoBounces(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setUseTwoBouncesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseTwoBouncesPtr, NIL) } public final fun isUsingTwoBounces(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUsingTwoBouncesPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUsingTwoBouncesPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/WeakRef.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/WeakRef.kt index 8b29962d46..3880bd1d00 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/WeakRef.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/WeakRef.kt @@ -7,10 +7,10 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantCaster.ANY import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Int import kotlin.Suppress @@ -37,7 +37,7 @@ public open class WeakRef : RefCounted() { */ public final fun getRef(): Any? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRefPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getRefPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/WebRTCDataChannel.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/WebRTCDataChannel.kt index f349cd34be..536a8a01e2 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/WebRTCDataChannel.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/WebRTCDataChannel.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -44,7 +44,7 @@ public open class WebRTCDataChannel internal constructor() : PacketPeer() { */ public final fun poll(): Error { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.pollPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.pollPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -53,7 +53,7 @@ public open class WebRTCDataChannel internal constructor() : PacketPeer() { */ public final fun close(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.closePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.closePtr, NIL) } /** @@ -61,18 +61,18 @@ public open class WebRTCDataChannel internal constructor() : PacketPeer() { */ public final fun wasStringPacket(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.wasStringPacketPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.wasStringPacketPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setWriteMode(writeMode: WriteMode): Unit { TransferContext.writeArguments(LONG to writeMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setWriteModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setWriteModePtr, NIL) } public final fun getWriteMode(): WriteMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWriteModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getWriteModePtr, LONG) return WebRTCDataChannel.WriteMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -81,7 +81,7 @@ public open class WebRTCDataChannel internal constructor() : PacketPeer() { */ public final fun getReadyState(): ChannelState { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getReadyStatePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getReadyStatePtr, LONG) return WebRTCDataChannel.ChannelState.from(TransferContext.readReturnValue(LONG) as Long) } @@ -90,7 +90,7 @@ public open class WebRTCDataChannel internal constructor() : PacketPeer() { */ public final fun getLabel(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLabelPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getLabelPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -99,7 +99,7 @@ public open class WebRTCDataChannel internal constructor() : PacketPeer() { */ public final fun isOrdered(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isOrderedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isOrderedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -110,7 +110,7 @@ public open class WebRTCDataChannel internal constructor() : PacketPeer() { */ public final fun getId(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -120,7 +120,7 @@ public open class WebRTCDataChannel internal constructor() : PacketPeer() { */ public final fun getMaxPacketLifeTime(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxPacketLifeTimePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMaxPacketLifeTimePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -130,7 +130,7 @@ public open class WebRTCDataChannel internal constructor() : PacketPeer() { */ public final fun getMaxRetransmits(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxRetransmitsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMaxRetransmitsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -140,7 +140,7 @@ public open class WebRTCDataChannel internal constructor() : PacketPeer() { */ public final fun getProtocol(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getProtocolPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getProtocolPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -149,7 +149,7 @@ public open class WebRTCDataChannel internal constructor() : PacketPeer() { */ public final fun isNegotiated(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isNegotiatedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isNegotiatedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -158,7 +158,7 @@ public open class WebRTCDataChannel internal constructor() : PacketPeer() { */ public final fun getBufferedAmount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBufferedAmountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBufferedAmountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/WebRTCMultiplayerPeer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/WebRTCMultiplayerPeer.kt index 7358087be1..87e4cf54c4 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/WebRTCMultiplayerPeer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/WebRTCMultiplayerPeer.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.TypeManager import godot.core.VariantArray @@ -17,7 +18,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -57,7 +57,7 @@ public open class WebRTCMultiplayerPeer : MultiplayerPeer() { public final fun createServer(channelsConfig: VariantArray = godot.core.variantArrayOf()): Error { TransferContext.writeArguments(ARRAY to channelsConfig) - TransferContext.callMethod(rawPtr, MethodBindings.createServerPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.createServerPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -73,7 +73,7 @@ public open class WebRTCMultiplayerPeer : MultiplayerPeer() { public final fun createClient(peerId: Int, channelsConfig: VariantArray = godot.core.variantArrayOf()): Error { TransferContext.writeArguments(LONG to peerId.toLong(), ARRAY to channelsConfig) - TransferContext.callMethod(rawPtr, MethodBindings.createClientPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.createClientPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -85,7 +85,7 @@ public open class WebRTCMultiplayerPeer : MultiplayerPeer() { public final fun createMesh(peerId: Int, channelsConfig: VariantArray = godot.core.variantArrayOf()): Error { TransferContext.writeArguments(LONG to peerId.toLong(), ARRAY to channelsConfig) - TransferContext.callMethod(rawPtr, MethodBindings.createMeshPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.createMeshPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -103,7 +103,7 @@ public open class WebRTCMultiplayerPeer : MultiplayerPeer() { unreliableLifetime: Int = 1, ): Error { TransferContext.writeArguments(OBJECT to peer, LONG to peerId.toLong(), LONG to unreliableLifetime.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addPeerPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.addPeerPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -114,7 +114,7 @@ public open class WebRTCMultiplayerPeer : MultiplayerPeer() { */ public final fun removePeer(peerId: Int): Unit { TransferContext.writeArguments(LONG to peerId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.removePeerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removePeerPtr, NIL) } /** @@ -122,7 +122,7 @@ public open class WebRTCMultiplayerPeer : MultiplayerPeer() { */ public final fun hasPeer(peerId: Int): Boolean { TransferContext.writeArguments(LONG to peerId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.hasPeerPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasPeerPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -134,7 +134,7 @@ public open class WebRTCMultiplayerPeer : MultiplayerPeer() { */ public final fun getPeer(peerId: Int): Dictionary { TransferContext.writeArguments(LONG to peerId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getPeerPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getPeerPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -144,7 +144,7 @@ public open class WebRTCMultiplayerPeer : MultiplayerPeer() { */ public final fun getPeers(): Dictionary { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPeersPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getPeersPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/WebRTCPeerConnection.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/WebRTCPeerConnection.kt index 01af23c377..0c4f70c440 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/WebRTCPeerConnection.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/WebRTCPeerConnection.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.Signal1 import godot.core.Signal2 @@ -20,7 +21,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Int import kotlin.Long @@ -91,7 +91,7 @@ public open class WebRTCPeerConnection : RefCounted() { @JvmOverloads public final fun initialize(configuration: Dictionary = Dictionary()): Error { TransferContext.writeArguments(DICTIONARY to configuration) - TransferContext.callMethod(rawPtr, MethodBindings.initializePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.initializePtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -130,7 +130,7 @@ public open class WebRTCPeerConnection : RefCounted() { public final fun createDataChannel(label: String, options: Dictionary = Dictionary()): WebRTCDataChannel? { TransferContext.writeArguments(STRING to label, DICTIONARY to options) - TransferContext.callMethod(rawPtr, MethodBindings.createDataChannelPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.createDataChannelPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as WebRTCDataChannel?) } @@ -142,7 +142,7 @@ public open class WebRTCPeerConnection : RefCounted() { */ public final fun createOffer(): Error { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.createOfferPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.createOfferPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -154,7 +154,7 @@ public open class WebRTCPeerConnection : RefCounted() { */ public final fun setLocalDescription(type: String, sdp: String): Error { TransferContext.writeArguments(STRING to type, STRING to sdp) - TransferContext.callMethod(rawPtr, MethodBindings.setLocalDescriptionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.setLocalDescriptionPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -167,7 +167,7 @@ public open class WebRTCPeerConnection : RefCounted() { */ public final fun setRemoteDescription(type: String, sdp: String): Error { TransferContext.writeArguments(STRING to type, STRING to sdp) - TransferContext.callMethod(rawPtr, MethodBindings.setRemoteDescriptionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.setRemoteDescriptionPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -181,7 +181,7 @@ public open class WebRTCPeerConnection : RefCounted() { name: String, ): Error { TransferContext.writeArguments(STRING to media, LONG to index.toLong(), STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.addIceCandidatePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.addIceCandidatePtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -191,7 +191,7 @@ public open class WebRTCPeerConnection : RefCounted() { */ public final fun poll(): Error { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.pollPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.pollPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -201,7 +201,7 @@ public open class WebRTCPeerConnection : RefCounted() { */ public final fun close(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.closePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.closePtr, NIL) } /** @@ -209,7 +209,7 @@ public open class WebRTCPeerConnection : RefCounted() { */ public final fun getConnectionState(): ConnectionState { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConnectionStatePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getConnectionStatePtr, LONG) return WebRTCPeerConnection.ConnectionState.from(TransferContext.readReturnValue(LONG) as Long) } @@ -219,7 +219,7 @@ public open class WebRTCPeerConnection : RefCounted() { */ public final fun getGatheringState(): GatheringState { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getGatheringStatePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getGatheringStatePtr, LONG) return WebRTCPeerConnection.GatheringState.from(TransferContext.readReturnValue(LONG) as Long) } @@ -229,7 +229,7 @@ public open class WebRTCPeerConnection : RefCounted() { */ public final fun getSignalingState(): SignalingState { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSignalingStatePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getSignalingStatePtr, LONG) return WebRTCPeerConnection.SignalingState.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/WebSocketMultiplayerPeer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/WebSocketMultiplayerPeer.kt index 49c4e713b2..793779dc02 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/WebSocketMultiplayerPeer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/WebSocketMultiplayerPeer.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedStringArray import godot.core.TypeManager import godot.core.VariantParser.DOUBLE @@ -16,7 +17,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -121,7 +121,7 @@ public open class WebSocketMultiplayerPeer : MultiplayerPeer() { @JvmOverloads public final fun createClient(url: String, tlsClientOptions: TLSOptions? = null): Error { TransferContext.writeArguments(STRING to url, OBJECT to tlsClientOptions) - TransferContext.callMethod(rawPtr, MethodBindings.createClientPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.createClientPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -136,7 +136,7 @@ public open class WebSocketMultiplayerPeer : MultiplayerPeer() { tlsServerOptions: TLSOptions? = null, ): Error { TransferContext.writeArguments(LONG to port.toLong(), STRING to bindAddress, OBJECT to tlsServerOptions) - TransferContext.callMethod(rawPtr, MethodBindings.createServerPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.createServerPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -145,7 +145,7 @@ public open class WebSocketMultiplayerPeer : MultiplayerPeer() { */ public final fun getPeer(peerId: Int): WebSocketPeer? { TransferContext.writeArguments(LONG to peerId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getPeerPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getPeerPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as WebSocketPeer?) } @@ -154,7 +154,7 @@ public open class WebSocketMultiplayerPeer : MultiplayerPeer() { */ public final fun getPeerAddress(id: Int): String { TransferContext.writeArguments(LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getPeerAddressPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getPeerAddressPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -163,73 +163,73 @@ public open class WebSocketMultiplayerPeer : MultiplayerPeer() { */ public final fun getPeerPort(id: Int): Int { TransferContext.writeArguments(LONG to id.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getPeerPortPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPeerPortPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun getSupportedProtocols(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSupportedProtocolsPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getSupportedProtocolsPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } public final fun setSupportedProtocols(protocols: PackedStringArray): Unit { TransferContext.writeArguments(PACKED_STRING_ARRAY to protocols) - TransferContext.callMethod(rawPtr, MethodBindings.setSupportedProtocolsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSupportedProtocolsPtr, NIL) } public final fun getHandshakeHeaders(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHandshakeHeadersPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getHandshakeHeadersPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } public final fun setHandshakeHeaders(protocols: PackedStringArray): Unit { TransferContext.writeArguments(PACKED_STRING_ARRAY to protocols) - TransferContext.callMethod(rawPtr, MethodBindings.setHandshakeHeadersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHandshakeHeadersPtr, NIL) } public final fun getInboundBufferSize(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInboundBufferSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getInboundBufferSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setInboundBufferSize(bufferSize: Int): Unit { TransferContext.writeArguments(LONG to bufferSize.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setInboundBufferSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInboundBufferSizePtr, NIL) } public final fun getOutboundBufferSize(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOutboundBufferSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOutboundBufferSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setOutboundBufferSize(bufferSize: Int): Unit { TransferContext.writeArguments(LONG to bufferSize.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setOutboundBufferSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOutboundBufferSizePtr, NIL) } public final fun getHandshakeTimeout(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHandshakeTimeoutPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getHandshakeTimeoutPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setHandshakeTimeout(timeout: Float): Unit { TransferContext.writeArguments(DOUBLE to timeout.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setHandshakeTimeoutPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHandshakeTimeoutPtr, NIL) } public final fun setMaxQueuedPackets(maxQueuedPackets: Int): Unit { TransferContext.writeArguments(LONG to maxQueuedPackets.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxQueuedPacketsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxQueuedPacketsPtr, NIL) } public final fun getMaxQueuedPackets(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxQueuedPacketsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMaxQueuedPacketsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/WebSocketPeer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/WebSocketPeer.kt index 768312c8f1..1c812e1a31 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/WebSocketPeer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/WebSocketPeer.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedByteArray import godot.core.PackedStringArray import godot.core.TypeManager @@ -18,7 +19,6 @@ import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -143,7 +143,7 @@ public open class WebSocketPeer : PacketPeer() { @JvmOverloads public final fun connectToUrl(url: String, tlsClientOptions: TLSOptions? = null): Error { TransferContext.writeArguments(STRING to url, OBJECT to tlsClientOptions) - TransferContext.callMethod(rawPtr, MethodBindings.connectToUrlPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.connectToUrlPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -155,7 +155,7 @@ public open class WebSocketPeer : PacketPeer() { */ public final fun acceptStream(stream: StreamPeer?): Error { TransferContext.writeArguments(OBJECT to stream) - TransferContext.callMethod(rawPtr, MethodBindings.acceptStreamPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.acceptStreamPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -167,7 +167,7 @@ public open class WebSocketPeer : PacketPeer() { public final fun send(message: PackedByteArray, writeMode: WriteMode = WebSocketPeer.WriteMode.WRITE_MODE_BINARY): Error { TransferContext.writeArguments(PACKED_BYTE_ARRAY to message, LONG to writeMode.id) - TransferContext.callMethod(rawPtr, MethodBindings.sendPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.sendPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -178,7 +178,7 @@ public open class WebSocketPeer : PacketPeer() { */ public final fun sendText(message: String): Error { TransferContext.writeArguments(STRING to message) - TransferContext.callMethod(rawPtr, MethodBindings.sendTextPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.sendTextPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -187,7 +187,7 @@ public open class WebSocketPeer : PacketPeer() { */ public final fun wasStringPacket(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.wasStringPacketPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.wasStringPacketPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -197,7 +197,7 @@ public open class WebSocketPeer : PacketPeer() { */ public final fun poll(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.pollPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.pollPtr, NIL) } /** @@ -213,7 +213,7 @@ public open class WebSocketPeer : PacketPeer() { @JvmOverloads public final fun close(code: Int = 1000, reason: String = ""): Unit { TransferContext.writeArguments(LONG to code.toLong(), STRING to reason) - TransferContext.callMethod(rawPtr, MethodBindings.closePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.closePtr, NIL) } /** @@ -222,7 +222,7 @@ public open class WebSocketPeer : PacketPeer() { */ public final fun getConnectedHost(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConnectedHostPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getConnectedHostPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -232,7 +232,7 @@ public open class WebSocketPeer : PacketPeer() { */ public final fun getConnectedPort(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getConnectedPortPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getConnectedPortPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -242,7 +242,7 @@ public open class WebSocketPeer : PacketPeer() { */ public final fun getSelectedProtocol(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSelectedProtocolPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getSelectedProtocolPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -252,7 +252,7 @@ public open class WebSocketPeer : PacketPeer() { */ public final fun getRequestedUrl(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRequestedUrlPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getRequestedUrlPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -263,7 +263,7 @@ public open class WebSocketPeer : PacketPeer() { */ public final fun setNoDelay(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setNoDelayPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNoDelayPtr, NIL) } /** @@ -272,7 +272,7 @@ public open class WebSocketPeer : PacketPeer() { */ public final fun getCurrentOutboundBufferedAmount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCurrentOutboundBufferedAmountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCurrentOutboundBufferedAmountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -281,7 +281,7 @@ public open class WebSocketPeer : PacketPeer() { */ public final fun getReadyState(): State { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getReadyStatePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getReadyStatePtr, LONG) return WebSocketPeer.State.from(TransferContext.readReturnValue(LONG) as Long) } @@ -291,7 +291,7 @@ public open class WebSocketPeer : PacketPeer() { */ public final fun getCloseCode(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCloseCodePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCloseCodePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -301,62 +301,62 @@ public open class WebSocketPeer : PacketPeer() { */ public final fun getCloseReason(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCloseReasonPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getCloseReasonPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun getSupportedProtocols(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSupportedProtocolsPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getSupportedProtocolsPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } public final fun setSupportedProtocols(protocols: PackedStringArray): Unit { TransferContext.writeArguments(PACKED_STRING_ARRAY to protocols) - TransferContext.callMethod(rawPtr, MethodBindings.setSupportedProtocolsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSupportedProtocolsPtr, NIL) } public final fun getHandshakeHeaders(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHandshakeHeadersPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getHandshakeHeadersPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } public final fun setHandshakeHeaders(protocols: PackedStringArray): Unit { TransferContext.writeArguments(PACKED_STRING_ARRAY to protocols) - TransferContext.callMethod(rawPtr, MethodBindings.setHandshakeHeadersPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHandshakeHeadersPtr, NIL) } public final fun getInboundBufferSize(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInboundBufferSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getInboundBufferSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setInboundBufferSize(bufferSize: Int): Unit { TransferContext.writeArguments(LONG to bufferSize.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setInboundBufferSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInboundBufferSizePtr, NIL) } public final fun getOutboundBufferSize(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOutboundBufferSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getOutboundBufferSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setOutboundBufferSize(bufferSize: Int): Unit { TransferContext.writeArguments(LONG to bufferSize.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setOutboundBufferSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOutboundBufferSizePtr, NIL) } public final fun setMaxQueuedPackets(bufferSize: Int): Unit { TransferContext.writeArguments(LONG to bufferSize.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxQueuedPacketsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxQueuedPacketsPtr, NIL) } public final fun getMaxQueuedPackets(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxQueuedPacketsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getMaxQueuedPacketsPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/WebXRInterface.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/WebXRInterface.kt index 2e9a36f1dd..de6398628a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/WebXRInterface.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/WebXRInterface.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.Signal1 import godot.core.Signal2 @@ -20,7 +21,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -347,62 +347,62 @@ public open class WebXRInterface internal constructor() : XRInterface() { */ public final fun isSessionSupported(sessionMode: String): Unit { TransferContext.writeArguments(STRING to sessionMode) - TransferContext.callMethod(rawPtr, MethodBindings.isSessionSupportedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.isSessionSupportedPtr, NIL) } public final fun setSessionMode(sessionMode: String): Unit { TransferContext.writeArguments(STRING to sessionMode) - TransferContext.callMethod(rawPtr, MethodBindings.setSessionModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSessionModePtr, NIL) } public final fun getSessionMode(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSessionModePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getSessionModePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setRequiredFeatures(requiredFeatures: String): Unit { TransferContext.writeArguments(STRING to requiredFeatures) - TransferContext.callMethod(rawPtr, MethodBindings.setRequiredFeaturesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRequiredFeaturesPtr, NIL) } public final fun getRequiredFeatures(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRequiredFeaturesPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getRequiredFeaturesPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setOptionalFeatures(optionalFeatures: String): Unit { TransferContext.writeArguments(STRING to optionalFeatures) - TransferContext.callMethod(rawPtr, MethodBindings.setOptionalFeaturesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setOptionalFeaturesPtr, NIL) } public final fun getOptionalFeatures(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getOptionalFeaturesPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getOptionalFeaturesPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun getReferenceSpaceType(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getReferenceSpaceTypePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getReferenceSpaceTypePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun getEnabledFeatures(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnabledFeaturesPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getEnabledFeaturesPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setRequestedReferenceSpaceTypes(requestedReferenceSpaceTypes: String): Unit { TransferContext.writeArguments(STRING to requestedReferenceSpaceTypes) - TransferContext.callMethod(rawPtr, MethodBindings.setRequestedReferenceSpaceTypesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setRequestedReferenceSpaceTypesPtr, NIL) } public final fun getRequestedReferenceSpaceTypes(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRequestedReferenceSpaceTypesPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getRequestedReferenceSpaceTypesPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -411,7 +411,7 @@ public open class WebXRInterface internal constructor() : XRInterface() { */ public final fun isInputSourceActive(inputSourceId: Int): Boolean { TransferContext.writeArguments(LONG to inputSourceId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.isInputSourceActivePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isInputSourceActivePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -431,7 +431,7 @@ public open class WebXRInterface internal constructor() : XRInterface() { */ public final fun getInputSourceTracker(inputSourceId: Int): XRControllerTracker? { TransferContext.writeArguments(LONG to inputSourceId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getInputSourceTrackerPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getInputSourceTrackerPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as XRControllerTracker?) } @@ -443,13 +443,13 @@ public open class WebXRInterface internal constructor() : XRInterface() { */ public final fun getInputSourceTargetRayMode(inputSourceId: Int): TargetRayMode { TransferContext.writeArguments(LONG to inputSourceId.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getInputSourceTargetRayModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getInputSourceTargetRayModePtr, LONG) return WebXRInterface.TargetRayMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun getVisibilityState(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVisibilityStatePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getVisibilityStatePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -459,7 +459,7 @@ public open class WebXRInterface internal constructor() : XRInterface() { */ public final fun getDisplayRefreshRate(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDisplayRefreshRatePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDisplayRefreshRatePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -469,7 +469,7 @@ public open class WebXRInterface internal constructor() : XRInterface() { */ public final fun setDisplayRefreshRate(refreshRate: Float): Unit { TransferContext.writeArguments(DOUBLE to refreshRate.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDisplayRefreshRatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDisplayRefreshRatePtr, NIL) } /** @@ -478,7 +478,7 @@ public open class WebXRInterface internal constructor() : XRInterface() { */ public final fun getAvailableDisplayRefreshRates(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAvailableDisplayRefreshRatesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getAvailableDisplayRefreshRatesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/Window.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/Window.kt index d1634abba2..4ed3d810f1 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/Window.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/Window.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Color import godot.core.PackedStringArray import godot.core.PackedVector2Array @@ -32,7 +33,6 @@ import godot.core.VariantParser.VECTOR2I import godot.core.Vector2 import godot.core.Vector2i import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -718,12 +718,12 @@ public open class Window : Viewport() { public final fun setTitle(title: String): Unit { TransferContext.writeArguments(STRING to title) - TransferContext.callMethod(rawPtr, MethodBindings.setTitlePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTitlePtr, NIL) } public final fun getTitle(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTitlePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getTitlePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -732,40 +732,40 @@ public open class Window : Viewport() { */ public final fun getWindowId(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWindowIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getWindowIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setInitialPosition(initialPosition: WindowInitialPosition): Unit { TransferContext.writeArguments(LONG to initialPosition.id) - TransferContext.callMethod(rawPtr, MethodBindings.setInitialPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInitialPositionPtr, NIL) } public final fun getInitialPosition(): WindowInitialPosition { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInitialPositionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getInitialPositionPtr, LONG) return Window.WindowInitialPosition.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setCurrentScreen(index: Int): Unit { TransferContext.writeArguments(LONG to index.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.setCurrentScreenPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCurrentScreenPtr, NIL) } public final fun getCurrentScreen(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCurrentScreenPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCurrentScreenPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } public final fun setPosition(position: Vector2i): Unit { TransferContext.writeArguments(VECTOR2I to position) - TransferContext.callMethod(rawPtr, MethodBindings.setPositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPositionPtr, NIL) } public final fun getPosition(): Vector2i { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPositionPtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getPositionPtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -775,17 +775,17 @@ public open class Window : Viewport() { */ public final fun moveToCenter(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.moveToCenterPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.moveToCenterPtr, NIL) } public final fun setSize(size: Vector2i): Unit { TransferContext.writeArguments(VECTOR2I to size) - TransferContext.callMethod(rawPtr, MethodBindings.setSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setSizePtr, NIL) } public final fun getSize(): Vector2i { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSizePtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getSizePtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -796,7 +796,7 @@ public open class Window : Viewport() { */ public final fun resetSize(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.resetSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.resetSizePtr, NIL) } /** @@ -805,7 +805,7 @@ public open class Window : Viewport() { */ public final fun getPositionWithDecorations(): Vector2i { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPositionWithDecorationsPtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getPositionWithDecorationsPtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } @@ -815,40 +815,40 @@ public open class Window : Viewport() { */ public final fun getSizeWithDecorations(): Vector2i { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSizeWithDecorationsPtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getSizeWithDecorationsPtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } public final fun setMaxSize(maxSize: Vector2i): Unit { TransferContext.writeArguments(VECTOR2I to maxSize) - TransferContext.callMethod(rawPtr, MethodBindings.setMaxSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMaxSizePtr, NIL) } public final fun getMaxSize(): Vector2i { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMaxSizePtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getMaxSizePtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } public final fun setMinSize(minSize: Vector2i): Unit { TransferContext.writeArguments(VECTOR2I to minSize) - TransferContext.callMethod(rawPtr, MethodBindings.setMinSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMinSizePtr, NIL) } public final fun getMinSize(): Vector2i { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMinSizePtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getMinSizePtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } public final fun setMode(mode: Mode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setModePtr, NIL) } public final fun getMode(): Mode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getModePtr, LONG) return Window.Mode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -857,7 +857,7 @@ public open class Window : Viewport() { */ public final fun setFlag(flag: Flags, enabled: Boolean): Unit { TransferContext.writeArguments(LONG to flag.id, BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setFlagPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFlagPtr, NIL) } /** @@ -865,7 +865,7 @@ public open class Window : Viewport() { */ public final fun getFlag(flag: Flags): Boolean { TransferContext.writeArguments(LONG to flag.id) - TransferContext.callMethod(rawPtr, MethodBindings.getFlagPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getFlagPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -874,7 +874,7 @@ public open class Window : Viewport() { */ public final fun isMaximizeAllowed(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isMaximizeAllowedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isMaximizeAllowedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -884,7 +884,7 @@ public open class Window : Viewport() { */ public final fun requestAttention(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.requestAttentionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.requestAttentionPtr, NIL) } /** @@ -892,17 +892,17 @@ public open class Window : Viewport() { */ public final fun moveToForeground(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.moveToForegroundPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.moveToForegroundPtr, NIL) } public final fun setVisible(visible: Boolean): Unit { TransferContext.writeArguments(BOOL to visible) - TransferContext.callMethod(rawPtr, MethodBindings.setVisiblePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVisiblePtr, NIL) } public final fun isVisible(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isVisiblePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isVisiblePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -912,7 +912,7 @@ public open class Window : Viewport() { */ public final fun hide(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hidePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.hidePtr, NIL) } /** @@ -921,39 +921,39 @@ public open class Window : Viewport() { */ public final fun show(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.showPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.showPtr, NIL) } public final fun setTransient(transient: Boolean): Unit { TransferContext.writeArguments(BOOL to transient) - TransferContext.callMethod(rawPtr, MethodBindings.setTransientPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTransientPtr, NIL) } public final fun isTransient(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isTransientPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isTransientPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setTransientToFocused(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setTransientToFocusedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTransientToFocusedPtr, NIL) } public final fun isTransientToFocused(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isTransientToFocusedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isTransientToFocusedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setExclusive(exclusive: Boolean): Unit { TransferContext.writeArguments(BOOL to exclusive) - TransferContext.callMethod(rawPtr, MethodBindings.setExclusivePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setExclusivePtr, NIL) } public final fun isExclusive(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isExclusivePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isExclusivePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -964,7 +964,7 @@ public open class Window : Viewport() { */ public final fun setUnparentWhenInvisible(unparent: Boolean): Unit { TransferContext.writeArguments(BOOL to unparent) - TransferContext.callMethod(rawPtr, MethodBindings.setUnparentWhenInvisiblePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUnparentWhenInvisiblePtr, NIL) } /** @@ -972,7 +972,7 @@ public open class Window : Viewport() { */ public final fun canDraw(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.canDrawPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.canDrawPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -981,7 +981,7 @@ public open class Window : Viewport() { */ public final fun hasFocus(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.hasFocusPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasFocusPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -990,7 +990,7 @@ public open class Window : Viewport() { */ public final fun grabFocus(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.grabFocusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.grabFocusPtr, NIL) } /** @@ -998,7 +998,7 @@ public open class Window : Viewport() { */ public final fun setImeActive(active: Boolean): Unit { TransferContext.writeArguments(BOOL to active) - TransferContext.callMethod(rawPtr, MethodBindings.setImeActivePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setImeActivePtr, NIL) } /** @@ -1006,7 +1006,7 @@ public open class Window : Viewport() { */ public final fun setImePosition(position: Vector2i): Unit { TransferContext.writeArguments(VECTOR2I to position) - TransferContext.callMethod(rawPtr, MethodBindings.setImePositionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setImePositionPtr, NIL) } /** @@ -1014,7 +1014,7 @@ public open class Window : Viewport() { */ public final fun isEmbedded(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isEmbeddedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isEmbeddedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1025,84 +1025,84 @@ public open class Window : Viewport() { */ public final fun getContentsMinimumSize(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getContentsMinimumSizePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getContentsMinimumSizePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setForceNative(forceNative: Boolean): Unit { TransferContext.writeArguments(BOOL to forceNative) - TransferContext.callMethod(rawPtr, MethodBindings.setForceNativePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setForceNativePtr, NIL) } public final fun getForceNative(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getForceNativePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getForceNativePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setContentScaleSize(size: Vector2i): Unit { TransferContext.writeArguments(VECTOR2I to size) - TransferContext.callMethod(rawPtr, MethodBindings.setContentScaleSizePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setContentScaleSizePtr, NIL) } public final fun getContentScaleSize(): Vector2i { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getContentScaleSizePtr, VECTOR2I) + TransferContext.callMethod(ptr, MethodBindings.getContentScaleSizePtr, VECTOR2I) return (TransferContext.readReturnValue(VECTOR2I) as Vector2i) } public final fun setContentScaleMode(mode: ContentScaleMode): Unit { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setContentScaleModePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setContentScaleModePtr, NIL) } public final fun getContentScaleMode(): ContentScaleMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getContentScaleModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getContentScaleModePtr, LONG) return Window.ContentScaleMode.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setContentScaleAspect(aspect: ContentScaleAspect): Unit { TransferContext.writeArguments(LONG to aspect.id) - TransferContext.callMethod(rawPtr, MethodBindings.setContentScaleAspectPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setContentScaleAspectPtr, NIL) } public final fun getContentScaleAspect(): ContentScaleAspect { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getContentScaleAspectPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getContentScaleAspectPtr, LONG) return Window.ContentScaleAspect.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setContentScaleStretch(stretch: ContentScaleStretch): Unit { TransferContext.writeArguments(LONG to stretch.id) - TransferContext.callMethod(rawPtr, MethodBindings.setContentScaleStretchPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setContentScaleStretchPtr, NIL) } public final fun getContentScaleStretch(): ContentScaleStretch { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getContentScaleStretchPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getContentScaleStretchPtr, LONG) return Window.ContentScaleStretch.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setKeepTitleVisible(titleVisible: Boolean): Unit { TransferContext.writeArguments(BOOL to titleVisible) - TransferContext.callMethod(rawPtr, MethodBindings.setKeepTitleVisiblePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setKeepTitleVisiblePtr, NIL) } public final fun getKeepTitleVisible(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getKeepTitleVisiblePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getKeepTitleVisiblePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setContentScaleFactor(factor: Float): Unit { TransferContext.writeArguments(DOUBLE to factor.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setContentScaleFactorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setContentScaleFactorPtr, NIL) } public final fun getContentScaleFactor(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getContentScaleFactorPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getContentScaleFactorPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1111,7 +1111,7 @@ public open class Window : Viewport() { */ public final fun setUseFontOversampling(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setUseFontOversamplingPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setUseFontOversamplingPtr, NIL) } /** @@ -1119,30 +1119,30 @@ public open class Window : Viewport() { */ public final fun isUsingFontOversampling(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isUsingFontOversamplingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isUsingFontOversamplingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setMousePassthroughPolygon(polygon: PackedVector2Array): Unit { TransferContext.writeArguments(PACKED_VECTOR2_ARRAY to polygon) - TransferContext.callMethod(rawPtr, MethodBindings.setMousePassthroughPolygonPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setMousePassthroughPolygonPtr, NIL) } public final fun getMousePassthroughPolygon(): PackedVector2Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getMousePassthroughPolygonPtr, + TransferContext.callMethod(ptr, MethodBindings.getMousePassthroughPolygonPtr, PACKED_VECTOR2_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR2_ARRAY) as PackedVector2Array) } public final fun setWrapControls(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setWrapControlsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setWrapControlsPtr, NIL) } public final fun isWrappingControls(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isWrappingControlsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isWrappingControlsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1151,28 +1151,28 @@ public open class Window : Viewport() { */ public final fun childControlsChanged(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.childControlsChangedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.childControlsChangedPtr, NIL) } public final fun setTheme(theme: Theme?): Unit { TransferContext.writeArguments(OBJECT to theme) - TransferContext.callMethod(rawPtr, MethodBindings.setThemePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setThemePtr, NIL) } public final fun getTheme(): Theme? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getThemePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getThemePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Theme?) } public final fun setThemeTypeVariation(themeType: StringName): Unit { TransferContext.writeArguments(STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.setThemeTypeVariationPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setThemeTypeVariationPtr, NIL) } public final fun getThemeTypeVariation(): StringName { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getThemeTypeVariationPtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getThemeTypeVariationPtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } @@ -1182,7 +1182,7 @@ public open class Window : Viewport() { */ public final fun beginBulkThemeOverride(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.beginBulkThemeOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.beginBulkThemeOverridePtr, NIL) } /** @@ -1190,7 +1190,7 @@ public open class Window : Viewport() { */ public final fun endBulkThemeOverride(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.endBulkThemeOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.endBulkThemeOverridePtr, NIL) } /** @@ -1201,7 +1201,7 @@ public open class Window : Viewport() { */ public final fun addThemeIconOverride(name: StringName, texture: Texture2D?): Unit { TransferContext.writeArguments(STRING_NAME to name, OBJECT to texture) - TransferContext.callMethod(rawPtr, MethodBindings.addThemeIconOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addThemeIconOverridePtr, NIL) } /** @@ -1212,7 +1212,7 @@ public open class Window : Viewport() { */ public final fun addThemeStyleboxOverride(name: StringName, stylebox: StyleBox?): Unit { TransferContext.writeArguments(STRING_NAME to name, OBJECT to stylebox) - TransferContext.callMethod(rawPtr, MethodBindings.addThemeStyleboxOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addThemeStyleboxOverridePtr, NIL) } /** @@ -1223,7 +1223,7 @@ public open class Window : Viewport() { */ public final fun addThemeFontOverride(name: StringName, font: Font?): Unit { TransferContext.writeArguments(STRING_NAME to name, OBJECT to font) - TransferContext.callMethod(rawPtr, MethodBindings.addThemeFontOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addThemeFontOverridePtr, NIL) } /** @@ -1234,7 +1234,7 @@ public open class Window : Viewport() { */ public final fun addThemeFontSizeOverride(name: StringName, fontSize: Int): Unit { TransferContext.writeArguments(STRING_NAME to name, LONG to fontSize.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addThemeFontSizeOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addThemeFontSizeOverridePtr, NIL) } /** @@ -1245,7 +1245,7 @@ public open class Window : Viewport() { */ public final fun addThemeColorOverride(name: StringName, color: Color): Unit { TransferContext.writeArguments(STRING_NAME to name, COLOR to color) - TransferContext.callMethod(rawPtr, MethodBindings.addThemeColorOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addThemeColorOverridePtr, NIL) } /** @@ -1256,7 +1256,7 @@ public open class Window : Viewport() { */ public final fun addThemeConstantOverride(name: StringName, constant: Int): Unit { TransferContext.writeArguments(STRING_NAME to name, LONG to constant.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.addThemeConstantOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addThemeConstantOverridePtr, NIL) } /** @@ -1265,7 +1265,7 @@ public open class Window : Viewport() { */ public final fun removeThemeIconOverride(name: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.removeThemeIconOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeThemeIconOverridePtr, NIL) } /** @@ -1274,7 +1274,7 @@ public open class Window : Viewport() { */ public final fun removeThemeStyleboxOverride(name: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.removeThemeStyleboxOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeThemeStyleboxOverridePtr, NIL) } /** @@ -1283,7 +1283,7 @@ public open class Window : Viewport() { */ public final fun removeThemeFontOverride(name: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.removeThemeFontOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeThemeFontOverridePtr, NIL) } /** @@ -1292,7 +1292,7 @@ public open class Window : Viewport() { */ public final fun removeThemeFontSizeOverride(name: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.removeThemeFontSizeOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeThemeFontSizeOverridePtr, NIL) } /** @@ -1301,7 +1301,7 @@ public open class Window : Viewport() { */ public final fun removeThemeColorOverride(name: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.removeThemeColorOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeThemeColorOverridePtr, NIL) } /** @@ -1310,7 +1310,7 @@ public open class Window : Viewport() { */ public final fun removeThemeConstantOverride(name: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.removeThemeConstantOverridePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeThemeConstantOverridePtr, NIL) } /** @@ -1322,7 +1322,7 @@ public open class Window : Viewport() { public final fun getThemeIcon(name: StringName, themeType: StringName = StringName("")): Texture2D? { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.getThemeIconPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getThemeIconPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Texture2D?) } @@ -1335,7 +1335,7 @@ public open class Window : Viewport() { public final fun getThemeStylebox(name: StringName, themeType: StringName = StringName("")): StyleBox? { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.getThemeStyleboxPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getThemeStyleboxPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as StyleBox?) } @@ -1347,7 +1347,7 @@ public open class Window : Viewport() { @JvmOverloads public final fun getThemeFont(name: StringName, themeType: StringName = StringName("")): Font? { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.getThemeFontPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getThemeFontPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Font?) } @@ -1359,7 +1359,7 @@ public open class Window : Viewport() { @JvmOverloads public final fun getThemeFontSize(name: StringName, themeType: StringName = StringName("")): Int { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.getThemeFontSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getThemeFontSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1371,7 +1371,7 @@ public open class Window : Viewport() { @JvmOverloads public final fun getThemeColor(name: StringName, themeType: StringName = StringName("")): Color { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.getThemeColorPtr, COLOR) + TransferContext.callMethod(ptr, MethodBindings.getThemeColorPtr, COLOR) return (TransferContext.readReturnValue(COLOR) as Color) } @@ -1383,7 +1383,7 @@ public open class Window : Viewport() { @JvmOverloads public final fun getThemeConstant(name: StringName, themeType: StringName = StringName("")): Int { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.getThemeConstantPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getThemeConstantPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1394,7 +1394,7 @@ public open class Window : Viewport() { */ public final fun hasThemeIconOverride(name: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.hasThemeIconOverridePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasThemeIconOverridePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1405,7 +1405,7 @@ public open class Window : Viewport() { */ public final fun hasThemeStyleboxOverride(name: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.hasThemeStyleboxOverridePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasThemeStyleboxOverridePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1416,7 +1416,7 @@ public open class Window : Viewport() { */ public final fun hasThemeFontOverride(name: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.hasThemeFontOverridePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasThemeFontOverridePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1427,7 +1427,7 @@ public open class Window : Viewport() { */ public final fun hasThemeFontSizeOverride(name: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.hasThemeFontSizeOverridePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasThemeFontSizeOverridePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1438,7 +1438,7 @@ public open class Window : Viewport() { */ public final fun hasThemeColorOverride(name: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.hasThemeColorOverridePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasThemeColorOverridePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1449,7 +1449,7 @@ public open class Window : Viewport() { */ public final fun hasThemeConstantOverride(name: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.hasThemeConstantOverridePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasThemeConstantOverridePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1461,7 +1461,7 @@ public open class Window : Viewport() { @JvmOverloads public final fun hasThemeIcon(name: StringName, themeType: StringName = StringName("")): Boolean { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.hasThemeIconPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasThemeIconPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1474,7 +1474,7 @@ public open class Window : Viewport() { public final fun hasThemeStylebox(name: StringName, themeType: StringName = StringName("")): Boolean { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.hasThemeStyleboxPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasThemeStyleboxPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1486,7 +1486,7 @@ public open class Window : Viewport() { @JvmOverloads public final fun hasThemeFont(name: StringName, themeType: StringName = StringName("")): Boolean { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.hasThemeFontPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasThemeFontPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1499,7 +1499,7 @@ public open class Window : Viewport() { public final fun hasThemeFontSize(name: StringName, themeType: StringName = StringName("")): Boolean { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.hasThemeFontSizePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasThemeFontSizePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1512,7 +1512,7 @@ public open class Window : Viewport() { public final fun hasThemeColor(name: StringName, themeType: StringName = StringName("")): Boolean { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.hasThemeColorPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasThemeColorPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1525,7 +1525,7 @@ public open class Window : Viewport() { public final fun hasThemeConstant(name: StringName, themeType: StringName = StringName("")): Boolean { TransferContext.writeArguments(STRING_NAME to name, STRING_NAME to themeType) - TransferContext.callMethod(rawPtr, MethodBindings.hasThemeConstantPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasThemeConstantPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1536,7 +1536,7 @@ public open class Window : Viewport() { */ public final fun getThemeDefaultBaseScale(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getThemeDefaultBaseScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getThemeDefaultBaseScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -1547,7 +1547,7 @@ public open class Window : Viewport() { */ public final fun getThemeDefaultFont(): Font? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getThemeDefaultFontPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getThemeDefaultFontPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Font?) } @@ -1558,7 +1558,7 @@ public open class Window : Viewport() { */ public final fun getThemeDefaultFontSize(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getThemeDefaultFontSizePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getThemeDefaultFontSizePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -1568,7 +1568,7 @@ public open class Window : Viewport() { */ public final fun setLayoutDirection(direction: LayoutDirection): Unit { TransferContext.writeArguments(LONG to direction.id) - TransferContext.callMethod(rawPtr, MethodBindings.setLayoutDirectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLayoutDirectionPtr, NIL) } /** @@ -1576,7 +1576,7 @@ public open class Window : Viewport() { */ public final fun getLayoutDirection(): LayoutDirection { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLayoutDirectionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getLayoutDirectionPtr, LONG) return Window.LayoutDirection.from(TransferContext.readReturnValue(LONG) as Long) } @@ -1585,18 +1585,18 @@ public open class Window : Viewport() { */ public final fun isLayoutRtl(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isLayoutRtlPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isLayoutRtlPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAutoTranslate(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setAutoTranslatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAutoTranslatePtr, NIL) } public final fun isAutoTranslating(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isAutoTranslatingPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isAutoTranslatingPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -1616,7 +1616,7 @@ public open class Window : Viewport() { @JvmOverloads public final fun popup(rect: Rect2i = Rect2i(0, 0, 0, 0)): Unit { TransferContext.writeArguments(RECT2I to rect) - TransferContext.callMethod(rawPtr, MethodBindings.popupPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.popupPtr, NIL) } /** @@ -1625,7 +1625,7 @@ public open class Window : Viewport() { */ public final fun popupOnParent(parentRect: Rect2i): Unit { TransferContext.writeArguments(RECT2I to parentRect) - TransferContext.callMethod(rawPtr, MethodBindings.popupOnParentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.popupOnParentPtr, NIL) } /** @@ -1637,7 +1637,7 @@ public open class Window : Viewport() { @JvmOverloads public final fun popupCentered(minsize: Vector2i = Vector2i(0, 0)): Unit { TransferContext.writeArguments(VECTOR2I to minsize) - TransferContext.callMethod(rawPtr, MethodBindings.popupCenteredPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.popupCenteredPtr, NIL) } /** @@ -1649,7 +1649,7 @@ public open class Window : Viewport() { @JvmOverloads public final fun popupCenteredRatio(ratio: Float = 0.8f): Unit { TransferContext.writeArguments(DOUBLE to ratio.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.popupCenteredRatioPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.popupCenteredRatioPtr, NIL) } /** @@ -1662,7 +1662,7 @@ public open class Window : Viewport() { public final fun popupCenteredClamped(minsize: Vector2i = Vector2i(0, 0), fallbackRatio: Float = 0.75f): Unit { TransferContext.writeArguments(VECTOR2I to minsize, DOUBLE to fallbackRatio.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.popupCenteredClampedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.popupCenteredClampedPtr, NIL) } /** @@ -1673,7 +1673,7 @@ public open class Window : Viewport() { @JvmOverloads public final fun popupExclusive(fromNode: Node?, rect: Rect2i = Rect2i(0, 0, 0, 0)): Unit { TransferContext.writeArguments(OBJECT to fromNode, RECT2I to rect) - TransferContext.callMethod(rawPtr, MethodBindings.popupExclusivePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.popupExclusivePtr, NIL) } /** @@ -1684,7 +1684,7 @@ public open class Window : Viewport() { */ public final fun popupExclusiveOnParent(fromNode: Node?, parentRect: Rect2i): Unit { TransferContext.writeArguments(OBJECT to fromNode, RECT2I to parentRect) - TransferContext.callMethod(rawPtr, MethodBindings.popupExclusiveOnParentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.popupExclusiveOnParentPtr, NIL) } /** @@ -1697,7 +1697,7 @@ public open class Window : Viewport() { public final fun popupExclusiveCentered(fromNode: Node?, minsize: Vector2i = Vector2i(0, 0)): Unit { TransferContext.writeArguments(OBJECT to fromNode, VECTOR2I to minsize) - TransferContext.callMethod(rawPtr, MethodBindings.popupExclusiveCenteredPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.popupExclusiveCenteredPtr, NIL) } /** @@ -1709,7 +1709,7 @@ public open class Window : Viewport() { @JvmOverloads public final fun popupExclusiveCenteredRatio(fromNode: Node?, ratio: Float = 0.8f): Unit { TransferContext.writeArguments(OBJECT to fromNode, DOUBLE to ratio.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.popupExclusiveCenteredRatioPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.popupExclusiveCenteredRatioPtr, NIL) } /** @@ -1725,7 +1725,7 @@ public open class Window : Viewport() { fallbackRatio: Float = 0.75f, ): Unit { TransferContext.writeArguments(OBJECT to fromNode, VECTOR2I to minsize, DOUBLE to fallbackRatio.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.popupExclusiveCenteredClampedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.popupExclusiveCenteredClampedPtr, NIL) } public enum class Mode( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/WorkerThreadPool.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/WorkerThreadPool.kt index 7c01bac3ba..d8e54b4ff9 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/WorkerThreadPool.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/WorkerThreadPool.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -15,7 +16,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -97,7 +97,7 @@ public object WorkerThreadPool : Object() { description: String = "", ): Long { TransferContext.writeArguments(CALLABLE to action, BOOL to highPriority, STRING to description) - TransferContext.callMethod(rawPtr, MethodBindings.addTaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.addTaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -108,7 +108,7 @@ public object WorkerThreadPool : Object() { @JvmStatic public final fun isTaskCompleted(taskId: Long): Boolean { TransferContext.writeArguments(LONG to taskId) - TransferContext.callMethod(rawPtr, MethodBindings.isTaskCompletedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isTaskCompletedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -126,7 +126,7 @@ public object WorkerThreadPool : Object() { @JvmStatic public final fun waitForTaskCompletion(taskId: Long): Error { TransferContext.writeArguments(LONG to taskId) - TransferContext.callMethod(rawPtr, MethodBindings.waitForTaskCompletionPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.waitForTaskCompletionPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -154,7 +154,7 @@ public object WorkerThreadPool : Object() { description: String = "", ): Long { TransferContext.writeArguments(CALLABLE to action, LONG to elements.toLong(), LONG to tasksNeeded.toLong(), BOOL to highPriority, STRING to description) - TransferContext.callMethod(rawPtr, MethodBindings.addGroupTaskPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.addGroupTaskPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -166,7 +166,7 @@ public object WorkerThreadPool : Object() { @JvmStatic public final fun isGroupTaskCompleted(groupId: Long): Boolean { TransferContext.writeArguments(LONG to groupId) - TransferContext.callMethod(rawPtr, MethodBindings.isGroupTaskCompletedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isGroupTaskCompletedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -179,7 +179,7 @@ public object WorkerThreadPool : Object() { @JvmStatic public final fun getGroupProcessedElementCount(groupId: Long): Long { TransferContext.writeArguments(LONG to groupId) - TransferContext.callMethod(rawPtr, MethodBindings.getGroupProcessedElementCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getGroupProcessedElementCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -189,7 +189,7 @@ public object WorkerThreadPool : Object() { @JvmStatic public final fun waitForGroupTaskCompletion(groupId: Long): Unit { TransferContext.writeArguments(LONG to groupId) - TransferContext.callMethod(rawPtr, MethodBindings.waitForGroupTaskCompletionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.waitForGroupTaskCompletionPtr, NIL) } internal object MethodBindings { diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/World2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/World2D.kt index 6f321f0c07..cdc230771f 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/World2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/World2D.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.TypeManager import godot.core.VariantParser.OBJECT import godot.core.VariantParser._RID import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -61,25 +61,25 @@ public open class World2D : Resource() { public final fun getCanvas(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCanvasPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getCanvasPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } public final fun getSpace(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSpacePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getSpacePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } public final fun getNavigationMap(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNavigationMapPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getNavigationMapPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } public final fun getDirectSpaceState(): PhysicsDirectSpaceState2D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDirectSpaceStatePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getDirectSpaceStatePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as PhysicsDirectSpaceState2D?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/World3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/World3D.kt index 5cfa67e994..a33d68f82a 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/World3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/World3D.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.RID import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser._RID import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -94,58 +94,58 @@ public open class World3D : Resource() { public final fun getSpace(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSpacePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getSpacePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } public final fun getNavigationMap(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNavigationMapPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getNavigationMapPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } public final fun getScenario(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getScenarioPtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getScenarioPtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } public final fun setEnvironment(env: Environment?): Unit { TransferContext.writeArguments(OBJECT to env) - TransferContext.callMethod(rawPtr, MethodBindings.setEnvironmentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnvironmentPtr, NIL) } public final fun getEnvironment(): Environment? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnvironmentPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getEnvironmentPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Environment?) } public final fun setFallbackEnvironment(env: Environment?): Unit { TransferContext.writeArguments(OBJECT to env) - TransferContext.callMethod(rawPtr, MethodBindings.setFallbackEnvironmentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFallbackEnvironmentPtr, NIL) } public final fun getFallbackEnvironment(): Environment? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFallbackEnvironmentPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getFallbackEnvironmentPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Environment?) } public final fun setCameraAttributes(attributes: CameraAttributes?): Unit { TransferContext.writeArguments(OBJECT to attributes) - TransferContext.callMethod(rawPtr, MethodBindings.setCameraAttributesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCameraAttributesPtr, NIL) } public final fun getCameraAttributes(): CameraAttributes? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCameraAttributesPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getCameraAttributesPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as CameraAttributes?) } public final fun getDirectSpaceState(): PhysicsDirectSpaceState3D? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDirectSpaceStatePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getDirectSpaceStatePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as PhysicsDirectSpaceState3D?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/WorldBoundaryShape2D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/WorldBoundaryShape2D.kt index b122bedddc..be7e9198fc 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/WorldBoundaryShape2D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/WorldBoundaryShape2D.kt @@ -9,13 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -90,23 +90,23 @@ public open class WorldBoundaryShape2D : Shape2D() { public final fun setNormal(normal: Vector2): Unit { TransferContext.writeArguments(VECTOR2 to normal) - TransferContext.callMethod(rawPtr, MethodBindings.setNormalPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNormalPtr, NIL) } public final fun getNormal(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNormalPtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getNormalPtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } public final fun setDistance(distance: Float): Unit { TransferContext.writeArguments(DOUBLE to distance.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setDistancePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setDistancePtr, NIL) } public final fun getDistance(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDistancePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getDistancePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/WorldBoundaryShape3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/WorldBoundaryShape3D.kt index 562f4cc9cd..163c1216a7 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/WorldBoundaryShape3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/WorldBoundaryShape3D.kt @@ -9,12 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Plane import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.PLANE import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -70,12 +70,12 @@ public open class WorldBoundaryShape3D : Shape3D() { public final fun setPlane(plane: Plane): Unit { TransferContext.writeArguments(PLANE to plane) - TransferContext.callMethod(rawPtr, MethodBindings.setPlanePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPlanePtr, NIL) } public final fun getPlane(): Plane { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPlanePtr, PLANE) + TransferContext.callMethod(ptr, MethodBindings.getPlanePtr, PLANE) return (TransferContext.readReturnValue(PLANE) as Plane) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/WorldEnvironment.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/WorldEnvironment.kt index b2922c8a21..e10e42d14b 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/WorldEnvironment.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/WorldEnvironment.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -68,34 +68,34 @@ public open class WorldEnvironment : Node() { public final fun setEnvironment(env: Environment?): Unit { TransferContext.writeArguments(OBJECT to env) - TransferContext.callMethod(rawPtr, MethodBindings.setEnvironmentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setEnvironmentPtr, NIL) } public final fun getEnvironment(): Environment? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnvironmentPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getEnvironmentPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Environment?) } public final fun setCameraAttributes(cameraAttributes: CameraAttributes?): Unit { TransferContext.writeArguments(OBJECT to cameraAttributes) - TransferContext.callMethod(rawPtr, MethodBindings.setCameraAttributesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCameraAttributesPtr, NIL) } public final fun getCameraAttributes(): CameraAttributes? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCameraAttributesPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getCameraAttributesPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as CameraAttributes?) } public final fun setCompositor(compositor: Compositor?): Unit { TransferContext.writeArguments(OBJECT to compositor) - TransferContext.callMethod(rawPtr, MethodBindings.setCompositorPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCompositorPtr, NIL) } public final fun getCompositor(): Compositor? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCompositorPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getCompositorPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as Compositor?) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/X509Certificate.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/X509Certificate.kt index e361a9a0a5..b15d060642 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/X509Certificate.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/X509Certificate.kt @@ -7,11 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.String @@ -36,7 +36,7 @@ public open class X509Certificate : Resource() { */ public final fun save(path: String): Error { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.savePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.savePtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -45,7 +45,7 @@ public open class X509Certificate : Resource() { */ public final fun load(path: String): Error { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.loadPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.loadPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -55,7 +55,7 @@ public open class X509Certificate : Resource() { */ public final fun saveToString(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.saveToStringPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.saveToStringPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -64,7 +64,7 @@ public open class X509Certificate : Resource() { */ public final fun loadFromString(string: String): Error { TransferContext.writeArguments(STRING to string) - TransferContext.callMethod(rawPtr, MethodBindings.loadFromStringPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.loadFromStringPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/XMLParser.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/XMLParser.kt index 28973bc0d4..0ae7aa87af 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/XMLParser.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/XMLParser.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedByteArray import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -15,7 +16,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -75,7 +75,7 @@ public open class XMLParser : RefCounted() { */ public final fun read(): Error { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.readPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.readPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -84,7 +84,7 @@ public open class XMLParser : RefCounted() { */ public final fun getNodeType(): NodeType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNodeTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getNodeTypePtr, LONG) return XMLParser.NodeType.from(TransferContext.readReturnValue(LONG) as Long) } @@ -96,7 +96,7 @@ public open class XMLParser : RefCounted() { */ public final fun getNodeName(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNodeNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getNodeNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -106,7 +106,7 @@ public open class XMLParser : RefCounted() { */ public final fun getNodeData(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNodeDataPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getNodeDataPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -116,7 +116,7 @@ public open class XMLParser : RefCounted() { */ public final fun getNodeOffset(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNodeOffsetPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getNodeOffsetPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -127,7 +127,7 @@ public open class XMLParser : RefCounted() { */ public final fun getAttributeCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAttributeCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getAttributeCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -136,7 +136,7 @@ public open class XMLParser : RefCounted() { */ public final fun getAttributeName(idx: Int): String { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getAttributeNamePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getAttributeNamePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -146,7 +146,7 @@ public open class XMLParser : RefCounted() { */ public final fun getAttributeValue(idx: Int): String { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getAttributeValuePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getAttributeValuePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -155,7 +155,7 @@ public open class XMLParser : RefCounted() { */ public final fun hasAttribute(name: String): Boolean { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.hasAttributePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasAttributePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -165,7 +165,7 @@ public open class XMLParser : RefCounted() { */ public final fun getNamedAttributeValue(name: String): String { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.getNamedAttributeValuePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getNamedAttributeValuePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -175,7 +175,7 @@ public open class XMLParser : RefCounted() { */ public final fun getNamedAttributeValueSafe(name: String): String { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.getNamedAttributeValueSafePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getNamedAttributeValueSafePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } @@ -184,7 +184,7 @@ public open class XMLParser : RefCounted() { */ public final fun isEmpty(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isEmptyPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isEmptyPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -193,7 +193,7 @@ public open class XMLParser : RefCounted() { */ public final fun getCurrentLine(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCurrentLinePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCurrentLinePtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -203,7 +203,7 @@ public open class XMLParser : RefCounted() { */ public final fun skipSection(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.skipSectionPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.skipSectionPtr, NIL) } /** @@ -212,7 +212,7 @@ public open class XMLParser : RefCounted() { */ public final fun seek(position: Long): Error { TransferContext.writeArguments(LONG to position) - TransferContext.callMethod(rawPtr, MethodBindings.seekPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.seekPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -221,7 +221,7 @@ public open class XMLParser : RefCounted() { */ public final fun `open`(`file`: String): Error { TransferContext.writeArguments(STRING to file) - TransferContext.callMethod(rawPtr, MethodBindings.openPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.openPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -230,7 +230,7 @@ public open class XMLParser : RefCounted() { */ public final fun openBuffer(buffer: PackedByteArray): Error { TransferContext.writeArguments(PACKED_BYTE_ARRAY to buffer) - TransferContext.callMethod(rawPtr, MethodBindings.openBufferPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.openBufferPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRAnchor3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRAnchor3D.kt index 95ac5fd039..8527bb8d01 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRAnchor3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRAnchor3D.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Plane import godot.core.TypeManager import godot.core.VariantParser.PLANE import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -42,7 +42,7 @@ public open class XRAnchor3D : XRNode3D() { */ public final fun getSize(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSizePtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getSizePtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -51,7 +51,7 @@ public open class XRAnchor3D : XRNode3D() { */ public final fun getPlane(): Plane { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPlanePtr, PLANE) + TransferContext.callMethod(ptr, MethodBindings.getPlanePtr, PLANE) return (TransferContext.readReturnValue(PLANE) as Plane) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRBodyModifier3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRBodyModifier3D.kt index de8215a39f..dbe987b41e 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRBodyModifier3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRBodyModifier3D.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.StringName import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -70,34 +70,34 @@ public open class XRBodyModifier3D : SkeletonModifier3D() { public final fun setBodyTracker(trackerName: StringName): Unit { TransferContext.writeArguments(STRING_NAME to trackerName) - TransferContext.callMethod(rawPtr, MethodBindings.setBodyTrackerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBodyTrackerPtr, NIL) } public final fun getBodyTracker(): StringName { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBodyTrackerPtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getBodyTrackerPtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } public final fun setBodyUpdate(bodyUpdate: BodyUpdate): Unit { TransferContext.writeArguments(LONG to bodyUpdate.flag) - TransferContext.callMethod(rawPtr, MethodBindings.setBodyUpdatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBodyUpdatePtr, NIL) } public final fun getBodyUpdate(): BodyUpdate { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBodyUpdatePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBodyUpdatePtr, LONG) return BodyUpdateValue(TransferContext.readReturnValue(LONG) as Long) } public final fun setBoneUpdate(boneUpdate: BoneUpdate): Unit { TransferContext.writeArguments(LONG to boneUpdate.id) - TransferContext.callMethod(rawPtr, MethodBindings.setBoneUpdatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBoneUpdatePtr, NIL) } public final fun getBoneUpdate(): BoneUpdate { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBoneUpdatePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBoneUpdatePtr, LONG) return XRBodyModifier3D.BoneUpdate.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRBodyTracker.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRBodyTracker.kt index ea7e12ef7a..0928ba3221 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRBodyTracker.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRBodyTracker.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Transform3D import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -14,7 +15,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.TRANSFORM3D import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -59,23 +59,23 @@ public open class XRBodyTracker : XRPositionalTracker() { public final fun setHasTrackingData(hasData: Boolean): Unit { TransferContext.writeArguments(BOOL to hasData) - TransferContext.callMethod(rawPtr, MethodBindings.setHasTrackingDataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHasTrackingDataPtr, NIL) } public final fun getHasTrackingData(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHasTrackingDataPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getHasTrackingDataPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setBodyFlags(flags: BodyFlags): Unit { TransferContext.writeArguments(LONG to flags.flag) - TransferContext.callMethod(rawPtr, MethodBindings.setBodyFlagsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBodyFlagsPtr, NIL) } public final fun getBodyFlags(): BodyFlags { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBodyFlagsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBodyFlagsPtr, LONG) return BodyFlagsValue(TransferContext.readReturnValue(LONG) as Long) } @@ -84,7 +84,7 @@ public open class XRBodyTracker : XRPositionalTracker() { */ public final fun setJointFlags(joint: Joint, flags: JointFlags): Unit { TransferContext.writeArguments(LONG to joint.id, LONG to flags.flag) - TransferContext.callMethod(rawPtr, MethodBindings.setJointFlagsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setJointFlagsPtr, NIL) } /** @@ -93,7 +93,7 @@ public open class XRBodyTracker : XRPositionalTracker() { */ public final fun getJointFlags(joint: Joint): JointFlags { TransferContext.writeArguments(LONG to joint.id) - TransferContext.callMethod(rawPtr, MethodBindings.getJointFlagsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getJointFlagsPtr, LONG) return JointFlagsValue(TransferContext.readReturnValue(LONG) as Long) } @@ -102,7 +102,7 @@ public open class XRBodyTracker : XRPositionalTracker() { */ public final fun setJointTransform(joint: Joint, transform: Transform3D): Unit { TransferContext.writeArguments(LONG to joint.id, TRANSFORM3D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.setJointTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setJointTransformPtr, NIL) } /** @@ -110,7 +110,7 @@ public open class XRBodyTracker : XRPositionalTracker() { */ public final fun getJointTransform(joint: Joint): Transform3D { TransferContext.writeArguments(LONG to joint.id) - TransferContext.callMethod(rawPtr, MethodBindings.getJointTransformPtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.getJointTransformPtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRController3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRController3D.kt index 4106e0c945..3fff21a789 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRController3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRController3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal1 import godot.core.Signal2 import godot.core.StringName @@ -19,7 +20,6 @@ import godot.core.VariantParser.STRING_NAME import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -78,7 +78,7 @@ public open class XRController3D : XRNode3D() { */ public final fun isButtonPressed(name: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.isButtonPressedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isButtonPressedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -88,7 +88,7 @@ public open class XRController3D : XRNode3D() { */ public final fun getInput(name: StringName): Any? { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.getInputPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getInputPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -98,7 +98,7 @@ public open class XRController3D : XRNode3D() { */ public final fun getFloat(name: StringName): Float { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.getFloatPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getFloatPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -108,7 +108,7 @@ public open class XRController3D : XRNode3D() { */ public final fun getVector2(name: StringName): Vector2 { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.getVector2Ptr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getVector2Ptr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -117,7 +117,7 @@ public open class XRController3D : XRNode3D() { */ public final fun getTrackerHand(): XRPositionalTracker.TrackerHand { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTrackerHandPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTrackerHandPtr, LONG) return XRPositionalTracker.TrackerHand.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRFaceModifier3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRFaceModifier3D.kt index 4db4d74e83..73f5d3c25d 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRFaceModifier3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRFaceModifier3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.StringName import godot.core.TypeManager @@ -14,7 +15,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -60,23 +60,23 @@ public open class XRFaceModifier3D : Node3D() { public final fun setFaceTracker(trackerName: StringName): Unit { TransferContext.writeArguments(STRING_NAME to trackerName) - TransferContext.callMethod(rawPtr, MethodBindings.setFaceTrackerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setFaceTrackerPtr, NIL) } public final fun getFaceTracker(): StringName { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFaceTrackerPtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getFaceTrackerPtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } public final fun setTarget(target: NodePath): Unit { TransferContext.writeArguments(NODE_PATH to target) - TransferContext.callMethod(rawPtr, MethodBindings.setTargetPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTargetPtr, NIL) } public final fun getTarget(): NodePath { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTargetPtr, NODE_PATH) + TransferContext.callMethod(ptr, MethodBindings.getTargetPtr, NODE_PATH) return (TransferContext.readReturnValue(NODE_PATH) as NodePath) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRFaceTracker.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRFaceTracker.kt index 036322b2f9..e30fbf6408 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRFaceTracker.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRFaceTracker.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedFloat32Array import godot.core.TypeManager import godot.core.VariantParser.DOUBLE @@ -14,7 +15,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_FLOAT_32_ARRAY import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -56,7 +56,7 @@ public open class XRFaceTracker : XRTracker() { */ public final fun getBlendShape(blendShape: BlendShapeEntry): Float { TransferContext.writeArguments(LONG to blendShape.id) - TransferContext.callMethod(rawPtr, MethodBindings.getBlendShapePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getBlendShapePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -65,18 +65,18 @@ public open class XRFaceTracker : XRTracker() { */ public final fun setBlendShape(blendShape: BlendShapeEntry, weight: Float): Unit { TransferContext.writeArguments(LONG to blendShape.id, DOUBLE to weight.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setBlendShapePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBlendShapePtr, NIL) } public final fun getBlendShapes(): PackedFloat32Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBlendShapesPtr, PACKED_FLOAT_32_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getBlendShapesPtr, PACKED_FLOAT_32_ARRAY) return (TransferContext.readReturnValue(PACKED_FLOAT_32_ARRAY) as PackedFloat32Array) } public final fun setBlendShapes(weights: PackedFloat32Array): Unit { TransferContext.writeArguments(PACKED_FLOAT_32_ARRAY to weights) - TransferContext.callMethod(rawPtr, MethodBindings.setBlendShapesPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBlendShapesPtr, NIL) } public enum class BlendShapeEntry( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRHandModifier3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRHandModifier3D.kt index 133a278d6a..586940573c 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRHandModifier3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRHandModifier3D.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.StringName import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -58,23 +58,23 @@ public open class XRHandModifier3D : SkeletonModifier3D() { public final fun setHandTracker(trackerName: StringName): Unit { TransferContext.writeArguments(STRING_NAME to trackerName) - TransferContext.callMethod(rawPtr, MethodBindings.setHandTrackerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHandTrackerPtr, NIL) } public final fun getHandTracker(): StringName { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHandTrackerPtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getHandTrackerPtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } public final fun setBoneUpdate(boneUpdate: BoneUpdate): Unit { TransferContext.writeArguments(LONG to boneUpdate.id) - TransferContext.callMethod(rawPtr, MethodBindings.setBoneUpdatePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setBoneUpdatePtr, NIL) } public final fun getBoneUpdate(): BoneUpdate { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getBoneUpdatePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getBoneUpdatePtr, LONG) return XRHandModifier3D.BoneUpdate.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRHandTracker.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRHandTracker.kt index d9214143c7..245ceaeca7 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRHandTracker.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRHandTracker.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Transform3D import godot.core.TypeManager import godot.core.VariantParser.BOOL @@ -17,7 +18,6 @@ import godot.core.VariantParser.TRANSFORM3D import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -64,23 +64,23 @@ public open class XRHandTracker : XRPositionalTracker() { public final fun setHasTrackingData(hasData: Boolean): Unit { TransferContext.writeArguments(BOOL to hasData) - TransferContext.callMethod(rawPtr, MethodBindings.setHasTrackingDataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHasTrackingDataPtr, NIL) } public final fun getHasTrackingData(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHasTrackingDataPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getHasTrackingDataPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setHandTrackingSource(source: HandTrackingSource): Unit { TransferContext.writeArguments(LONG to source.id) - TransferContext.callMethod(rawPtr, MethodBindings.setHandTrackingSourcePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHandTrackingSourcePtr, NIL) } public final fun getHandTrackingSource(): HandTrackingSource { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHandTrackingSourcePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getHandTrackingSourcePtr, LONG) return XRHandTracker.HandTrackingSource.from(TransferContext.readReturnValue(LONG) as Long) } @@ -89,7 +89,7 @@ public open class XRHandTracker : XRPositionalTracker() { */ public final fun setHandJointFlags(joint: HandJoint, flags: HandJointFlags): Unit { TransferContext.writeArguments(LONG to joint.id, LONG to flags.flag) - TransferContext.callMethod(rawPtr, MethodBindings.setHandJointFlagsPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHandJointFlagsPtr, NIL) } /** @@ -98,7 +98,7 @@ public open class XRHandTracker : XRPositionalTracker() { */ public final fun getHandJointFlags(joint: HandJoint): HandJointFlags { TransferContext.writeArguments(LONG to joint.id) - TransferContext.callMethod(rawPtr, MethodBindings.getHandJointFlagsPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getHandJointFlagsPtr, LONG) return HandJointFlagsValue(TransferContext.readReturnValue(LONG) as Long) } @@ -107,7 +107,7 @@ public open class XRHandTracker : XRPositionalTracker() { */ public final fun setHandJointTransform(joint: HandJoint, transform: Transform3D): Unit { TransferContext.writeArguments(LONG to joint.id, TRANSFORM3D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.setHandJointTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHandJointTransformPtr, NIL) } /** @@ -115,7 +115,7 @@ public open class XRHandTracker : XRPositionalTracker() { */ public final fun getHandJointTransform(joint: HandJoint): Transform3D { TransferContext.writeArguments(LONG to joint.id) - TransferContext.callMethod(rawPtr, MethodBindings.getHandJointTransformPtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.getHandJointTransformPtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } @@ -124,7 +124,7 @@ public open class XRHandTracker : XRPositionalTracker() { */ public final fun setHandJointRadius(joint: HandJoint, radius: Float): Unit { TransferContext.writeArguments(LONG to joint.id, DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setHandJointRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHandJointRadiusPtr, NIL) } /** @@ -132,7 +132,7 @@ public open class XRHandTracker : XRPositionalTracker() { */ public final fun getHandJointRadius(joint: HandJoint): Float { TransferContext.writeArguments(LONG to joint.id) - TransferContext.callMethod(rawPtr, MethodBindings.getHandJointRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getHandJointRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } @@ -141,7 +141,7 @@ public open class XRHandTracker : XRPositionalTracker() { */ public final fun setHandJointLinearVelocity(joint: HandJoint, linearVelocity: Vector3): Unit { TransferContext.writeArguments(LONG to joint.id, VECTOR3 to linearVelocity) - TransferContext.callMethod(rawPtr, MethodBindings.setHandJointLinearVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHandJointLinearVelocityPtr, NIL) } /** @@ -149,7 +149,7 @@ public open class XRHandTracker : XRPositionalTracker() { */ public final fun getHandJointLinearVelocity(joint: HandJoint): Vector3 { TransferContext.writeArguments(LONG to joint.id) - TransferContext.callMethod(rawPtr, MethodBindings.getHandJointLinearVelocityPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getHandJointLinearVelocityPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } @@ -158,7 +158,7 @@ public open class XRHandTracker : XRPositionalTracker() { */ public final fun setHandJointAngularVelocity(joint: HandJoint, angularVelocity: Vector3): Unit { TransferContext.writeArguments(LONG to joint.id, VECTOR3 to angularVelocity) - TransferContext.callMethod(rawPtr, MethodBindings.setHandJointAngularVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHandJointAngularVelocityPtr, NIL) } /** @@ -166,7 +166,7 @@ public open class XRHandTracker : XRPositionalTracker() { */ public final fun getHandJointAngularVelocity(joint: HandJoint): Vector3 { TransferContext.writeArguments(LONG to joint.id) - TransferContext.callMethod(rawPtr, MethodBindings.getHandJointAngularVelocityPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getHandJointAngularVelocityPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRInterface.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRInterface.kt index d224be7fca..144991ac90 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRInterface.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRInterface.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedVector3Array import godot.core.Projection @@ -29,7 +30,6 @@ import godot.core.VariantParser.TRANSFORM3D import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -102,7 +102,7 @@ public open class XRInterface internal constructor() : RefCounted() { */ public final fun getName(): StringName { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNamePtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getNamePtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } @@ -112,19 +112,19 @@ public open class XRInterface internal constructor() : RefCounted() { */ public final fun getCapabilities(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCapabilitiesPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCapabilitiesPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } public final fun isPrimary(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isPrimaryPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPrimaryPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setPrimary(primary: Boolean): Unit { TransferContext.writeArguments(BOOL to primary) - TransferContext.callMethod(rawPtr, MethodBindings.setPrimaryPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPrimaryPtr, NIL) } /** @@ -132,7 +132,7 @@ public open class XRInterface internal constructor() : RefCounted() { */ public final fun isInitialized(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isInitializedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isInitializedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -154,7 +154,7 @@ public open class XRInterface internal constructor() : RefCounted() { */ public final fun initialize(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.initializePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.initializePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -163,7 +163,7 @@ public open class XRInterface internal constructor() : RefCounted() { */ public final fun uninitialize(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.uninitializePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.uninitializePtr, NIL) } /** @@ -174,7 +174,7 @@ public open class XRInterface internal constructor() : RefCounted() { */ public final fun getSystemInfo(): Dictionary { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSystemInfoPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getSystemInfoPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -184,7 +184,7 @@ public open class XRInterface internal constructor() : RefCounted() { */ public final fun getTrackingStatus(): TrackingStatus { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTrackingStatusPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTrackingStatusPtr, LONG) return XRInterface.TrackingStatus.from(TransferContext.readReturnValue(LONG) as Long) } @@ -194,7 +194,7 @@ public open class XRInterface internal constructor() : RefCounted() { */ public final fun getRenderTargetSize(): Vector2 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getRenderTargetSizePtr, VECTOR2) + TransferContext.callMethod(ptr, MethodBindings.getRenderTargetSizePtr, VECTOR2) return (TransferContext.readReturnValue(VECTOR2) as Vector2) } @@ -204,7 +204,7 @@ public open class XRInterface internal constructor() : RefCounted() { */ public final fun getViewCount(): Long { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getViewCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getViewCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long) } @@ -228,7 +228,7 @@ public open class XRInterface internal constructor() : RefCounted() { delaySec: Double, ): Unit { TransferContext.writeArguments(STRING to actionName, STRING_NAME to trackerName, DOUBLE to frequency, DOUBLE to amplitude, DOUBLE to durationSec, DOUBLE to delaySec) - TransferContext.callMethod(rawPtr, MethodBindings.triggerHapticPulsePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.triggerHapticPulsePtr, NIL) } /** @@ -236,13 +236,13 @@ public open class XRInterface internal constructor() : RefCounted() { */ public final fun supportsPlayAreaMode(mode: PlayAreaMode): Boolean { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.supportsPlayAreaModePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.supportsPlayAreaModePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun getPlayAreaMode(): PlayAreaMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPlayAreaModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getPlayAreaModePtr, LONG) return XRInterface.PlayAreaMode.from(TransferContext.readReturnValue(LONG) as Long) } @@ -255,7 +255,7 @@ public open class XRInterface internal constructor() : RefCounted() { */ public final fun setPlayAreaMode(mode: PlayAreaMode): Boolean { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setPlayAreaModePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.setPlayAreaModePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -267,19 +267,19 @@ public open class XRInterface internal constructor() : RefCounted() { */ public final fun getPlayArea(): PackedVector3Array { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPlayAreaPtr, PACKED_VECTOR3_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getPlayAreaPtr, PACKED_VECTOR3_ARRAY) return (TransferContext.readReturnValue(PACKED_VECTOR3_ARRAY) as PackedVector3Array) } public final fun getAnchorDetectionIsEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAnchorDetectionIsEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getAnchorDetectionIsEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setAnchorDetectionIsEnabled(enable: Boolean): Unit { TransferContext.writeArguments(BOOL to enable) - TransferContext.callMethod(rawPtr, MethodBindings.setAnchorDetectionIsEnabledPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAnchorDetectionIsEnabledPtr, NIL) } /** @@ -288,7 +288,7 @@ public open class XRInterface internal constructor() : RefCounted() { */ public final fun getCameraFeedId(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getCameraFeedIdPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getCameraFeedIdPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -297,7 +297,7 @@ public open class XRInterface internal constructor() : RefCounted() { */ public final fun isPassthroughSupported(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isPassthroughSupportedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPassthroughSupportedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -306,7 +306,7 @@ public open class XRInterface internal constructor() : RefCounted() { */ public final fun isPassthroughEnabled(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isPassthroughEnabledPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isPassthroughEnabledPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -317,7 +317,7 @@ public open class XRInterface internal constructor() : RefCounted() { */ public final fun startPassthrough(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.startPassthroughPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.startPassthroughPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -326,7 +326,7 @@ public open class XRInterface internal constructor() : RefCounted() { */ public final fun stopPassthrough(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.stopPassthroughPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.stopPassthroughPtr, NIL) } /** @@ -337,7 +337,7 @@ public open class XRInterface internal constructor() : RefCounted() { */ public final fun getTransformForView(view: Long, camTransform: Transform3D): Transform3D { TransferContext.writeArguments(LONG to view, TRANSFORM3D to camTransform) - TransferContext.callMethod(rawPtr, MethodBindings.getTransformForViewPtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.getTransformForViewPtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } @@ -351,7 +351,7 @@ public open class XRInterface internal constructor() : RefCounted() { far: Double, ): Projection { TransferContext.writeArguments(LONG to view, DOUBLE to aspect, DOUBLE to near, DOUBLE to far) - TransferContext.callMethod(rawPtr, MethodBindings.getProjectionForViewPtr, PROJECTION) + TransferContext.callMethod(ptr, MethodBindings.getProjectionForViewPtr, PROJECTION) return (TransferContext.readReturnValue(PROJECTION) as Projection) } @@ -361,7 +361,7 @@ public open class XRInterface internal constructor() : RefCounted() { */ public final fun getSupportedEnvironmentBlendModes(): VariantArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getSupportedEnvironmentBlendModesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getSupportedEnvironmentBlendModesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray) } @@ -387,13 +387,13 @@ public open class XRInterface internal constructor() : RefCounted() { */ public final fun setEnvironmentBlendMode(mode: EnvironmentBlendMode): Boolean { TransferContext.writeArguments(LONG to mode.id) - TransferContext.callMethod(rawPtr, MethodBindings.setEnvironmentBlendModePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.setEnvironmentBlendModePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun getEnvironmentBlendMode(): EnvironmentBlendMode { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getEnvironmentBlendModePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getEnvironmentBlendModePtr, LONG) return XRInterface.EnvironmentBlendMode.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRInterfaceExtension.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRInterfaceExtension.kt index 30acd99a73..56d9101cea 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRInterfaceExtension.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRInterfaceExtension.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedFloat64Array import godot.core.PackedStringArray @@ -27,7 +28,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -276,19 +276,19 @@ public open class XRInterfaceExtension : XRInterface() { public final fun getColorTexture(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getColorTexturePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getColorTexturePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } public final fun getDepthTexture(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getDepthTexturePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getDepthTexturePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } public final fun getVelocityTexture(): RID { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVelocityTexturePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getVelocityTexturePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } @@ -310,7 +310,7 @@ public open class XRInterfaceExtension : XRInterface() { aspectRatio: Double, ): Unit { TransferContext.writeArguments(_RID to renderTarget, RECT2 to srcRect, RECT2I to dstRect, BOOL to useLayer, LONG to layer, BOOL to applyLensDistortion, VECTOR2 to eyeCenter, DOUBLE to k1, DOUBLE to k2, DOUBLE to upscale, DOUBLE to aspectRatio) - TransferContext.callMethod(rawPtr, MethodBindings.addBlitPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addBlitPtr, NIL) } /** @@ -319,7 +319,7 @@ public open class XRInterfaceExtension : XRInterface() { */ public final fun getRenderTargetTexture(renderTarget: RID): RID { TransferContext.writeArguments(_RID to renderTarget) - TransferContext.callMethod(rawPtr, MethodBindings.getRenderTargetTexturePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.getRenderTargetTexturePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRNode3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRNode3D.kt index 8ec6c9d70d..e60ac9f244 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRNode3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRNode3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal1 import godot.core.StringName import godot.core.TypeManager @@ -17,7 +18,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Int @@ -84,34 +84,34 @@ public open class XRNode3D : Node3D() { public final fun setTracker(trackerName: StringName): Unit { TransferContext.writeArguments(STRING_NAME to trackerName) - TransferContext.callMethod(rawPtr, MethodBindings.setTrackerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTrackerPtr, NIL) } public final fun getTracker(): StringName { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTrackerPtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getTrackerPtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } public final fun setPoseName(pose: StringName): Unit { TransferContext.writeArguments(STRING_NAME to pose) - TransferContext.callMethod(rawPtr, MethodBindings.setPoseNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPoseNamePtr, NIL) } public final fun getPoseName(): StringName { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPoseNamePtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getPoseNamePtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } public final fun setShowWhenTracked(show: Boolean): Unit { TransferContext.writeArguments(BOOL to show) - TransferContext.callMethod(rawPtr, MethodBindings.setShowWhenTrackedPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setShowWhenTrackedPtr, NIL) } public final fun getShowWhenTracked(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getShowWhenTrackedPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getShowWhenTrackedPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -120,7 +120,7 @@ public open class XRNode3D : Node3D() { */ public final fun getIsActive(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getIsActivePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getIsActivePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -129,7 +129,7 @@ public open class XRNode3D : Node3D() { */ public final fun getHasTrackingData(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHasTrackingDataPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getHasTrackingDataPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -139,7 +139,7 @@ public open class XRNode3D : Node3D() { */ public final fun getPose(): XRPose? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPosePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getPosePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as XRPose?) } @@ -160,7 +160,7 @@ public open class XRNode3D : Node3D() { delaySec: Double, ): Unit { TransferContext.writeArguments(STRING to actionName, DOUBLE to frequency, DOUBLE to amplitude, DOUBLE to durationSec, DOUBLE to delaySec) - TransferContext.callMethod(rawPtr, MethodBindings.triggerHapticPulsePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.triggerHapticPulsePtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/XROrigin3D.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/XROrigin3D.kt index 28abc4155f..323d979d21 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/XROrigin3D.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/XROrigin3D.kt @@ -7,12 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -67,23 +67,23 @@ public open class XROrigin3D : Node3D() { public final fun setWorldScale(worldScale: Float): Unit { TransferContext.writeArguments(DOUBLE to worldScale.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setWorldScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setWorldScalePtr, NIL) } public final fun getWorldScale(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWorldScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getWorldScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setCurrent(enabled: Boolean): Unit { TransferContext.writeArguments(BOOL to enabled) - TransferContext.callMethod(rawPtr, MethodBindings.setCurrentPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setCurrentPtr, NIL) } public final fun isCurrent(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.isCurrentPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.isCurrentPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRPose.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRPose.kt index bbecb9d882..9a25eed98d 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRPose.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRPose.kt @@ -9,6 +9,7 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.StringName import godot.core.Transform3D import godot.core.TypeManager @@ -20,7 +21,6 @@ import godot.core.VariantParser.TRANSFORM3D import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -194,34 +194,34 @@ public open class XRPose : RefCounted() { public final fun setHasTrackingData(hasTrackingData: Boolean): Unit { TransferContext.writeArguments(BOOL to hasTrackingData) - TransferContext.callMethod(rawPtr, MethodBindings.setHasTrackingDataPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setHasTrackingDataPtr, NIL) } public final fun getHasTrackingData(): Boolean { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHasTrackingDataPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.getHasTrackingDataPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } public final fun setName(name: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.setNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setNamePtr, NIL) } public final fun getName(): StringName { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getNamePtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getNamePtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } public final fun setTransform(transform: Transform3D): Unit { TransferContext.writeArguments(TRANSFORM3D to transform) - TransferContext.callMethod(rawPtr, MethodBindings.setTransformPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTransformPtr, NIL) } public final fun getTransform(): Transform3D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTransformPtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.getTransformPtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } @@ -231,40 +231,40 @@ public open class XRPose : RefCounted() { */ public final fun getAdjustedTransform(): Transform3D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAdjustedTransformPtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.getAdjustedTransformPtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } public final fun setLinearVelocity(velocity: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to velocity) - TransferContext.callMethod(rawPtr, MethodBindings.setLinearVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setLinearVelocityPtr, NIL) } public final fun getLinearVelocity(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getLinearVelocityPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getLinearVelocityPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setAngularVelocity(velocity: Vector3): Unit { TransferContext.writeArguments(VECTOR3 to velocity) - TransferContext.callMethod(rawPtr, MethodBindings.setAngularVelocityPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setAngularVelocityPtr, NIL) } public final fun getAngularVelocity(): Vector3 { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getAngularVelocityPtr, VECTOR3) + TransferContext.callMethod(ptr, MethodBindings.getAngularVelocityPtr, VECTOR3) return (TransferContext.readReturnValue(VECTOR3) as Vector3) } public final fun setTrackingConfidence(trackingConfidence: TrackingConfidence): Unit { TransferContext.writeArguments(LONG to trackingConfidence.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTrackingConfidencePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTrackingConfidencePtr, NIL) } public final fun getTrackingConfidence(): TrackingConfidence { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTrackingConfidencePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTrackingConfidencePtr, LONG) return XRPose.TrackingConfidence.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRPositionalTracker.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRPositionalTracker.kt index d45ae9be0f..7b21d1459f 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRPositionalTracker.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRPositionalTracker.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Signal1 import godot.core.Signal2 import godot.core.StringName @@ -24,7 +25,6 @@ import godot.core.VariantParser.VECTOR3 import godot.core.Vector2 import godot.core.Vector3 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -111,24 +111,24 @@ public open class XRPositionalTracker : XRTracker() { public final fun getTrackerProfile(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTrackerProfilePtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getTrackerProfilePtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setTrackerProfile(profile: String): Unit { TransferContext.writeArguments(STRING to profile) - TransferContext.callMethod(rawPtr, MethodBindings.setTrackerProfilePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTrackerProfilePtr, NIL) } public final fun getTrackerHand(): TrackerHand { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTrackerHandPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTrackerHandPtr, LONG) return XRPositionalTracker.TrackerHand.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setTrackerHand(hand: TrackerHand): Unit { TransferContext.writeArguments(LONG to hand.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTrackerHandPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTrackerHandPtr, NIL) } /** @@ -136,7 +136,7 @@ public open class XRPositionalTracker : XRTracker() { */ public final fun hasPose(name: StringName): Boolean { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.hasPosePtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.hasPosePtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } @@ -145,7 +145,7 @@ public open class XRPositionalTracker : XRTracker() { */ public final fun getPose(name: StringName): XRPose? { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.getPosePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getPosePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as XRPose?) } @@ -156,7 +156,7 @@ public open class XRPositionalTracker : XRTracker() { */ public final fun invalidatePose(name: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.invalidatePosePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.invalidatePosePtr, NIL) } /** @@ -171,7 +171,7 @@ public open class XRPositionalTracker : XRTracker() { trackingConfidence: XRPose.TrackingConfidence, ): Unit { TransferContext.writeArguments(STRING_NAME to name, TRANSFORM3D to transform, VECTOR3 to linearVelocity, VECTOR3 to angularVelocity, LONG to trackingConfidence.id) - TransferContext.callMethod(rawPtr, MethodBindings.setPosePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPosePtr, NIL) } /** @@ -180,7 +180,7 @@ public open class XRPositionalTracker : XRTracker() { */ public final fun getInput(name: StringName): Any? { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.getInputPtr, ANY) + TransferContext.callMethod(ptr, MethodBindings.getInputPtr, ANY) return (TransferContext.readReturnValue(ANY) as Any?) } @@ -190,7 +190,7 @@ public open class XRPositionalTracker : XRTracker() { */ public final fun setInput(name: StringName, `value`: Any?): Unit { TransferContext.writeArguments(STRING_NAME to name, ANY to value) - TransferContext.callMethod(rawPtr, MethodBindings.setInputPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setInputPtr, NIL) } public enum class TrackerHand( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRServer.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRServer.kt index e2514bf0a0..441e795884 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRServer.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRServer.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.Signal0 import godot.core.Signal1 @@ -26,7 +27,6 @@ import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME import godot.core.VariantParser.TRANSFORM3D import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -92,27 +92,27 @@ public object XRServer : Object() { @JvmStatic public final fun getWorldScale(): Double { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWorldScalePtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getWorldScalePtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double) } @JvmStatic public final fun setWorldScale(scale: Double): Unit { TransferContext.writeArguments(DOUBLE to scale) - TransferContext.callMethod(rawPtr, MethodBindings.setWorldScalePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setWorldScalePtr, NIL) } @JvmStatic public final fun getWorldOrigin(): Transform3D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getWorldOriginPtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.getWorldOriginPtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } @JvmStatic public final fun setWorldOrigin(worldOrigin: Transform3D): Unit { TransferContext.writeArguments(TRANSFORM3D to worldOrigin) - TransferContext.callMethod(rawPtr, MethodBindings.setWorldOriginPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setWorldOriginPtr, NIL) } /** @@ -122,7 +122,7 @@ public object XRServer : Object() { @JvmStatic public final fun getReferenceFrame(): Transform3D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getReferenceFramePtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.getReferenceFramePtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } @@ -132,7 +132,7 @@ public object XRServer : Object() { @JvmStatic public final fun clearReferenceFrame(): Unit { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.clearReferenceFramePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.clearReferenceFramePtr, NIL) } /** @@ -155,7 +155,7 @@ public object XRServer : Object() { @JvmStatic public final fun centerOnHmd(rotationMode: RotationMode, keepHeight: Boolean): Unit { TransferContext.writeArguments(LONG to rotationMode.id, BOOL to keepHeight) - TransferContext.callMethod(rawPtr, MethodBindings.centerOnHmdPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.centerOnHmdPtr, NIL) } /** @@ -164,7 +164,7 @@ public object XRServer : Object() { @JvmStatic public final fun getHmdTransform(): Transform3D { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getHmdTransformPtr, TRANSFORM3D) + TransferContext.callMethod(ptr, MethodBindings.getHmdTransformPtr, TRANSFORM3D) return (TransferContext.readReturnValue(TRANSFORM3D) as Transform3D) } @@ -174,7 +174,7 @@ public object XRServer : Object() { @JvmStatic public final fun addInterface(`interface`: XRInterface?): Unit { TransferContext.writeArguments(OBJECT to `interface`) - TransferContext.callMethod(rawPtr, MethodBindings.addInterfacePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addInterfacePtr, NIL) } /** @@ -186,7 +186,7 @@ public object XRServer : Object() { @JvmStatic public final fun getInterfaceCount(): Int { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInterfaceCountPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getInterfaceCountPtr, LONG) return (TransferContext.readReturnValue(LONG) as Long).toInt() } @@ -196,7 +196,7 @@ public object XRServer : Object() { @JvmStatic public final fun removeInterface(`interface`: XRInterface?): Unit { TransferContext.writeArguments(OBJECT to `interface`) - TransferContext.callMethod(rawPtr, MethodBindings.removeInterfacePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeInterfacePtr, NIL) } /** @@ -205,7 +205,7 @@ public object XRServer : Object() { @JvmStatic public final fun getInterface(idx: Int): XRInterface? { TransferContext.writeArguments(LONG to idx.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getInterfacePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getInterfacePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as XRInterface?) } @@ -215,7 +215,7 @@ public object XRServer : Object() { @JvmStatic public final fun getInterfaces(): VariantArray> { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getInterfacesPtr, ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getInterfacesPtr, ARRAY) return (TransferContext.readReturnValue(ARRAY) as VariantArray>) } @@ -226,7 +226,7 @@ public object XRServer : Object() { @JvmStatic public final fun findInterface(name: String): XRInterface? { TransferContext.writeArguments(STRING to name) - TransferContext.callMethod(rawPtr, MethodBindings.findInterfacePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.findInterfacePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as XRInterface?) } @@ -236,7 +236,7 @@ public object XRServer : Object() { @JvmStatic public final fun addTracker(tracker: XRTracker?): Unit { TransferContext.writeArguments(OBJECT to tracker) - TransferContext.callMethod(rawPtr, MethodBindings.addTrackerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.addTrackerPtr, NIL) } /** @@ -245,7 +245,7 @@ public object XRServer : Object() { @JvmStatic public final fun removeTracker(tracker: XRTracker?): Unit { TransferContext.writeArguments(OBJECT to tracker) - TransferContext.callMethod(rawPtr, MethodBindings.removeTrackerPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.removeTrackerPtr, NIL) } /** @@ -254,7 +254,7 @@ public object XRServer : Object() { @JvmStatic public final fun getTrackers(trackerTypes: Int): Dictionary { TransferContext.writeArguments(LONG to trackerTypes.toLong()) - TransferContext.callMethod(rawPtr, MethodBindings.getTrackersPtr, DICTIONARY) + TransferContext.callMethod(ptr, MethodBindings.getTrackersPtr, DICTIONARY) return (TransferContext.readReturnValue(DICTIONARY) as Dictionary) } @@ -264,21 +264,21 @@ public object XRServer : Object() { @JvmStatic public final fun getTracker(trackerName: StringName): XRTracker? { TransferContext.writeArguments(STRING_NAME to trackerName) - TransferContext.callMethod(rawPtr, MethodBindings.getTrackerPtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getTrackerPtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as XRTracker?) } @JvmStatic public final fun getPrimaryInterface(): XRInterface? { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getPrimaryInterfacePtr, OBJECT) + TransferContext.callMethod(ptr, MethodBindings.getPrimaryInterfacePtr, OBJECT) return (TransferContext.readReturnValue(OBJECT) as XRInterface?) } @JvmStatic public final fun setPrimaryInterface(`interface`: XRInterface?): Unit { TransferContext.writeArguments(OBJECT to `interface`) - TransferContext.callMethod(rawPtr, MethodBindings.setPrimaryInterfacePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setPrimaryInterfacePtr, NIL) } public enum class TrackerType( diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRTracker.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRTracker.kt index 5a35e49f02..296f56f9ec 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRTracker.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRTracker.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.StringName import godot.core.TypeManager import godot.core.VariantParser.LONG @@ -14,7 +15,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.String @@ -75,35 +75,35 @@ public open class XRTracker internal constructor() : RefCounted() { public final fun getTrackerType(): XRServer.TrackerType { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTrackerTypePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.getTrackerTypePtr, LONG) return XRServer.TrackerType.from(TransferContext.readReturnValue(LONG) as Long) } public final fun setTrackerType(type: XRServer.TrackerType): Unit { TransferContext.writeArguments(LONG to type.id) - TransferContext.callMethod(rawPtr, MethodBindings.setTrackerTypePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTrackerTypePtr, NIL) } public final fun getTrackerName(): StringName { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTrackerNamePtr, STRING_NAME) + TransferContext.callMethod(ptr, MethodBindings.getTrackerNamePtr, STRING_NAME) return (TransferContext.readReturnValue(STRING_NAME) as StringName) } public final fun setTrackerName(name: StringName): Unit { TransferContext.writeArguments(STRING_NAME to name) - TransferContext.callMethod(rawPtr, MethodBindings.setTrackerNamePtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTrackerNamePtr, NIL) } public final fun getTrackerDesc(): String { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getTrackerDescPtr, STRING) + TransferContext.callMethod(ptr, MethodBindings.getTrackerDescPtr, STRING) return (TransferContext.readReturnValue(STRING) as String) } public final fun setTrackerDesc(description: String): Unit { TransferContext.writeArguments(STRING to description) - TransferContext.callMethod(rawPtr, MethodBindings.setTrackerDescPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setTrackerDescPtr, NIL) } public companion object diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRVRS.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRVRS.kt index 407dec39d8..c384383db2 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/XRVRS.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/XRVRS.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedVector2Array import godot.core.RID import godot.core.TypeManager @@ -17,7 +18,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Double import kotlin.Float import kotlin.Int @@ -61,24 +61,24 @@ public open class XRVRS : Object() { public final fun getVrsMinRadius(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVrsMinRadiusPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVrsMinRadiusPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVrsMinRadius(radius: Float): Unit { TransferContext.writeArguments(DOUBLE to radius.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVrsMinRadiusPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVrsMinRadiusPtr, NIL) } public final fun getVrsStrength(): Float { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getVrsStrengthPtr, DOUBLE) + TransferContext.callMethod(ptr, MethodBindings.getVrsStrengthPtr, DOUBLE) return (TransferContext.readReturnValue(DOUBLE) as Double).toFloat() } public final fun setVrsStrength(strength: Float): Unit { TransferContext.writeArguments(DOUBLE to strength.toDouble()) - TransferContext.callMethod(rawPtr, MethodBindings.setVrsStrengthPtr, NIL) + TransferContext.callMethod(ptr, MethodBindings.setVrsStrengthPtr, NIL) } /** @@ -89,7 +89,7 @@ public open class XRVRS : Object() { */ public final fun makeVrsTexture(targetSize: Vector2, eyeFoci: PackedVector2Array): RID { TransferContext.writeArguments(VECTOR2 to targetSize, PACKED_VECTOR2_ARRAY to eyeFoci) - TransferContext.callMethod(rawPtr, MethodBindings.makeVrsTexturePtr, _RID) + TransferContext.callMethod(ptr, MethodBindings.makeVrsTexturePtr, _RID) return (TransferContext.readReturnValue(_RID) as RID) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ZIPPacker.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ZIPPacker.kt index 9883c4c5a3..46c02e85e9 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ZIPPacker.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ZIPPacker.kt @@ -7,13 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedByteArray import godot.core.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Int import kotlin.Long import kotlin.String @@ -51,7 +51,7 @@ public open class ZIPPacker : RefCounted() { public final fun `open`(path: String, append: ZipAppend = ZIPPacker.ZipAppend.APPEND_CREATE): Error { TransferContext.writeArguments(STRING to path, LONG to append.id) - TransferContext.callMethod(rawPtr, MethodBindings.openPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.openPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -61,7 +61,7 @@ public open class ZIPPacker : RefCounted() { */ public final fun startFile(path: String): Error { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.startFilePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.startFilePtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -71,7 +71,7 @@ public open class ZIPPacker : RefCounted() { */ public final fun writeFile(`data`: PackedByteArray): Error { TransferContext.writeArguments(PACKED_BYTE_ARRAY to data) - TransferContext.callMethod(rawPtr, MethodBindings.writeFilePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.writeFilePtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -81,7 +81,7 @@ public open class ZIPPacker : RefCounted() { */ public final fun closeFile(): Error { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.closeFilePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.closeFilePtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -90,7 +90,7 @@ public open class ZIPPacker : RefCounted() { */ public final fun close(): Error { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.closePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.closePtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } diff --git a/kt/godot-library/src/main/kotlin/godot/gen/godot/ZIPReader.kt b/kt/godot-library/src/main/kotlin/godot/gen/godot/ZIPReader.kt index c271d1d2da..6c56403a89 100644 --- a/kt/godot-library/src/main/kotlin/godot/gen/godot/ZIPReader.kt +++ b/kt/godot-library/src/main/kotlin/godot/gen/godot/ZIPReader.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.common.interop.VoidPtr import godot.core.PackedByteArray import godot.core.PackedStringArray import godot.core.TypeManager @@ -16,7 +17,6 @@ import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING import godot.core.memory.TransferContext -import godot.util.VoidPtr import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -50,7 +50,7 @@ public open class ZIPReader : RefCounted() { */ public final fun `open`(path: String): Error { TransferContext.writeArguments(STRING to path) - TransferContext.callMethod(rawPtr, MethodBindings.openPtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.openPtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -59,7 +59,7 @@ public open class ZIPReader : RefCounted() { */ public final fun close(): Error { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.closePtr, LONG) + TransferContext.callMethod(ptr, MethodBindings.closePtr, LONG) return Error.from(TransferContext.readReturnValue(LONG) as Long) } @@ -69,7 +69,7 @@ public open class ZIPReader : RefCounted() { */ public final fun getFiles(): PackedStringArray { TransferContext.writeArguments() - TransferContext.callMethod(rawPtr, MethodBindings.getFilesPtr, PACKED_STRING_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.getFilesPtr, PACKED_STRING_ARRAY) return (TransferContext.readReturnValue(PACKED_STRING_ARRAY) as PackedStringArray) } @@ -80,7 +80,7 @@ public open class ZIPReader : RefCounted() { @JvmOverloads public final fun readFile(path: String, caseSensitive: Boolean = true): PackedByteArray { TransferContext.writeArguments(STRING to path, BOOL to caseSensitive) - TransferContext.callMethod(rawPtr, MethodBindings.readFilePtr, PACKED_BYTE_ARRAY) + TransferContext.callMethod(ptr, MethodBindings.readFilePtr, PACKED_BYTE_ARRAY) return (TransferContext.readReturnValue(PACKED_BYTE_ARRAY) as PackedByteArray) } @@ -91,7 +91,7 @@ public open class ZIPReader : RefCounted() { @JvmOverloads public final fun fileExists(path: String, caseSensitive: Boolean = true): Boolean { TransferContext.writeArguments(STRING to path, BOOL to caseSensitive) - TransferContext.callMethod(rawPtr, MethodBindings.fileExistsPtr, BOOL) + TransferContext.callMethod(ptr, MethodBindings.fileExistsPtr, BOOL) return (TransferContext.readReturnValue(BOOL) as Boolean) } diff --git a/kt/godot-library/src/main/kotlin/godot/global/GD.kt b/kt/godot-library/src/main/kotlin/godot/global/GD.kt index ca5e2f5199..59dc609acd 100644 --- a/kt/godot-library/src/main/kotlin/godot/global/GD.kt +++ b/kt/godot-library/src/main/kotlin/godot/global/GD.kt @@ -15,7 +15,7 @@ import godot.core.PackedVector3Array import godot.core.memory.MemoryManager import godot.extensions.asStatic import godot.extensions.loadAs -import godot.util.nullptr +import godot.common.interop.nullptr object GD : GDMath, GDCore, GDRandom, GDPrint { @@ -32,7 +32,7 @@ object GD : GDMath, GDCore, GDRandom, GDPrint { @JvmStatic fun isInstanceValid(instance: Object?): Boolean { if (instance != null) { - return instance.rawPtr != nullptr && MemoryManager.isInstanceValid(instance) + return instance.ptr != nullptr && MemoryManager.isInstanceValid(instance) } return false } diff --git a/kt/godot-library/src/main/kotlin/godot/global/GDCore.kt b/kt/godot-library/src/main/kotlin/godot/global/GDCore.kt index 3aaa67a0b3..cb2f35c4bd 100644 --- a/kt/godot-library/src/main/kotlin/godot/global/GDCore.kt +++ b/kt/godot-library/src/main/kotlin/godot/global/GDCore.kt @@ -11,7 +11,7 @@ import godot.core.PackedStringArray import godot.core.PackedVector2Array import godot.core.PackedVector3Array import godot.core.VariantArray -import godot.util.toRealT +import godot.common.util.toRealT internal interface GDCore { diff --git a/kt/godot-library/src/main/kotlin/godot/global/GDMath.kt b/kt/godot-library/src/main/kotlin/godot/global/GDMath.kt index a26765f93b..849a1e20f9 100644 --- a/kt/godot-library/src/main/kotlin/godot/global/GDMath.kt +++ b/kt/godot-library/src/main/kotlin/godot/global/GDMath.kt @@ -5,13 +5,13 @@ package godot.global import godot.core.Color import godot.core.Vector2 import godot.core.Vector3 -import godot.util.DB2NEPER -import godot.util.NEPER2DB -import godot.util.TAU -import godot.util.fposmod -import godot.util.isEqualApprox -import godot.util.isZeroApprox -import godot.util.toRealT +import godot.common.util.DB2NEPER +import godot.common.util.NEPER2DB +import godot.common.util.TAU +import godot.common.util.fposmod +import godot.common.util.isEqualApprox +import godot.common.util.isZeroApprox +import godot.common.util.toRealT import kotlin.math.pow import kotlin.math.sign diff --git a/kt/godot-library/src/main/kotlin/godot/runtime/Bootstrap.kt b/kt/godot-library/src/main/kotlin/godot/runtime/Bootstrap.kt index 1580938fd7..d29fee86e9 100644 --- a/kt/godot-library/src/main/kotlin/godot/runtime/Bootstrap.kt +++ b/kt/godot-library/src/main/kotlin/godot/runtime/Bootstrap.kt @@ -6,7 +6,7 @@ import godot.core.VariantParser import godot.core.variantMapper import godot.registration.ClassRegistry import godot.registration.Entry -import godot.util.JVMLogging +import godot.core.JVMLogging import java.io.File import java.net.URL import java.net.URLClassLoader diff --git a/kt/godot-library/src/main/kotlin/godot/util/Nullable.kt b/kt/godot-library/src/main/kotlin/godot/util/Nullable.kt deleted file mode 100644 index ad42d63780..0000000000 --- a/kt/godot-library/src/main/kotlin/godot/util/Nullable.kt +++ /dev/null @@ -1,4 +0,0 @@ -package godot.util - -@PublishedApi -internal inline fun isNullable(): Boolean = null is T diff --git a/kt/godot-library/src/test/kotlin/godot/core/AABBTest.kt b/kt/godot-library/src/test/kotlin/godot/core/AABBTest.kt index 18601b60e0..cfd7875fab 100644 --- a/kt/godot-library/src/test/kotlin/godot/core/AABBTest.kt +++ b/kt/godot-library/src/test/kotlin/godot/core/AABBTest.kt @@ -2,7 +2,7 @@ package godot.core -import godot.util.isEqualApprox +import godot.common.util.isEqualApprox import org.junit.Test class TestAABB { diff --git a/kt/godot-library/src/test/kotlin/godot/core/BasisTest.kt b/kt/godot-library/src/test/kotlin/godot/core/BasisTest.kt index fb36733b69..74a255035d 100644 --- a/kt/godot-library/src/test/kotlin/godot/core/BasisTest.kt +++ b/kt/godot-library/src/test/kotlin/godot/core/BasisTest.kt @@ -1,8 +1,8 @@ package godot.core import godot.EulerOrder -import godot.util.PI -import godot.util.SQRT12 +import godot.common.util.PI +import godot.common.util.SQRT12 import org.junit.Test class TestBasis { diff --git a/kt/godot-library/src/test/kotlin/godot/core/ColorTest.kt b/kt/godot-library/src/test/kotlin/godot/core/ColorTest.kt index 7c2f60c3cf..53d629cd49 100644 --- a/kt/godot-library/src/test/kotlin/godot/core/ColorTest.kt +++ b/kt/godot-library/src/test/kotlin/godot/core/ColorTest.kt @@ -1,7 +1,7 @@ package godot.core -import godot.util.isEqualApprox -import godot.util.toRealT +import godot.common.util.isEqualApprox +import godot.common.util.toRealT import org.junit.Test class TestColor { diff --git a/kt/godot-library/src/test/kotlin/godot/core/QuaternionTest.kt b/kt/godot-library/src/test/kotlin/godot/core/QuaternionTest.kt index e1467a26f2..ed0be55321 100644 --- a/kt/godot-library/src/test/kotlin/godot/core/QuaternionTest.kt +++ b/kt/godot-library/src/test/kotlin/godot/core/QuaternionTest.kt @@ -3,8 +3,8 @@ package godot.core import godot.EulerOrder -import godot.util.TAU -import godot.util.isEqualApprox +import godot.common.util.TAU +import godot.common.util.isEqualApprox import org.junit.Test class TestQuaternion { diff --git a/kt/godot-library/src/test/kotlin/godot/core/Rect2Test.kt b/kt/godot-library/src/test/kotlin/godot/core/Rect2Test.kt index 9504ffd164..adaa9bb185 100644 --- a/kt/godot-library/src/test/kotlin/godot/core/Rect2Test.kt +++ b/kt/godot-library/src/test/kotlin/godot/core/Rect2Test.kt @@ -3,8 +3,8 @@ package godot.core import godot.Side -import godot.util.isEqualApprox -import godot.util.isZeroApprox +import godot.common.util.isEqualApprox +import godot.common.util.isZeroApprox import org.junit.Test class TestRect2 { diff --git a/kt/godot-library/src/test/kotlin/godot/core/Transform2DTest.kt b/kt/godot-library/src/test/kotlin/godot/core/Transform2DTest.kt index 6126363f02..d24a5b2932 100644 --- a/kt/godot-library/src/test/kotlin/godot/core/Transform2DTest.kt +++ b/kt/godot-library/src/test/kotlin/godot/core/Transform2DTest.kt @@ -2,10 +2,10 @@ package godot.core -import godot.util.PI -import godot.util.SQRT12 -import godot.util.TAU -import godot.util.isEqualApprox +import godot.common.util.PI +import godot.common.util.SQRT12 +import godot.common.util.TAU +import godot.common.util.isEqualApprox import org.junit.Test class TestTransform2D { diff --git a/kt/godot-library/src/test/kotlin/godot/core/Transform3DTest.kt b/kt/godot-library/src/test/kotlin/godot/core/Transform3DTest.kt index 6c4afabc9f..8e4dc8f804 100644 --- a/kt/godot-library/src/test/kotlin/godot/core/Transform3DTest.kt +++ b/kt/godot-library/src/test/kotlin/godot/core/Transform3DTest.kt @@ -2,7 +2,7 @@ package godot.core -import godot.util.PI +import godot.common.util.PI import org.junit.Test class TestTransform3D { diff --git a/kt/godot-library/src/test/kotlin/godot/core/Vector2Test.kt b/kt/godot-library/src/test/kotlin/godot/core/Vector2Test.kt index 61802d78fe..c5c40562ba 100644 --- a/kt/godot-library/src/test/kotlin/godot/core/Vector2Test.kt +++ b/kt/godot-library/src/test/kotlin/godot/core/Vector2Test.kt @@ -2,11 +2,11 @@ package godot.core -import godot.util.PI -import godot.util.SQRT12 -import godot.util.SQRT2 -import godot.util.TAU -import godot.util.isEqualApprox +import godot.common.util.PI +import godot.common.util.SQRT12 +import godot.common.util.SQRT2 +import godot.common.util.TAU +import godot.common.util.isEqualApprox import org.junit.Test import kotlin.math.sqrt diff --git a/kt/godot-library/src/test/kotlin/godot/core/Vector2iTest.kt b/kt/godot-library/src/test/kotlin/godot/core/Vector2iTest.kt index 23546ceabc..58e61f2803 100644 --- a/kt/godot-library/src/test/kotlin/godot/core/Vector2iTest.kt +++ b/kt/godot-library/src/test/kotlin/godot/core/Vector2iTest.kt @@ -2,7 +2,7 @@ package godot.core -import godot.util.isEqualApprox +import godot.common.util.isEqualApprox import org.junit.Test import kotlin.math.sqrt diff --git a/kt/godot-library/src/test/kotlin/godot/core/Vector3Test.kt b/kt/godot-library/src/test/kotlin/godot/core/Vector3Test.kt index eb46ec739e..799d53c1ef 100644 --- a/kt/godot-library/src/test/kotlin/godot/core/Vector3Test.kt +++ b/kt/godot-library/src/test/kotlin/godot/core/Vector3Test.kt @@ -2,10 +2,10 @@ package godot.core -import godot.util.SQRT12 -import godot.util.SQRT2 -import godot.util.TAU -import godot.util.isEqualApprox +import godot.common.util.SQRT12 +import godot.common.util.SQRT2 +import godot.common.util.TAU +import godot.common.util.isEqualApprox import org.junit.Test private const val SQRT3 = 1.7320508075688772935274463415059 diff --git a/kt/godot-library/src/test/kotlin/godot/core/Vector3iTest.kt b/kt/godot-library/src/test/kotlin/godot/core/Vector3iTest.kt index cbe5fa8494..50eb477ad1 100644 --- a/kt/godot-library/src/test/kotlin/godot/core/Vector3iTest.kt +++ b/kt/godot-library/src/test/kotlin/godot/core/Vector3iTest.kt @@ -2,7 +2,7 @@ package godot.core -import godot.util.isEqualApprox +import godot.common.util.isEqualApprox import org.junit.Test private const val SQRT3 = 1.7320508075688772935274463415059 diff --git a/kt/godot-library/src/test/kotlin/godot/core/Vector4Test.kt b/kt/godot-library/src/test/kotlin/godot/core/Vector4Test.kt index 07b3a1c128..d3aa3b0b04 100644 --- a/kt/godot-library/src/test/kotlin/godot/core/Vector4Test.kt +++ b/kt/godot-library/src/test/kotlin/godot/core/Vector4Test.kt @@ -2,8 +2,8 @@ package godot.core -import godot.util.SQRT2 -import godot.util.isEqualApprox +import godot.common.util.SQRT2 +import godot.common.util.isEqualApprox import org.junit.Test private const val SQRT3 = 1.7320508075688772935274463415059 diff --git a/kt/godot-library/src/test/kotlin/godot/core/Vector4iTest.kt b/kt/godot-library/src/test/kotlin/godot/core/Vector4iTest.kt index c688fd7040..754aebc06d 100644 --- a/kt/godot-library/src/test/kotlin/godot/core/Vector4iTest.kt +++ b/kt/godot-library/src/test/kotlin/godot/core/Vector4iTest.kt @@ -2,7 +2,7 @@ package godot.core -import godot.util.isEqualApprox +import godot.common.util.isEqualApprox import org.junit.Test class TestVector4i { diff --git a/kt/tools-common/src/main/kotlin/godot/tools/common/constants/Classes.kt b/kt/tools-common/src/main/kotlin/godot/tools/common/constants/Classes.kt index fcfa322cd6..2a49195ade 100644 --- a/kt/tools-common/src/main/kotlin/godot/tools/common/constants/Classes.kt +++ b/kt/tools-common/src/main/kotlin/godot/tools/common/constants/Classes.kt @@ -247,4 +247,5 @@ val CORE_TYPE_LOCAL_COPY = ClassName(godotAnnotationPackage, GodotKotlinJvmTypes val TRANSFER_CONTEXT = ClassName(godotMemoryPackage, GodotKotlinJvmTypes.transferContext) val TYPE_MANAGER = ClassName(godotCorePackage, GodotKotlinJvmTypes.typeManager) -val OBJECT_ID = ClassName(godotCorePackage, GodotKotlinJvmTypes.objectID) +val OBJECT_ID = ClassName(godotInteropPackage, GodotKotlinJvmTypes.objectID) +val VOID_PTR = ClassName(godotInteropPackage, "VoidPtr") diff --git a/kt/tools-common/src/main/kotlin/godot/tools/common/constants/Packages.kt b/kt/tools-common/src/main/kotlin/godot/tools/common/constants/Packages.kt index 990ead3349..1cbc2e1b6b 100644 --- a/kt/tools-common/src/main/kotlin/godot/tools/common/constants/Packages.kt +++ b/kt/tools-common/src/main/kotlin/godot/tools/common/constants/Packages.kt @@ -3,6 +3,7 @@ package godot.tools.common.constants const val godotApiPackage = "godot" const val godotCorePackage = "godot.core" +const val godotInteropPackage = "godot.common.interop" const val godotMemoryPackage = "godot.core.memory" const val godotCoroutinePackage = "godot.coroutines" const val godotAnnotationPackage = "godot.annotation" From 9bf133941bfa11b7982d723a061fe022d28e9470 Mon Sep 17 00:00:00 2001 From: Ced Naru Date: Sun, 13 Oct 2024 12:02:08 +0200 Subject: [PATCH 3/8] Fix Ci name --- .github/workflows/deploy_jvm.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy_jvm.yml b/.github/workflows/deploy_jvm.yml index 1d6403b8d5..330ce61895 100644 --- a/.github/workflows/deploy_jvm.yml +++ b/.github/workflows/deploy_jvm.yml @@ -47,7 +47,7 @@ jobs: with: cache-read-only: ${{ github.ref != 'refs/heads/master' }} - - name: Publish tools-common + - name: Publish common shell: sh run: | modules/kotlin_jvm/kt/gradlew -p modules/kotlin_jvm/kt/ :common:publish From c22bf9e61dea0ddc212d1ba08a445fa94a0cfc2c Mon Sep 17 00:00:00 2001 From: Ced Naru Date: Sun, 13 Oct 2024 12:07:52 +0200 Subject: [PATCH 4/8] make NativeCoreType use nullptr --- kt/godot-library/src/main/kotlin/godot/core/CoreType.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kt/godot-library/src/main/kotlin/godot/core/CoreType.kt b/kt/godot-library/src/main/kotlin/godot/core/CoreType.kt index 161b78b24d..a84f555c76 100644 --- a/kt/godot-library/src/main/kotlin/godot/core/CoreType.kt +++ b/kt/godot-library/src/main/kotlin/godot/core/CoreType.kt @@ -2,6 +2,7 @@ package godot.core import godot.common.interop.ValuePointer import godot.common.interop.VoidPtr +import godot.common.interop.nullptr /** * This interface should not be inherited within user code. @@ -11,5 +12,5 @@ import godot.common.interop.VoidPtr interface CoreType abstract class NativeCoreType : CoreType, ValuePointer { - override var ptr: VoidPtr = 0 + override var ptr: VoidPtr = nullptr } From 1eb49e1ce6de348d3bf597cda5518abf2e9b0e74 Mon Sep 17 00:00:00 2001 From: Ced Naru Date: Sun, 13 Oct 2024 12:34:07 +0200 Subject: [PATCH 5/8] Fix dependency import --- kt/godot-library/build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kt/godot-library/build.gradle.kts b/kt/godot-library/build.gradle.kts index a6c16c5ee7..c545c968fc 100644 --- a/kt/godot-library/build.gradle.kts +++ b/kt/godot-library/build.gradle.kts @@ -37,7 +37,7 @@ dependencies { // added here as a transitive dependency so the user can use reflection // we need to add it here so reflection is available where the code is loaded (Bootstrap.kt) otherwise it will not work api(kotlin("reflect", version = libs.versions.kotlin.get())) - implementation("com.utopia-rise:common:$fullGodotKotlinJvmVersion") + api("com.utopia-rise:common:$fullGodotKotlinJvmVersion") testImplementation("junit", "junit", "4.12") } From 2439b3b6bdb24d78b79a396fdbac9f14d66b0f02 Mon Sep 17 00:00:00 2001 From: Ced Naru Date: Sun, 13 Oct 2024 13:17:41 +0200 Subject: [PATCH 6/8] Fix tests --- harness/tests/src/main/kotlin/godot/tests/Invocation.kt | 2 +- .../src/main/kotlin/godot/tests/coretypes/Vector3Test.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/harness/tests/src/main/kotlin/godot/tests/Invocation.kt b/harness/tests/src/main/kotlin/godot/tests/Invocation.kt index 0296a49104..7dd7855132 100644 --- a/harness/tests/src/main/kotlin/godot/tests/Invocation.kt +++ b/harness/tests/src/main/kotlin/godot/tests/Invocation.kt @@ -41,7 +41,7 @@ import godot.core.variantArrayOf import godot.extensions.getNodeAs import godot.registration.Range import godot.tests.subpackage.OtherScript -import godot.util.RealT +import godot.common.util.RealT import org.joda.time.DateTime enum class TestEnum { diff --git a/harness/tests/src/main/kotlin/godot/tests/coretypes/Vector3Test.kt b/harness/tests/src/main/kotlin/godot/tests/coretypes/Vector3Test.kt index 843070ac58..6b13eac73b 100644 --- a/harness/tests/src/main/kotlin/godot/tests/coretypes/Vector3Test.kt +++ b/harness/tests/src/main/kotlin/godot/tests/coretypes/Vector3Test.kt @@ -4,7 +4,7 @@ import godot.Node import godot.annotation.RegisterClass import godot.annotation.RegisterFunction import godot.core.Vector3 -import godot.util.RealT +import godot.common.util.RealT @RegisterClass class Vector3Test : Node() { @@ -17,4 +17,4 @@ class Vector3Test : Node() { vector3[index] = realT return vector3 } -} \ No newline at end of file +} From 343e63570c82a23ad1237ad5b62c328e1d746825 Mon Sep 17 00:00:00 2001 From: Ced Naru Date: Sun, 13 Oct 2024 13:47:17 +0200 Subject: [PATCH 7/8] Fix util package --- .../src/main/kotlin/godot/tools/common/constants/Packages.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kt/tools-common/src/main/kotlin/godot/tools/common/constants/Packages.kt b/kt/tools-common/src/main/kotlin/godot/tools/common/constants/Packages.kt index 1cbc2e1b6b..6d79ff0c83 100644 --- a/kt/tools-common/src/main/kotlin/godot/tools/common/constants/Packages.kt +++ b/kt/tools-common/src/main/kotlin/godot/tools/common/constants/Packages.kt @@ -3,11 +3,11 @@ package godot.tools.common.constants const val godotApiPackage = "godot" const val godotCorePackage = "godot.core" -const val godotInteropPackage = "godot.common.interop" const val godotMemoryPackage = "godot.core.memory" const val godotCoroutinePackage = "godot.coroutines" const val godotAnnotationPackage = "godot.annotation" -const val godotUtilPackage = "godot.util" +const val godotInteropPackage = "godot.common.interop" +const val godotUtilPackage = "godot.common.util" const val godotRegistrationPackage = "godot.registration" const val godotEntryBasePackage = "godot.entry" From b7c11a0e1361d07c769dd93ffcabb91df0023da4 Mon Sep 17 00:00:00 2001 From: Ced Naru Date: Mon, 14 Oct 2024 11:49:06 +0200 Subject: [PATCH 8/8] Fix gradle task name --- kt/common/build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kt/common/build.gradle.kts b/kt/common/build.gradle.kts index 39daa52362..14530fee25 100644 --- a/kt/common/build.gradle.kts +++ b/kt/common/build.gradle.kts @@ -19,7 +19,7 @@ kotlin { publishing { publications { @Suppress("UNUSED_VARIABLE") - val godotToolsCommonGenerator by creating(MavenPublication::class) { + val godotCommonGenerator by creating(MavenPublication::class) { pom { name.set(project.name) description.set("Godot common module other libraries.")