diff --git a/.github/workflows/deploy_jvm.yml b/.github/workflows/deploy_jvm.yml index 5cb29dae31..b1031b1330 100644 --- a/.github/workflows/deploy_jvm.yml +++ b/.github/workflows/deploy_jvm.yml @@ -72,12 +72,22 @@ jobs: run: | modules/kotlin_jvm/kt/gradlew -p modules/kotlin_jvm/kt/ :godot-kotlin-symbol-processor:publish - - name: Publish godot-library debug + - name: Publish godot-internal-library debug + shell: sh + run: | + modules/kotlin_jvm/kt/gradlew -p modules/kotlin_jvm/kt/ :godot-internal-library:publish -Pdebug + + - name: Publish godot-internal-library release + shell: sh + run: | + modules/kotlin_jvm/kt/gradlew -p modules/kotlin_jvm/kt/ :godot-internal-library:publish -Prelease + + - name: Publish godot-core-library debug shell: sh run: | modules/kotlin_jvm/kt/gradlew -p modules/kotlin_jvm/kt/ :godot-core-library:publish -Pdebug - - name: Publish godot-library release + - name: Publish godot-core-library release shell: sh run: | modules/kotlin_jvm/kt/gradlew -p modules/kotlin_jvm/kt/ :godot-core-library:publish -Prelease diff --git a/harness/flattened-library-tests/settings.gradle.kts b/harness/flattened-library-tests/settings.gradle.kts index 3cf1c39be0..10468098c6 100644 --- a/harness/flattened-library-tests/settings.gradle.kts +++ b/harness/flattened-library-tests/settings.gradle.kts @@ -8,7 +8,8 @@ includeBuild("../../kt/api-generator") { includeBuild("../../kt") { dependencySubstitution { substitute(module("com.utopia-rise:godot-gradle-plugin")).using(project(":godot-gradle-plugin")) - substitute(module("com.utopia-rise:godot-library")).using(project(":godot-library")) + substitute(module("com.utopia-rise:godot-core-library-debug")).using(project(":godot-core-library")) + substitute(module("com.utopia-rise:godot-core-library-release")).using(project(":godot-core-library")) substitute(module("com.utopia-rise:godot-kotlin-symbol-processor")).using(project(":godot-kotlin-symbol-processor")) substitute(module("com.utopia-rise:godot-entry-generator")).using(project(":godot-entry-generator")) } diff --git a/harness/fqname-library-tests/settings.gradle.kts b/harness/fqname-library-tests/settings.gradle.kts index e97a5bf385..038e640ed0 100644 --- a/harness/fqname-library-tests/settings.gradle.kts +++ b/harness/fqname-library-tests/settings.gradle.kts @@ -8,7 +8,8 @@ includeBuild("../../kt/api-generator") { includeBuild("../../kt") { dependencySubstitution { substitute(module("com.utopia-rise:godot-gradle-plugin")).using(project(":godot-gradle-plugin")) - substitute(module("com.utopia-rise:godot-library")).using(project(":godot-library")) + substitute(module("com.utopia-rise:godot-core-library-debug")).using(project(":godot-core-library")) + substitute(module("com.utopia-rise:godot-core-library-release")).using(project(":godot-core-library")) substitute(module("com.utopia-rise:godot-kotlin-symbol-processor")).using(project(":godot-kotlin-symbol-processor")) substitute(module("com.utopia-rise:godot-entry-generator")).using(project(":godot-entry-generator")) } diff --git a/harness/hierarchical-library-tests/settings.gradle.kts b/harness/hierarchical-library-tests/settings.gradle.kts index c40ca53fab..2d8a1f123e 100644 --- a/harness/hierarchical-library-tests/settings.gradle.kts +++ b/harness/hierarchical-library-tests/settings.gradle.kts @@ -8,7 +8,8 @@ includeBuild("../../kt/api-generator") { includeBuild("../../kt") { dependencySubstitution { substitute(module("com.utopia-rise:godot-gradle-plugin")).using(project(":godot-gradle-plugin")) - substitute(module("com.utopia-rise:godot-library")).using(project(":godot-library")) + substitute(module("com.utopia-rise:godot-core-library-debug")).using(project(":godot-core-library")) + substitute(module("com.utopia-rise:godot-core-library-release")).using(project(":godot-core-library")) substitute(module("com.utopia-rise:godot-kotlin-symbol-processor")).using(project(":godot-kotlin-symbol-processor")) substitute(module("com.utopia-rise:godot-entry-generator")).using(project(":godot-entry-generator")) } diff --git a/harness/tests/FreeformRegistrationFileTestClass.gdj b/harness/tests/FreeformRegistrationFileTestClass.gdj index cdbe942398..6ffea34b5e 100644 --- a/harness/tests/FreeformRegistrationFileTestClass.gdj +++ b/harness/tests/FreeformRegistrationFileTestClass.gdj @@ -9,6 +9,8 @@ supertypes = [ godot.Node, godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/scripts/CopyModificationCheckTestClass.gdj b/harness/tests/scripts/CopyModificationCheckTestClass.gdj index 40eb142e6f..e4aa641995 100644 --- a/harness/tests/scripts/CopyModificationCheckTestClass.gdj +++ b/harness/tests/scripts/CopyModificationCheckTestClass.gdj @@ -10,6 +10,8 @@ supertypes = [ godot.Node, godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/scripts/CoreTypePropertyChecks.gdj b/harness/tests/scripts/CoreTypePropertyChecks.gdj index d742528b27..ce48e2c444 100644 --- a/harness/tests/scripts/CoreTypePropertyChecks.gdj +++ b/harness/tests/scripts/CoreTypePropertyChecks.gdj @@ -9,6 +9,8 @@ supertypes = [ godot.Node, godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/scripts/ScriptInOtherSourceDir.gdj b/harness/tests/scripts/ScriptInOtherSourceDir.gdj index 8bb77d1d56..a0bd010e91 100644 --- a/harness/tests/scripts/ScriptInOtherSourceDir.gdj +++ b/harness/tests/scripts/ScriptInOtherSourceDir.gdj @@ -9,6 +9,8 @@ supertypes = [ godot.Node, godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/scripts/dependencies/flattened-library-tests/godot/tests/library/flattened/FLSimple.gdj b/harness/tests/scripts/dependencies/flattened-library-tests/godot/tests/library/flattened/FLSimple.gdj index 5d59117fc0..0c34169019 100644 --- a/harness/tests/scripts/dependencies/flattened-library-tests/godot/tests/library/flattened/FLSimple.gdj +++ b/harness/tests/scripts/dependencies/flattened-library-tests/godot/tests/library/flattened/FLSimple.gdj @@ -10,6 +10,8 @@ supertypes = [ godot.Node, godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/scripts/dependencies/fqname-library-tests/godot/tests/library/fqname/godot_tests_library_fqname_FQNLSimple.gdj b/harness/tests/scripts/dependencies/fqname-library-tests/godot/tests/library/fqname/godot_tests_library_fqname_FQNLSimple.gdj index f284daf421..c53081b6a5 100644 --- a/harness/tests/scripts/dependencies/fqname-library-tests/godot/tests/library/fqname/godot_tests_library_fqname_FQNLSimple.gdj +++ b/harness/tests/scripts/dependencies/fqname-library-tests/godot/tests/library/fqname/godot_tests_library_fqname_FQNLSimple.gdj @@ -10,6 +10,8 @@ supertypes = [ godot.Node, godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/scripts/dependencies/fqname-library-tests/godot/tests/library/fqname/godot_tests_library_fqname_FQNLSimpleChild.gdj b/harness/tests/scripts/dependencies/fqname-library-tests/godot/tests/library/fqname/godot_tests_library_fqname_FQNLSimpleChild.gdj index a31695e1ce..f81df2eeab 100644 --- a/harness/tests/scripts/dependencies/fqname-library-tests/godot/tests/library/fqname/godot_tests_library_fqname_FQNLSimpleChild.gdj +++ b/harness/tests/scripts/dependencies/fqname-library-tests/godot/tests/library/fqname/godot_tests_library_fqname_FQNLSimpleChild.gdj @@ -11,6 +11,8 @@ supertypes = [ godot.Node, godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/scripts/dependencies/hierarchical-library-tests/godot/tests/library/hierarchical/HLSimple.gdj b/harness/tests/scripts/dependencies/hierarchical-library-tests/godot/tests/library/hierarchical/HLSimple.gdj index 63855a6d32..832be83bd6 100644 --- a/harness/tests/scripts/dependencies/hierarchical-library-tests/godot/tests/library/hierarchical/HLSimple.gdj +++ b/harness/tests/scripts/dependencies/hierarchical-library-tests/godot/tests/library/hierarchical/HLSimple.gdj @@ -10,6 +10,8 @@ supertypes = [ godot.Node, godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/scripts/godot/tests/CoreTypesIdentityTest.gdj b/harness/tests/scripts/godot/tests/CoreTypesIdentityTest.gdj index 0d993a3553..b9542ccdf5 100644 --- a/harness/tests/scripts/godot/tests/CoreTypesIdentityTest.gdj +++ b/harness/tests/scripts/godot/tests/CoreTypesIdentityTest.gdj @@ -9,6 +9,8 @@ supertypes = [ godot.Node, godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/scripts/godot/tests/FuncRefTest.gdj b/harness/tests/scripts/godot/tests/FuncRefTest.gdj index 8c7ab3880e..79590295fc 100644 --- a/harness/tests/scripts/godot/tests/FuncRefTest.gdj +++ b/harness/tests/scripts/godot/tests/FuncRefTest.gdj @@ -9,6 +9,8 @@ supertypes = [ godot.Node, godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/scripts/godot/tests/Invocation.gdj b/harness/tests/scripts/godot/tests/Invocation.gdj index 1de7614948..5a1882042c 100644 --- a/harness/tests/scripts/godot/tests/Invocation.gdj +++ b/harness/tests/scripts/godot/tests/Invocation.gdj @@ -10,6 +10,8 @@ supertypes = [ godot.Node, godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ @@ -40,6 +42,7 @@ properties = [ nav_meshes_dictionary, nullable_dictionary, color, + rid, packed_byte_array, packed_int32_array, packed_float64_array, diff --git a/harness/tests/scripts/godot/tests/JavaTestClass.gdj b/harness/tests/scripts/godot/tests/JavaTestClass.gdj index 2ac65467a3..249d4cbf7d 100644 --- a/harness/tests/scripts/godot/tests/JavaTestClass.gdj +++ b/harness/tests/scripts/godot/tests/JavaTestClass.gdj @@ -9,6 +9,8 @@ supertypes = [ godot.Node, godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ @@ -30,7 +32,8 @@ properties = [ dictionary ] functions = [ - greeting, + _ready, + greeting, connect_and_trigger_signal, signal_callback ] \ No newline at end of file diff --git a/harness/tests/scripts/godot/tests/LambdaCallableTest.gdj b/harness/tests/scripts/godot/tests/LambdaCallableTest.gdj index 4178cad6dc..e37077369c 100644 --- a/harness/tests/scripts/godot/tests/LambdaCallableTest.gdj +++ b/harness/tests/scripts/godot/tests/LambdaCallableTest.gdj @@ -9,6 +9,8 @@ supertypes = [ godot.Node, godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/scripts/godot/tests/MultiArgsConstructorTest.gdj b/harness/tests/scripts/godot/tests/MultiArgsConstructorTest.gdj index 26baeb00e1..78ecab0a5c 100644 --- a/harness/tests/scripts/godot/tests/MultiArgsConstructorTest.gdj +++ b/harness/tests/scripts/godot/tests/MultiArgsConstructorTest.gdj @@ -9,6 +9,8 @@ supertypes = [ godot.Node, godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/scripts/godot/tests/args/ConstructorArgSizeTest.gdj b/harness/tests/scripts/godot/tests/args/ConstructorArgSizeTest.gdj index 367f40b851..bd7158bc8b 100644 --- a/harness/tests/scripts/godot/tests/args/ConstructorArgSizeTest.gdj +++ b/harness/tests/scripts/godot/tests/args/ConstructorArgSizeTest.gdj @@ -9,6 +9,8 @@ supertypes = [ godot.Node, godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/scripts/godot/tests/args/FunctionArgSizeTest.gdj b/harness/tests/scripts/godot/tests/args/FunctionArgSizeTest.gdj index 6b3fdc6b22..2d1aec8763 100644 --- a/harness/tests/scripts/godot/tests/args/FunctionArgSizeTest.gdj +++ b/harness/tests/scripts/godot/tests/args/FunctionArgSizeTest.gdj @@ -9,6 +9,8 @@ supertypes = [ godot.Node, godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/scripts/godot/tests/binding/BindingA.gdj b/harness/tests/scripts/godot/tests/binding/BindingA.gdj index 650862312f..b43addfb69 100644 --- a/harness/tests/scripts/godot/tests/binding/BindingA.gdj +++ b/harness/tests/scripts/godot/tests/binding/BindingA.gdj @@ -9,6 +9,8 @@ supertypes = [ godot.Node, godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/scripts/godot/tests/binding/BindingB.gdj b/harness/tests/scripts/godot/tests/binding/BindingB.gdj index 835653d863..0a9b9bbe2a 100644 --- a/harness/tests/scripts/godot/tests/binding/BindingB.gdj +++ b/harness/tests/scripts/godot/tests/binding/BindingB.gdj @@ -9,6 +9,8 @@ supertypes = [ godot.Node, godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/scripts/godot/tests/binding/BindingTest.gdj b/harness/tests/scripts/godot/tests/binding/BindingTest.gdj index ddbb8751d2..f02a45fd32 100644 --- a/harness/tests/scripts/godot/tests/binding/BindingTest.gdj +++ b/harness/tests/scripts/godot/tests/binding/BindingTest.gdj @@ -8,6 +8,8 @@ baseType = Object supertypes = [ godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/scripts/godot/tests/callable/CallableMethodBindTest.gdj b/harness/tests/scripts/godot/tests/callable/CallableMethodBindTest.gdj index d1eabcfd8e..9e0c6c284e 100644 --- a/harness/tests/scripts/godot/tests/callable/CallableMethodBindTest.gdj +++ b/harness/tests/scripts/godot/tests/callable/CallableMethodBindTest.gdj @@ -9,6 +9,8 @@ supertypes = [ godot.Node, godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/scripts/godot/tests/constructor/ConstructorRegistrationTest.gdj b/harness/tests/scripts/godot/tests/constructor/ConstructorRegistrationTest.gdj index 6fe8bbe92b..5e93991fae 100644 --- a/harness/tests/scripts/godot/tests/constructor/ConstructorRegistrationTest.gdj +++ b/harness/tests/scripts/godot/tests/constructor/ConstructorRegistrationTest.gdj @@ -9,6 +9,8 @@ supertypes = [ godot.Node, godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/scripts/godot/tests/coretypes/BasisTest.gdj b/harness/tests/scripts/godot/tests/coretypes/BasisTest.gdj index f182a2643f..73968d8d2c 100644 --- a/harness/tests/scripts/godot/tests/coretypes/BasisTest.gdj +++ b/harness/tests/scripts/godot/tests/coretypes/BasisTest.gdj @@ -9,6 +9,8 @@ supertypes = [ godot.Node, godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/scripts/godot/tests/coretypes/StringTest.gdj b/harness/tests/scripts/godot/tests/coretypes/StringTest.gdj index 7711eb6511..6dd1ab48bb 100644 --- a/harness/tests/scripts/godot/tests/coretypes/StringTest.gdj +++ b/harness/tests/scripts/godot/tests/coretypes/StringTest.gdj @@ -9,6 +9,8 @@ supertypes = [ godot.Node, godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/scripts/godot/tests/coretypes/Vector3Test.gdj b/harness/tests/scripts/godot/tests/coretypes/Vector3Test.gdj index 8b4092d6b3..151da1f64b 100644 --- a/harness/tests/scripts/godot/tests/coretypes/Vector3Test.gdj +++ b/harness/tests/scripts/godot/tests/coretypes/Vector3Test.gdj @@ -9,6 +9,8 @@ supertypes = [ godot.Node, godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/scripts/godot/tests/coroutine/CoroutineTest.gdj b/harness/tests/scripts/godot/tests/coroutine/CoroutineTest.gdj index dc6cd3ea27..c7f99711d0 100644 --- a/harness/tests/scripts/godot/tests/coroutine/CoroutineTest.gdj +++ b/harness/tests/scripts/godot/tests/coroutine/CoroutineTest.gdj @@ -8,6 +8,8 @@ baseType = Object supertypes = [ godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/scripts/godot/tests/exception/ExceptionTest.gdj b/harness/tests/scripts/godot/tests/exception/ExceptionTest.gdj index cd765a671f..282ab0f973 100644 --- a/harness/tests/scripts/godot/tests/exception/ExceptionTest.gdj +++ b/harness/tests/scripts/godot/tests/exception/ExceptionTest.gdj @@ -9,6 +9,8 @@ supertypes = [ godot.Node, godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/scripts/godot/tests/inheritance/AbstractClassInheritanceChild.gdj b/harness/tests/scripts/godot/tests/inheritance/AbstractClassInheritanceChild.gdj index 1063c448af..aa0e910b13 100644 --- a/harness/tests/scripts/godot/tests/inheritance/AbstractClassInheritanceChild.gdj +++ b/harness/tests/scripts/godot/tests/inheritance/AbstractClassInheritanceChild.gdj @@ -10,6 +10,8 @@ supertypes = [ godot.Node, godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/scripts/godot/tests/inheritance/AbstractClassInheritanceEmptyChild.gdj b/harness/tests/scripts/godot/tests/inheritance/AbstractClassInheritanceEmptyChild.gdj index 6416d58c84..591d52488c 100644 --- a/harness/tests/scripts/godot/tests/inheritance/AbstractClassInheritanceEmptyChild.gdj +++ b/harness/tests/scripts/godot/tests/inheritance/AbstractClassInheritanceEmptyChild.gdj @@ -14,6 +14,8 @@ supertypes = [ godot.Node, godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/scripts/godot/tests/inheritance/ClassInheritanceChild.gdj b/harness/tests/scripts/godot/tests/inheritance/ClassInheritanceChild.gdj index 93c2965ad0..5eee396cc0 100644 --- a/harness/tests/scripts/godot/tests/inheritance/ClassInheritanceChild.gdj +++ b/harness/tests/scripts/godot/tests/inheritance/ClassInheritanceChild.gdj @@ -10,6 +10,8 @@ supertypes = [ godot.Node, godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/scripts/godot/tests/inheritance/ClassInheritanceParent.gdj b/harness/tests/scripts/godot/tests/inheritance/ClassInheritanceParent.gdj index a1c84dd50e..4109f0a0fc 100644 --- a/harness/tests/scripts/godot/tests/inheritance/ClassInheritanceParent.gdj +++ b/harness/tests/scripts/godot/tests/inheritance/ClassInheritanceParent.gdj @@ -9,6 +9,8 @@ supertypes = [ godot.Node, godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/scripts/godot/tests/instance/NodeInstance.gdj b/harness/tests/scripts/godot/tests/instance/NodeInstance.gdj index dd9f678356..365e68fbd1 100644 --- a/harness/tests/scripts/godot/tests/instance/NodeInstance.gdj +++ b/harness/tests/scripts/godot/tests/instance/NodeInstance.gdj @@ -9,6 +9,8 @@ supertypes = [ godot.Node, godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/scripts/godot/tests/instance/ObjectInstance.gdj b/harness/tests/scripts/godot/tests/instance/ObjectInstance.gdj index b1e115d7b5..bb54b76eaa 100644 --- a/harness/tests/scripts/godot/tests/instance/ObjectInstance.gdj +++ b/harness/tests/scripts/godot/tests/instance/ObjectInstance.gdj @@ -8,6 +8,8 @@ baseType = Object supertypes = [ godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/scripts/godot/tests/instance/RefCountedInstance.gdj b/harness/tests/scripts/godot/tests/instance/RefCountedInstance.gdj index 81fcc0d65f..1971f99124 100644 --- a/harness/tests/scripts/godot/tests/instance/RefCountedInstance.gdj +++ b/harness/tests/scripts/godot/tests/instance/RefCountedInstance.gdj @@ -9,6 +9,8 @@ supertypes = [ godot.RefCounted, godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/scripts/godot/tests/packedarray/PackedArrayTest.gdj b/harness/tests/scripts/godot/tests/packedarray/PackedArrayTest.gdj index f25d0d4810..82febbdc09 100644 --- a/harness/tests/scripts/godot/tests/packedarray/PackedArrayTest.gdj +++ b/harness/tests/scripts/godot/tests/packedarray/PackedArrayTest.gdj @@ -9,6 +9,8 @@ supertypes = [ godot.Node, godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/scripts/godot/tests/reflection/BaseReflectionTest.gdj b/harness/tests/scripts/godot/tests/reflection/BaseReflectionTest.gdj index 2c90f1172a..95d7161767 100644 --- a/harness/tests/scripts/godot/tests/reflection/BaseReflectionTest.gdj +++ b/harness/tests/scripts/godot/tests/reflection/BaseReflectionTest.gdj @@ -9,6 +9,8 @@ supertypes = [ godot.Node, godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/scripts/godot/tests/reflection/GH571_ReflectionTest.gdj b/harness/tests/scripts/godot/tests/reflection/GH571_ReflectionTest.gdj index b8921ff375..68e6621d5c 100644 --- a/harness/tests/scripts/godot/tests/reflection/GH571_ReflectionTest.gdj +++ b/harness/tests/scripts/godot/tests/reflection/GH571_ReflectionTest.gdj @@ -9,6 +9,8 @@ supertypes = [ godot.Node, godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/scripts/godot/tests/registration/TypedVariantArrayRegistration.gdj b/harness/tests/scripts/godot/tests/registration/TypedVariantArrayRegistration.gdj index 313183d893..e0200823bd 100644 --- a/harness/tests/scripts/godot/tests/registration/TypedVariantArrayRegistration.gdj +++ b/harness/tests/scripts/godot/tests/registration/TypedVariantArrayRegistration.gdj @@ -9,6 +9,8 @@ supertypes = [ godot.Node, godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/scripts/godot/tests/rpctests/RPCTests.gdj b/harness/tests/scripts/godot/tests/rpctests/RPCTests.gdj index 747e93e4a0..038b3d2726 100644 --- a/harness/tests/scripts/godot/tests/rpctests/RPCTests.gdj +++ b/harness/tests/scripts/godot/tests/rpctests/RPCTests.gdj @@ -9,6 +9,8 @@ supertypes = [ godot.Node, godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/scripts/godot/tests/signal/SignalTest.gdj b/harness/tests/scripts/godot/tests/signal/SignalTest.gdj index 040698790e..bce9e93e96 100644 --- a/harness/tests/scripts/godot/tests/signal/SignalTest.gdj +++ b/harness/tests/scripts/godot/tests/signal/SignalTest.gdj @@ -9,6 +9,8 @@ supertypes = [ godot.Node, godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/scripts/godot/tests/static/CallStaticTest.gdj b/harness/tests/scripts/godot/tests/static/CallStaticTest.gdj index 9298c6c1bb..38323e13a9 100644 --- a/harness/tests/scripts/godot/tests/static/CallStaticTest.gdj +++ b/harness/tests/scripts/godot/tests/static/CallStaticTest.gdj @@ -9,6 +9,8 @@ supertypes = [ godot.Node, godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/scripts/godot/tests/subpackage/OtherScript.gdj b/harness/tests/scripts/godot/tests/subpackage/OtherScript.gdj index 6019c3ec5a..83bd8638ef 100644 --- a/harness/tests/scripts/godot/tests/subpackage/OtherScript.gdj +++ b/harness/tests/scripts/godot/tests/subpackage/OtherScript.gdj @@ -9,6 +9,8 @@ supertypes = [ godot.Node, godot.Object, godot.core.KtObject, + godot.common.interop.NativeWrapper, + godot.common.interop.NativePointer, kotlin.Any ] signals = [ diff --git a/harness/tests/settings.gradle.kts b/harness/tests/settings.gradle.kts index d9412335c9..05b1b4ac79 100644 --- a/harness/tests/settings.gradle.kts +++ b/harness/tests/settings.gradle.kts @@ -8,8 +8,8 @@ includeBuild("../../kt/api-generator") { includeBuild("../../kt") { dependencySubstitution { substitute(module("com.utopia-rise:godot-gradle-plugin")).using(project(":godot-gradle-plugin")) - substitute(module("com.utopia-rise:godot-library-debug")).using(project(":godot-library")) - substitute(module("com.utopia-rise:godot-library-release")).using(project(":godot-library")) + substitute(module("com.utopia-rise:godot-core-library-debug")).using(project(":godot-core-library")) + substitute(module("com.utopia-rise:godot-core-library-release")).using(project(":godot-core-library")) substitute(module("com.utopia-rise:godot-coroutine-library-debug")).using(project(":godot-coroutine-library")) substitute(module("com.utopia-rise:godot-coroutine-library-release")).using(project(":godot-coroutine-library")) substitute(module("com.utopia-rise:godot-kotlin-symbol-processor")).using(project(":godot-kotlin-symbol-processor")) diff --git a/kt/api-generator/src/main/kotlin/godot/codegen/services/impl/GenerationService.kt b/kt/api-generator/src/main/kotlin/godot/codegen/services/impl/GenerationService.kt index d5169a6fe4..76fbdfc467 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 @@ -52,6 +52,7 @@ import godot.tools.common.constants.GODOT_ERROR import godot.tools.common.constants.GodotKotlinJvmTypes import godot.tools.common.constants.GodotTypes import godot.tools.common.constants.KT_OBJECT +import godot.tools.common.constants.MEMORY_MANAGER import godot.tools.common.constants.TRANSFER_CONTEXT import godot.tools.common.constants.TYPE_MANAGER import godot.tools.common.constants.VARIANT_CASTER_ANY @@ -656,7 +657,7 @@ class GenerationService( .builder("${method.name}Ptr", VOID_PTR) .initializer( "%T.getMethodBindPtr(%S,·%S,·%L)", - ClassName("godot.core", "TypeManager"), + TYPE_MANAGER, enrichedClass.internal.name, method.internal.name, method.internal.hash @@ -727,7 +728,8 @@ class GenerationService( .addParameter("scriptIndex", Int::class) .returns(Unit::class) .addStatement( - "callConstructor(%M, scriptIndex)", + "%T.createNativeObject(%M, this, scriptIndex)", + MEMORY_MANAGER, MemberName(godotApiPackage, classIndexName), ) .build() @@ -741,7 +743,8 @@ class GenerationService( .addParameter("scriptIndex", Int::class) .returns(Unit::class) .addStatement( - "getSingleton(%M)", + "%T.getSingleton(%M)", + MEMORY_MANAGER, MemberName(godotApiPackage, classIndexName), ) .build() diff --git a/kt/common/src/main/kotlin/godot/common/interop/NativePointer.kt b/kt/common/src/main/kotlin/godot/common/interop/NativePointer.kt index f8a70aec59..3d925b267e 100644 --- a/kt/common/src/main/kotlin/godot/common/interop/NativePointer.kt +++ b/kt/common/src/main/kotlin/godot/common/interop/NativePointer.kt @@ -3,10 +3,15 @@ package godot.common.interop typealias VoidPtr = Long const val nullptr: VoidPtr = 0L -interface ValuePointer { +interface NativePointer { val ptr: VoidPtr } -interface IdentityPointer: ValuePointer { +interface Binding { val objectID: ObjectID + val instance: NativeWrapper? +} + +interface NativeWrapper: NativePointer { + val memoryBinding: Binding } diff --git a/kt/godot-core-library/src/main/kotlin/godot/core/Constructors.kt b/kt/godot-core-library/src/main/kotlin/godot/core/Constructors.kt index 6f39123591..99a560438a 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/core/Constructors.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/core/Constructors.kt @@ -2,9 +2,9 @@ package godot.core -import godot.internal.memory.MemoryManager import godot.internal.memory.TransferContext import godot.common.constants.Constraints +import godot.common.interop.ObjectID import godot.common.interop.VariantConverter import godot.common.interop.VoidPtr import godot.common.util.threadLocal @@ -16,10 +16,10 @@ abstract class KtConstructor( val parameterTypes: Array = argsTypes.toList().toTypedArray() abstract operator fun invoke(): T - fun construct(rawPtr: VoidPtr, instanceId: Long) = MemoryManager.createScript(rawPtr, instanceId) { + fun construct(rawPtr: VoidPtr, instanceId: Long) = KtObject.createScriptInstance(rawPtr, ObjectID(instanceId)) { TransferContext.readArguments(parameterTypes, paramsArray) - val instance = invoke() resetParamsArray() + val instance = invoke() instance } diff --git a/kt/godot-core-library/src/main/kotlin/godot/core/CoreType.kt b/kt/godot-core-library/src/main/kotlin/godot/core/CoreType.kt index 1a01ca3234..33f22e2896 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/core/CoreType.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/core/CoreType.kt @@ -1,6 +1,6 @@ package godot.core -import godot.common.interop.ValuePointer +import godot.common.interop.NativePointer import godot.common.interop.VoidPtr import godot.common.interop.nullptr @@ -11,6 +11,6 @@ import godot.common.interop.nullptr */ interface CoreType -abstract class NativeCoreType : CoreType, ValuePointer { +abstract class NativeCoreType : CoreType, NativePointer { override var ptr: VoidPtr = nullptr } diff --git a/kt/godot-core-library/src/main/kotlin/godot/core/Functions.kt b/kt/godot-core-library/src/main/kotlin/godot/core/Functions.kt index 538b4a0ae9..b147de0d64 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/core/Functions.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/core/Functions.kt @@ -3,6 +3,7 @@ package godot.core import godot.common.extensions.convertToSnakeCase +import godot.common.interop.VariantConverter import godot.internal.logging.GodotLogging import godot.internal.memory.TransferContext diff --git a/kt/godot-core-library/src/main/kotlin/godot/core/KtObject.kt b/kt/godot-core-library/src/main/kotlin/godot/core/KtObject.kt index 2f2651277e..d8b139f27b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/core/KtObject.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/core/KtObject.kt @@ -1,53 +1,37 @@ package godot.core -import godot.common.interop.IdentityPointer +import godot.common.interop.Binding +import godot.common.interop.NativeWrapper import godot.common.interop.ObjectID import godot.common.interop.VoidPtr import godot.common.interop.nullObjectID import godot.common.interop.nullptr import godot.internal.memory.MemoryManager import godot.internal.memory.TransferContext +import godot.internal.memory.binding.GodotBinding import godot.internal.reflection.TypeManager -import kotlincompile.definitions.GodotJvmBuildConfig +import kotlin.contracts.ExperimentalContracts class GodotNotification internal constructor(val block: Any.(Int) -> Unit) -@Suppress("LeakingThis") -abstract class KtObject: IdentityPointer { +@OptIn(ExperimentalContracts::class) +@Suppress("LeakingThis", "FunctionName") +abstract class KtObject : NativeWrapper { /** Used to prevent the new method to be executed when called from instantiateWith * Instead we use the values set in that class */ internal class InitConfiguration { var ptr: VoidPtr = nullptr - var objectID: ObjectID = ObjectID(-1) + var objectID: ObjectID = nullObjectID fun reset() { ptr = nullptr - objectID = ObjectID(-1) + objectID = nullObjectID } } - override var ptr: VoidPtr = nullptr - set(value) { - if (GodotJvmBuildConfig.DEBUG) { - require(field == nullptr) { - "rawPtr should only be set once!" - } - } - field = value - } - - override var objectID: ObjectID = nullObjectID - set(value) { - if (GodotJvmBuildConfig.DEBUG) { - require(field == nullObjectID) { - "id should only be set once!" - } - } - field = value - } - - internal var twin: KtObject? = null + final override val ptr: VoidPtr + final override val memoryBinding: Binding init { val config = initConfig.get() @@ -55,32 +39,24 @@ abstract class KtObject: IdentityPointer { if (config.ptr != nullptr) { // Native object already exists, so we know the id and ptr without going back to the other side. ptr = config.ptr - objectID = config.objectID + memoryBinding = GodotBinding.create(this, config.objectID) config.reset() // We don't need to register the instance to the MemoryManager, it is the responsibility of the caller. } else { // Branch used when created directly from user code. The native object is going to be created here. // If the class is a script, the ScriptInstance is going to be created at the same time. new(TypeManager.userTypeToId[this::class] ?: -1) - MemoryManager.registerNewInstance(this) + TransferContext.unsafeRead { buffer -> + ptr = buffer.getLong() + memoryBinding = GodotBinding.create(this, ObjectID(buffer.getLong())) + } + MemoryManager.registerNewNativeObject(memoryBinding as GodotBinding) } - } - - protected abstract fun new(scriptIndex: Int) - @Suppress("NOTHING_TO_INLINE") - internal inline fun callConstructor(classIndex: Int, scriptIndex: Int): Unit { - MemoryManager.createNativeObject(classIndex, this, scriptIndex) - TransferContext.initializeKtObject(this) } - @Suppress("NOTHING_TO_INLINE") - internal inline fun getSingleton(classIndex: Int) { - MemoryManager.getSingleton(classIndex) - TransferContext.initializeKtObject(this) - } + protected abstract fun new(scriptIndex: Int) - @Suppress("FunctionName") open fun _notification(): GodotNotification = godotNotification {} @Suppress("UNCHECKED_CAST") @@ -90,7 +66,6 @@ abstract class KtObject: IdentityPointer { @JvmName("godotNotification") protected fun javaGodotNotification(obj: T, block: T.(Int) -> Unit) = obj.godotNotification(block) - @Suppress("FunctionName") /** * Called automatically when the Object is destroyed. Note that this method is not available for RefCounted or any of its child class. * By the time a RefCounted counter reaches 0, its JVM instance has already being GCed and can't be used anymore. @@ -101,15 +76,36 @@ abstract class KtObject: IdentityPointer { MemoryManager.freeObject(ptr) } + private fun removeScript(constructorIndex: Int) { + createScriptInstance(ptr, memoryBinding.objectID, TypeManager.engineTypesConstructors[constructorIndex] as () -> KtObject) + } + + override fun equals(other: Any?) = this === other || (other is KtObject && ptr == other.ptr) + + override fun hashCode() = ptr.toInt() + internal companion object { private val initConfig = ThreadLocal.withInitial { InitConfiguration() } + private inline fun withConfig(ptr: VoidPtr, id: ObjectID, block: () -> T) = initConfig.get().let { + it.ptr = ptr + it.objectID = id + block() + } /** When using this constructor, the newly created instances doesn't register itself to the MemoryManager, the caller must do it.*/ - inline operator fun invoke(rawPtr: VoidPtr, id: Long, constructor: () -> T) = initConfig.get().run { - ptr = rawPtr - objectID = ObjectID(id) - constructor() + inline fun createScriptInstance(rawPtr: VoidPtr, id: ObjectID, constructor: () -> T) = withConfig(rawPtr, id) { + val obj = constructor() + MemoryManager.registerExistingNativeObject(obj.memoryBinding as GodotBinding) + obj } + /** When using this constructor, the newly created instances doesn't register itself to the MemoryManager, the caller must do it.*/ + fun getOrCreate(rawPtr: VoidPtr, id: ObjectID, constructorIndex: Int): KtObject { + return MemoryManager.getInstanceOrCreate(id) { + withConfig(rawPtr, id) { + TypeManager.engineTypesConstructors[constructorIndex]() + } + } as KtObject + } } } diff --git a/kt/godot-core-library/src/main/kotlin/godot/core/ParametersReader.kt b/kt/godot-core-library/src/main/kotlin/godot/core/ParametersReader.kt index fc62b4ad5c..0081626178 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/core/ParametersReader.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/core/ParametersReader.kt @@ -2,6 +2,7 @@ package godot.core import godot.internal.memory.TransferContext import godot.common.constants.Constraints +import godot.common.interop.VariantConverter import godot.common.util.threadLocal internal open class ParametersReader { diff --git a/kt/godot-core-library/src/main/kotlin/godot/core/Properties.kt b/kt/godot-core-library/src/main/kotlin/godot/core/Properties.kt index a37d6f5927..0a8883af5a 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/core/Properties.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/core/Properties.kt @@ -2,6 +2,7 @@ package godot.core import godot.PropertyHint import godot.PropertyUsageFlags +import godot.common.interop.VariantConverter import godot.internal.logging.GodotLogging import godot.internal.memory.TransferContext import kotlin.reflect.KMutableProperty1 diff --git a/kt/godot-core-library/src/main/kotlin/godot/core/Variant.kt b/kt/godot-core-library/src/main/kotlin/godot/core/Variant.kt index 96d0ef8a89..cee24743be 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/core/Variant.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/core/Variant.kt @@ -1,11 +1,11 @@ package godot.core import godot.Object +import godot.common.interop.ObjectID import godot.common.interop.VariantConverter import godot.common.interop.nullptr import godot.common.util.toRealT import godot.internal.memory.LongStringQueue -import godot.internal.memory.MemoryManager import java.nio.ByteBuffer private var ByteBuffer.bool: Boolean @@ -93,7 +93,7 @@ private var ByteBuffer.obj: KtObject? return null } - return MemoryManager.getInstanceOrCreate(ptr, id, constructorIndex) + return KtObject.getOrCreate(ptr, ObjectID(id), constructorIndex) } set(value) { putLong(value?.ptr ?: nullptr) diff --git a/kt/godot-core-library/src/main/kotlin/godot/core/bridge/Dictionary.kt b/kt/godot-core-library/src/main/kotlin/godot/core/bridge/Dictionary.kt index d12ef35911..a85858fb36 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/core/bridge/Dictionary.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/core/bridge/Dictionary.kt @@ -3,6 +3,7 @@ package godot.core import godot.annotation.CoreTypeHelper +import godot.common.interop.VariantConverter import godot.common.interop.VoidPtr import godot.internal.memory.MemoryManager import godot.internal.memory.TransferContext diff --git a/kt/godot-core-library/src/main/kotlin/godot/core/bridge/LambdaCallable.kt b/kt/godot-core-library/src/main/kotlin/godot/core/bridge/LambdaCallable.kt index dd874d4859..05d57a5abe 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/core/bridge/LambdaCallable.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/core/bridge/LambdaCallable.kt @@ -2,6 +2,7 @@ package godot.core +import godot.common.interop.VariantConverter import godot.common.interop.VoidPtr import godot.internal.logging.GodotLogging import godot.internal.memory.TransferContext diff --git a/kt/godot-core-library/src/main/kotlin/godot/core/bridge/NodePath.kt b/kt/godot-core-library/src/main/kotlin/godot/core/bridge/NodePath.kt index 571ce12206..8797eeacfc 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/core/bridge/NodePath.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/core/bridge/NodePath.kt @@ -176,7 +176,7 @@ class NodePath : NativeCoreType { private val nodePathCache = LRUCache(CACHE_INITIAL_CAPACITY) init { - MemoryManager.registerCallback { + MemoryManager.registerCallback(true) { nodePathCache.clear() } } diff --git a/kt/godot-core-library/src/main/kotlin/godot/core/bridge/StringName.kt b/kt/godot-core-library/src/main/kotlin/godot/core/bridge/StringName.kt index e6470f199a..344971d28d 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/core/bridge/StringName.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/core/bridge/StringName.kt @@ -72,7 +72,7 @@ class StringName : NativeCoreType { private val stringNameCache = LRUCache(CACHE_INITIAL_CAPACITY) init { - MemoryManager.registerCallback { + MemoryManager.registerCallback(true) { stringNameCache.clear() } } diff --git a/kt/godot-core-library/src/main/kotlin/godot/core/bridge/VariantArray.kt b/kt/godot-core-library/src/main/kotlin/godot/core/bridge/VariantArray.kt index 3a6fa80758..160b7fd144 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/core/bridge/VariantArray.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/core/bridge/VariantArray.kt @@ -3,6 +3,7 @@ package godot.core import godot.annotation.CoreTypeHelper +import godot.common.interop.VariantConverter import godot.internal.memory.MemoryManager import godot.internal.memory.TransferContext import godot.common.util.IndexedIterator diff --git a/kt/godot-core-library/src/main/kotlin/godot/core/bridge/packed/PackedArray.kt b/kt/godot-core-library/src/main/kotlin/godot/core/bridge/packed/PackedArray.kt index 7caf53ad6b..59e0090c32 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/core/bridge/packed/PackedArray.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/core/bridge/packed/PackedArray.kt @@ -2,6 +2,7 @@ package godot.core +import godot.common.interop.VariantConverter import godot.common.util.IndexedIterator import godot.common.interop.VoidPtr import godot.internal.memory.TransferContext diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AESContext.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AESContext.kt index c9a32ba7c8..f8604facee 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AESContext.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AESContext.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedByteArray -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_BYTE_ARRAY -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -100,7 +101,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class AESContext : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AESCONTEXT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AESCONTEXT, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AStar2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AStar2D.kt index 751e608e3a..51c1646c13 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AStar2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AStar2D.kt @@ -7,10 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedInt64Array import godot.core.PackedVector2Array -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -19,7 +21,6 @@ import godot.core.VariantParser.PACKED_INT_64_ARRAY import godot.core.VariantParser.PACKED_VECTOR2_ARRAY import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -39,7 +40,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class AStar2D : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ASTAR2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ASTAR2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AStar3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AStar3D.kt index 4ddda003e6..04e7055c51 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AStar3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AStar3D.kt @@ -7,10 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedInt64Array import godot.core.PackedVector3Array -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -19,7 +21,6 @@ import godot.core.VariantParser.PACKED_INT_64_ARRAY import godot.core.VariantParser.PACKED_VECTOR3_ARRAY import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -84,7 +85,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class AStar3D : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ASTAR3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ASTAR3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AStarGrid2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AStarGrid2D.kt index 3fd8e9a736..9ee9fad93e 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AStarGrid2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AStarGrid2D.kt @@ -9,10 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedVector2Array import godot.core.Rect2i -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -25,7 +27,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser.VECTOR2I import godot.core.Vector2 import godot.core.Vector2i -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -187,7 +188,7 @@ public open class AStarGrid2D : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ASTARGRID2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ASTARGRID2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AcceptDialog.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AcceptDialog.kt index 1d1b1081d8..d7a7d9dc94 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AcceptDialog.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AcceptDialog.kt @@ -7,16 +7,17 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.Signal1 import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.String @@ -110,7 +111,7 @@ public open class AcceptDialog : Window() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ACCEPTDIALOG, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ACCEPTDIALOG, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimatableBody2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimatableBody2D.kt index af13dfc2d4..892ff29909 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimatableBody2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimatableBody2D.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -42,7 +43,7 @@ public open class AnimatableBody2D : StaticBody2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ANIMATABLEBODY2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ANIMATABLEBODY2D, this, scriptIndex) } public final fun setSyncToPhysics(enable: Boolean): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimatableBody3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimatableBody3D.kt index 17487596b5..890c11f871 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimatableBody3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimatableBody3D.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -42,7 +43,7 @@ public open class AnimatableBody3D : StaticBody3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ANIMATABLEBODY3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ANIMATABLEBODY3D, this, scriptIndex) } public final fun setSyncToPhysics(enable: Boolean): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimatedSprite2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimatedSprite2D.kt index 4d4d06134b..a335b2705f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimatedSprite2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimatedSprite2D.kt @@ -9,10 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -22,7 +24,6 @@ import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -192,7 +193,7 @@ public open class AnimatedSprite2D : Node2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ANIMATEDSPRITE2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ANIMATEDSPRITE2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimatedSprite3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimatedSprite3D.kt index 862401ba05..8e96af1efb 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimatedSprite3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimatedSprite3D.kt @@ -7,10 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -18,7 +20,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -140,7 +141,7 @@ public open class AnimatedSprite3D : SpriteBase3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ANIMATEDSPRITE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ANIMATEDSPRITE3D, this, scriptIndex) } public final fun setSpriteFrames(spriteFrames: SpriteFrames?): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimatedTexture.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimatedTexture.kt index 206006db8c..e937ce5aa9 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimatedTexture.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimatedTexture.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -102,7 +103,7 @@ public open class AnimatedTexture : Texture2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ANIMATEDTEXTURE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ANIMATEDTEXTURE, this, scriptIndex) } public final fun setFrames(frames: Int): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Animation.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Animation.kt index 3f3a96800e..1af3a04cc3 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Animation.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Animation.kt @@ -7,11 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.Quaternion import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantCaster.ANY import godot.core.VariantParser.ARRAY @@ -27,7 +29,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser.VECTOR3 import godot.core.Vector2 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -122,7 +123,7 @@ public open class Animation : Resource() { get() = isCaptureIncluded() public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ANIMATION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ANIMATION, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationLibrary.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationLibrary.kt index 0efd9c45ad..fcf9b454fa 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationLibrary.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationLibrary.kt @@ -7,11 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal1 import godot.core.Signal2 import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -19,7 +21,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -55,7 +56,7 @@ public open class AnimationLibrary : Resource() { public val animationChanged: Signal1 by Signal1 public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ANIMATIONLIBRARY, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ANIMATIONLIBRARY, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationMixer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationMixer.kt index 5fe21fe9a1..3a5a2b5402 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationMixer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationMixer.kt @@ -7,6 +7,9 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.PackedStringArray @@ -14,7 +17,6 @@ import godot.core.Quaternion import godot.core.Signal0 import godot.core.Signal1 import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -28,7 +30,6 @@ import godot.core.VariantParser.QUATERNION import godot.core.VariantParser.STRING_NAME import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -218,7 +219,7 @@ public open class AnimationMixer internal constructor() : Node() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ANIMATIONMIXER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ANIMATIONMIXER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNode.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNode.kt index 9c0d407da7..ba2a861a7f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNode.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNode.kt @@ -7,6 +7,9 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.NodePath @@ -14,7 +17,6 @@ import godot.core.Signal0 import godot.core.Signal2 import godot.core.Signal3 import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantCaster.ANY import godot.core.VariantParser.BOOL @@ -25,7 +27,6 @@ import godot.core.VariantParser.NODE_PATH import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -92,7 +93,7 @@ public open class AnimationNode : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ANIMATIONNODE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ANIMATIONNODE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeAdd2.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeAdd2.kt index 698ce26016..efee33afd1 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeAdd2.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeAdd2.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -22,7 +23,7 @@ import kotlin.Unit @GodotBaseType public open class AnimationNodeAdd2 : AnimationNodeSync() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ANIMATIONNODEADD2, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ANIMATIONNODEADD2, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeAdd3.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeAdd3.kt index da70d2b856..ed28d0ab17 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeAdd3.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeAdd3.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -24,7 +25,7 @@ import kotlin.Unit @GodotBaseType public open class AnimationNodeAdd3 : AnimationNodeSync() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ANIMATIONNODEADD3, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ANIMATIONNODEADD3, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeAnimation.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeAnimation.kt index c68b991856..4bd36fdbd2 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeAnimation.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeAnimation.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Int @@ -118,7 +119,7 @@ public open class AnimationNodeAnimation : AnimationRootNode() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ANIMATIONNODEANIMATION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ANIMATIONNODEANIMATION, this, scriptIndex) } public final fun setAnimation(name: StringName): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlend2.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlend2.kt index 402b54af1c..dce64a6089 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlend2.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlend2.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -20,7 +21,7 @@ import kotlin.Unit @GodotBaseType public open class AnimationNodeBlend2 : AnimationNodeSync() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ANIMATIONNODEBLEND2, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ANIMATIONNODEBLEND2, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlend3.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlend3.kt index 2119f30b69..8a321d67c8 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlend3.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlend3.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -24,7 +25,7 @@ import kotlin.Unit @GodotBaseType public open class AnimationNodeBlend3 : AnimationNodeSync() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ANIMATIONNODEBLEND3, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ANIMATIONNODEBLEND3, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlendSpace1D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlendSpace1D.kt index eaaf3440af..f385c0bf8b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlendSpace1D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlendSpace1D.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -104,7 +105,7 @@ public open class AnimationNodeBlendSpace1D : AnimationRootNode() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ANIMATIONNODEBLENDSPACE1D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ANIMATIONNODEBLENDSPACE1D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlendSpace2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlendSpace2D.kt index cf473f1475..398e0dc6ba 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlendSpace2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlendSpace2D.kt @@ -9,9 +9,11 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal0 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL @@ -19,7 +21,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -141,7 +142,7 @@ public open class AnimationNodeBlendSpace2D : AnimationRootNode() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ANIMATIONNODEBLENDSPACE2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ANIMATIONNODEBLENDSPACE2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlendTree.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlendTree.kt index f658bc1e6e..6525d34961 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlendTree.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeBlendTree.kt @@ -9,10 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal1 import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL @@ -20,7 +22,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING_NAME import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -55,7 +56,7 @@ public open class AnimationNodeBlendTree : AnimationRootNode() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ANIMATIONNODEBLENDTREE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ANIMATIONNODEBLENDTREE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeOneShot.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeOneShot.kt index 279b896d1d..5806d95c1f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeOneShot.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeOneShot.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Int @@ -199,7 +200,7 @@ public open class AnimationNodeOneShot : AnimationNodeSync() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ANIMATIONNODEONESHOT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ANIMATIONNODEONESHOT, this, scriptIndex) } public final fun setFadeinTime(time: Double): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeOutput.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeOutput.kt index 1371941550..344087ece5 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeOutput.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeOutput.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -17,7 +18,7 @@ import kotlin.Unit @GodotBaseType public open class AnimationNodeOutput : AnimationNode() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ANIMATIONNODEOUTPUT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ANIMATIONNODEOUTPUT, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeStateMachine.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeStateMachine.kt index 066fb4d884..6ec9dea13c 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeStateMachine.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeStateMachine.kt @@ -7,9 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL @@ -17,7 +19,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING_NAME import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -87,7 +88,7 @@ public open class AnimationNodeStateMachine : AnimationRootNode() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ANIMATIONNODESTATEMACHINE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ANIMATIONNODESTATEMACHINE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeStateMachinePlayback.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeStateMachinePlayback.kt index 850dad13e7..700e06330f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeStateMachinePlayback.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeStateMachinePlayback.kt @@ -7,16 +7,17 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -45,7 +46,8 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class AnimationNodeStateMachinePlayback : Resource() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ANIMATIONNODESTATEMACHINEPLAYBACK, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ANIMATIONNODESTATEMACHINEPLAYBACK, this, + scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeStateMachineTransition.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeStateMachineTransition.kt index b07ac65af8..1ed024c67f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeStateMachineTransition.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeStateMachineTransition.kt @@ -7,10 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -18,7 +20,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -165,7 +166,8 @@ public open class AnimationNodeStateMachineTransition : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ANIMATIONNODESTATEMACHINETRANSITION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ANIMATIONNODESTATEMACHINETRANSITION, this, + scriptIndex) } public final fun setSwitchMode(mode: SwitchMode): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeSub2.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeSub2.kt index f31f970cd0..96ad1a32db 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeSub2.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeSub2.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -26,7 +27,7 @@ import kotlin.Unit @GodotBaseType public open class AnimationNodeSub2 : AnimationNodeSync() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ANIMATIONNODESUB2, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ANIMATIONNODESUB2, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeSync.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeSync.kt index 105170d2eb..96ceb64816 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeSync.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeSync.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -37,7 +38,7 @@ public open class AnimationNodeSync : AnimationNode() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ANIMATIONNODESYNC, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ANIMATIONNODESYNC, this, scriptIndex) } public final fun setUseSync(enable: Boolean): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeTimeScale.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeTimeScale.kt index cfa34b4729..adf91bae2c 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeTimeScale.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeTimeScale.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,7 @@ import kotlin.Unit @GodotBaseType public open class AnimationNodeTimeScale : AnimationNode() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ANIMATIONNODETIMESCALE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ANIMATIONNODETIMESCALE, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeTimeSeek.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeTimeSeek.kt index 17c5b2edb8..341c53ff7c 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeTimeSeek.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeTimeSeek.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -42,7 +43,7 @@ import kotlin.Unit @GodotBaseType public open class AnimationNodeTimeSeek : AnimationNode() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ANIMATIONNODETIMESEEK, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ANIMATIONNODETIMESEEK, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeTransition.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeTransition.kt index b0a6d91393..71ff83f2a4 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeTransition.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationNodeTransition.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Int @@ -112,7 +113,7 @@ public open class AnimationNodeTransition : AnimationNodeSync() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ANIMATIONNODETRANSITION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ANIMATIONNODETRANSITION, this, scriptIndex) } public final fun setInputCount(inputCount: Int): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationPlayer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationPlayer.kt index 08640cce47..b2f70a119c 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationPlayer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationPlayer.kt @@ -7,13 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.PackedStringArray import godot.core.Signal1 import godot.core.Signal2 import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -22,7 +24,6 @@ import godot.core.VariantParser.NODE_PATH import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -204,7 +205,7 @@ public open class AnimationPlayer : AnimationMixer() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ANIMATIONPLAYER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ANIMATIONPLAYER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationRootNode.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationRootNode.kt index 0b0d8af70e..5c71d2bd94 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationRootNode.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationRootNode.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -25,7 +26,7 @@ import kotlin.Unit @GodotBaseType public open class AnimationRootNode : AnimationNode() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ANIMATIONROOTNODE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ANIMATIONROOTNODE, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationTree.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationTree.kt index 258ecbdbb2..402ede4cef 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationTree.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AnimationTree.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.Signal0 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -71,7 +72,7 @@ public open class AnimationTree : AnimationMixer() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ANIMATIONTREE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ANIMATIONTREE, this, scriptIndex) } public final fun setTreeRoot(animationNode: AnimationRootNode?): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Area2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Area2D.kt index 5ffd77867c..8809fb1bae 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Area2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Area2D.kt @@ -9,12 +9,14 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID import godot.core.Signal1 import godot.core.Signal4 import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -25,7 +27,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING_NAME import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -309,7 +310,7 @@ public open class Area2D : CollisionObject2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AREA2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AREA2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Area3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Area3D.kt index 77f28be8c5..1c30a50f4b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Area3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Area3D.kt @@ -9,13 +9,15 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.RID import godot.core.Signal1 import godot.core.Signal4 import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -27,7 +29,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING_NAME import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -404,7 +405,7 @@ public open class Area3D : CollisionObject3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AREA3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AREA3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ArrayMesh.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ArrayMesh.kt index 0c4c71dda0..b26ea2cab7 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ArrayMesh.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ArrayMesh.kt @@ -6,16 +6,19 @@ package godot +import godot.Mesh.ArrayFormatValue import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.AABB import godot.core.Dictionary import godot.core.PackedByteArray import godot.core.StringName import godot.core.Transform3D -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.DICTIONARY @@ -27,7 +30,6 @@ import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME import godot.core.VariantParser.TRANSFORM3D -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Float import kotlin.Int @@ -129,7 +131,7 @@ public open class ArrayMesh : Mesh() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ARRAYMESH, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ARRAYMESH, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ArrayOccluder3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ArrayOccluder3D.kt index 1957e91de3..071e1eecff 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ArrayOccluder3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ArrayOccluder3D.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedInt32Array import godot.core.PackedVector3Array -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_INT_32_ARRAY import godot.core.VariantParser.PACKED_VECTOR3_ARRAY -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -57,7 +58,7 @@ public open class ArrayOccluder3D : Occluder3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ARRAYOCCLUDER3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ARRAYOCCLUDER3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AspectRatioContainer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AspectRatioContainer.kt index 79ac0577d4..b864380167 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AspectRatioContainer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AspectRatioContainer.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -74,7 +75,7 @@ public open class AspectRatioContainer : Container() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ASPECTRATIOCONTAINER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ASPECTRATIOCONTAINER, this, scriptIndex) } public final fun setRatio(ratio: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AtlasTexture.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AtlasTexture.kt index b77538b646..041e7cd908 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AtlasTexture.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AtlasTexture.kt @@ -9,14 +9,15 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Rect2 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.RECT2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -85,7 +86,7 @@ public open class AtlasTexture : Texture2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ATLASTEXTURE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ATLASTEXTURE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioBusLayout.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioBusLayout.kt index 3f50c28ea2..664c1fe789 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioBusLayout.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioBusLayout.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,7 @@ import kotlin.Unit @GodotBaseType public open class AudioBusLayout : Resource() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOBUSLAYOUT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOBUSLAYOUT, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffect.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffect.kt index a6254a9773..6f0fbf8728 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffect.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffect.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.NotImplementedError import kotlin.Suppress @@ -24,7 +25,7 @@ import kotlin.Unit @GodotBaseType public open class AudioEffect : Resource() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOEFFECT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOEFFECT, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectAmplify.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectAmplify.kt index e91a84761e..3f2850da4b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectAmplify.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectAmplify.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -37,7 +38,7 @@ public open class AudioEffectAmplify : AudioEffect() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOEFFECTAMPLIFY, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOEFFECTAMPLIFY, this, scriptIndex) } public final fun setVolumeDb(volume: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectBandLimitFilter.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectBandLimitFilter.kt index 61aa5b933f..1e5b875627 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectBandLimitFilter.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectBandLimitFilter.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,7 @@ import kotlin.Unit @GodotBaseType public open class AudioEffectBandLimitFilter : AudioEffectFilter() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOEFFECTBANDLIMITFILTER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOEFFECTBANDLIMITFILTER, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectBandPassFilter.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectBandPassFilter.kt index 779e90d197..eb33b5d4eb 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectBandPassFilter.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectBandPassFilter.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,7 @@ import kotlin.Unit @GodotBaseType public open class AudioEffectBandPassFilter : AudioEffectFilter() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOEFFECTBANDPASSFILTER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOEFFECTBANDPASSFILTER, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectCapture.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectCapture.kt index a071a1acf3..1155a2bbe4 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectCapture.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectCapture.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedVector2Array -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_VECTOR2_ARRAY -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -50,7 +51,7 @@ public open class AudioEffectCapture : AudioEffect() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOEFFECTCAPTURE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOEFFECTCAPTURE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectChorus.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectChorus.kt index d33a57a4af..75292abab5 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectChorus.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectChorus.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -61,7 +62,7 @@ public open class AudioEffectChorus : AudioEffect() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOEFFECTCHORUS, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOEFFECTCHORUS, this, scriptIndex) } public final fun setVoiceCount(voices: Int): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectCompressor.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectCompressor.kt index 123f22ea8d..b1c690d0b6 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectCompressor.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectCompressor.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -118,7 +119,7 @@ public open class AudioEffectCompressor : AudioEffect() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOEFFECTCOMPRESSOR, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOEFFECTCOMPRESSOR, this, scriptIndex) } public final fun setThreshold(threshold: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectDelay.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectDelay.kt index 95cbd23f4c..6e1d29cf34 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectDelay.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectDelay.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -174,7 +175,7 @@ public open class AudioEffectDelay : AudioEffect() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOEFFECTDELAY, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOEFFECTDELAY, this, scriptIndex) } public final fun setDry(amount: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectDistortion.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectDistortion.kt index e8fff810d6..dfad515d1d 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectDistortion.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectDistortion.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -88,7 +89,7 @@ public open class AudioEffectDistortion : AudioEffect() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOEFFECTDISTORTION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOEFFECTDISTORTION, this, scriptIndex) } public final fun setMode(mode: Mode): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectEQ.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectEQ.kt index 539014fdb0..d5f0f2e2a5 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectEQ.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectEQ.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -29,7 +30,7 @@ import kotlin.Unit @GodotBaseType public open class AudioEffectEQ : AudioEffect() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOEFFECTEQ, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOEFFECTEQ, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectEQ10.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectEQ10.kt index e3b23d5974..e36cfac5fc 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectEQ10.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectEQ10.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -28,7 +29,7 @@ import kotlin.Unit @GodotBaseType public open class AudioEffectEQ10 : AudioEffectEQ() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOEFFECTEQ10, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOEFFECTEQ10, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectEQ21.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectEQ21.kt index ad9ed05f42..b18a35260f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectEQ21.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectEQ21.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -39,7 +40,7 @@ import kotlin.Unit @GodotBaseType public open class AudioEffectEQ21 : AudioEffectEQ() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOEFFECTEQ21, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOEFFECTEQ21, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectEQ6.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectEQ6.kt index 18c45a9031..e2f551cf36 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectEQ6.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectEQ6.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -24,7 +25,7 @@ import kotlin.Unit @GodotBaseType public open class AudioEffectEQ6 : AudioEffectEQ() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOEFFECTEQ6, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOEFFECTEQ6, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectFilter.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectFilter.kt index 0cb4e45594..5b04632dcb 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectFilter.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectFilter.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -68,7 +69,7 @@ public open class AudioEffectFilter : AudioEffect() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOEFFECTFILTER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOEFFECTFILTER, this, scriptIndex) } public final fun setCutoff(freq: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectHardLimiter.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectHardLimiter.kt index 6ae76bce87..3f2ba1249a 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectHardLimiter.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectHardLimiter.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -64,7 +65,7 @@ public open class AudioEffectHardLimiter : AudioEffect() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOEFFECTHARDLIMITER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOEFFECTHARDLIMITER, this, scriptIndex) } public final fun setCeilingDb(ceiling: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectHighPassFilter.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectHighPassFilter.kt index b9f7112f7b..04240d1f7c 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectHighPassFilter.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectHighPassFilter.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,7 @@ import kotlin.Unit @GodotBaseType public open class AudioEffectHighPassFilter : AudioEffectFilter() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOEFFECTHIGHPASSFILTER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOEFFECTHIGHPASSFILTER, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectHighShelfFilter.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectHighShelfFilter.kt index ef8c00f207..f4e2e83f1c 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectHighShelfFilter.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectHighShelfFilter.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -17,7 +18,7 @@ import kotlin.Unit @GodotBaseType public open class AudioEffectHighShelfFilter : AudioEffectFilter() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOEFFECTHIGHSHELFFILTER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOEFFECTHIGHSHELFFILTER, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectInstance.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectInstance.kt index eea560fc5f..ad98364126 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectInstance.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectInstance.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Boolean import kotlin.Int import kotlin.NotImplementedError @@ -22,7 +23,7 @@ import kotlin.Unit @GodotBaseType public open class AudioEffectInstance : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOEFFECTINSTANCE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOEFFECTINSTANCE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectLimiter.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectLimiter.kt index b59528a9a6..f15a250bcc 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectLimiter.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectLimiter.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -71,7 +72,7 @@ public open class AudioEffectLimiter : AudioEffect() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOEFFECTLIMITER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOEFFECTLIMITER, this, scriptIndex) } public final fun setCeilingDb(ceiling: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectLowPassFilter.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectLowPassFilter.kt index a497280d33..eadd3ceee0 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectLowPassFilter.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectLowPassFilter.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,7 @@ import kotlin.Unit @GodotBaseType public open class AudioEffectLowPassFilter : AudioEffectFilter() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOEFFECTLOWPASSFILTER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOEFFECTLOWPASSFILTER, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectLowShelfFilter.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectLowShelfFilter.kt index 51c92d0d05..23dee334a4 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectLowShelfFilter.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectLowShelfFilter.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -17,7 +18,7 @@ import kotlin.Unit @GodotBaseType public open class AudioEffectLowShelfFilter : AudioEffectFilter() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOEFFECTLOWSHELFFILTER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOEFFECTLOWSHELFFILTER, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectNotchFilter.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectNotchFilter.kt index b15b37f048..acef5f21f3 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectNotchFilter.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectNotchFilter.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,7 @@ import kotlin.Unit @GodotBaseType public open class AudioEffectNotchFilter : AudioEffectFilter() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOEFFECTNOTCHFILTER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOEFFECTNOTCHFILTER, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectPanner.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectPanner.kt index 18f9cd2a86..f595534f2d 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectPanner.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectPanner.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -36,7 +37,7 @@ public open class AudioEffectPanner : AudioEffect() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOEFFECTPANNER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOEFFECTPANNER, this, scriptIndex) } public final fun setPan(cpanume: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectPhaser.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectPhaser.kt index d577112f81..541a514370 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectPhaser.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectPhaser.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -84,7 +85,7 @@ public open class AudioEffectPhaser : AudioEffect() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOEFFECTPHASER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOEFFECTPHASER, this, scriptIndex) } public final fun setRangeMinHz(hz: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectPitchShift.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectPitchShift.kt index ef735cc484..cd397a3032 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectPitchShift.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectPitchShift.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -67,7 +68,7 @@ public open class AudioEffectPitchShift : AudioEffect() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOEFFECTPITCHSHIFT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOEFFECTPITCHSHIFT, this, scriptIndex) } public final fun setPitchScale(rate: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectRecord.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectRecord.kt index 350657094e..f62c2e60e5 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectRecord.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectRecord.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -46,7 +47,7 @@ public open class AudioEffectRecord : AudioEffect() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOEFFECTRECORD, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOEFFECTRECORD, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectReverb.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectReverb.kt index 34eab746e1..5c05f6e69a 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectReverb.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectReverb.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -119,7 +120,7 @@ public open class AudioEffectReverb : AudioEffect() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOEFFECTREVERB, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOEFFECTREVERB, this, scriptIndex) } public final fun setPredelayMsec(msec: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectSpectrumAnalyzer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectSpectrumAnalyzer.kt index 909bf629fd..5dcc94b0a7 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectSpectrumAnalyzer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectSpectrumAnalyzer.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -65,7 +66,7 @@ public open class AudioEffectSpectrumAnalyzer : AudioEffect() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOEFFECTSPECTRUMANALYZER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOEFFECTSPECTRUMANALYZER, this, scriptIndex) } public final fun setBufferLength(seconds: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectSpectrumAnalyzerInstance.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectSpectrumAnalyzerInstance.kt index fa14affca3..fef05498f3 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectSpectrumAnalyzerInstance.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectSpectrumAnalyzerInstance.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Float import kotlin.Int import kotlin.Long @@ -30,7 +31,8 @@ import kotlin.jvm.JvmOverloads public open class AudioEffectSpectrumAnalyzerInstance internal constructor() : AudioEffectInstance() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOEFFECTSPECTRUMANALYZERINSTANCE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOEFFECTSPECTRUMANALYZERINSTANCE, this, + scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectStereoEnhance.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectStereoEnhance.kt index 8a701f4a11..2f6ee3fb0b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectStereoEnhance.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioEffectStereoEnhance.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -54,7 +55,7 @@ public open class AudioEffectStereoEnhance : AudioEffect() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOEFFECTSTEREOENHANCE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOEFFECTSTEREOENHANCE, this, scriptIndex) } public final fun setPanPullout(amount: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioListener2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioListener2D.kt index 14d6e218ad..b9597467f0 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioListener2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioListener2D.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -27,7 +28,7 @@ import kotlin.Unit @GodotBaseType public open class AudioListener2D : Node2D() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOLISTENER2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOLISTENER2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioListener3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioListener3D.kt index 94b200cb3f..5c436fc5d4 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioListener3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioListener3D.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Transform3D -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser.TRANSFORM3D -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -27,7 +28,7 @@ import kotlin.Unit @GodotBaseType public open class AudioListener3D : Node3D() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOLISTENER3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOLISTENER3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioSample.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioSample.kt index eb75bb14d2..fb429be2e8 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioSample.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioSample.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -17,7 +18,7 @@ import kotlin.Unit @GodotBaseType public open class AudioSample : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOSAMPLE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOSAMPLE, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioSamplePlayback.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioSamplePlayback.kt index 703f9f1b03..0403c4b78c 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioSamplePlayback.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioSamplePlayback.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -17,7 +18,7 @@ import kotlin.Unit @GodotBaseType public open class AudioSamplePlayback : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOSAMPLEPLAYBACK, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOSAMPLEPLAYBACK, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioServer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioServer.kt index 99db035fc1..7c76a9b53c 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioServer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioServer.kt @@ -7,12 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedStringArray import godot.core.Signal0 import godot.core.Signal3 import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -21,7 +23,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -52,7 +53,7 @@ public object AudioServer : Object() { public val busRenamed: Signal3 by Signal3 public override fun new(scriptIndex: Int): Unit { - getSingleton(ENGINECLASS_AUDIOSERVER) + MemoryManager.getSingleton(ENGINECLASS_AUDIOSERVER) } @JvmStatic diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStream.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStream.kt index 54fc33bd24..6fd527b32b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStream.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStream.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.Signal0 -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -37,7 +38,7 @@ public open class AudioStream : Resource() { public val parameterListChanged: Signal0 by Signal0 public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOSTREAM, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOSTREAM, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamGenerator.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamGenerator.kt index 84baac1c2a..cfddc270d2 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamGenerator.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamGenerator.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -121,7 +122,7 @@ public open class AudioStreamGenerator : AudioStream() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOSTREAMGENERATOR, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOSTREAMGENERATOR, this, scriptIndex) } public final fun setMixRate(hz: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamGeneratorPlayback.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamGeneratorPlayback.kt index fcb4ef5392..3d4badc7ee 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamGeneratorPlayback.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamGeneratorPlayback.kt @@ -7,16 +7,17 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedVector2Array -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_VECTOR2_ARRAY import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -31,7 +32,7 @@ import kotlin.Unit public open class AudioStreamGeneratorPlayback internal constructor() : AudioStreamPlaybackResampled() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOSTREAMGENERATORPLAYBACK, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOSTREAMGENERATORPLAYBACK, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamInteractive.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamInteractive.kt index 9aecf32cba..e3697419cf 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamInteractive.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamInteractive.kt @@ -7,10 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedInt32Array import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -18,7 +20,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_INT_32_ARRAY import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -63,7 +64,7 @@ public open class AudioStreamInteractive : AudioStream() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOSTREAMINTERACTIVE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOSTREAMINTERACTIVE, this, scriptIndex) } public final fun setClipCount(clipCount: Int): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamMP3.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamMP3.kt index 2517fbf447..dcc1fe8bf9 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamMP3.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamMP3.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedByteArray -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_BYTE_ARRAY -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Int @@ -109,7 +110,7 @@ public open class AudioStreamMP3 : AudioStream() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOSTREAMMP3, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOSTREAMMP3, this, scriptIndex) } public final fun setData(`data`: PackedByteArray): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamMicrophone.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamMicrophone.kt index f81976242e..ed4f0ae30b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamMicrophone.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamMicrophone.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -22,7 +23,7 @@ import kotlin.Unit @GodotBaseType public open class AudioStreamMicrophone : AudioStream() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOSTREAMMICROPHONE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOSTREAMMICROPHONE, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamOggVorbis.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamOggVorbis.kt index e6d474b273..616c38c74e 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamOggVorbis.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamOggVorbis.kt @@ -7,9 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedByteArray -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -17,7 +19,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Int @@ -94,7 +95,7 @@ public open class AudioStreamOggVorbis : AudioStream() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOSTREAMOGGVORBIS, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOSTREAMOGGVORBIS, this, scriptIndex) } public final fun setPacketSequence(packetSequence: OggPacketSequence?): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayback.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayback.kt index 9a79b66192..d2f099867b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayback.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayback.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -28,7 +29,7 @@ import kotlin.Unit @GodotBaseType public open class AudioStreamPlayback : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOSTREAMPLAYBACK, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOSTREAMPLAYBACK, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackInteractive.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackInteractive.kt index 33977eeb36..ae25a398bf 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackInteractive.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackInteractive.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -25,7 +26,7 @@ import kotlin.Unit @GodotBaseType public open class AudioStreamPlaybackInteractive internal constructor() : AudioStreamPlayback() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOSTREAMPLAYBACKINTERACTIVE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOSTREAMPLAYBACKINTERACTIVE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackOggVorbis.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackOggVorbis.kt index e6490572db..3ac0aaf1c0 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackOggVorbis.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackOggVorbis.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -14,7 +15,7 @@ import kotlin.Unit @GodotBaseType public open class AudioStreamPlaybackOggVorbis : AudioStreamPlaybackResampled() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOSTREAMPLAYBACKOGGVORBIS, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOSTREAMPLAYBACKOGGVORBIS, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackPlaylist.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackPlaylist.kt index 89a1c5c0cc..11407e98af 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackPlaylist.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackPlaylist.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -14,7 +15,7 @@ import kotlin.Unit @GodotBaseType public open class AudioStreamPlaybackPlaylist internal constructor() : AudioStreamPlayback() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOSTREAMPLAYBACKPLAYLIST, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOSTREAMPLAYBACKPLAYLIST, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackPolyphonic.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackPolyphonic.kt index 59fcbbb9cb..71cd855ce4 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackPolyphonic.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackPolyphonic.kt @@ -7,16 +7,17 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Float import kotlin.Int @@ -34,7 +35,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class AudioStreamPlaybackPolyphonic internal constructor() : AudioStreamPlayback() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOSTREAMPLAYBACKPOLYPHONIC, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOSTREAMPLAYBACKPOLYPHONIC, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackResampled.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackResampled.kt index 817d352f8e..28479bf2ce 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackResampled.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackResampled.kt @@ -7,10 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Float import kotlin.Int import kotlin.NotImplementedError @@ -20,7 +21,7 @@ import kotlin.Unit @GodotBaseType public open class AudioStreamPlaybackResampled : AudioStreamPlayback() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOSTREAMPLAYBACKRESAMPLED, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOSTREAMPLAYBACKRESAMPLED, this, scriptIndex) } public open fun _getStreamSamplingRate(): Float { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackSynchronized.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackSynchronized.kt index d187af36ec..acbaf6d157 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackSynchronized.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaybackSynchronized.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -14,7 +15,7 @@ import kotlin.Unit @GodotBaseType public open class AudioStreamPlaybackSynchronized internal constructor() : AudioStreamPlayback() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOSTREAMPLAYBACKSYNCHRONIZED, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOSTREAMPLAYBACKSYNCHRONIZED, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayer.kt index d673377213..8b1bb44e1b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayer.kt @@ -7,17 +7,18 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -163,7 +164,7 @@ public open class AudioStreamPlayer : Node() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOSTREAMPLAYER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOSTREAMPLAYER, this, scriptIndex) } public final fun setStream(stream: AudioStream?): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayer2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayer2D.kt index deebd98569..bf440461ff 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayer2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayer2D.kt @@ -7,17 +7,18 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -195,7 +196,7 @@ public open class AudioStreamPlayer2D : Node2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOSTREAMPLAYER2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOSTREAMPLAYER2D, this, scriptIndex) } public final fun setStream(stream: AudioStream?): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayer3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayer3D.kt index 5cf2dec098..8b6a1f8b89 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayer3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlayer3D.kt @@ -7,17 +7,18 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -295,7 +296,7 @@ public open class AudioStreamPlayer3D : Node3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOSTREAMPLAYER3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOSTREAMPLAYER3D, this, scriptIndex) } public final fun setStream(stream: AudioStream?): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaylist.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaylist.kt index cc38f7f0cc..3cbff81748 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaylist.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPlaylist.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -585,7 +586,7 @@ public open class AudioStreamPlaylist : AudioStream() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOSTREAMPLAYLIST, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOSTREAMPLAYLIST, this, scriptIndex) } public final fun setStreamCount(streamCount: Int): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPolyphonic.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPolyphonic.kt index 143a1fb323..ab0fa6e465 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPolyphonic.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamPolyphonic.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -41,7 +42,7 @@ public open class AudioStreamPolyphonic : AudioStream() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOSTREAMPOLYPHONIC, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOSTREAMPOLYPHONIC, this, scriptIndex) } public final fun setPolyphony(voices: Int): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamRandomizer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamRandomizer.kt index 63344c993b..ea59105386 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamRandomizer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamRandomizer.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -74,7 +75,7 @@ public open class AudioStreamRandomizer : AudioStream() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOSTREAMRANDOMIZER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOSTREAMRANDOMIZER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamSynchronized.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamSynchronized.kt index a587c9ff12..1837dca174 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamSynchronized.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamSynchronized.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -41,7 +42,7 @@ public open class AudioStreamSynchronized : AudioStream() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOSTREAMSYNCHRONIZED, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOSTREAMSYNCHRONIZED, this, scriptIndex) } public final fun setStreamCount(streamCount: Int): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamWAV.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamWAV.kt index ef84912cb9..c93b45f70a 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamWAV.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/AudioStreamWAV.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedByteArray -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -125,7 +126,7 @@ public open class AudioStreamWAV : AudioStream() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_AUDIOSTREAMWAV, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_AUDIOSTREAMWAV, this, scriptIndex) } public final fun setData(`data`: PackedByteArray): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BackBufferCopy.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BackBufferCopy.kt index 06460ef795..0ab308b8c4 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BackBufferCopy.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BackBufferCopy.kt @@ -9,13 +9,14 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Rect2 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.RECT2 -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -58,7 +59,7 @@ public open class BackBufferCopy : Node2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_BACKBUFFERCOPY, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_BACKBUFFERCOPY, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BaseButton.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BaseButton.kt index 0e08663b4f..91aff2209f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BaseButton.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BaseButton.kt @@ -6,16 +6,18 @@ package godot +import godot.MouseButtonMaskValue import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.Signal1 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -174,7 +176,7 @@ public open class BaseButton : Control() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_BASEBUTTON, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_BASEBUTTON, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BaseMaterial3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BaseMaterial3D.kt index af6b82eaa8..755f4fb8f8 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BaseMaterial3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BaseMaterial3D.kt @@ -9,9 +9,11 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE @@ -20,7 +22,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -1566,7 +1567,7 @@ public open class BaseMaterial3D internal constructor() : Material() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_BASEMATERIAL3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_BASEMATERIAL3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BitMap.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BitMap.kt index ef65340fcd..155f887691 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BitMap.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BitMap.kt @@ -7,10 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedVector2Array import godot.core.Rect2i -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -21,7 +23,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.RECT2I import godot.core.VariantParser.VECTOR2I import godot.core.Vector2i -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Float import kotlin.Int @@ -37,7 +38,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class BitMap : Resource() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_BITMAP, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_BITMAP, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Bone2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Bone2D.kt index a1ef5e9e31..bd6193c2c8 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Bone2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Bone2D.kt @@ -9,15 +9,16 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Transform2D -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.TRANSFORM2D -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -53,7 +54,7 @@ public open class Bone2D : Node2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_BONE2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_BONE2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BoneAttachment3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BoneAttachment3D.kt index fde530cfd6..e590b15d5c 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BoneAttachment3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BoneAttachment3D.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.NodePath -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -70,7 +71,7 @@ public open class BoneAttachment3D : Node3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_BONEATTACHMENT3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_BONEATTACHMENT3D, this, scriptIndex) } public final fun setBoneName(boneName: String): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BoneMap.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BoneMap.kt index a2d4d86b7f..23911f78f1 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BoneMap.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BoneMap.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -52,7 +53,7 @@ public open class BoneMap : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_BONEMAP, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_BONEMAP, this, scriptIndex) } public final fun getProfile(): SkeletonProfile? { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BoxContainer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BoxContainer.kt index eb4fa71944..92680e5235 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BoxContainer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BoxContainer.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -52,7 +53,7 @@ public open class BoxContainer : Container() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_BOXCONTAINER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_BOXCONTAINER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BoxMesh.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BoxMesh.kt index 94a49995b6..45ae54c159 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BoxMesh.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BoxMesh.kt @@ -9,13 +9,14 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -79,7 +80,7 @@ public open class BoxMesh : PrimitiveMesh() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_BOXMESH, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_BOXMESH, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BoxOccluder3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BoxOccluder3D.kt index 1e383d66be..eeb6a3a90d 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BoxOccluder3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BoxOccluder3D.kt @@ -9,12 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -39,7 +40,7 @@ public open class BoxOccluder3D : Occluder3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_BOXOCCLUDER3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_BOXOCCLUDER3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BoxShape3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BoxShape3D.kt index 87599af553..42d19d8782 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BoxShape3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/BoxShape3D.kt @@ -9,12 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -41,7 +42,7 @@ public open class BoxShape3D : Shape3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_BOXSHAPE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_BOXSHAPE3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Button.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Button.kt index f3f25e847b..3760e85692 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Button.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Button.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -206,7 +207,7 @@ public open class Button : BaseButton() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_BUTTON, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_BUTTON, this, scriptIndex) } public final fun setText(text: String): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ButtonGroup.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ButtonGroup.kt index db07771253..d2b2d97433 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ButtonGroup.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ButtonGroup.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal1 -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -47,7 +48,7 @@ public open class ButtonGroup : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_BUTTONGROUP, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_BUTTONGROUP, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CPUParticles2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CPUParticles2D.kt index f720f22077..925ce3d54d 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CPUParticles2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CPUParticles2D.kt @@ -9,12 +9,14 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.PackedColorArray import godot.core.PackedVector2Array import godot.core.Signal0 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE @@ -25,7 +27,6 @@ import godot.core.VariantParser.PACKED_COLOR_ARRAY import godot.core.VariantParser.PACKED_VECTOR2_ARRAY import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -797,7 +798,7 @@ public open class CPUParticles2D : Node2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CPUPARTICLES2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CPUPARTICLES2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CPUParticles3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CPUParticles3D.kt index 0e64f3da4f..785f79ed17 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CPUParticles3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CPUParticles3D.kt @@ -9,13 +9,15 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.AABB import godot.core.Color import godot.core.PackedColorArray import godot.core.PackedVector3Array import godot.core.Signal0 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE @@ -26,7 +28,6 @@ import godot.core.VariantParser.PACKED_COLOR_ARRAY import godot.core.VariantParser.PACKED_VECTOR3_ARRAY import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -910,7 +911,7 @@ public open class CPUParticles3D : GeometryInstance3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CPUPARTICLES3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CPUPARTICLES3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CSGBox3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CSGBox3D.kt index 61da3ce9c5..0b99f64820 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CSGBox3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CSGBox3D.kt @@ -9,13 +9,14 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -54,7 +55,7 @@ public open class CSGBox3D : CSGPrimitive3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CSGBOX3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CSGBOX3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CSGCombiner3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CSGCombiner3D.kt index 1608b12c30..25fa429335 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CSGCombiner3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CSGCombiner3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -26,7 +27,7 @@ import kotlin.Unit @GodotBaseType public open class CSGCombiner3D : CSGShape3D() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CSGCOMBINER3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CSGCOMBINER3D, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CSGCylinder3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CSGCylinder3D.kt index de769592e7..15476ffab2 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CSGCylinder3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CSGCylinder3D.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -102,7 +103,7 @@ public open class CSGCylinder3D : CSGPrimitive3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CSGCYLINDER3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CSGCYLINDER3D, this, scriptIndex) } public final fun setRadius(radius: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CSGMesh3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CSGMesh3D.kt index 35a0a02942..94a3f08a8b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CSGMesh3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CSGMesh3D.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -58,7 +59,7 @@ public open class CSGMesh3D : CSGPrimitive3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CSGMESH3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CSGMESH3D, this, scriptIndex) } public final fun setMesh(mesh: Mesh?): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CSGPolygon3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CSGPolygon3D.kt index 13dd572932..f10430ecf0 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CSGPolygon3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CSGPolygon3D.kt @@ -7,10 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.PackedVector2Array -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -18,7 +20,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_VECTOR2_ARRAY -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -230,7 +231,7 @@ public open class CSGPolygon3D : CSGPrimitive3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CSGPOLYGON3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CSGPOLYGON3D, this, scriptIndex) } public final fun setPolygon(polygon: PackedVector2Array): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CSGPrimitive3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CSGPrimitive3D.kt index 2db22fba74..cc5bc227c8 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CSGPrimitive3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CSGPrimitive3D.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -42,7 +43,7 @@ public open class CSGPrimitive3D internal constructor() : CSGShape3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CSGPRIMITIVE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CSGPRIMITIVE3D, this, scriptIndex) } public final fun setFlipFaces(flipFaces: Boolean): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CSGShape3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CSGShape3D.kt index 663ddbc1e7..4c33ebf49a 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CSGShape3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CSGShape3D.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -132,7 +133,7 @@ public open class CSGShape3D internal constructor() : GeometryInstance3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CSGSHAPE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CSGSHAPE3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CSGSphere3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CSGSphere3D.kt index 456c37b00b..ff93c9078f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CSGSphere3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CSGSphere3D.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -90,7 +91,7 @@ public open class CSGSphere3D : CSGPrimitive3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CSGSPHERE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CSGSPHERE3D, this, scriptIndex) } public final fun setRadius(radius: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CSGTorus3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CSGTorus3D.kt index 4bdb20ea6b..f3b255542d 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CSGTorus3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CSGTorus3D.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -101,7 +102,7 @@ public open class CSGTorus3D : CSGPrimitive3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CSGTORUS3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CSGTORUS3D, this, scriptIndex) } public final fun setInnerRadius(radius: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CallbackTweener.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CallbackTweener.kt index 28072164d6..ff062db094 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CallbackTweener.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CallbackTweener.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Int import kotlin.Suppress @@ -27,7 +28,7 @@ import kotlin.Unit @GodotBaseType public open class CallbackTweener : Tweener() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CALLBACKTWEENER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CALLBACKTWEENER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Camera2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Camera2D.kt index 220469a7af..cb62668496 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Camera2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Camera2D.kt @@ -9,8 +9,10 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -18,7 +20,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -388,7 +389,7 @@ public open class Camera2D : Node2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CAMERA2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CAMERA2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Camera3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Camera3D.kt index f1558e645b..ebdb408769 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Camera3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Camera3D.kt @@ -9,12 +9,14 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Plane import godot.core.Projection import godot.core.RID import godot.core.Transform3D -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -29,7 +31,6 @@ import godot.core.VariantParser.VECTOR3 import godot.core.VariantParser._RID import godot.core.Vector2 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -247,7 +248,7 @@ public open class Camera3D : Node3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CAMERA3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CAMERA3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CameraAttributes.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CameraAttributes.kt index 005f6b9f6d..f7e7ce52d0 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CameraAttributes.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CameraAttributes.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -95,7 +96,7 @@ public open class CameraAttributes : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CAMERAATTRIBUTES, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CAMERAATTRIBUTES, this, scriptIndex) } public final fun setExposureMultiplier(multiplier: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CameraAttributesPhysical.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CameraAttributesPhysical.kt index be0a6320d1..0bb002f501 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CameraAttributesPhysical.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CameraAttributesPhysical.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -151,7 +152,7 @@ public open class CameraAttributesPhysical : CameraAttributes() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CAMERAATTRIBUTESPHYSICAL, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CAMERAATTRIBUTESPHYSICAL, this, scriptIndex) } public final fun setAperture(aperture: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CameraAttributesPractical.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CameraAttributesPractical.kt index 150f4f32b3..199692e684 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CameraAttributesPractical.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CameraAttributesPractical.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -152,7 +153,7 @@ public open class CameraAttributesPractical : CameraAttributes() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CAMERAATTRIBUTESPRACTICAL, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CAMERAATTRIBUTESPRACTICAL, this, scriptIndex) } public final fun setDofBlurFarEnabled(enabled: Boolean): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CameraFeed.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CameraFeed.kt index 6834817772..f518bd373e 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CameraFeed.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CameraFeed.kt @@ -9,15 +9,16 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Transform2D -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING import godot.core.VariantParser.TRANSFORM2D -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -59,7 +60,7 @@ public open class CameraFeed : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CAMERAFEED, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CAMERAFEED, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CameraServer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CameraServer.kt index 44a78bffde..38c478fec1 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CameraServer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CameraServer.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal1 -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -46,7 +47,7 @@ public object CameraServer : Object() { public val cameraFeedRemoved: Signal1 by Signal1 public override fun new(scriptIndex: Int): Unit { - getSingleton(ENGINECLASS_CAMERASERVER) + MemoryManager.getSingleton(ENGINECLASS_CAMERASERVER) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CameraTexture.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CameraTexture.kt index 3c533d1666..f76999aad0 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CameraTexture.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CameraTexture.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -61,7 +62,7 @@ public open class CameraTexture : Texture2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CAMERATEXTURE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CAMERATEXTURE, this, scriptIndex) } public final fun setCameraFeedId(feedId: Int): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CanvasGroup.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CanvasGroup.kt index 9f33f81ce2..5f72f8cd2d 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CanvasGroup.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CanvasGroup.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -95,7 +96,7 @@ public open class CanvasGroup : Node2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CANVASGROUP, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CANVASGROUP, this, scriptIndex) } public final fun setFitMargin(fitMargin: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CanvasItem.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CanvasItem.kt index 0002981583..785a12ff9f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CanvasItem.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CanvasItem.kt @@ -9,6 +9,9 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.PackedColorArray @@ -17,7 +20,6 @@ import godot.core.RID import godot.core.Rect2 import godot.core.Signal0 import godot.core.Transform2D -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE @@ -32,7 +34,6 @@ import godot.core.VariantParser.TRANSFORM2D import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -284,7 +285,7 @@ public open class CanvasItem internal constructor() : Node() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CANVASITEM, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CANVASITEM, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CanvasItemMaterial.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CanvasItemMaterial.kt index 371bb6fb1f..1641e996e9 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CanvasItemMaterial.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CanvasItemMaterial.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -106,7 +107,7 @@ public open class CanvasItemMaterial : Material() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CANVASITEMMATERIAL, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CANVASITEMMATERIAL, this, scriptIndex) } public final fun setBlendMode(blendMode: BlendMode): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CanvasLayer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CanvasLayer.kt index f081bb7d0b..1b16ae5617 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CanvasLayer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CanvasLayer.kt @@ -9,11 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID import godot.core.Signal0 import godot.core.Transform2D -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -23,7 +25,6 @@ import godot.core.VariantParser.TRANSFORM2D import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -168,7 +169,7 @@ public open class CanvasLayer : Node() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CANVASLAYER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CANVASLAYER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CanvasModulate.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CanvasModulate.kt index 515e52d877..e73fc07cbf 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CanvasModulate.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CanvasModulate.kt @@ -9,12 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color -import godot.internal.reflection.TypeManager import godot.core.VariantParser.COLOR import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -39,7 +40,7 @@ public open class CanvasModulate : Node2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CANVASMODULATE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CANVASMODULATE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CanvasTexture.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CanvasTexture.kt index ffbc2a13a8..ea2de6c5f1 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CanvasTexture.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CanvasTexture.kt @@ -9,15 +9,16 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color -import godot.internal.reflection.TypeManager import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -128,7 +129,7 @@ public open class CanvasTexture : Texture2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CANVASTEXTURE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CANVASTEXTURE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CapsuleMesh.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CapsuleMesh.kt index a79455e113..eb7079f199 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CapsuleMesh.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CapsuleMesh.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -71,7 +72,7 @@ public open class CapsuleMesh : PrimitiveMesh() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CAPSULEMESH, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CAPSULEMESH, this, scriptIndex) } public final fun setRadius(radius: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CapsuleShape2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CapsuleShape2D.kt index 9380a2d264..25f71fee2c 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CapsuleShape2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CapsuleShape2D.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -50,7 +51,7 @@ public open class CapsuleShape2D : Shape2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CAPSULESHAPE2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CAPSULESHAPE2D, this, scriptIndex) } public final fun setRadius(radius: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CapsuleShape3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CapsuleShape3D.kt index 2007ec5d3d..c84c65bf69 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CapsuleShape3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CapsuleShape3D.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -50,7 +51,7 @@ public open class CapsuleShape3D : Shape3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CAPSULESHAPE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CAPSULESHAPE3D, this, scriptIndex) } public final fun setRadius(radius: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CenterContainer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CenterContainer.kt index c952a4addf..ff8362082b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CenterContainer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CenterContainer.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -36,7 +37,7 @@ public open class CenterContainer : Container() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CENTERCONTAINER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CENTERCONTAINER, this, scriptIndex) } public final fun setUseTopLeft(enable: Boolean): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CharFXTransform.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CharFXTransform.kt index 005156408a..a78c046cc9 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CharFXTransform.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CharFXTransform.kt @@ -9,12 +9,14 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.Dictionary import godot.core.RID import godot.core.Transform2D -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.DICTIONARY @@ -27,7 +29,6 @@ import godot.core.VariantParser.VECTOR2I import godot.core.VariantParser._RID import godot.core.Vector2 import godot.core.Vector2i -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -212,7 +213,7 @@ public open class CharFXTransform : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CHARFXTRANSFORM, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CHARFXTRANSFORM, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CharacterBody2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CharacterBody2D.kt index a9daf88d79..b45b04a295 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CharacterBody2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CharacterBody2D.kt @@ -9,8 +9,10 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -18,7 +20,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -244,7 +245,7 @@ public open class CharacterBody2D : PhysicsBody2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CHARACTERBODY2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CHARACTERBODY2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CharacterBody3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CharacterBody3D.kt index c2890eb213..c0e3e719ed 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CharacterBody3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CharacterBody3D.kt @@ -9,8 +9,10 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -18,7 +20,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -245,7 +246,7 @@ public open class CharacterBody3D : PhysicsBody3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CHARACTERBODY3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CHARACTERBODY3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CheckBox.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CheckBox.kt index cb8af9d781..d137061af7 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CheckBox.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CheckBox.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -24,7 +25,7 @@ import kotlin.Unit @GodotBaseType public open class CheckBox : Button() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CHECKBOX, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CHECKBOX, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CheckButton.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CheckButton.kt index 63271192da..8ebac9105b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CheckButton.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CheckButton.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -22,7 +23,7 @@ import kotlin.Unit @GodotBaseType public open class CheckButton : Button() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CHECKBUTTON, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CHECKBUTTON, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CircleShape2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CircleShape2D.kt index 5ef02c97c3..4666fedd1b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CircleShape2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CircleShape2D.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -39,7 +40,7 @@ public open class CircleShape2D : Shape2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CIRCLESHAPE2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CIRCLESHAPE2D, this, scriptIndex) } public final fun setRadius(radius: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ClassDB.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ClassDB.kt index 79d8d21cf2..eeb3cfde7f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ClassDB.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ClassDB.kt @@ -7,11 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedStringArray import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantCaster.ANY import godot.core.VariantParser.ARRAY @@ -21,7 +23,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -37,7 +38,7 @@ import kotlin.jvm.JvmStatic @GodotBaseType public object ClassDB : Object() { public override fun new(scriptIndex: Int): Unit { - getSingleton(ENGINECLASS_CLASSDB) + MemoryManager.getSingleton(ENGINECLASS_CLASSDB) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CodeEdit.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CodeEdit.kt index c2d974ef2a..0580f75527 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CodeEdit.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CodeEdit.kt @@ -7,6 +7,9 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.Dictionary @@ -14,7 +17,6 @@ import godot.core.PackedInt32Array import godot.core.Signal0 import godot.core.Signal1 import godot.core.Signal3 -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantCaster.ANY import godot.core.VariantParser.ARRAY @@ -28,7 +30,6 @@ import godot.core.VariantParser.PACKED_INT_32_ARRAY import godot.core.VariantParser.STRING import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -299,7 +300,7 @@ public open class CodeEdit : TextEdit() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CODEEDIT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CODEEDIT, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CodeHighlighter.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CodeHighlighter.kt index 4b05376078..a310d4f890 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CodeHighlighter.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CodeHighlighter.kt @@ -9,16 +9,17 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.Dictionary -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.DICTIONARY import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -120,7 +121,7 @@ public open class CodeHighlighter : SyntaxHighlighter() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CODEHIGHLIGHTER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CODEHIGHLIGHTER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CollisionObject2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CollisionObject2D.kt index fd0b19a27e..327f948f7f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CollisionObject2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CollisionObject2D.kt @@ -7,6 +7,9 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedInt32Array import godot.core.RID @@ -14,7 +17,6 @@ import godot.core.Signal0 import godot.core.Signal1 import godot.core.Signal3 import godot.core.Transform2D -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -23,7 +25,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_INT_32_ARRAY import godot.core.VariantParser.TRANSFORM2D import godot.core.VariantParser._RID -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -156,7 +157,7 @@ public open class CollisionObject2D internal constructor() : Node2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_COLLISIONOBJECT2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_COLLISIONOBJECT2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CollisionObject3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CollisionObject3D.kt index d35709ccf5..969dab5110 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CollisionObject3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CollisionObject3D.kt @@ -7,13 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedInt32Array import godot.core.RID import godot.core.Signal0 import godot.core.Signal5 import godot.core.Transform3D -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -23,7 +25,6 @@ import godot.core.VariantParser.PACKED_INT_32_ARRAY import godot.core.VariantParser.TRANSFORM3D import godot.core.VariantParser._RID import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -152,7 +153,7 @@ public open class CollisionObject3D internal constructor() : Node3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_COLLISIONOBJECT3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_COLLISIONOBJECT3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CollisionPolygon2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CollisionPolygon2D.kt index b20fb7f9c2..ab0579a661 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CollisionPolygon2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CollisionPolygon2D.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedVector2Array -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_VECTOR2_ARRAY -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -97,7 +98,7 @@ public open class CollisionPolygon2D : Node2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_COLLISIONPOLYGON2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_COLLISIONPOLYGON2D, this, scriptIndex) } public final fun setPolygon(polygon: PackedVector2Array): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CollisionPolygon3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CollisionPolygon3D.kt index 6473521722..1928e9f68f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CollisionPolygon3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CollisionPolygon3D.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedVector2Array -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_VECTOR2_ARRAY -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -78,7 +79,7 @@ public open class CollisionPolygon3D : Node3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_COLLISIONPOLYGON3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_COLLISIONPOLYGON3D, this, scriptIndex) } public final fun setDepth(depth: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CollisionShape2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CollisionShape2D.kt index f44211a66c..b3e2612eca 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CollisionShape2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CollisionShape2D.kt @@ -9,15 +9,16 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -96,7 +97,7 @@ public open class CollisionShape2D : Node2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_COLLISIONSHAPE2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_COLLISIONSHAPE2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CollisionShape3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CollisionShape3D.kt index ee4a551fd6..61017c9fc3 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CollisionShape3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CollisionShape3D.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -50,7 +51,7 @@ public open class CollisionShape3D : Node3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_COLLISIONSHAPE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_COLLISIONSHAPE3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ColorPicker.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ColorPicker.kt index 56337b86bb..8c21cccf0b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ColorPicker.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ColorPicker.kt @@ -9,17 +9,18 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.PackedColorArray import godot.core.Signal1 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_COLOR_ARRAY -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -175,7 +176,7 @@ public open class ColorPicker : VBoxContainer() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_COLORPICKER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_COLORPICKER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ColorPickerButton.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ColorPickerButton.kt index 9122347342..df44cb3792 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ColorPickerButton.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ColorPickerButton.kt @@ -9,16 +9,17 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.Signal0 import godot.core.Signal1 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -74,7 +75,7 @@ public open class ColorPickerButton : Button() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_COLORPICKERBUTTON, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_COLORPICKERBUTTON, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ColorRect.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ColorRect.kt index 904f5ea962..48548a2ce7 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ColorRect.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ColorRect.kt @@ -9,12 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color -import godot.internal.reflection.TypeManager import godot.core.VariantParser.COLOR import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -39,7 +40,7 @@ public open class ColorRect : Control() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_COLORRECT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_COLORRECT, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Compositor.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Compositor.kt index cbd1e4cbe2..e699208211 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Compositor.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Compositor.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -36,7 +37,7 @@ public open class Compositor : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_COMPOSITOR, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_COMPOSITOR, this, scriptIndex) } public final fun setCompositorEffects(compositorEffects: VariantArray): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CompositorEffect.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CompositorEffect.kt index c41ec62bb0..7711eb3907 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CompositorEffect.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CompositorEffect.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -133,7 +134,7 @@ public open class CompositorEffect : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_COMPOSITOREFFECT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_COMPOSITOREFFECT, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CompressedCubemap.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CompressedCubemap.kt index 9700f91bdb..826e6019a6 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CompressedCubemap.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CompressedCubemap.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -32,7 +33,7 @@ import kotlin.Unit @GodotBaseType public open class CompressedCubemap : CompressedTextureLayered() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_COMPRESSEDCUBEMAP, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_COMPRESSEDCUBEMAP, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CompressedCubemapArray.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CompressedCubemapArray.kt index 1aef0ac424..5b469f47e1 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CompressedCubemapArray.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CompressedCubemapArray.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -32,7 +33,7 @@ import kotlin.Unit @GodotBaseType public open class CompressedCubemapArray : CompressedTextureLayered() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_COMPRESSEDCUBEMAPARRAY, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_COMPRESSEDCUBEMAPARRAY, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CompressedTexture2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CompressedTexture2D.kt index f7b12f9d38..3be30b335e 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CompressedTexture2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CompressedTexture2D.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.String @@ -46,7 +47,7 @@ public open class CompressedTexture2D : Texture2D() { get() = getLoadPath() public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_COMPRESSEDTEXTURE2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_COMPRESSEDTEXTURE2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CompressedTexture2DArray.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CompressedTexture2DArray.kt index 68cf726e6b..ca0b0db8e3 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CompressedTexture2DArray.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CompressedTexture2DArray.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -32,7 +33,7 @@ import kotlin.Unit @GodotBaseType public open class CompressedTexture2DArray : CompressedTextureLayered() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_COMPRESSEDTEXTURE2DARRAY, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_COMPRESSEDTEXTURE2DARRAY, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CompressedTexture3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CompressedTexture3D.kt index ada5ce5fed..89d9dcafe1 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CompressedTexture3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CompressedTexture3D.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.String @@ -39,7 +40,7 @@ public open class CompressedTexture3D : Texture3D() { get() = getLoadPath() public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_COMPRESSEDTEXTURE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_COMPRESSEDTEXTURE3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CompressedTextureLayered.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CompressedTextureLayered.kt index 167c6ef1b9..c26b2955fb 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CompressedTextureLayered.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CompressedTextureLayered.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.String @@ -34,7 +35,7 @@ public open class CompressedTextureLayered internal constructor() : TextureLayer get() = getLoadPath() public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_COMPRESSEDTEXTURELAYERED, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_COMPRESSEDTEXTURELAYERED, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ConcavePolygonShape2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ConcavePolygonShape2D.kt index 7edb37f56c..aff8619c7b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ConcavePolygonShape2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ConcavePolygonShape2D.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedVector2Array -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_VECTOR2_ARRAY -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -54,7 +55,7 @@ public open class ConcavePolygonShape2D : Shape2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CONCAVEPOLYGONSHAPE2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CONCAVEPOLYGONSHAPE2D, this, scriptIndex) } public final fun setSegments(segments: PackedVector2Array): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ConcavePolygonShape3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ConcavePolygonShape3D.kt index 66ced3b484..6f5b614477 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ConcavePolygonShape3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ConcavePolygonShape3D.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedVector3Array -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_VECTOR3_ARRAY -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -63,7 +64,7 @@ public open class ConcavePolygonShape3D : Shape3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CONCAVEPOLYGONSHAPE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CONCAVEPOLYGONSHAPE3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ConeTwistJoint3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ConeTwistJoint3D.kt index 3d35d666cf..bc4a5a0188 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ConeTwistJoint3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ConeTwistJoint3D.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -91,7 +92,7 @@ public open class ConeTwistJoint3D : Joint3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CONETWISTJOINT3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CONETWISTJOINT3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ConfigFile.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ConfigFile.kt index a1baeff514..937020b32d 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ConfigFile.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ConfigFile.kt @@ -7,10 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedByteArray import godot.core.PackedStringArray -import godot.internal.reflection.TypeManager import godot.core.VariantCaster.ANY import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG @@ -18,7 +20,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -132,7 +133,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class ConfigFile : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CONFIGFILE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CONFIGFILE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ConfirmationDialog.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ConfirmationDialog.kt index 0786f5a367..cb6fba3d50 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ConfirmationDialog.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ConfirmationDialog.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.String import kotlin.Suppress @@ -48,7 +49,7 @@ public open class ConfirmationDialog : AcceptDialog() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CONFIRMATIONDIALOG, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CONFIRMATIONDIALOG, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Container.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Container.kt index 9043549cbb..3f5255b678 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Container.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Container.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedInt32Array import godot.core.Rect2 import godot.core.Signal0 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.RECT2 -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.NotImplementedError @@ -39,7 +40,7 @@ public open class Container : Control() { public val sortChildren: Signal0 by Signal0 public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CONTAINER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CONTAINER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Control.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Control.kt index 22b393ff50..5b0b9424fa 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Control.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Control.kt @@ -9,6 +9,9 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.Color @@ -17,7 +20,6 @@ import godot.core.Rect2 import godot.core.Signal0 import godot.core.Signal1 import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantCaster.ANY import godot.core.VariantParser.BOOL @@ -34,7 +36,6 @@ import godot.core.VariantParser.STRING_NAME import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.Vector3i -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -684,7 +685,7 @@ public open class Control : CanvasItem() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CONTROL, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CONTROL, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ConvexPolygonShape2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ConvexPolygonShape2D.kt index 7d190fc906..101116fa59 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ConvexPolygonShape2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ConvexPolygonShape2D.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedVector2Array -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_VECTOR2_ARRAY -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -52,7 +53,7 @@ public open class ConvexPolygonShape2D : Shape2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CONVEXPOLYGONSHAPE2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CONVEXPOLYGONSHAPE2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ConvexPolygonShape3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ConvexPolygonShape3D.kt index ba9115a226..cc2a157c02 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ConvexPolygonShape3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ConvexPolygonShape3D.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedVector3Array -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_VECTOR3_ARRAY -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -50,7 +51,7 @@ public open class ConvexPolygonShape3D : Shape3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CONVEXPOLYGONSHAPE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CONVEXPOLYGONSHAPE3D, this, scriptIndex) } public final fun setPoints(points: PackedVector3Array): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Crypto.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Crypto.kt index 1dcb26cf8f..c2946e32f0 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Crypto.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Crypto.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedByteArray -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.String @@ -100,7 +101,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class Crypto : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CRYPTO, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CRYPTO, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CryptoKey.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CryptoKey.kt index f2e4b2ffc1..68eb51cc30 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CryptoKey.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CryptoKey.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -31,7 +32,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class CryptoKey : Resource() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CRYPTOKEY, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CRYPTOKEY, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Cubemap.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Cubemap.kt index ce1254aaff..7a69b1ce4c 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Cubemap.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Cubemap.kt @@ -7,10 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -31,7 +32,7 @@ import kotlin.Unit @GodotBaseType public open class Cubemap : ImageTextureLayered() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CUBEMAP, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CUBEMAP, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CubemapArray.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CubemapArray.kt index 380b3779e4..246a036fcb 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CubemapArray.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CubemapArray.kt @@ -7,10 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -31,7 +32,7 @@ import kotlin.Unit @GodotBaseType public open class CubemapArray : ImageTextureLayered() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CUBEMAPARRAY, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CUBEMAPARRAY, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Curve.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Curve.kt index 8ac2cb9673..4d32bb125f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Curve.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Curve.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal0 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -83,7 +84,7 @@ public open class Curve : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CURVE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CURVE, this, scriptIndex) } public final fun getPointCount(): Int { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Curve2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Curve2D.kt index a2350e91d8..4bee451a8e 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Curve2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Curve2D.kt @@ -7,10 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedVector2Array import godot.core.Transform2D -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -19,7 +21,6 @@ import godot.core.VariantParser.PACKED_VECTOR2_ARRAY import godot.core.VariantParser.TRANSFORM2D import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -62,7 +63,7 @@ public open class Curve2D : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CURVE2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CURVE2D, this, scriptIndex) } public final fun getPointCount(): Int { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Curve3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Curve3D.kt index 53e2e22bef..758892c5b0 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Curve3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Curve3D.kt @@ -7,11 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedFloat32Array import godot.core.PackedVector3Array import godot.core.Transform3D -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -21,7 +23,6 @@ import godot.core.VariantParser.PACKED_VECTOR3_ARRAY import godot.core.VariantParser.TRANSFORM3D import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -77,7 +78,7 @@ public open class Curve3D : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CURVE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CURVE3D, this, scriptIndex) } public final fun getPointCount(): Int { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CurveTexture.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CurveTexture.kt index 9b1b26253d..26ab6bee7b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CurveTexture.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CurveTexture.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -64,7 +65,7 @@ public open class CurveTexture : Texture2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CURVETEXTURE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CURVETEXTURE, this, scriptIndex) } public final fun setWidth(width: Int): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CurveXYZTexture.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CurveXYZTexture.kt index 3377c6ea85..d5df686449 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CurveXYZTexture.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CurveXYZTexture.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -74,7 +75,7 @@ public open class CurveXYZTexture : Texture2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CURVEXYZTEXTURE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CURVEXYZTEXTURE, this, scriptIndex) } public final fun setWidth(width: Int): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CylinderMesh.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CylinderMesh.kt index 0d24052f0c..2847dd7140 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CylinderMesh.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CylinderMesh.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -119,7 +120,7 @@ public open class CylinderMesh : PrimitiveMesh() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CYLINDERMESH, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CYLINDERMESH, this, scriptIndex) } public final fun setTopRadius(radius: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CylinderShape3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CylinderShape3D.kt index d61f315cc3..22137af04d 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CylinderShape3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/CylinderShape3D.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -52,7 +53,7 @@ public open class CylinderShape3D : Shape3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_CYLINDERSHAPE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_CYLINDERSHAPE3D, this, scriptIndex) } public final fun setRadius(radius: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/DTLSServer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/DTLSServer.kt index 85dab82247..0f81254a4f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/DTLSServer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/DTLSServer.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -174,7 +175,7 @@ import kotlin.Unit @GodotBaseType public open class DTLSServer : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_DTLSSERVER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_DTLSSERVER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/DampedSpringJoint2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/DampedSpringJoint2D.kt index be1819443d..5dcd862b51 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/DampedSpringJoint2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/DampedSpringJoint2D.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -75,7 +76,7 @@ public open class DampedSpringJoint2D : Joint2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_DAMPEDSPRINGJOINT2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_DAMPEDSPRINGJOINT2D, this, scriptIndex) } public final fun setLength(length: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Decal.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Decal.kt index 418e134396..99ac6fbc76 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Decal.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Decal.kt @@ -9,9 +9,11 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE @@ -20,7 +22,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -280,7 +281,7 @@ public open class Decal : VisualInstance3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_DECAL, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_DECAL, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/DirAccess.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/DirAccess.kt index d535eae2a0..d31db25c42 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/DirAccess.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/DirAccess.kt @@ -7,16 +7,17 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedStringArray -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -116,7 +117,7 @@ public open class DirAccess internal constructor() : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_DIRACCESS, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_DIRACCESS, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/DirectionalLight2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/DirectionalLight2D.kt index 8be42deacd..ca1fe51337 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/DirectionalLight2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/DirectionalLight2D.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -56,7 +57,7 @@ public open class DirectionalLight2D : Light2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_DIRECTIONALLIGHT2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_DIRECTIONALLIGHT2D, this, scriptIndex) } public final fun setMaxDistance(pixels: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/DirectionalLight3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/DirectionalLight3D.kt index da4d2bbe6e..bae2bd47f6 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/DirectionalLight3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/DirectionalLight3D.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -65,7 +66,7 @@ public open class DirectionalLight3D : Light3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_DIRECTIONALLIGHT3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_DIRECTIONALLIGHT3D, this, scriptIndex) } public final fun setShadowMode(mode: ShadowMode): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/DisplayServer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/DisplayServer.kt index 516262bee8..3684497b4a 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/DisplayServer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/DisplayServer.kt @@ -6,7 +6,11 @@ package godot +import godot.MouseButtonMaskValue import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.Color @@ -17,7 +21,6 @@ import godot.core.PackedVector2Array import godot.core.RID import godot.core.Rect2 import godot.core.Rect2i -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantCaster.ANY import godot.core.VariantParser.ARRAY @@ -42,7 +45,6 @@ import godot.core.VariantParser._RID import godot.core.Vector2 import godot.core.Vector2i import godot.core.Vector3i -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -108,7 +110,7 @@ public object DisplayServer : Object() { public final const val INVALID_INDICATOR_ID: Long = -1 public override fun new(scriptIndex: Int): Unit { - getSingleton(ENGINECLASS_DISPLAYSERVER) + MemoryManager.getSingleton(ENGINECLASS_DISPLAYSERVER) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ENetConnection.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ENetConnection.kt index bca9e9cd50..32856c624b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ENetConnection.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ENetConnection.kt @@ -7,9 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedByteArray -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -19,7 +21,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -37,7 +38,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class ENetConnection : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ENETCONNECTION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ENETCONNECTION, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ENetMultiplayerPeer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ENetMultiplayerPeer.kt index 2fe2bf4160..4cd2f0b4b1 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ENetMultiplayerPeer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ENetMultiplayerPeer.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.String @@ -40,7 +41,7 @@ public open class ENetMultiplayerPeer : MultiplayerPeer() { get() = getHost() public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ENETMULTIPLAYERPEER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ENETMULTIPLAYERPEER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ENetPacketPeer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ENetPacketPeer.kt index fc8ad378fc..775b2e572e 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ENetPacketPeer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ENetPacketPeer.kt @@ -7,16 +7,17 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedByteArray -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Int @@ -37,7 +38,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class ENetPacketPeer internal constructor() : PacketPeer() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ENETPACKETPEER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ENETPACKETPEER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/EncodedObjectAsID.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/EncodedObjectAsID.kt index 3f9d71c0ef..8aaaa33c4d 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/EncodedObjectAsID.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/EncodedObjectAsID.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -40,7 +41,7 @@ public open class EncodedObjectAsID : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ENCODEDOBJECTASID, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ENCODEDOBJECTASID, this, scriptIndex) } public final fun setObjectId(id: Long): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Engine.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Engine.kt index 51f3c57dd0..5884fe2336 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Engine.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Engine.kt @@ -7,11 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedStringArray import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -23,7 +25,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -42,7 +43,7 @@ import kotlin.jvm.JvmStatic @GodotBaseType public object Engine : Object() { public override fun new(scriptIndex: Int): Unit { - getSingleton(ENGINECLASS_ENGINE) + MemoryManager.getSingleton(ENGINECLASS_ENGINE) } @JvmStatic diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/EngineDebugger.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/EngineDebugger.kt index 59aeded716..cb0dfcb588 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/EngineDebugger.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/EngineDebugger.kt @@ -7,10 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -20,7 +22,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -38,7 +39,7 @@ import kotlin.jvm.JvmStatic @GodotBaseType public object EngineDebugger : Object() { public override fun new(scriptIndex: Int): Unit { - getSingleton(ENGINECLASS_ENGINEDEBUGGER) + MemoryManager.getSingleton(ENGINECLASS_ENGINEDEBUGGER) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/EngineProfiler.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/EngineProfiler.kt index efef9ab746..260067c0ab 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/EngineProfiler.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/EngineProfiler.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import godot.core.VariantArray import kotlin.Any import kotlin.Boolean @@ -23,7 +24,7 @@ import kotlin.Unit @GodotBaseType public open class EngineProfiler : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ENGINEPROFILER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ENGINEPROFILER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Environment.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Environment.kt index 09fd4e05e0..7a3c2ba294 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Environment.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Environment.kt @@ -9,9 +9,11 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE @@ -20,7 +22,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -1260,7 +1261,7 @@ public open class Environment : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ENVIRONMENT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ENVIRONMENT, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Expression.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Expression.kt index 0092662da7..a04b095712 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Expression.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Expression.kt @@ -7,9 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedStringArray -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantCaster.ANY import godot.core.VariantParser.ARRAY @@ -18,7 +20,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -79,7 +80,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class Expression : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_EXPRESSION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_EXPRESSION, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FBXDocument.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FBXDocument.kt index aa8c9ec1a6..bd400b59e0 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FBXDocument.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FBXDocument.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -21,7 +22,7 @@ import kotlin.Unit @GodotBaseType public open class FBXDocument : GLTFDocument() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_FBXDOCUMENT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_FBXDOCUMENT, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FBXState.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FBXState.kt index 4c48a322ba..81f42a81b7 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FBXState.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FBXState.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -36,7 +37,7 @@ public open class FBXState : GLTFState() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_FBXSTATE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_FBXSTATE, this, scriptIndex) } public final fun getAllowGeometryHelperNodes(): Boolean { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FastNoiseLite.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FastNoiseLite.kt index 3f10dbda0b..f817983ae8 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FastNoiseLite.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FastNoiseLite.kt @@ -9,15 +9,16 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -280,7 +281,7 @@ public open class FastNoiseLite : Noise() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_FASTNOISELITE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_FASTNOISELITE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FileAccess.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FileAccess.kt index edb9bcdeeb..05960b1e15 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FileAccess.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FileAccess.kt @@ -7,10 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedByteArray import godot.core.PackedStringArray -import godot.internal.reflection.TypeManager import godot.core.VariantCaster.ANY import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE @@ -20,7 +22,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -101,7 +102,7 @@ public open class FileAccess internal constructor() : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_FILEACCESS, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_FILEACCESS, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FileDialog.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FileDialog.kt index 6a347139e6..26f2a358dc 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FileDialog.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FileDialog.kt @@ -7,11 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedStringArray import godot.core.Signal1 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DICTIONARY import godot.core.VariantParser.LONG @@ -19,7 +21,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -192,7 +193,7 @@ public open class FileDialog : ConfirmationDialog() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_FILEDIALOG, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_FILEDIALOG, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FlowContainer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FlowContainer.kt index 7469e3a058..ed243c199b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FlowContainer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FlowContainer.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -79,7 +80,7 @@ public open class FlowContainer : Container() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_FLOWCONTAINER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_FLOWCONTAINER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FogMaterial.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FogMaterial.kt index 07e79b7db1..97b43ec946 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FogMaterial.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FogMaterial.kt @@ -9,14 +9,15 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color -import godot.internal.reflection.TypeManager import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -114,7 +115,7 @@ public open class FogMaterial : Material() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_FOGMATERIAL, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_FOGMATERIAL, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FogVolume.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FogVolume.kt index edb778692d..6e7d56f712 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FogVolume.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FogVolume.kt @@ -9,14 +9,15 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -86,7 +87,7 @@ public open class FogVolume : VisualInstance3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_FOGVOLUME, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_FOGVOLUME, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Font.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Font.kt index 7345e5df9a..80dcf579ff 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Font.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Font.kt @@ -8,12 +8,14 @@ package godot import godot.TextServer.FontStyleValue import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.Dictionary import godot.core.RID import godot.core.Transform2D -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -27,7 +29,6 @@ import godot.core.VariantParser.TRANSFORM2D import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -61,7 +62,7 @@ public open class Font internal constructor() : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_FONT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_FONT, this, scriptIndex) } public final fun setFallbacks(fallbacks: VariantArray): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FontFile.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FontFile.kt index c95ed3976d..3ccd995c21 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FontFile.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FontFile.kt @@ -7,6 +7,9 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedByteArray @@ -14,7 +17,6 @@ import godot.core.PackedInt32Array import godot.core.PackedStringArray import godot.core.Rect2 import godot.core.Transform2D -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -33,7 +35,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser.VECTOR2I import godot.core.Vector2 import godot.core.Vector2i -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -327,7 +328,7 @@ public open class FontFile : Font() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_FONTFILE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_FONTFILE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FontVariation.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FontVariation.kt index 92b536d03a..257968a0d2 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FontVariation.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FontVariation.kt @@ -9,17 +9,18 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.Transform2D -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DICTIONARY import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.TRANSFORM2D -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Double import kotlin.Float @@ -192,7 +193,7 @@ public open class FontVariation : Font() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_FONTVARIATION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_FONTVARIATION, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FramebufferCacheRD.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FramebufferCacheRD.kt index d1c34dc648..f0bb3d13ed 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FramebufferCacheRD.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/FramebufferCacheRD.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.LONG import godot.core.VariantParser._RID -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -28,7 +29,7 @@ import kotlin.Unit @GodotBaseType public open class FramebufferCacheRD : Object() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_FRAMEBUFFERCACHERD, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_FRAMEBUFFERCACHERD, this, scriptIndex) } public companion object { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GDExtension.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GDExtension.kt index 72a7e6a36e..99731c41ac 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GDExtension.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GDExtension.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -29,7 +30,7 @@ import kotlin.Unit @GodotBaseType public open class GDExtension : Resource() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GDEXTENSION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GDEXTENSION, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GDExtensionManager.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GDExtensionManager.kt index 7b4fa9e777..e939c0d8a1 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GDExtensionManager.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GDExtensionManager.kt @@ -7,16 +7,17 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedStringArray import godot.core.Signal0 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -39,7 +40,7 @@ public object GDExtensionManager : Object() { public val extensionsReloaded: Signal0 by Signal0 public override fun new(scriptIndex: Int): Unit { - getSingleton(ENGINECLASS_GDEXTENSIONMANAGER) + MemoryManager.getSingleton(ENGINECLASS_GDEXTENSIONMANAGER) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GDScript.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GDScript.kt index c466624a4a..7b0e447ba3 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GDScript.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GDScript.kt @@ -7,10 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantCaster.ANY -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Int import kotlin.Suppress @@ -26,7 +27,7 @@ import kotlin.Unit @GodotBaseType public open class GDScript : Script() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GDSCRIPT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GDSCRIPT, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFAccessor.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFAccessor.kt index dd67e5d476..4caa7073d9 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFAccessor.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFAccessor.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedFloat64Array -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_FLOAT_64_ARRAY -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -207,7 +208,7 @@ public open class GLTFAccessor : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GLTFACCESSOR, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GLTFACCESSOR, this, scriptIndex) } public final fun getBufferView(): Int { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFAnimation.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFAnimation.kt index 1a23e28db6..37600d2373 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFAnimation.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFAnimation.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantCaster.ANY import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -46,7 +47,7 @@ public open class GLTFAnimation : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GLTFANIMATION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GLTFANIMATION, this, scriptIndex) } public final fun getOriginalName(): String { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFBufferView.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFBufferView.kt index dd97ff096b..4f3690e708 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFBufferView.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFBufferView.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedByteArray -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_BYTE_ARRAY -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -109,7 +110,7 @@ public open class GLTFBufferView : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GLTFBUFFERVIEW, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GLTFBUFFERVIEW, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFCamera.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFCamera.kt index 6ca645bf83..41430db482 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFCamera.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFCamera.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Dictionary -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DICTIONARY import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -94,7 +95,7 @@ public open class GLTFCamera : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GLTFCAMERA, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GLTFCAMERA, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFDocument.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFDocument.kt index 6d3f36570f..6edcf63de3 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFDocument.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFDocument.kt @@ -7,9 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedByteArray -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -17,7 +19,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -85,7 +86,7 @@ public open class GLTFDocument : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GLTFDOCUMENT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GLTFDOCUMENT, this, scriptIndex) } public final fun setImageFormat(imageFormat: String): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFDocumentExtension.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFDocumentExtension.kt index db33a658c1..ffcbe5af5e 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFDocumentExtension.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFDocumentExtension.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import godot.core.Dictionary import godot.core.PackedByteArray import godot.core.PackedStringArray @@ -30,7 +31,7 @@ import kotlin.Unit @GodotBaseType public open class GLTFDocumentExtension : Resource() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GLTFDOCUMENTEXTENSION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GLTFDOCUMENTEXTENSION, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFDocumentExtensionConvertImporterMesh.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFDocumentExtensionConvertImporterMesh.kt index 5e76147d64..20f79047cb 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFDocumentExtensionConvertImporterMesh.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFDocumentExtensionConvertImporterMesh.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -14,7 +15,8 @@ import kotlin.Unit @GodotBaseType public open class GLTFDocumentExtensionConvertImporterMesh : GLTFDocumentExtension() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GLTFDOCUMENTEXTENSIONCONVERTIMPORTERMESH, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GLTFDOCUMENTEXTENSIONCONVERTIMPORTERMESH, this, + scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFLight.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFLight.kt index 0fc7ed41f1..0ec58f4044 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFLight.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFLight.kt @@ -9,11 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.Dictionary import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantCaster.ANY import godot.core.VariantParser.COLOR import godot.core.VariantParser.DICTIONARY @@ -22,7 +24,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Double import kotlin.Float @@ -118,7 +119,7 @@ public open class GLTFLight : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GLTFLIGHT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GLTFLIGHT, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFMesh.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFMesh.kt index 675371933e..cab59cfb81 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFMesh.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFMesh.kt @@ -7,10 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedFloat32Array import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantCaster.ANY import godot.core.VariantParser.ARRAY @@ -19,7 +21,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_FLOAT_32_ARRAY import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Int import kotlin.String @@ -78,7 +79,7 @@ public open class GLTFMesh : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GLTFMESH, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GLTFMESH, this, scriptIndex) } public final fun getOriginalName(): String { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFNode.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFNode.kt index ac5e357905..0b62a1d31b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFNode.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFNode.kt @@ -9,12 +9,14 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedInt32Array import godot.core.Quaternion import godot.core.StringName import godot.core.Transform3D -import godot.internal.reflection.TypeManager import godot.core.VariantCaster.ANY import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL @@ -25,7 +27,6 @@ import godot.core.VariantParser.STRING_NAME import godot.core.VariantParser.TRANSFORM3D import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Int import kotlin.Long @@ -199,7 +200,7 @@ public open class GLTFNode : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GLTFNODE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GLTFNODE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFPhysicsBody.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFPhysicsBody.kt index 4990072607..ec880a5eef 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFPhysicsBody.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFPhysicsBody.kt @@ -9,11 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Basis import godot.core.Dictionary import godot.core.Quaternion -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BASIS import godot.core.VariantParser.DICTIONARY import godot.core.VariantParser.DOUBLE @@ -23,7 +25,6 @@ import godot.core.VariantParser.QUATERNION import godot.core.VariantParser.STRING import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Double import kotlin.Float @@ -151,7 +152,7 @@ public open class GLTFPhysicsBody : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GLTFPHYSICSBODY, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GLTFPHYSICSBODY, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFPhysicsShape.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFPhysicsShape.kt index 88b55b14e5..2072d74b83 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFPhysicsShape.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFPhysicsShape.kt @@ -9,9 +9,11 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Dictionary -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DICTIONARY import godot.core.VariantParser.DOUBLE @@ -21,7 +23,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -130,7 +131,7 @@ public open class GLTFPhysicsShape : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GLTFPHYSICSSHAPE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GLTFPHYSICSSHAPE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFSkeleton.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFSkeleton.kt index ab58f5bdea..efa9a46212 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFSkeleton.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFSkeleton.kt @@ -7,10 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedInt32Array -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.DICTIONARY @@ -18,7 +20,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_INT_32_ARRAY -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Int import kotlin.Long @@ -62,7 +63,7 @@ public open class GLTFSkeleton : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GLTFSKELETON, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GLTFSKELETON, this, scriptIndex) } public final fun getJoints(): PackedInt32Array { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFSkin.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFSkin.kt index a0d80d25d1..66b478c08b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFSkin.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFSkin.kt @@ -7,11 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedInt32Array import godot.core.Transform3D -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.DICTIONARY @@ -19,7 +21,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_INT_32_ARRAY -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Int import kotlin.Long @@ -110,7 +111,7 @@ public open class GLTFSkin : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GLTFSKIN, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GLTFSKIN, this, scriptIndex) } public final fun getSkinRoot(): Int { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFSpecGloss.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFSpecGloss.kt index 62578f9ff1..c6fda777b9 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFSpecGloss.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFSpecGloss.kt @@ -9,14 +9,15 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color -import godot.internal.reflection.TypeManager import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -88,7 +89,7 @@ public open class GLTFSpecGloss : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GLTFSPECGLOSS, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GLTFSPECGLOSS, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFState.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFState.kt index 38a8be315a..aa1caa0877 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFState.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFState.kt @@ -7,12 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedByteArray import godot.core.PackedInt32Array import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantCaster.ANY import godot.core.VariantParser.ARRAY @@ -26,7 +28,6 @@ import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.PACKED_INT_32_ARRAY import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -325,7 +326,7 @@ public open class GLTFState : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GLTFSTATE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GLTFSTATE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFTexture.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFTexture.kt index e442560c53..efa65278e2 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFTexture.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFTexture.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -45,7 +46,7 @@ public open class GLTFTexture : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GLTFTEXTURE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GLTFTEXTURE, this, scriptIndex) } public final fun getSrcImage(): Int { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFTextureSampler.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFTextureSampler.kt index c7bf796ff0..7f471e9d1c 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFTextureSampler.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GLTFTextureSampler.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -71,7 +72,7 @@ public open class GLTFTextureSampler : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GLTFTEXTURESAMPLER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GLTFTEXTURESAMPLER, this, scriptIndex) } public final fun getMagFilter(): Int { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticles2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticles2D.kt index 9f917ecf41..a4c2c0b6b3 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticles2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticles2D.kt @@ -9,13 +9,15 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.NodePath import godot.core.Rect2 import godot.core.Signal0 import godot.core.Transform2D -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE @@ -27,7 +29,6 @@ import godot.core.VariantParser.RECT2 import godot.core.VariantParser.TRANSFORM2D import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -382,7 +383,7 @@ public open class GPUParticles2D : Node2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GPUPARTICLES2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GPUPARTICLES2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticles3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticles3D.kt index 3d7b738010..e76c0b925f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticles3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticles3D.kt @@ -9,13 +9,15 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.AABB import godot.core.Color import godot.core.NodePath import godot.core.Signal0 import godot.core.Transform3D -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE @@ -26,7 +28,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.TRANSFORM3D import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -413,7 +414,7 @@ public open class GPUParticles3D : GeometryInstance3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GPUPARTICLES3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GPUPARTICLES3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticlesAttractor3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticlesAttractor3D.kt index 36bb911ddc..4449ffdc58 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticlesAttractor3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticlesAttractor3D.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -91,7 +92,7 @@ public open class GPUParticlesAttractor3D internal constructor() : VisualInstanc } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GPUPARTICLESATTRACTOR3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GPUPARTICLESATTRACTOR3D, this, scriptIndex) } public final fun setCullMask(mask: Long): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticlesAttractorBox3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticlesAttractorBox3D.kt index 77ca3804e9..caf404061a 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticlesAttractorBox3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticlesAttractorBox3D.kt @@ -9,12 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -42,7 +43,7 @@ public open class GPUParticlesAttractorBox3D : GPUParticlesAttractor3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GPUPARTICLESATTRACTORBOX3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GPUPARTICLESATTRACTORBOX3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticlesAttractorSphere3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticlesAttractorSphere3D.kt index 6ace4f5a85..e45e41fe0c 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticlesAttractorSphere3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticlesAttractorSphere3D.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -42,7 +43,7 @@ public open class GPUParticlesAttractorSphere3D : GPUParticlesAttractor3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GPUPARTICLESATTRACTORSPHERE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GPUPARTICLESATTRACTORSPHERE3D, this, scriptIndex) } public final fun setRadius(radius: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticlesAttractorVectorField3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticlesAttractorVectorField3D.kt index 2358b6180f..f7baf145f5 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticlesAttractorVectorField3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticlesAttractorVectorField3D.kt @@ -9,13 +9,14 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -61,7 +62,8 @@ public open class GPUParticlesAttractorVectorField3D : GPUParticlesAttractor3D() } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GPUPARTICLESATTRACTORVECTORFIELD3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GPUPARTICLESATTRACTORVECTORFIELD3D, this, + scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollision3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollision3D.kt index 7a94edcaaa..e27131c60c 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollision3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollision3D.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -54,7 +55,7 @@ public open class GPUParticlesCollision3D internal constructor() : VisualInstanc } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GPUPARTICLESCOLLISION3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GPUPARTICLESCOLLISION3D, this, scriptIndex) } public final fun setCullMask(mask: Long): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionBox3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionBox3D.kt index 14761ae89f..1fd7c6b264 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionBox3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionBox3D.kt @@ -9,12 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -44,7 +45,7 @@ public open class GPUParticlesCollisionBox3D : GPUParticlesCollision3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GPUPARTICLESCOLLISIONBOX3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GPUPARTICLESCOLLISIONBOX3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionHeightField3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionHeightField3D.kt index f91510f461..d37a055c05 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionHeightField3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionHeightField3D.kt @@ -9,14 +9,15 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -93,7 +94,8 @@ public open class GPUParticlesCollisionHeightField3D : GPUParticlesCollision3D() } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GPUPARTICLESCOLLISIONHEIGHTFIELD3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GPUPARTICLESCOLLISIONHEIGHTFIELD3D, this, + scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionSDF3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionSDF3D.kt index 478f85fa3d..883a73b201 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionSDF3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionSDF3D.kt @@ -9,8 +9,10 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -18,7 +20,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -115,7 +116,7 @@ public open class GPUParticlesCollisionSDF3D : GPUParticlesCollision3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GPUPARTICLESCOLLISIONSDF3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GPUPARTICLESCOLLISIONSDF3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionSphere3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionSphere3D.kt index 1c04d16abc..85986d28a5 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionSphere3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GPUParticlesCollisionSphere3D.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -42,7 +43,7 @@ public open class GPUParticlesCollisionSphere3D : GPUParticlesCollision3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GPUPARTICLESCOLLISIONSPHERE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GPUPARTICLESCOLLISIONSPHERE3D, this, scriptIndex) } public final fun setRadius(radius: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GdjScript.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GdjScript.kt index bb26eed4ad..3c621ef91f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GdjScript.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GdjScript.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -14,7 +15,7 @@ import kotlin.Unit @GodotBaseType public open class GdjScript : JvmScript() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GDJSCRIPT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GDJSCRIPT, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Generic6DOFJoint3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Generic6DOFJoint3D.kt index 29c69e867b..909589bb40 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Generic6DOFJoint3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Generic6DOFJoint3D.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -31,7 +32,7 @@ import kotlin.Unit @GodotBaseType public open class Generic6DOFJoint3D : Joint3D() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GENERIC6DOFJOINT3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GENERIC6DOFJOINT3D, this, scriptIndex) } public final fun setParamX(`param`: Param, `value`: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Geometry2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Geometry2D.kt index 7860551530..cc2e18025b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Geometry2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Geometry2D.kt @@ -7,11 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedInt32Array import godot.core.PackedVector2Array -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantCaster.ANY import godot.core.VariantParser.ARRAY @@ -23,7 +25,6 @@ import godot.core.VariantParser.PACKED_INT_32_ARRAY import godot.core.VariantParser.PACKED_VECTOR2_ARRAY import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -42,7 +43,7 @@ import kotlin.jvm.JvmStatic @GodotBaseType public object Geometry2D : Object() { public override fun new(scriptIndex: Int): Unit { - getSingleton(ENGINECLASS_GEOMETRY2D) + MemoryManager.getSingleton(ENGINECLASS_GEOMETRY2D) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Geometry3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Geometry3D.kt index ced30a1a80..6d3794a27e 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Geometry3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Geometry3D.kt @@ -7,11 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedInt32Array import godot.core.PackedVector3Array import godot.core.Plane -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantCaster.ANY import godot.core.VariantParser.ARRAY @@ -22,7 +24,6 @@ import godot.core.VariantParser.PACKED_VECTOR3_ARRAY import godot.core.VariantParser.PLANE import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Float import kotlin.Int @@ -38,7 +39,7 @@ import kotlin.jvm.JvmStatic @GodotBaseType public object Geometry3D : Object() { public override fun new(scriptIndex: Int): Unit { - getSingleton(ENGINECLASS_GEOMETRY3D) + MemoryManager.getSingleton(ENGINECLASS_GEOMETRY3D) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GeometryInstance3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GeometryInstance3D.kt index 1fc1928527..e8012fa0b8 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GeometryInstance3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GeometryInstance3D.kt @@ -9,10 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.AABB import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantCaster.ANY import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE @@ -20,7 +22,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -255,7 +256,7 @@ public open class GeometryInstance3D : VisualInstance3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GEOMETRYINSTANCE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GEOMETRYINSTANCE3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Gradient.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Gradient.kt index 81525986b5..71bd528751 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Gradient.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Gradient.kt @@ -7,18 +7,19 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.PackedColorArray import godot.core.PackedFloat32Array -import godot.internal.reflection.TypeManager import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_COLOR_ARRAY import godot.core.VariantParser.PACKED_FLOAT_32_ARRAY -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -87,7 +88,7 @@ public open class Gradient : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GRADIENT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GRADIENT, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GradientTexture1D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GradientTexture1D.kt index 44c154ac13..ee9506f09b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GradientTexture1D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GradientTexture1D.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -65,7 +66,7 @@ public open class GradientTexture1D : Texture2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GRADIENTTEXTURE1D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GRADIENTTEXTURE1D, this, scriptIndex) } public final fun setGradient(gradient: Gradient?): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GradientTexture2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GradientTexture2D.kt index 1c8b91f236..250e369515 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GradientTexture2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GradientTexture2D.kt @@ -9,15 +9,16 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -133,7 +134,7 @@ public open class GradientTexture2D : Texture2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GRADIENTTEXTURE2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GRADIENTTEXTURE2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GraphEdit.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GraphEdit.kt index 6e92503d4a..9fd392c39d 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GraphEdit.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GraphEdit.kt @@ -9,6 +9,9 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedVector2Array @@ -19,7 +22,6 @@ import godot.core.Signal2 import godot.core.Signal3 import godot.core.Signal4 import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -33,7 +35,6 @@ import godot.core.VariantParser.RECT2 import godot.core.VariantParser.STRING_NAME import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -426,7 +427,7 @@ public open class GraphEdit : Control() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GRAPHEDIT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GRAPHEDIT, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GraphElement.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GraphElement.kt index 168551431b..54af14937d 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GraphElement.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GraphElement.kt @@ -9,16 +9,17 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.Signal1 import godot.core.Signal2 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -133,7 +134,7 @@ public open class GraphElement : Container() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GRAPHELEMENT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GRAPHELEMENT, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GraphFrame.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GraphFrame.kt index 4f0f54ecec..2adcd5dbef 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GraphFrame.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GraphFrame.kt @@ -9,17 +9,18 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.Signal0 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -112,7 +113,7 @@ public open class GraphFrame : GraphElement() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GRAPHFRAME, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GRAPHFRAME, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GraphNode.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GraphNode.kt index 6dad27f754..1835c98191 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GraphNode.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GraphNode.kt @@ -7,10 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.Signal1 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.LONG @@ -20,7 +22,6 @@ import godot.core.VariantParser.STRING import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.Vector2i -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -79,7 +80,7 @@ public open class GraphNode : GraphElement() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GRAPHNODE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GRAPHNODE, this, scriptIndex) } public open fun _drawPort( diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GridContainer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GridContainer.kt index cc3b23c752..a51e5992f9 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GridContainer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GridContainer.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -40,7 +41,7 @@ public open class GridContainer : Container() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GRIDCONTAINER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GRIDCONTAINER, this, scriptIndex) } public final fun setColumns(columns: Int): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GridMap.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GridMap.kt index 6e73e267a5..585a93ec46 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GridMap.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GridMap.kt @@ -9,12 +9,14 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Basis import godot.core.RID import godot.core.Signal0 import godot.core.Signal1 -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BASIS @@ -28,7 +30,6 @@ import godot.core.VariantParser.VECTOR3I import godot.core.VariantParser._RID import godot.core.Vector3 import godot.core.Vector3i -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -210,7 +211,7 @@ public open class GridMap : Node3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GRIDMAP, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GRIDMAP, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GrooveJoint2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GrooveJoint2D.kt index e2c56c1d7b..de3ac6fd43 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GrooveJoint2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/GrooveJoint2D.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -51,7 +52,7 @@ public open class GrooveJoint2D : Joint2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_GROOVEJOINT2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_GROOVEJOINT2D, this, scriptIndex) } public final fun setLength(length: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HBoxContainer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HBoxContainer.kt index 6e522a88e6..a1314ed6dc 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HBoxContainer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HBoxContainer.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,7 @@ import kotlin.Unit @GodotBaseType public open class HBoxContainer : BoxContainer() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_HBOXCONTAINER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_HBOXCONTAINER, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HFlowContainer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HFlowContainer.kt index 6b948e167d..d26c8e037f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HFlowContainer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HFlowContainer.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -19,7 +20,7 @@ import kotlin.Unit @GodotBaseType public open class HFlowContainer : FlowContainer() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_HFLOWCONTAINER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_HFLOWCONTAINER, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HMACContext.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HMACContext.kt index 9db8bd69ea..1babaf4ff2 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HMACContext.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HMACContext.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedByteArray -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.PACKED_BYTE_ARRAY -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -70,7 +71,7 @@ import kotlin.Unit @GodotBaseType public open class HMACContext : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_HMACCONTEXT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_HMACCONTEXT, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HScrollBar.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HScrollBar.kt index ab02df0c72..9019666daf 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HScrollBar.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HScrollBar.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,7 @@ import kotlin.Unit @GodotBaseType public open class HScrollBar : ScrollBar() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_HSCROLLBAR, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_HSCROLLBAR, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HSeparator.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HSeparator.kt index 2505f56c3f..39bc5e91b0 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HSeparator.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HSeparator.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,7 @@ import kotlin.Unit @GodotBaseType public open class HSeparator : Separator() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_HSEPARATOR, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_HSEPARATOR, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HSlider.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HSlider.kt index 7aaf725b56..00ccaa014c 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HSlider.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HSlider.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,7 @@ import kotlin.Unit @GodotBaseType public open class HSlider : Slider() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_HSLIDER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_HSLIDER, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HSplitContainer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HSplitContainer.kt index 2c346fb4bd..f5823a7206 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HSplitContainer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HSplitContainer.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -19,7 +20,7 @@ import kotlin.Unit @GodotBaseType public open class HSplitContainer : SplitContainer() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_HSPLITCONTAINER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_HSPLITCONTAINER, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HTTPClient.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HTTPClient.kt index fdbef03447..4f7b7f2a24 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HTTPClient.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HTTPClient.kt @@ -7,11 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedByteArray import godot.core.PackedStringArray -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DICTIONARY import godot.core.VariantParser.LONG @@ -20,7 +22,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -102,7 +103,7 @@ public open class HTTPClient : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_HTTPCLIENT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_HTTPCLIENT, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HTTPRequest.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HTTPRequest.kt index 951230c66f..56f3ebf73a 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HTTPRequest.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HTTPRequest.kt @@ -7,11 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedByteArray import godot.core.PackedStringArray import godot.core.Signal4 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -20,7 +22,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Int @@ -296,7 +297,7 @@ public open class HTTPRequest : Node() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_HTTPREQUEST, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_HTTPREQUEST, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HashingContext.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HashingContext.kt index 462323967f..79a0fd942e 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HashingContext.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HashingContext.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedByteArray -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.PACKED_BYTE_ARRAY -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -78,7 +79,7 @@ import kotlin.Unit @GodotBaseType public open class HashingContext : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_HASHINGCONTEXT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_HASHINGCONTEXT, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HeightMapShape3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HeightMapShape3D.kt index 027a356370..5051ab53f0 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HeightMapShape3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HeightMapShape3D.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedFloat32Array -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_FLOAT_32_ARRAY -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -81,7 +82,7 @@ public open class HeightMapShape3D : Shape3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_HEIGHTMAPSHAPE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_HEIGHTMAPSHAPE3D, this, scriptIndex) } public final fun setMapWidth(width: Int): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HingeJoint3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HingeJoint3D.kt index 77eb1e2fa2..090c4be650 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HingeJoint3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/HingeJoint3D.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -30,7 +31,7 @@ import kotlin.Unit @GodotBaseType public open class HingeJoint3D : Joint3D() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_HINGEJOINT3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_HINGEJOINT3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/IP.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/IP.kt index 4c8204cf95..b00ecbe43b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/IP.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/IP.kt @@ -7,17 +7,18 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedStringArray -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Int import kotlin.Long @@ -46,7 +47,7 @@ public object IP : Object() { public final const val RESOLVER_INVALID_ID: Long = -1 public override fun new(scriptIndex: Int): Unit { - getSingleton(ENGINECLASS_IP) + MemoryManager.getSingleton(ENGINECLASS_IP) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Image.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Image.kt index 061e9c8481..2d9691e9bb 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Image.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Image.kt @@ -7,12 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.Dictionary import godot.core.PackedByteArray import godot.core.Rect2i -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.DICTIONARY @@ -25,7 +27,6 @@ import godot.core.VariantParser.RECT2I import godot.core.VariantParser.STRING import godot.core.VariantParser.VECTOR2I import godot.core.Vector2i -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Float @@ -48,7 +49,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class Image : Resource() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_IMAGE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_IMAGE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ImageFormatLoader.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ImageFormatLoader.kt index 3837994f04..87665b66a9 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ImageFormatLoader.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ImageFormatLoader.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -21,7 +22,7 @@ import kotlin.jvm.JvmInline @GodotBaseType public open class ImageFormatLoader internal constructor() : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_IMAGEFORMATLOADER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_IMAGEFORMATLOADER, this, scriptIndex) } public sealed interface LoaderFlags { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ImageFormatLoaderExtension.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ImageFormatLoaderExtension.kt index 496de7f139..306ea5f460 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ImageFormatLoaderExtension.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ImageFormatLoaderExtension.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedStringArray -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Float import kotlin.Int import kotlin.NotImplementedError @@ -27,7 +28,7 @@ import kotlin.Unit @GodotBaseType public open class ImageFormatLoaderExtension : ImageFormatLoader() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_IMAGEFORMATLOADEREXTENSION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_IMAGEFORMATLOADEREXTENSION, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ImageTexture.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ImageTexture.kt index dc79064ece..53ba146b37 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ImageTexture.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ImageTexture.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR2I import godot.core.Vector2i -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -54,7 +55,7 @@ import kotlin.Unit @GodotBaseType public open class ImageTexture : Texture2D() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_IMAGETEXTURE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_IMAGETEXTURE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ImageTexture3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ImageTexture3D.kt index 2c55a916df..4528bcab3f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ImageTexture3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ImageTexture3D.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -31,7 +32,7 @@ import kotlin.Unit @GodotBaseType public open class ImageTexture3D : Texture3D() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_IMAGETEXTURE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_IMAGETEXTURE3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ImageTextureLayered.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ImageTextureLayered.kt index 6eb276a5a2..02c363f53f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ImageTextureLayered.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ImageTextureLayered.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -27,7 +28,7 @@ import kotlin.Unit @GodotBaseType public open class ImageTextureLayered internal constructor() : TextureLayered() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_IMAGETEXTURELAYERED, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_IMAGETEXTURELAYERED, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ImmediateMesh.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ImmediateMesh.kt index 8dc26fb900..a43732b6f1 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ImmediateMesh.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ImmediateMesh.kt @@ -7,10 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.Plane -import godot.internal.reflection.TypeManager import godot.core.VariantParser.COLOR import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL @@ -20,7 +22,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser.VECTOR3 import godot.core.Vector2 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -55,7 +56,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class ImmediateMesh : Mesh() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_IMMEDIATEMESH, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_IMMEDIATEMESH, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ImporterMesh.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ImporterMesh.kt index c75916afc8..11e97a5564 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ImporterMesh.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ImporterMesh.kt @@ -7,10 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedInt32Array -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.DICTIONARY @@ -22,7 +24,6 @@ import godot.core.VariantParser.PACKED_INT_32_ARRAY import godot.core.VariantParser.STRING import godot.core.VariantParser.VECTOR2I import godot.core.Vector2i -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Double import kotlin.Float @@ -45,7 +46,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class ImporterMesh : Resource() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_IMPORTERMESH, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_IMPORTERMESH, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ImporterMeshInstance3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ImporterMeshInstance3D.kt index e4b6d26de6..998262ca86 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ImporterMeshInstance3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ImporterMeshInstance3D.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.NodePath -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -107,7 +108,7 @@ public open class ImporterMeshInstance3D : Node3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_IMPORTERMESHINSTANCE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_IMPORTERMESHINSTANCE3D, this, scriptIndex) } public final fun setMesh(mesh: ImporterMesh?): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Input.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Input.kt index df1c8c9a27..ba83ba869a 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Input.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Input.kt @@ -6,12 +6,15 @@ package godot +import godot.MouseButtonMaskValue import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.Signal2 import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -26,7 +29,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser.VECTOR3 import godot.core.Vector2 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -56,7 +58,7 @@ public object Input : Object() { public val joyConnectionChanged: Signal2 by Signal2 public override fun new(scriptIndex: Int): Unit { - getSingleton(ENGINECLASS_INPUT) + MemoryManager.getSingleton(ENGINECLASS_INPUT) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEvent.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEvent.kt index 1fda7cbf48..3fe2172967 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEvent.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEvent.kt @@ -7,10 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.StringName import godot.core.Transform2D -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -21,7 +23,6 @@ import godot.core.VariantParser.STRING_NAME import godot.core.VariantParser.TRANSFORM2D import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -52,7 +53,7 @@ public open class InputEvent internal constructor() : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_INPUTEVENT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_INPUTEVENT, this, scriptIndex) } public final fun setDevice(device: Int): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventAction.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventAction.kt index 5d6f0bbfcd..83d26f63a6 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventAction.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventAction.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -85,7 +86,7 @@ public open class InputEventAction : InputEvent() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_INPUTEVENTACTION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_INPUTEVENTACTION, this, scriptIndex) } public final fun setAction(action: StringName): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventFromWindow.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventFromWindow.kt index 766cdb7c6d..c396d3bb62 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventFromWindow.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventFromWindow.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -36,7 +37,7 @@ public open class InputEventFromWindow internal constructor() : InputEvent() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_INPUTEVENTFROMWINDOW, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_INPUTEVENTFROMWINDOW, this, scriptIndex) } public final fun setWindowId(id: Long): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventGesture.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventGesture.kt index 966dce2ef8..95567dee58 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventGesture.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventGesture.kt @@ -9,12 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -40,7 +41,7 @@ public open class InputEventGesture internal constructor() : InputEventWithModif } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_INPUTEVENTGESTURE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_INPUTEVENTGESTURE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventJoypadButton.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventJoypadButton.kt index 68d3ec5cdf..ccf3b95b2b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventJoypadButton.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventJoypadButton.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -60,7 +61,7 @@ public open class InputEventJoypadButton : InputEvent() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_INPUTEVENTJOYPADBUTTON, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_INPUTEVENTJOYPADBUTTON, this, scriptIndex) } public final fun setButtonIndex(buttonIndex: JoyButton): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventJoypadMotion.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventJoypadMotion.kt index 9ade82ae1c..b664419e10 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventJoypadMotion.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventJoypadMotion.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -51,7 +52,7 @@ public open class InputEventJoypadMotion : InputEvent() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_INPUTEVENTJOYPADMOTION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_INPUTEVENTJOYPADMOTION, this, scriptIndex) } public final fun setAxis(axis: JoyAxis): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventKey.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventKey.kt index 3692035b9c..559e3e430c 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventKey.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventKey.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -161,7 +162,7 @@ public open class InputEventKey : InputEventWithModifiers() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_INPUTEVENTKEY, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_INPUTEVENTKEY, this, scriptIndex) } public final fun setPressed(pressed: Boolean): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventMIDI.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventMIDI.kt index ba0877d7ce..dcfb9eb05a 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventMIDI.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventMIDI.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -203,7 +204,7 @@ public open class InputEventMIDI : InputEvent() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_INPUTEVENTMIDI, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_INPUTEVENTMIDI, this, scriptIndex) } public final fun setChannel(channel: Int): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventMagnifyGesture.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventMagnifyGesture.kt index 341cf58144..fb385dc145 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventMagnifyGesture.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventMagnifyGesture.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -41,7 +42,7 @@ public open class InputEventMagnifyGesture : InputEventGesture() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_INPUTEVENTMAGNIFYGESTURE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_INPUTEVENTMAGNIFYGESTURE, this, scriptIndex) } public final fun setFactor(factor: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventMouse.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventMouse.kt index 3d3d990104..8d5a8bf927 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventMouse.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventMouse.kt @@ -6,16 +6,18 @@ package godot +import godot.MouseButtonMaskValue import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -70,7 +72,7 @@ public open class InputEventMouse internal constructor() : InputEventWithModifie } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_INPUTEVENTMOUSE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_INPUTEVENTMOUSE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventMouseButton.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventMouseButton.kt index c447ed3367..0fb89bcf39 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventMouseButton.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventMouseButton.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -91,7 +92,7 @@ public open class InputEventMouseButton : InputEventMouse() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_INPUTEVENTMOUSEBUTTON, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_INPUTEVENTMOUSEBUTTON, this, scriptIndex) } public final fun setFactor(factor: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventMouseMotion.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventMouseMotion.kt index 16420b89ab..9244701fa2 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventMouseMotion.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventMouseMotion.kt @@ -9,14 +9,15 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -141,7 +142,7 @@ public open class InputEventMouseMotion : InputEventMouse() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_INPUTEVENTMOUSEMOTION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_INPUTEVENTMOUSEMOTION, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventPanGesture.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventPanGesture.kt index ded465dd2a..a6d89623f2 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventPanGesture.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventPanGesture.kt @@ -9,12 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -42,7 +43,7 @@ public open class InputEventPanGesture : InputEventGesture() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_INPUTEVENTPANGESTURE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_INPUTEVENTPANGESTURE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventScreenDrag.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventScreenDrag.kt index f2bb1729be..267f00345a 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventScreenDrag.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventScreenDrag.kt @@ -9,15 +9,16 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -153,7 +154,7 @@ public open class InputEventScreenDrag : InputEventFromWindow() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_INPUTEVENTSCREENDRAG, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_INPUTEVENTSCREENDRAG, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventScreenTouch.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventScreenTouch.kt index 65ad6a09b5..717774e097 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventScreenTouch.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventScreenTouch.kt @@ -9,14 +9,15 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -88,7 +89,7 @@ public open class InputEventScreenTouch : InputEventFromWindow() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_INPUTEVENTSCREENTOUCH, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_INPUTEVENTSCREENTOUCH, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventShortcut.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventShortcut.kt index 46b30cbba6..b73dd2385f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventShortcut.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventShortcut.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -37,7 +38,7 @@ public open class InputEventShortcut : InputEvent() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_INPUTEVENTSHORTCUT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_INPUTEVENTSHORTCUT, this, scriptIndex) } public final fun setShortcut(shortcut: Shortcut?): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventWithModifiers.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventWithModifiers.kt index f099437c86..de5ebef513 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventWithModifiers.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputEventWithModifiers.kt @@ -6,13 +6,15 @@ package godot +import godot.KeyModifierMaskValue import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -85,7 +87,7 @@ public open class InputEventWithModifiers internal constructor() : InputEventFro } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_INPUTEVENTWITHMODIFIERS, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_INPUTEVENTWITHMODIFIERS, this, scriptIndex) } public final fun setCommandOrControlAutoremap(enable: Boolean): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputMap.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputMap.kt index 44290a591b..2e66bc7390 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputMap.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InputMap.kt @@ -7,9 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -17,7 +19,6 @@ import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -35,7 +36,7 @@ import kotlin.jvm.JvmStatic @GodotBaseType public object InputMap : Object() { public override fun new(scriptIndex: Int): Unit { - getSingleton(ENGINECLASS_INPUTMAP) + MemoryManager.getSingleton(ENGINECLASS_INPUTMAP) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InstancePlaceholder.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InstancePlaceholder.kt index 58ddf5b514..b4507c3b45 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InstancePlaceholder.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/InstancePlaceholder.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Dictionary -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DICTIONARY import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -37,7 +38,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class InstancePlaceholder internal constructor() : Node() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_INSTANCEPLACEHOLDER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_INSTANCEPLACEHOLDER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/IntervalTweener.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/IntervalTweener.kt index 85382aee76..76c2c9fb4f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/IntervalTweener.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/IntervalTweener.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -20,7 +21,7 @@ import kotlin.Unit @GodotBaseType public open class IntervalTweener : Tweener() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_INTERVALTWEENER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_INTERVALTWEENER, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ItemList.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ItemList.kt index 4565b05314..fd3a563ed0 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ItemList.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ItemList.kt @@ -9,6 +9,9 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.PackedInt32Array @@ -16,7 +19,6 @@ import godot.core.Rect2 import godot.core.Signal1 import godot.core.Signal2 import godot.core.Signal3 -import godot.internal.reflection.TypeManager import godot.core.VariantCaster.ANY import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR @@ -31,7 +33,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser.VECTOR2I import godot.core.Vector2 import godot.core.Vector2i -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -264,7 +265,7 @@ public open class ItemList : Control() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ITEMLIST, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ITEMLIST, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/JNISingleton.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/JNISingleton.kt index 04eb91278e..80a52d562c 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/JNISingleton.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/JNISingleton.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -21,7 +22,7 @@ import kotlin.Unit @GodotBaseType public open class JNISingleton : Object() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_JNISINGLETON, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_JNISINGLETON, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/JSON.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/JSON.kt index 2164608612..9e374c17f1 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/JSON.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/JSON.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantCaster.ANY import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -80,7 +81,7 @@ public open class JSON : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_JSON, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_JSON, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/JSONRPC.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/JSONRPC.kt index d33ecef21d..1b8add5f2a 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/JSONRPC.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/JSONRPC.kt @@ -7,9 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Dictionary -import godot.internal.reflection.TypeManager import godot.core.VariantCaster.ANY import godot.core.VariantParser.BOOL import godot.core.VariantParser.DICTIONARY @@ -17,7 +19,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -37,7 +38,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class JSONRPC : Object() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_JSONRPC, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_JSONRPC, this, scriptIndex) } public final fun setScope(scope: String, target: Object?): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/JavaClass.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/JavaClass.kt index 8fa3726e06..c24540a264 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/JavaClass.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/JavaClass.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -19,7 +20,7 @@ import kotlin.Unit @GodotBaseType public open class JavaClass : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_JAVACLASS, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_JAVACLASS, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/JavaClassWrapper.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/JavaClassWrapper.kt index 86e2da894b..7c220eb2f7 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/JavaClassWrapper.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/JavaClassWrapper.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.String import kotlin.Suppress @@ -27,7 +28,7 @@ import kotlin.jvm.JvmStatic @GodotBaseType public object JavaClassWrapper : Object() { public override fun new(scriptIndex: Int): Unit { - getSingleton(ENGINECLASS_JAVACLASSWRAPPER) + MemoryManager.getSingleton(ENGINECLASS_JAVACLASSWRAPPER) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/JavaScript.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/JavaScript.kt index 9df2c04dda..ea96816aae 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/JavaScript.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/JavaScript.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -14,7 +15,7 @@ import kotlin.Unit @GodotBaseType public open class JavaScript : JvmScript() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_JAVASCRIPT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_JAVASCRIPT, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/JavaScriptBridge.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/JavaScriptBridge.kt index 280ad44c08..d3082f8ab2 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/JavaScriptBridge.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/JavaScriptBridge.kt @@ -7,11 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.PackedByteArray import godot.core.Signal0 -import godot.internal.reflection.TypeManager import godot.core.VariantCaster.ANY import godot.core.VariantParser.BOOL import godot.core.VariantParser.CALLABLE @@ -20,7 +22,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -52,7 +53,7 @@ public object JavaScriptBridge : Object() { public val pwaUpdateAvailable: Signal0 by Signal0 public override fun new(scriptIndex: Int): Unit { - getSingleton(ENGINECLASS_JAVASCRIPTBRIDGE) + MemoryManager.getSingleton(ENGINECLASS_JAVASCRIPTBRIDGE) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/JavaScriptObject.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/JavaScriptObject.kt index 73998b33d8..127d29b7d4 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/JavaScriptObject.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/JavaScriptObject.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -47,7 +48,7 @@ import kotlin.Unit @GodotBaseType public open class JavaScriptObject internal constructor() : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_JAVASCRIPTOBJECT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_JAVASCRIPTOBJECT, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Joint2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Joint2D.kt index 56b5f22112..97f1c3658f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Joint2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Joint2D.kt @@ -7,16 +7,17 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.VariantParser._RID -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -80,7 +81,7 @@ public open class Joint2D internal constructor() : Node2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_JOINT2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_JOINT2D, this, scriptIndex) } public final fun setNodeA(node: NodePath): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Joint3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Joint3D.kt index 8e9f020c90..edbbc14c1b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Joint3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Joint3D.kt @@ -7,16 +7,17 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.VariantParser._RID -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -81,7 +82,7 @@ public open class Joint3D internal constructor() : Node3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_JOINT3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_JOINT3D, this, scriptIndex) } public final fun setNodeA(node: NodePath): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/JvmScript.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/JvmScript.kt index 902c19771a..8cf75c391d 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/JvmScript.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/JvmScript.kt @@ -7,10 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantCaster.ANY -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Int import kotlin.Suppress @@ -19,7 +20,7 @@ import kotlin.Unit @GodotBaseType public open class JvmScript internal constructor() : Script() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_JVMSCRIPT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_JVMSCRIPT, this, scriptIndex) } public final fun new(vararg __var_args: Any?): Any? { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/KinematicCollision2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/KinematicCollision2D.kt index c5ef816afb..216d4b2fa0 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/KinematicCollision2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/KinematicCollision2D.kt @@ -7,16 +7,17 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -35,7 +36,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class KinematicCollision2D : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_KINEMATICCOLLISION2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_KINEMATICCOLLISION2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/KinematicCollision3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/KinematicCollision3D.kt index 7e61ceeb77..c130c36f73 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/KinematicCollision3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/KinematicCollision3D.kt @@ -7,16 +7,17 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR3 import godot.core.VariantParser._RID import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -35,7 +36,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class KinematicCollision3D : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_KINEMATICCOLLISION3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_KINEMATICCOLLISION3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/KotlinScript.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/KotlinScript.kt index 577fb1ca62..c4ed5aaef7 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/KotlinScript.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/KotlinScript.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -14,7 +15,7 @@ import kotlin.Unit @GodotBaseType public open class KotlinScript : JvmScript() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_KOTLINSCRIPT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_KOTLINSCRIPT, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Label.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Label.kt index 196d13407a..0028a3109b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Label.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Label.kt @@ -8,10 +8,12 @@ package godot import godot.TextServer.JustificationFlagValue import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedFloat32Array import godot.core.Rect2 -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -22,7 +24,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_FLOAT_32_ARRAY import godot.core.VariantParser.RECT2 import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -278,7 +279,7 @@ public open class Label : Control() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_LABEL, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_LABEL, this, scriptIndex) } public final fun setHorizontalAlignment(alignment: HorizontalAlignment): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Label3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Label3D.kt index 9d28c5cdea..6229c17612 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Label3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Label3D.kt @@ -10,9 +10,11 @@ import godot.TextServer.JustificationFlagValue import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -24,7 +26,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -419,7 +420,7 @@ public open class Label3D : GeometryInstance3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_LABEL3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_LABEL3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/LabelSettings.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/LabelSettings.kt index 4b382f819f..1f72e8a1da 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/LabelSettings.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/LabelSettings.kt @@ -9,9 +9,11 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color -import godot.internal.reflection.TypeManager import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -19,7 +21,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -140,7 +141,7 @@ public open class LabelSettings : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_LABELSETTINGS, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_LABELSETTINGS, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Light2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Light2D.kt index 994efa5f46..e86494e88f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Light2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Light2D.kt @@ -9,15 +9,16 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -208,7 +209,7 @@ public open class Light2D internal constructor() : Node2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_LIGHT2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_LIGHT2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Light3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Light3D.kt index 92bb699974..abfa6c8f11 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Light3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Light3D.kt @@ -9,16 +9,17 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -402,7 +403,7 @@ public open class Light3D internal constructor() : VisualInstance3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_LIGHT3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_LIGHT3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/LightOccluder2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/LightOccluder2D.kt index fcb8aaf206..9b1df8c200 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/LightOccluder2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/LightOccluder2D.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -63,7 +64,7 @@ public open class LightOccluder2D : Node2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_LIGHTOCCLUDER2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_LIGHTOCCLUDER2D, this, scriptIndex) } public final fun setOccluderPolygon(polygon: OccluderPolygon2D?): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/LightmapGI.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/LightmapGI.kt index 77786eb5a2..347c924c92 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/LightmapGI.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/LightmapGI.kt @@ -9,16 +9,17 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -313,7 +314,7 @@ public open class LightmapGI : VisualInstance3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_LIGHTMAPGI, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_LIGHTMAPGI, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/LightmapGIData.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/LightmapGIData.kt index e4e68331dd..bab2a0648f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/LightmapGIData.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/LightmapGIData.kt @@ -7,10 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.Rect2 -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -19,7 +21,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.VariantParser.OBJECT import godot.core.VariantParser.RECT2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -64,7 +65,7 @@ public open class LightmapGIData : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_LIGHTMAPGIDATA, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_LIGHTMAPGIDATA, this, scriptIndex) } public final fun setLightmapTextures(lightTextures: VariantArray): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/LightmapProbe.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/LightmapProbe.kt index 936933e06c..6ba83f179c 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/LightmapProbe.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/LightmapProbe.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -26,7 +27,7 @@ import kotlin.Unit @GodotBaseType public open class LightmapProbe : Node3D() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_LIGHTMAPPROBE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_LIGHTMAPPROBE, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Lightmapper.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Lightmapper.kt index 5f0a1671f6..c777c9867a 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Lightmapper.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Lightmapper.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -20,7 +21,7 @@ import kotlin.Unit @GodotBaseType public open class Lightmapper internal constructor() : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_LIGHTMAPPER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_LIGHTMAPPER, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/LightmapperRD.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/LightmapperRD.kt index 5feb3fe6f6..2c2a455515 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/LightmapperRD.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/LightmapperRD.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -21,7 +22,7 @@ import kotlin.Unit @GodotBaseType public open class LightmapperRD : Lightmapper() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_LIGHTMAPPERRD, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_LIGHTMAPPERRD, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Line2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Line2D.kt index 78637ccddb..41cd59bb21 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Line2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Line2D.kt @@ -9,10 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.PackedVector2Array -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE @@ -22,7 +24,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_VECTOR2_ARRAY import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -214,7 +215,7 @@ public open class Line2D : Node2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_LINE2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_LINE2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/LineEdit.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/LineEdit.kt index 72316ffa3e..e762b2cbe3 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/LineEdit.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/LineEdit.kt @@ -7,9 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal1 -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -18,7 +20,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -445,7 +446,7 @@ public open class LineEdit : Control() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_LINEEDIT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_LINEEDIT, this, scriptIndex) } public final fun setHorizontalAlignment(alignment: HorizontalAlignment): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/LinkButton.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/LinkButton.kt index f2e85fe495..345a2132d3 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/LinkButton.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/LinkButton.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Int import kotlin.Long @@ -126,7 +127,7 @@ public open class LinkButton : BaseButton() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_LINKBUTTON, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_LINKBUTTON, this, scriptIndex) } public final fun setText(text: String): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MainLoop.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MainLoop.kt index 6261372526..ce93743b55 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MainLoop.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MainLoop.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import godot.core.Signal2 import kotlin.Boolean import kotlin.Double @@ -85,7 +86,7 @@ public open class MainLoop : Object() { public val onRequestPermissionsResult: Signal2 by Signal2 public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_MAINLOOP, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_MAINLOOP, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MarginContainer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MarginContainer.kt index e5537c3976..88898294f7 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MarginContainer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MarginContainer.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -40,7 +41,7 @@ import kotlin.Unit @GodotBaseType public open class MarginContainer : Container() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_MARGINCONTAINER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_MARGINCONTAINER, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Marker2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Marker2D.kt index 3c55111813..f19eaf5f1f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Marker2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Marker2D.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -38,7 +39,7 @@ public open class Marker2D : Node2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_MARKER2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_MARKER2D, this, scriptIndex) } public final fun setGizmoExtents(extents: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Marker3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Marker3D.kt index eb9922fee0..8980ffcca8 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Marker3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Marker3D.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -37,7 +38,7 @@ public open class Marker3D : Node3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_MARKER3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_MARKER3D, this, scriptIndex) } public final fun setGizmoExtents(extents: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Marshalls.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Marshalls.kt index b897a11048..7e36076a3b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Marshalls.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Marshalls.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedByteArray -import godot.internal.reflection.TypeManager import godot.core.VariantCaster.ANY import godot.core.VariantParser.BOOL import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -30,7 +31,7 @@ import kotlin.jvm.JvmStatic @GodotBaseType public object Marshalls : Object() { public override fun new(scriptIndex: Int): Unit { - getSingleton(ENGINECLASS_MARSHALLS) + MemoryManager.getSingleton(ENGINECLASS_MARSHALLS) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Material.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Material.kt index 395fab0bf6..3a3efc99c4 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Material.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Material.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -66,7 +67,7 @@ public open class Material : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_MATERIAL, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_MATERIAL, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MenuBar.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MenuBar.kt index f5d0f92d3b..d95b83b57d 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MenuBar.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MenuBar.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -98,7 +99,7 @@ public open class MenuBar : Control() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_MENUBAR, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_MENUBAR, this, scriptIndex) } public final fun setSwitchOnHover(enable: Boolean): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MenuButton.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MenuButton.kt index 57fd744015..fd958bb17c 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MenuButton.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MenuButton.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal0 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -59,7 +60,7 @@ public open class MenuButton : Button() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_MENUBUTTON, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_MENUBUTTON, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Mesh.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Mesh.kt index 1cde5a6a42..416675ad04 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Mesh.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Mesh.kt @@ -9,12 +9,14 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.AABB import godot.core.Dictionary import godot.core.PackedVector3Array import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -25,7 +27,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_VECTOR3_ARRAY import godot.core.VariantParser.VECTOR2I import godot.core.Vector2i -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Float @@ -60,7 +61,7 @@ public open class Mesh : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_MESH, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_MESH, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MeshConvexDecompositionSettings.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MeshConvexDecompositionSettings.kt index 38a574f9d8..d782bf1f6d 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MeshConvexDecompositionSettings.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MeshConvexDecompositionSettings.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -174,7 +175,7 @@ public open class MeshConvexDecompositionSettings : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_MESHCONVEXDECOMPOSITIONSETTINGS, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_MESHCONVEXDECOMPOSITIONSETTINGS, this, scriptIndex) } public final fun setMaxConcavity(maxConcavity: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MeshDataTool.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MeshDataTool.kt index 5361d60fe6..d7232bfb9a 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MeshDataTool.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MeshDataTool.kt @@ -7,12 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.PackedFloat32Array import godot.core.PackedInt32Array import godot.core.Plane -import godot.internal.reflection.TypeManager import godot.core.VariantCaster.ANY import godot.core.VariantParser.COLOR import godot.core.VariantParser.LONG @@ -25,7 +27,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser.VECTOR3 import godot.core.Vector2 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Int import kotlin.Long @@ -88,7 +89,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class MeshDataTool : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_MESHDATATOOL, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_MESHDATATOOL, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MeshInstance2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MeshInstance2D.kt index 1a8eadadd9..24112b63ec 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MeshInstance2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MeshInstance2D.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal0 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -54,7 +55,7 @@ public open class MeshInstance2D : Node2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_MESHINSTANCE2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_MESHINSTANCE2D, this, scriptIndex) } public final fun setMesh(mesh: Mesh?): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MeshInstance3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MeshInstance3D.kt index 3bc9b2d7c8..032207de65 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MeshInstance3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MeshInstance3D.kt @@ -7,10 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -18,7 +20,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -72,7 +73,7 @@ public open class MeshInstance3D : GeometryInstance3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_MESHINSTANCE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_MESHINSTANCE3D, this, scriptIndex) } public final fun setMesh(mesh: Mesh?): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MeshLibrary.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MeshLibrary.kt index d961d3a344..eba230eed6 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MeshLibrary.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MeshLibrary.kt @@ -7,10 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedInt32Array import godot.core.Transform3D -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.LONG @@ -19,7 +21,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_INT_32_ARRAY import godot.core.VariantParser.STRING import godot.core.VariantParser.TRANSFORM3D -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Int import kotlin.Long @@ -34,7 +35,7 @@ import kotlin.Unit @GodotBaseType public open class MeshLibrary : Resource() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_MESHLIBRARY, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_MESHLIBRARY, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MeshTexture.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MeshTexture.kt index 2b6464b7ae..7120958b12 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MeshTexture.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MeshTexture.kt @@ -9,13 +9,14 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -62,7 +63,7 @@ public open class MeshTexture : Texture2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_MESHTEXTURE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_MESHTEXTURE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MethodTweener.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MethodTweener.kt index 7f32fc95c3..e47379a419 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MethodTweener.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MethodTweener.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Int import kotlin.Suppress @@ -29,7 +30,7 @@ import kotlin.Unit @GodotBaseType public open class MethodTweener : Tweener() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_METHODTWEENER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_METHODTWEENER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MissingNode.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MissingNode.kt index db2f4453d8..2d9159b970 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MissingNode.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MissingNode.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.String @@ -64,7 +65,7 @@ public open class MissingNode : Node() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_MISSINGNODE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_MISSINGNODE, this, scriptIndex) } public final fun setOriginalClass(name: String): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MissingResource.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MissingResource.kt index 785f5cef60..6d6f9a3867 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MissingResource.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MissingResource.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.String @@ -53,7 +54,7 @@ public open class MissingResource : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_MISSINGRESOURCE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_MISSINGRESOURCE, this, scriptIndex) } public final fun setOriginalClass(name: String): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MobileVRInterface.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MobileVRInterface.kt index bba7950ef2..a6971acc72 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MobileVRInterface.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MobileVRInterface.kt @@ -9,13 +9,14 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Rect2 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.RECT2 -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -161,7 +162,7 @@ public open class MobileVRInterface : XRInterface() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_MOBILEVRINTERFACE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_MOBILEVRINTERFACE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MovieWriter.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MovieWriter.kt index 7470e77b3b..b8dcf105f2 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MovieWriter.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MovieWriter.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.Vector2i -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -57,7 +58,7 @@ import kotlin.Unit @GodotBaseType public open class MovieWriter : Object() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_MOVIEWRITER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_MOVIEWRITER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MultiMesh.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MultiMesh.kt index 466563d316..02ded34c22 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MultiMesh.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MultiMesh.kt @@ -9,13 +9,15 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.AABB import godot.core.Color import godot.core.PackedFloat32Array import godot.core.Transform2D import godot.core.Transform3D -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.LONG @@ -24,7 +26,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_FLOAT_32_ARRAY import godot.core.VariantParser.TRANSFORM2D import godot.core.VariantParser.TRANSFORM3D -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -144,7 +145,7 @@ public open class MultiMesh : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_MULTIMESH, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_MULTIMESH, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MultiMeshInstance2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MultiMeshInstance2D.kt index 6d089c3a63..51cb89bbab 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MultiMeshInstance2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MultiMeshInstance2D.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal0 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -53,7 +54,7 @@ public open class MultiMeshInstance2D : Node2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_MULTIMESHINSTANCE2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_MULTIMESHINSTANCE2D, this, scriptIndex) } public final fun setMultimesh(multimesh: MultiMesh?): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MultiMeshInstance3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MultiMeshInstance3D.kt index 1259eaf623..6311ddc047 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MultiMeshInstance3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MultiMeshInstance3D.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -38,7 +39,7 @@ public open class MultiMeshInstance3D : GeometryInstance3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_MULTIMESHINSTANCE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_MULTIMESHINSTANCE3D, this, scriptIndex) } public final fun setMultimesh(multimesh: MultiMesh?): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MultiplayerAPI.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MultiplayerAPI.kt index d14e299d07..b497abb18d 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MultiplayerAPI.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MultiplayerAPI.kt @@ -7,12 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedInt32Array import godot.core.Signal0 import godot.core.Signal1 import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantCaster.ANY import godot.core.VariantParser.ARRAY @@ -22,7 +24,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_INT_32_ARRAY import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -92,7 +93,7 @@ public open class MultiplayerAPI internal constructor() : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_MULTIPLAYERAPI, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_MULTIPLAYERAPI, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MultiplayerAPIExtension.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MultiplayerAPIExtension.kt index 9cb68f4df3..14d3f883b6 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MultiplayerAPIExtension.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MultiplayerAPIExtension.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import godot.core.PackedInt32Array import godot.core.StringName import godot.core.VariantArray @@ -101,7 +102,7 @@ import kotlin.Unit @GodotBaseType public open class MultiplayerAPIExtension : MultiplayerAPI() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_MULTIPLAYERAPIEXTENSION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_MULTIPLAYERAPIEXTENSION, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MultiplayerPeer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MultiplayerPeer.kt index b4e26bf054..bb548f7060 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MultiplayerPeer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MultiplayerPeer.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal1 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -87,7 +88,7 @@ public open class MultiplayerPeer internal constructor() : PacketPeer() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_MULTIPLAYERPEER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_MULTIPLAYERPEER, this, scriptIndex) } public final fun setTransferChannel(channel: Int): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MultiplayerPeerExtension.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MultiplayerPeerExtension.kt index 99bf9c3baf..d88a92ad9b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MultiplayerPeerExtension.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MultiplayerPeerExtension.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import godot.core.PackedByteArray import kotlin.Boolean import kotlin.Int @@ -22,7 +23,7 @@ import kotlin.Unit @GodotBaseType public open class MultiplayerPeerExtension : MultiplayerPeer() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_MULTIPLAYERPEEREXTENSION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_MULTIPLAYERPEEREXTENSION, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MultiplayerSpawner.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MultiplayerSpawner.kt index 7fd223d2ef..a4012dee4f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MultiplayerSpawner.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MultiplayerSpawner.kt @@ -7,11 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.NodePath import godot.core.Signal1 -import godot.internal.reflection.TypeManager import godot.core.VariantCaster.ANY import godot.core.VariantParser.CALLABLE import godot.core.VariantParser.LONG @@ -19,7 +21,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Int import kotlin.Long @@ -90,7 +91,7 @@ public open class MultiplayerSpawner : Node() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_MULTIPLAYERSPAWNER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_MULTIPLAYERSPAWNER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MultiplayerSynchronizer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MultiplayerSynchronizer.kt index c2d1c7d37b..51b973cb09 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MultiplayerSynchronizer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/MultiplayerSynchronizer.kt @@ -7,12 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.NodePath import godot.core.Signal0 import godot.core.Signal1 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.CALLABLE import godot.core.VariantParser.DOUBLE @@ -20,7 +22,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Int @@ -135,7 +136,7 @@ public open class MultiplayerSynchronizer : Node() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_MULTIPLAYERSYNCHRONIZER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_MULTIPLAYERSYNCHRONIZER, this, scriptIndex) } public final fun setRootPath(path: NodePath): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Mutex.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Mutex.kt index 2530c40e6f..a268656f8e 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Mutex.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Mutex.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -34,7 +35,7 @@ import kotlin.Unit @GodotBaseType public open class Mutex : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_MUTEX, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_MUTEX, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NativeMenu.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NativeMenu.kt index c7ab55dde8..724570ac13 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NativeMenu.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NativeMenu.kt @@ -7,10 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantCaster.ANY import godot.core.VariantParser.BOOL import godot.core.VariantParser.CALLABLE @@ -24,7 +26,6 @@ import godot.core.VariantParser.VECTOR2I import godot.core.VariantParser._RID import godot.core.Vector2 import godot.core.Vector2i -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -74,7 +75,7 @@ import kotlin.jvm.JvmStatic @GodotBaseType public object NativeMenu : Object() { public override fun new(scriptIndex: Int): Unit { - getSingleton(ENGINECLASS_NATIVEMENU) + MemoryManager.getSingleton(ENGINECLASS_NATIVEMENU) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationAgent2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationAgent2D.kt index c092d68d37..eefb1c1c44 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationAgent2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationAgent2D.kt @@ -10,6 +10,9 @@ import godot.NavigationPathQueryParameters2D.PathMetadataFlagsValue import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.Dictionary @@ -17,7 +20,6 @@ import godot.core.PackedVector2Array import godot.core.RID import godot.core.Signal0 import godot.core.Signal1 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE @@ -28,7 +30,6 @@ import godot.core.VariantParser.PACKED_VECTOR2_ARRAY import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -449,7 +450,7 @@ public open class NavigationAgent2D : Node() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_NAVIGATIONAGENT2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_NAVIGATIONAGENT2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationAgent3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationAgent3D.kt index 526f8e2761..2546f906e5 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationAgent3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationAgent3D.kt @@ -10,6 +10,9 @@ import godot.NavigationPathQueryParameters3D.PathMetadataFlagsValue import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.Dictionary @@ -17,7 +20,6 @@ import godot.core.PackedVector3Array import godot.core.RID import godot.core.Signal0 import godot.core.Signal1 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE @@ -28,7 +30,6 @@ import godot.core.VariantParser.PACKED_VECTOR3_ARRAY import godot.core.VariantParser.VECTOR3 import godot.core.VariantParser._RID import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -496,7 +497,7 @@ public open class NavigationAgent3D : Node() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_NAVIGATIONAGENT3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_NAVIGATIONAGENT3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationLink2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationLink2D.kt index 0a9e98c92a..5b4366dfd9 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationLink2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationLink2D.kt @@ -9,9 +9,11 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -19,7 +21,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -128,7 +129,7 @@ public open class NavigationLink2D : Node2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_NAVIGATIONLINK2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_NAVIGATIONLINK2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationLink3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationLink3D.kt index a13ffedb88..949d01f51b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationLink3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationLink3D.kt @@ -9,9 +9,11 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -19,7 +21,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR3 import godot.core.VariantParser._RID import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -128,7 +129,7 @@ public open class NavigationLink3D : Node3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_NAVIGATIONLINK3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_NAVIGATIONLINK3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationMesh.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationMesh.kt index 26455ccdc3..12823fac4a 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationMesh.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationMesh.kt @@ -9,12 +9,14 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.AABB import godot.core.PackedInt32Array import godot.core.PackedVector3Array import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -25,7 +27,6 @@ import godot.core.VariantParser.PACKED_VECTOR3_ARRAY import godot.core.VariantParser.STRING_NAME import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -345,7 +346,7 @@ public open class NavigationMesh : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_NAVIGATIONMESH, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_NAVIGATIONMESH, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationMeshGenerator.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationMeshGenerator.kt index 0ca4ae4e0d..d7264101e7 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationMeshGenerator.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationMeshGenerator.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Callable -import godot.internal.reflection.TypeManager import godot.core.VariantParser.CALLABLE import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -54,7 +55,7 @@ import kotlin.jvm.JvmStatic @GodotBaseType public object NavigationMeshGenerator : Object() { public override fun new(scriptIndex: Int): Unit { - getSingleton(ENGINECLASS_NAVIGATIONMESHGENERATOR) + MemoryManager.getSingleton(ENGINECLASS_NAVIGATIONMESHGENERATOR) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationMeshSourceGeometryData2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationMeshSourceGeometryData2D.kt index 59144b4302..9cd3f1ebc5 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationMeshSourceGeometryData2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationMeshSourceGeometryData2D.kt @@ -7,16 +7,17 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedVector2Array -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_VECTOR2_ARRAY -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -54,7 +55,8 @@ public open class NavigationMeshSourceGeometryData2D : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_NAVIGATIONMESHSOURCEGEOMETRYDATA2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_NAVIGATIONMESHSOURCEGEOMETRYDATA2D, this, + scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationMeshSourceGeometryData3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationMeshSourceGeometryData3D.kt index 76c4313ef7..dc534e6ab9 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationMeshSourceGeometryData3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationMeshSourceGeometryData3D.kt @@ -7,12 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedFloat32Array import godot.core.PackedInt32Array import godot.core.PackedVector3Array import godot.core.Transform3D -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -23,7 +25,6 @@ import godot.core.VariantParser.PACKED_FLOAT_32_ARRAY import godot.core.VariantParser.PACKED_INT_32_ARRAY import godot.core.VariantParser.PACKED_VECTOR3_ARRAY import godot.core.VariantParser.TRANSFORM3D -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Float @@ -62,7 +63,8 @@ public open class NavigationMeshSourceGeometryData3D : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_NAVIGATIONMESHSOURCEGEOMETRYDATA3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_NAVIGATIONMESHSOURCEGEOMETRYDATA3D, this, + scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationObstacle2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationObstacle2D.kt index 14499ea92a..2997c73ede 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationObstacle2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationObstacle2D.kt @@ -9,10 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedVector2Array import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -21,7 +23,6 @@ import godot.core.VariantParser.PACKED_VECTOR2_ARRAY import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -137,7 +138,7 @@ public open class NavigationObstacle2D : Node2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_NAVIGATIONOBSTACLE2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_NAVIGATIONOBSTACLE2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationObstacle3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationObstacle3D.kt index 452495d3b9..2c956ea2dd 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationObstacle3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationObstacle3D.kt @@ -9,10 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedVector3Array import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -21,7 +23,6 @@ import godot.core.VariantParser.PACKED_VECTOR3_ARRAY import godot.core.VariantParser.VECTOR3 import godot.core.VariantParser._RID import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -164,7 +165,7 @@ public open class NavigationObstacle3D : Node3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_NAVIGATIONOBSTACLE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_NAVIGATIONOBSTACLE3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryParameters2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryParameters2D.kt index 9ad8d22703..abe9f63fbc 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryParameters2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryParameters2D.kt @@ -9,9 +9,11 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -19,7 +21,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -143,7 +144,7 @@ public open class NavigationPathQueryParameters2D : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_NAVIGATIONPATHQUERYPARAMETERS2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_NAVIGATIONPATHQUERYPARAMETERS2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryParameters3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryParameters3D.kt index 30026ad380..7389bd6d88 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryParameters3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryParameters3D.kt @@ -9,9 +9,11 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -19,7 +21,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR3 import godot.core.VariantParser._RID import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -143,7 +144,7 @@ public open class NavigationPathQueryParameters3D : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_NAVIGATIONPATHQUERYPARAMETERS3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_NAVIGATIONPATHQUERYPARAMETERS3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryResult2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryResult2D.kt index ba59eb768c..804d36a841 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryResult2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryResult2D.kt @@ -7,19 +7,20 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedInt32Array import godot.core.PackedInt64Array import godot.core.PackedVector2Array import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.NIL 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.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -79,7 +80,7 @@ public open class NavigationPathQueryResult2D : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_NAVIGATIONPATHQUERYRESULT2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_NAVIGATIONPATHQUERYRESULT2D, this, scriptIndex) } public final fun setPath(path: PackedVector2Array): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryResult3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryResult3D.kt index 3fa1f0b005..134851fda1 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryResult3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationPathQueryResult3D.kt @@ -7,19 +7,20 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedInt32Array import godot.core.PackedInt64Array import godot.core.PackedVector3Array import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.NIL 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.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -79,7 +80,7 @@ public open class NavigationPathQueryResult3D : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_NAVIGATIONPATHQUERYRESULT3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_NAVIGATIONPATHQUERYRESULT3D, this, scriptIndex) } public final fun setPath(path: PackedVector3Array): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationPolygon.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationPolygon.kt index 378378eb05..66ca46507b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationPolygon.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationPolygon.kt @@ -9,12 +9,14 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedInt32Array import godot.core.PackedVector2Array import godot.core.Rect2 import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -26,7 +28,6 @@ import godot.core.VariantParser.RECT2 import godot.core.VariantParser.STRING_NAME import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -208,7 +209,7 @@ public open class NavigationPolygon : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_NAVIGATIONPOLYGON, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_NAVIGATIONPOLYGON, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationRegion2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationRegion2D.kt index 292872f35a..1053366d57 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationRegion2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationRegion2D.kt @@ -7,17 +7,18 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID import godot.core.Signal0 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser._RID -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -129,7 +130,7 @@ public open class NavigationRegion2D : Node2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_NAVIGATIONREGION2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_NAVIGATIONREGION2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationRegion3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationRegion3D.kt index 5d8a7731ef..a6d72f7c97 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationRegion3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationRegion3D.kt @@ -7,17 +7,18 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID import godot.core.Signal0 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser._RID -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -128,7 +129,7 @@ public open class NavigationRegion3D : Node3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_NAVIGATIONREGION3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_NAVIGATIONREGION3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationServer2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationServer2D.kt index 60563c2c51..32fa337af9 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationServer2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationServer2D.kt @@ -7,6 +7,9 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.PackedVector2Array @@ -14,7 +17,6 @@ import godot.core.RID import godot.core.Signal0 import godot.core.Signal1 import godot.core.Transform2D -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -28,7 +30,6 @@ import godot.core.VariantParser.TRANSFORM2D import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -76,7 +77,7 @@ public object NavigationServer2D : Object() { public val navigationDebugChanged: Signal0 by Signal0 public override fun new(scriptIndex: Int): Unit { - getSingleton(ENGINECLASS_NAVIGATIONSERVER2D) + MemoryManager.getSingleton(ENGINECLASS_NAVIGATIONSERVER2D) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationServer3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationServer3D.kt index c975c3d484..ba3b55b394 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationServer3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NavigationServer3D.kt @@ -7,6 +7,9 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.PackedVector3Array @@ -14,7 +17,6 @@ import godot.core.RID import godot.core.Signal0 import godot.core.Signal1 import godot.core.Transform3D -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -28,7 +30,6 @@ import godot.core.VariantParser.TRANSFORM3D import godot.core.VariantParser.VECTOR3 import godot.core.VariantParser._RID import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -82,7 +83,7 @@ public object NavigationServer3D : Object() { public val avoidanceDebugChanged: Signal0 by Signal0 public override fun new(scriptIndex: Int): Unit { - getSingleton(ENGINECLASS_NAVIGATIONSERVER3D) + MemoryManager.getSingleton(ENGINECLASS_NAVIGATIONSERVER3D) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NinePatchRect.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NinePatchRect.kt index fd3e09226d..f26a4c91ba 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NinePatchRect.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NinePatchRect.kt @@ -9,16 +9,17 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Rect2 import godot.core.Signal0 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.RECT2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -152,7 +153,7 @@ public open class NinePatchRect : Control() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_NINEPATCHRECT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_NINEPATCHRECT, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Node.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Node.kt index 9f47292177..278105c3ad 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Node.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Node.kt @@ -7,13 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.PackedStringArray import godot.core.Signal0 import godot.core.Signal1 import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantCaster.ANY import godot.core.VariantParser.ARRAY @@ -25,7 +27,6 @@ import godot.core.VariantParser.NODE_PATH import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import godot.core.toGodotName import kotlin.Any import kotlin.Boolean @@ -362,7 +363,7 @@ public open class Node : Object() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_NODE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_NODE, this, scriptIndex) } public inline fun > rpc(function: FUNCTION): Error = diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Node2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Node2D.kt index 012de1d634..81a4b69289 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Node2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Node2D.kt @@ -9,9 +9,11 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Transform2D -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL @@ -19,7 +21,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.TRANSFORM2D import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -181,7 +182,7 @@ public open class Node2D : CanvasItem() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_NODE2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_NODE2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Node3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Node3D.kt index ea06479427..82ba781ae0 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Node3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Node3D.kt @@ -9,13 +9,15 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Basis import godot.core.NodePath import godot.core.Quaternion import godot.core.Signal0 import godot.core.Transform3D -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BASIS @@ -29,7 +31,6 @@ import godot.core.VariantParser.QUATERNION import godot.core.VariantParser.TRANSFORM3D import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Float import kotlin.Int @@ -289,7 +290,7 @@ public open class Node3D : Node() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_NODE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_NODE3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Node3DGizmo.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Node3DGizmo.kt index 2158033e45..bd4e3badab 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Node3DGizmo.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Node3DGizmo.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -20,7 +21,7 @@ import kotlin.Unit @GodotBaseType public open class Node3DGizmo internal constructor() : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_NODE3DGIZMO, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_NODE3DGIZMO, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Noise.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Noise.kt index ee0cb7da14..0cc7e79e3b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Noise.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Noise.kt @@ -7,8 +7,10 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -19,7 +21,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser.VECTOR3 import godot.core.Vector2 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -39,7 +40,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class Noise internal constructor() : Resource() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_NOISE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_NOISE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NoiseTexture2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NoiseTexture2D.kt index ab16f6d933..57338cd642 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NoiseTexture2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NoiseTexture2D.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -191,7 +192,7 @@ public open class NoiseTexture2D : Texture2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_NOISETEXTURE2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_NOISETEXTURE2D, this, scriptIndex) } public final fun setWidth(width: Int): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NoiseTexture3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NoiseTexture3D.kt index 6ce5f683bd..bf539fc045 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NoiseTexture3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/NoiseTexture3D.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -151,7 +152,7 @@ public open class NoiseTexture3D : Texture3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_NOISETEXTURE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_NOISETEXTURE3D, this, scriptIndex) } public final fun setWidth(width: Int): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ORMMaterial3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ORMMaterial3D.kt index 045e7839e0..366cfcb845 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ORMMaterial3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ORMMaterial3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -19,7 +20,7 @@ import kotlin.Unit @GodotBaseType public open class ORMMaterial3D : BaseMaterial3D() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ORMMATERIAL3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ORMMATERIAL3D, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OS.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OS.kt index eaa4c81229..2c97cbb5de 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OS.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OS.kt @@ -7,11 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedByteArray import godot.core.PackedStringArray -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -21,7 +23,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -43,7 +44,7 @@ import kotlin.jvm.JvmStatic @GodotBaseType public object OS : Object() { public override fun new(scriptIndex: Int): Unit { - getSingleton(ENGINECLASS_OS) + MemoryManager.getSingleton(ENGINECLASS_OS) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Object.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Object.kt index 1770ce32f8..3bf40b39bf 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Object.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Object.kt @@ -7,6 +7,9 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.Dictionary @@ -14,7 +17,6 @@ import godot.core.KtObject import godot.core.NodePath import godot.core.Signal0 import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantCaster.ANY import godot.core.VariantParser.ARRAY @@ -25,7 +27,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -96,7 +97,7 @@ public open class Object : KtObject() { public val propertyListChanged: Signal0 by Signal0 public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_OBJECT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_OBJECT, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Occluder3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Occluder3D.kt index fe7a3906a5..10ddc76c14 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Occluder3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Occluder3D.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedInt32Array import godot.core.PackedVector3Array -import godot.internal.reflection.TypeManager import godot.core.VariantParser.PACKED_INT_32_ARRAY import godot.core.VariantParser.PACKED_VECTOR3_ARRAY -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -25,7 +26,7 @@ import kotlin.Unit @GodotBaseType public open class Occluder3D internal constructor() : Resource() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_OCCLUDER3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_OCCLUDER3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OccluderInstance3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OccluderInstance3D.kt index 5a82ca6678..0eca2bdef5 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OccluderInstance3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OccluderInstance3D.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -112,7 +113,7 @@ public open class OccluderInstance3D : VisualInstance3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_OCCLUDERINSTANCE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_OCCLUDERINSTANCE3D, this, scriptIndex) } public final fun setBakeMask(mask: Long): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OccluderPolygon2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OccluderPolygon2D.kt index f32d988025..662fdce7b9 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OccluderPolygon2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OccluderPolygon2D.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedVector2Array -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_VECTOR2_ARRAY -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -62,7 +63,7 @@ public open class OccluderPolygon2D : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_OCCLUDERPOLYGON2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_OCCLUDERPOLYGON2D, this, scriptIndex) } public final fun setClosed(closed: Boolean): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OfflineMultiplayerPeer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OfflineMultiplayerPeer.kt index fd9d01a363..e93f9e82af 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OfflineMultiplayerPeer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OfflineMultiplayerPeer.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -21,7 +22,7 @@ import kotlin.Unit @GodotBaseType public open class OfflineMultiplayerPeer : MultiplayerPeer() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_OFFLINEMULTIPLAYERPEER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_OFFLINEMULTIPLAYERPEER, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OggPacketSequence.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OggPacketSequence.kt index 384a4ef20c..f1dd4cfd8f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OggPacketSequence.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OggPacketSequence.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedInt64Array -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_INT_64_ARRAY -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Double import kotlin.Float @@ -64,7 +65,7 @@ public open class OggPacketSequence : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_OGGPACKETSEQUENCE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_OGGPACKETSEQUENCE, this, scriptIndex) } public final fun setPacketData(packetData: VariantArray>): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OggPacketSequencePlayback.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OggPacketSequencePlayback.kt index 901a803f22..7033bfac58 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OggPacketSequencePlayback.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OggPacketSequencePlayback.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -14,7 +15,7 @@ import kotlin.Unit @GodotBaseType public open class OggPacketSequencePlayback : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_OGGPACKETSEQUENCEPLAYBACK, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_OGGPACKETSEQUENCEPLAYBACK, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OmniLight3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OmniLight3D.kt index d5c1e1845c..69eb6da2d6 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OmniLight3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OmniLight3D.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -46,7 +47,7 @@ public open class OmniLight3D : Light3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_OMNILIGHT3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_OMNILIGHT3D, this, scriptIndex) } public final fun setShadowMode(mode: ShadowMode): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRAPIExtension.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRAPIExtension.kt index c3e1b89381..e1231f60e6 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRAPIExtension.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRAPIExtension.kt @@ -7,8 +7,10 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -16,7 +18,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -34,7 +35,7 @@ import kotlin.Unit @GodotBaseType public open class OpenXRAPIExtension : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_OPENXRAPIEXTENSION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_OPENXRAPIEXTENSION, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRAction.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRAction.kt index af551c20f4..d1d0a6d50f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRAction.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRAction.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedStringArray -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.String @@ -73,7 +74,7 @@ public open class OpenXRAction : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_OPENXRACTION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_OPENXRACTION, this, scriptIndex) } public final fun setLocalizedName(localizedName: String): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRActionMap.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRActionMap.kt index 5230ba737d..3c218241f6 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRActionMap.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRActionMap.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Int import kotlin.Long @@ -59,7 +60,7 @@ public open class OpenXRActionMap : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_OPENXRACTIONMAP, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_OPENXRACTIONMAP, this, scriptIndex) } public final fun setActionSets(actionSets: VariantArray): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRActionSet.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRActionSet.kt index a41e9e7c4b..115d6c2943 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRActionSet.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRActionSet.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Int import kotlin.Long @@ -69,7 +70,7 @@ public open class OpenXRActionSet : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_OPENXRACTIONSET, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_OPENXRACTIONSET, this, scriptIndex) } public final fun setLocalizedName(localizedName: String): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRCompositionLayer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRCompositionLayer.kt index b5fbdd4870..a3d23bbbe5 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRCompositionLayer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRCompositionLayer.kt @@ -7,8 +7,10 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL @@ -17,7 +19,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser.VECTOR3 import godot.core.Vector2 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -87,7 +88,7 @@ public open class OpenXRCompositionLayer internal constructor() : Node3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_OPENXRCOMPOSITIONLAYER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_OPENXRCOMPOSITIONLAYER, this, scriptIndex) } public final fun setLayerViewport(viewport: SubViewport?): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRCompositionLayerCylinder.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRCompositionLayerCylinder.kt index d9960978b5..bad54b66a0 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRCompositionLayerCylinder.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRCompositionLayerCylinder.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -72,7 +73,7 @@ public open class OpenXRCompositionLayerCylinder : OpenXRCompositionLayer() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_OPENXRCOMPOSITIONLAYERCYLINDER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_OPENXRCOMPOSITIONLAYERCYLINDER, this, scriptIndex) } public final fun setRadius(radius: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRCompositionLayerEquirect.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRCompositionLayerEquirect.kt index d0b0ec05bb..7442f95bc4 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRCompositionLayerEquirect.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRCompositionLayerEquirect.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -85,7 +86,7 @@ public open class OpenXRCompositionLayerEquirect : OpenXRCompositionLayer() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_OPENXRCOMPOSITIONLAYEREQUIRECT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_OPENXRCOMPOSITIONLAYEREQUIRECT, this, scriptIndex) } public final fun setRadius(radius: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRCompositionLayerQuad.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRCompositionLayerQuad.kt index 59e0a16af5..acc49182fc 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRCompositionLayerQuad.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRCompositionLayerQuad.kt @@ -9,12 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -38,7 +39,7 @@ public open class OpenXRCompositionLayerQuad : OpenXRCompositionLayer() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_OPENXRCOMPOSITIONLAYERQUAD, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_OPENXRCOMPOSITIONLAYERQUAD, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRExtensionWrapperExtension.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRExtensionWrapperExtension.kt index 88b55d6053..4f38757000 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRExtensionWrapperExtension.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRExtensionWrapperExtension.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedStringArray -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Int import kotlin.Long @@ -29,7 +30,7 @@ import kotlin.Unit @GodotBaseType public open class OpenXRExtensionWrapperExtension : Object() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_OPENXREXTENSIONWRAPPEREXTENSION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_OPENXREXTENSIONWRAPPEREXTENSION, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRHand.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRHand.kt index 063c6e9a03..f7b5acb24c 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRHand.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRHand.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.NodePath -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -91,7 +92,7 @@ public open class OpenXRHand : Node3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_OPENXRHAND, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_OPENXRHAND, this, scriptIndex) } public final fun setHand(hand: Hands): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRIPBinding.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRIPBinding.kt index 947f95be9a..7b4c61a2f2 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRIPBinding.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRIPBinding.kt @@ -7,16 +7,17 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedStringArray -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -56,7 +57,7 @@ public open class OpenXRIPBinding : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_OPENXRIPBINDING, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_OPENXRIPBINDING, this, scriptIndex) } public final fun setAction(action: OpenXRAction?): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRInteractionProfile.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRInteractionProfile.kt index 9c1b1ebe93..ea16a254a7 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRInteractionProfile.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRInteractionProfile.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Int import kotlin.Long @@ -56,7 +57,7 @@ public open class OpenXRInteractionProfile : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_OPENXRINTERACTIONPROFILE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_OPENXRINTERACTIONPROFILE, this, scriptIndex) } public final fun setInteractionProfilePath(interactionProfilePath: String): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRInteractionProfileMetadata.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRInteractionProfileMetadata.kt index 3d13d56ae3..7681fffcbe 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRInteractionProfileMetadata.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRInteractionProfileMetadata.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.String import kotlin.Suppress @@ -27,7 +28,8 @@ import kotlin.Unit @GodotBaseType public open class OpenXRInteractionProfileMetadata : Object() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_OPENXRINTERACTIONPROFILEMETADATA, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_OPENXRINTERACTIONPROFILEMETADATA, this, + scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRInterface.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRInterface.kt index 9024498e60..3e957eb695 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRInterface.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OpenXRInterface.kt @@ -7,11 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Quaternion import godot.core.Signal0 import godot.core.Signal1 -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -22,7 +24,6 @@ import godot.core.VariantParser.QUATERNION import godot.core.VariantParser.STRING import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -166,7 +167,7 @@ public open class OpenXRInterface : XRInterface() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_OPENXRINTERFACE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_OPENXRINTERFACE, this, scriptIndex) } public final fun getDisplayRefreshRate(): Float { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OptimizedTranslation.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OptimizedTranslation.kt index 6ca830446a..5340ea8e91 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OptimizedTranslation.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OptimizedTranslation.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -23,7 +24,7 @@ import kotlin.Unit @GodotBaseType public open class OptimizedTranslation : Translation() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_OPTIMIZEDTRANSLATION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_OPTIMIZEDTRANSLATION, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OptionButton.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OptionButton.kt index 8324721978..df797847f3 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OptionButton.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/OptionButton.kt @@ -7,16 +7,17 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal1 -import godot.internal.reflection.TypeManager import godot.core.VariantCaster.ANY import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -96,7 +97,7 @@ public open class OptionButton : Button() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_OPTIONBUTTON, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_OPTIONBUTTON, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PCKPacker.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PCKPacker.kt index d8d82e4769..72eaf0fbaa 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PCKPacker.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PCKPacker.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -46,7 +47,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class PCKPacker : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PCKPACKER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PCKPACKER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PackedDataContainer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PackedDataContainer.kt index ba7d0548ca..9e9959b426 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PackedDataContainer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PackedDataContainer.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantCaster.ANY import godot.core.VariantParser.LONG -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Int import kotlin.Long @@ -47,7 +48,7 @@ import kotlin.Unit @GodotBaseType public open class PackedDataContainer : Resource() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PACKEDDATACONTAINER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PACKEDDATACONTAINER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PackedDataContainerRef.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PackedDataContainerRef.kt index a4e4c2aa3d..456190deaa 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PackedDataContainerRef.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PackedDataContainerRef.kt @@ -7,10 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -45,7 +46,7 @@ import kotlin.Unit @GodotBaseType public open class PackedDataContainerRef internal constructor() : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PACKEDDATACONTAINERREF, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PACKEDDATACONTAINERREF, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PackedScene.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PackedScene.kt index eb688b439b..ed32be5bbd 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PackedScene.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PackedScene.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -100,7 +101,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class PackedScene : Resource() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PACKEDSCENE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PACKEDSCENE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PacketPeer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PacketPeer.kt index 5489625809..0f34928b4b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PacketPeer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PacketPeer.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedByteArray -import godot.internal.reflection.TypeManager import godot.core.VariantCaster.ANY import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_BYTE_ARRAY -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -52,7 +53,7 @@ public open class PacketPeer internal constructor() : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PACKETPEER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PACKETPEER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PacketPeerDTLS.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PacketPeerDTLS.kt index 51964e7350..9fec19100f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PacketPeerDTLS.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PacketPeerDTLS.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.String @@ -34,7 +35,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class PacketPeerDTLS : PacketPeer() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PACKETPEERDTLS, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PACKETPEERDTLS, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PacketPeerExtension.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PacketPeerExtension.kt index c050cbced3..8e760d1e55 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PacketPeerExtension.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PacketPeerExtension.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.NotImplementedError import kotlin.Suppress @@ -15,7 +16,7 @@ import kotlin.Unit @GodotBaseType public open class PacketPeerExtension : PacketPeer() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PACKETPEEREXTENSION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PACKETPEEREXTENSION, this, scriptIndex) } public open fun _getAvailablePacketCount(): Int { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PacketPeerStream.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PacketPeerStream.kt index 3a73cd3ee7..691e1b7701 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PacketPeerStream.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PacketPeerStream.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -57,7 +58,7 @@ public open class PacketPeerStream : PacketPeer() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PACKETPEERSTREAM, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PACKETPEERSTREAM, this, scriptIndex) } public final fun setStreamPeer(peer: StreamPeer?): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PacketPeerUDP.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PacketPeerUDP.kt index 1d84d63272..959e52993f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PacketPeerUDP.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PacketPeerUDP.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -31,7 +32,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class PacketPeerUDP : PacketPeer() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PACKETPEERUDP, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PACKETPEERUDP, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Panel.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Panel.kt index 14dd64f3d6..f9cfc6f37d 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Panel.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Panel.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -17,7 +18,7 @@ import kotlin.Unit @GodotBaseType public open class Panel : Control() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PANEL, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PANEL, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PanelContainer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PanelContainer.kt index 9873b3fa0f..373a669932 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PanelContainer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PanelContainer.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,7 @@ import kotlin.Unit @GodotBaseType public open class PanelContainer : Container() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PANELCONTAINER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PANELCONTAINER, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PanoramaSkyMaterial.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PanoramaSkyMaterial.kt index d2f0ce1ae9..182206ea0d 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PanoramaSkyMaterial.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PanoramaSkyMaterial.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -68,7 +69,7 @@ public open class PanoramaSkyMaterial : Material() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PANORAMASKYMATERIAL, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PANORAMASKYMATERIAL, this, scriptIndex) } public final fun setPanorama(texture: Texture2D?): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Parallax2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Parallax2D.kt index 837868ec1f..81daf6d5e5 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Parallax2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Parallax2D.kt @@ -9,14 +9,15 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -167,7 +168,7 @@ public open class Parallax2D : Node2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PARALLAX2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PARALLAX2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ParallaxBackground.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ParallaxBackground.kt index 82db96a90b..72cc447fe3 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ParallaxBackground.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ParallaxBackground.kt @@ -9,13 +9,14 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -109,7 +110,7 @@ public open class ParallaxBackground : CanvasLayer() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PARALLAXBACKGROUND, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PARALLAXBACKGROUND, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ParallaxLayer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ParallaxLayer.kt index 8ceb2d451b..7bf6f57cb5 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ParallaxLayer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ParallaxLayer.kt @@ -9,12 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -82,7 +83,7 @@ public open class ParallaxLayer : Node2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PARALLAXLAYER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PARALLAXLAYER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ParticleProcessMaterial.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ParticleProcessMaterial.kt index e84069045a..2c532a6097 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ParticleProcessMaterial.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ParticleProcessMaterial.kt @@ -9,9 +9,11 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE @@ -22,7 +24,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser.VECTOR3 import godot.core.Vector2 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -1367,7 +1368,7 @@ public open class ParticleProcessMaterial : Material() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PARTICLEPROCESSMATERIAL, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PARTICLEPROCESSMATERIAL, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Path2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Path2D.kt index 12ece75cab..9249e498c1 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Path2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Path2D.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -37,7 +38,7 @@ public open class Path2D : Node2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PATH2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PATH2D, this, scriptIndex) } public final fun setCurve(curve: Curve2D?): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Path3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Path3D.kt index 2f962f9471..0c7aa802b1 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Path3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Path3D.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal0 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -43,7 +44,7 @@ public open class Path3D : Node3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PATH3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PATH3D, this, scriptIndex) } public final fun setCurve(curve: Curve3D?): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PathFollow2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PathFollow2D.kt index 9d001cb552..2752f01385 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PathFollow2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PathFollow2D.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -121,7 +122,7 @@ public open class PathFollow2D : Node2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PATHFOLLOW2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PATHFOLLOW2D, this, scriptIndex) } public final fun setProgress(progress: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PathFollow3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PathFollow3D.kt index 002b6606c4..6cf935516a 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PathFollow3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PathFollow3D.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Transform3D -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.TRANSFORM3D -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -148,7 +149,7 @@ public open class PathFollow3D : Node3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PATHFOLLOW3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PATHFOLLOW3D, this, scriptIndex) } public final fun setProgress(progress: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Performance.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Performance.kt index 3a62479fac..e5043a69df 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Performance.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Performance.kt @@ -7,10 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantCaster.ANY import godot.core.VariantParser.ARRAY @@ -20,7 +22,6 @@ import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -47,7 +48,7 @@ import kotlin.jvm.JvmStatic @GodotBaseType public object Performance : Object() { public override fun new(scriptIndex: Int): Unit { - getSingleton(ENGINECLASS_PERFORMANCE) + MemoryManager.getSingleton(ENGINECLASS_PERFORMANCE) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicalBone2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicalBone2D.kt index a7dbee5184..777538e71f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicalBone2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicalBone2D.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.NodePath -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -98,7 +99,7 @@ public open class PhysicalBone2D : RigidBody2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PHYSICALBONE2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PHYSICALBONE2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicalBone3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicalBone3D.kt index dce607d017..81b50e5088 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicalBone3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicalBone3D.kt @@ -9,9 +9,11 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Transform3D -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -19,7 +21,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.TRANSFORM3D import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -242,7 +243,7 @@ public open class PhysicalBone3D : PhysicsBody3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PHYSICALBONE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PHYSICALBONE3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicalBoneSimulator3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicalBoneSimulator3D.kt index 0aac73aaf5..510d8c5c08 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicalBoneSimulator3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicalBoneSimulator3D.kt @@ -7,16 +7,17 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser._RID -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -30,7 +31,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class PhysicalBoneSimulator3D : SkeletonModifier3D() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PHYSICALBONESIMULATOR3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PHYSICALBONESIMULATOR3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicalSkyMaterial.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicalSkyMaterial.kt index 0c4e149df1..26eab26765 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicalSkyMaterial.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicalSkyMaterial.kt @@ -9,15 +9,16 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -174,7 +175,7 @@ public open class PhysicalSkyMaterial : Material() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PHYSICALSKYMATERIAL, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PHYSICALSKYMATERIAL, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsBody2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsBody2D.kt index 1bfa5edce0..04d830a825 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsBody2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsBody2D.kt @@ -7,9 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Transform2D -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -19,7 +21,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.TRANSFORM2D import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Float import kotlin.Int @@ -34,7 +35,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class PhysicsBody2D internal constructor() : CollisionObject2D() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PHYSICSBODY2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PHYSICSBODY2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsBody3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsBody3D.kt index bd635ac0af..7f261d43e7 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsBody3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsBody3D.kt @@ -7,9 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Transform3D -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -20,7 +22,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.TRANSFORM3D import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Float import kotlin.Int @@ -104,7 +105,7 @@ public open class PhysicsBody3D internal constructor() : CollisionObject3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PHYSICSBODY3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PHYSICSBODY3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsDirectBodyState2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsDirectBodyState2D.kt index 1814eb12e8..98c40539ff 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsDirectBodyState2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsDirectBodyState2D.kt @@ -9,10 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID import godot.core.Transform2D -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -22,7 +24,6 @@ import godot.core.VariantParser.TRANSFORM2D import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -147,7 +148,7 @@ public open class PhysicsDirectBodyState2D internal constructor() : Object() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PHYSICSDIRECTBODYSTATE2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PHYSICSDIRECTBODYSTATE2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsDirectBodyState2DExtension.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsDirectBodyState2DExtension.kt index f592d8ea8c..2ce5a8cfdb 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsDirectBodyState2DExtension.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsDirectBodyState2DExtension.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import godot.core.RID import godot.core.Transform2D import godot.core.Vector2 @@ -27,7 +28,8 @@ import kotlin.Unit @GodotBaseType public open class PhysicsDirectBodyState2DExtension : PhysicsDirectBodyState2D() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PHYSICSDIRECTBODYSTATE2DEXTENSION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PHYSICSDIRECTBODYSTATE2DEXTENSION, this, + scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsDirectBodyState3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsDirectBodyState3D.kt index fe6803cb88..16f829ad58 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsDirectBodyState3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsDirectBodyState3D.kt @@ -9,11 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Basis import godot.core.RID import godot.core.Transform3D -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BASIS import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE @@ -24,7 +26,6 @@ import godot.core.VariantParser.TRANSFORM3D import godot.core.VariantParser.VECTOR3 import godot.core.VariantParser._RID import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -164,7 +165,7 @@ public open class PhysicsDirectBodyState3D internal constructor() : Object() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PHYSICSDIRECTBODYSTATE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PHYSICSDIRECTBODYSTATE3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsDirectBodyState3DExtension.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsDirectBodyState3DExtension.kt index 348ad3a9e8..e2597c8b28 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsDirectBodyState3DExtension.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsDirectBodyState3DExtension.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import godot.core.Basis import godot.core.RID import godot.core.Transform3D @@ -28,7 +29,8 @@ import kotlin.Unit @GodotBaseType public open class PhysicsDirectBodyState3DExtension : PhysicsDirectBodyState3D() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PHYSICSDIRECTBODYSTATE3DEXTENSION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PHYSICSDIRECTBODYSTATE3DEXTENSION, this, + scriptIndex) } public open fun _getTotalGravity(): Vector3 { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsDirectSpaceState2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsDirectSpaceState2D.kt index caa943de4a..1613156b67 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsDirectSpaceState2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsDirectSpaceState2D.kt @@ -7,10 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedFloat32Array -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.DICTIONARY @@ -18,7 +20,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_FLOAT_32_ARRAY import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Int import kotlin.Suppress @@ -32,7 +33,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class PhysicsDirectSpaceState2D internal constructor() : Object() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PHYSICSDIRECTSPACESTATE2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PHYSICSDIRECTSPACESTATE2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsDirectSpaceState2DExtension.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsDirectSpaceState2DExtension.kt index dca490f7f7..8cc3435e13 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsDirectSpaceState2DExtension.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsDirectSpaceState2DExtension.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser._RID -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -28,7 +29,8 @@ import kotlin.Unit @GodotBaseType public open class PhysicsDirectSpaceState2DExtension : PhysicsDirectSpaceState2D() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PHYSICSDIRECTSPACESTATE2DEXTENSION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PHYSICSDIRECTSPACESTATE2DEXTENSION, this, + scriptIndex) } public final fun isBodyExcludedFromQuery(body: RID): Boolean { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsDirectSpaceState3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsDirectSpaceState3D.kt index 6f451cd639..40d78f617c 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsDirectSpaceState3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsDirectSpaceState3D.kt @@ -7,10 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedFloat32Array -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.DICTIONARY @@ -18,7 +20,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_FLOAT_32_ARRAY import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Int import kotlin.Suppress @@ -32,7 +33,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class PhysicsDirectSpaceState3D internal constructor() : Object() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PHYSICSDIRECTSPACESTATE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PHYSICSDIRECTSPACESTATE3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsDirectSpaceState3DExtension.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsDirectSpaceState3DExtension.kt index fcba5dd199..7831145e9b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsDirectSpaceState3DExtension.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsDirectSpaceState3DExtension.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser._RID import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.NotImplementedError @@ -30,7 +31,8 @@ import kotlin.Unit @GodotBaseType public open class PhysicsDirectSpaceState3DExtension : PhysicsDirectSpaceState3D() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PHYSICSDIRECTSPACESTATE3DEXTENSION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PHYSICSDIRECTSPACESTATE3DEXTENSION, this, + scriptIndex) } public open fun _getClosestPointToObjectVolume(`object`: RID, point: Vector3): Vector3 { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsMaterial.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsMaterial.kt index e0844cbc89..a8a96949ae 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsMaterial.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsMaterial.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -80,7 +81,7 @@ public open class PhysicsMaterial : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PHYSICSMATERIAL, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PHYSICSMATERIAL, this, scriptIndex) } public final fun setFriction(friction: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsPointQueryParameters2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsPointQueryParameters2D.kt index 51ce3b9017..e04bd78853 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsPointQueryParameters2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsPointQueryParameters2D.kt @@ -9,9 +9,11 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -19,7 +21,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -110,7 +111,7 @@ public open class PhysicsPointQueryParameters2D : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PHYSICSPOINTQUERYPARAMETERS2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PHYSICSPOINTQUERYPARAMETERS2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsPointQueryParameters3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsPointQueryParameters3D.kt index 5b115ff187..7c6b563784 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsPointQueryParameters3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsPointQueryParameters3D.kt @@ -9,9 +9,11 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -19,7 +21,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -97,7 +98,7 @@ public open class PhysicsPointQueryParameters3D : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PHYSICSPOINTQUERYPARAMETERS3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PHYSICSPOINTQUERYPARAMETERS3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsRayQueryParameters2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsRayQueryParameters2D.kt index b9564cd0fe..fd14fcf9dd 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsRayQueryParameters2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsRayQueryParameters2D.kt @@ -9,9 +9,11 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -20,7 +22,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -123,7 +124,7 @@ public open class PhysicsRayQueryParameters2D : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PHYSICSRAYQUERYPARAMETERS2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PHYSICSRAYQUERYPARAMETERS2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsRayQueryParameters3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsRayQueryParameters3D.kt index a95011041e..b6a78d7bd0 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsRayQueryParameters3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsRayQueryParameters3D.kt @@ -9,9 +9,11 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -20,7 +22,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -135,7 +136,7 @@ public open class PhysicsRayQueryParameters3D : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PHYSICSRAYQUERYPARAMETERS3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PHYSICSRAYQUERYPARAMETERS3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsServer2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsServer2D.kt index 30f98f8c01..cb3b4dd71a 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsServer2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsServer2D.kt @@ -7,11 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.RID import godot.core.Transform2D -import godot.internal.reflection.TypeManager import godot.core.VariantCaster.ANY import godot.core.VariantParser.BOOL import godot.core.VariantParser.CALLABLE @@ -23,7 +25,6 @@ import godot.core.VariantParser.TRANSFORM2D import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -67,7 +68,7 @@ import kotlin.jvm.JvmStatic @GodotBaseType public object PhysicsServer2D : Object() { public override fun new(scriptIndex: Int): Unit { - getSingleton(ENGINECLASS_PHYSICSSERVER2D) + MemoryManager.getSingleton(ENGINECLASS_PHYSICSSERVER2D) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsServer2DManager.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsServer2DManager.kt index d546119f51..e85f29b061 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsServer2DManager.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsServer2DManager.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Callable -import godot.internal.reflection.TypeManager import godot.core.VariantParser.CALLABLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.String import kotlin.Suppress @@ -30,7 +31,7 @@ import kotlin.jvm.JvmStatic @GodotBaseType public object PhysicsServer2DManager : Object() { public override fun new(scriptIndex: Int): Unit { - getSingleton(ENGINECLASS_PHYSICSSERVER2DMANAGER) + MemoryManager.getSingleton(ENGINECLASS_PHYSICSSERVER2DMANAGER) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsServer3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsServer3D.kt index d2aa3d0969..3ce3da2874 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsServer3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsServer3D.kt @@ -7,12 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.AABB import godot.core.Callable import godot.core.RID import godot.core.Transform3D -import godot.internal.reflection.TypeManager import godot.core.VariantCaster.ANY import godot.core.VariantParser.BOOL import godot.core.VariantParser.CALLABLE @@ -24,7 +26,6 @@ import godot.core.VariantParser.TRANSFORM3D import godot.core.VariantParser.VECTOR3 import godot.core.VariantParser._RID import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -68,7 +69,7 @@ import kotlin.jvm.JvmStatic @GodotBaseType public object PhysicsServer3D : Object() { public override fun new(scriptIndex: Int): Unit { - getSingleton(ENGINECLASS_PHYSICSSERVER3D) + MemoryManager.getSingleton(ENGINECLASS_PHYSICSSERVER3D) } @JvmStatic diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsServer3DManager.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsServer3DManager.kt index 49bf074ac8..f098d5ff87 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsServer3DManager.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsServer3DManager.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Callable -import godot.internal.reflection.TypeManager import godot.core.VariantParser.CALLABLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.String import kotlin.Suppress @@ -30,7 +31,7 @@ import kotlin.jvm.JvmStatic @GodotBaseType public object PhysicsServer3DManager : Object() { public override fun new(scriptIndex: Int): Unit { - getSingleton(ENGINECLASS_PHYSICSSERVER3DMANAGER) + MemoryManager.getSingleton(ENGINECLASS_PHYSICSSERVER3DMANAGER) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsServer3DRenderingServerHandler.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsServer3DRenderingServerHandler.kt index 8e9b140df4..d6d01602ef 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsServer3DRenderingServerHandler.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsServer3DRenderingServerHandler.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.AABB -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -22,7 +23,8 @@ import kotlin.Unit @GodotBaseType public open class PhysicsServer3DRenderingServerHandler : Object() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PHYSICSSERVER3DRENDERINGSERVERHANDLER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PHYSICSSERVER3DRENDERINGSERVERHANDLER, this, + scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsShapeQueryParameters2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsShapeQueryParameters2D.kt index 66cb11443e..d6e40e6e34 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsShapeQueryParameters2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsShapeQueryParameters2D.kt @@ -9,10 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID import godot.core.Transform2D -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -24,7 +26,6 @@ import godot.core.VariantParser.TRANSFORM2D import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -181,7 +182,7 @@ public open class PhysicsShapeQueryParameters2D : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PHYSICSSHAPEQUERYPARAMETERS2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PHYSICSSHAPEQUERYPARAMETERS2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsShapeQueryParameters3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsShapeQueryParameters3D.kt index 973318d5eb..a704960d02 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsShapeQueryParameters3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsShapeQueryParameters3D.kt @@ -9,10 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID import godot.core.Transform3D -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -24,7 +26,6 @@ import godot.core.VariantParser.TRANSFORM3D import godot.core.VariantParser.VECTOR3 import godot.core.VariantParser._RID import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -181,7 +182,7 @@ public open class PhysicsShapeQueryParameters3D : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PHYSICSSHAPEQUERYPARAMETERS3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PHYSICSSHAPEQUERYPARAMETERS3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsTestMotionParameters2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsTestMotionParameters2D.kt index 50556e5af9..998b68614e 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsTestMotionParameters2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsTestMotionParameters2D.kt @@ -9,10 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID import godot.core.Transform2D -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -21,7 +23,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.TRANSFORM2D import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -126,7 +127,7 @@ public open class PhysicsTestMotionParameters2D : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PHYSICSTESTMOTIONPARAMETERS2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PHYSICSTESTMOTIONPARAMETERS2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsTestMotionParameters3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsTestMotionParameters3D.kt index 0daf31f46e..9db83fe0ee 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsTestMotionParameters3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsTestMotionParameters3D.kt @@ -9,10 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID import godot.core.Transform3D -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -22,7 +24,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.TRANSFORM3D import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -139,7 +140,7 @@ public open class PhysicsTestMotionParameters3D : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PHYSICSTESTMOTIONPARAMETERS3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PHYSICSTESTMOTIONPARAMETERS3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsTestMotionResult2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsTestMotionResult2D.kt index a508011df4..bb0dd9f5df 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsTestMotionResult2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsTestMotionResult2D.kt @@ -7,16 +7,17 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -30,7 +31,7 @@ import kotlin.Unit @GodotBaseType public open class PhysicsTestMotionResult2D : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PHYSICSTESTMOTIONRESULT2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PHYSICSTESTMOTIONRESULT2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsTestMotionResult3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsTestMotionResult3D.kt index 4a62aef4e4..46633dcc5b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsTestMotionResult3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PhysicsTestMotionResult3D.kt @@ -7,16 +7,17 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR3 import godot.core.VariantParser._RID import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -31,7 +32,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class PhysicsTestMotionResult3D : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PHYSICSTESTMOTIONRESULT3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PHYSICSTESTMOTIONRESULT3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PinJoint2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PinJoint2D.kt index 11d99d66bd..fb20065897 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PinJoint2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PinJoint2D.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -96,7 +97,7 @@ public open class PinJoint2D : Joint2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PINJOINT2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PINJOINT2D, this, scriptIndex) } public final fun setSoftness(softness: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PinJoint3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PinJoint3D.kt index ec3cc03c4c..0f944b2940 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PinJoint3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PinJoint3D.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -28,7 +29,7 @@ import kotlin.Unit @GodotBaseType public open class PinJoint3D : Joint3D() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PINJOINT3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PINJOINT3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PlaceholderCubemap.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PlaceholderCubemap.kt index b1fb7b9901..225d1f09ef 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PlaceholderCubemap.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PlaceholderCubemap.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -22,7 +23,7 @@ import kotlin.Unit @GodotBaseType public open class PlaceholderCubemap : PlaceholderTextureLayered() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PLACEHOLDERCUBEMAP, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PLACEHOLDERCUBEMAP, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PlaceholderCubemapArray.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PlaceholderCubemapArray.kt index 4d95c61621..6516a25bf3 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PlaceholderCubemapArray.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PlaceholderCubemapArray.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -23,7 +24,7 @@ import kotlin.Unit @GodotBaseType public open class PlaceholderCubemapArray : PlaceholderTextureLayered() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PLACEHOLDERCUBEMAPARRAY, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PLACEHOLDERCUBEMAPARRAY, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PlaceholderMaterial.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PlaceholderMaterial.kt index f077cd739a..949a5d844d 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PlaceholderMaterial.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PlaceholderMaterial.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -22,7 +23,7 @@ import kotlin.Unit @GodotBaseType public open class PlaceholderMaterial : Material() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PLACEHOLDERMATERIAL, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PLACEHOLDERMATERIAL, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PlaceholderMesh.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PlaceholderMesh.kt index fdcf99f09a..ed54107994 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PlaceholderMesh.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PlaceholderMesh.kt @@ -9,11 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.AABB -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -42,7 +43,7 @@ public open class PlaceholderMesh : Mesh() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PLACEHOLDERMESH, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PLACEHOLDERMESH, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PlaceholderTexture2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PlaceholderTexture2D.kt index a350066d80..9dd6d3bf33 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PlaceholderTexture2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PlaceholderTexture2D.kt @@ -9,12 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -45,7 +46,7 @@ public open class PlaceholderTexture2D : Texture2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PLACEHOLDERTEXTURE2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PLACEHOLDERTEXTURE2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PlaceholderTexture2DArray.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PlaceholderTexture2DArray.kt index 3900a5677e..00355654e5 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PlaceholderTexture2DArray.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PlaceholderTexture2DArray.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -24,7 +25,7 @@ import kotlin.Unit @GodotBaseType public open class PlaceholderTexture2DArray : PlaceholderTextureLayered() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PLACEHOLDERTEXTURE2DARRAY, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PLACEHOLDERTEXTURE2DARRAY, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PlaceholderTexture3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PlaceholderTexture3D.kt index f2ec92efad..33726701df 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PlaceholderTexture3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PlaceholderTexture3D.kt @@ -9,12 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR3I import godot.core.Vector3i -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -45,7 +46,7 @@ public open class PlaceholderTexture3D : Texture3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PLACEHOLDERTEXTURE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PLACEHOLDERTEXTURE3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PlaceholderTextureLayered.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PlaceholderTextureLayered.kt index 42c21bab20..88b924905a 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PlaceholderTextureLayered.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PlaceholderTextureLayered.kt @@ -9,13 +9,14 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2I import godot.core.Vector2i -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -57,7 +58,7 @@ public open class PlaceholderTextureLayered internal constructor() : TextureLaye } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PLACEHOLDERTEXTURELAYERED, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PLACEHOLDERTEXTURELAYERED, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PlaneMesh.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PlaneMesh.kt index 898d88f2c1..8156fac30f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PlaneMesh.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PlaneMesh.kt @@ -9,15 +9,16 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser.VECTOR3 import godot.core.Vector2 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -92,7 +93,7 @@ public open class PlaneMesh : PrimitiveMesh() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PLANEMESH, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PLANEMESH, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PointLight2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PointLight2D.kt index f84da72e42..e9280cdb09 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PointLight2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PointLight2D.kt @@ -9,14 +9,15 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -76,7 +77,7 @@ public open class PointLight2D : Light2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_POINTLIGHT2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_POINTLIGHT2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PointMesh.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PointMesh.kt index e17e1adc5a..cd6465132b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PointMesh.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PointMesh.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -25,7 +26,7 @@ import kotlin.Unit @GodotBaseType public open class PointMesh : PrimitiveMesh() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_POINTMESH, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_POINTMESH, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Polygon2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Polygon2D.kt index fd71ff350e..af10062908 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Polygon2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Polygon2D.kt @@ -9,13 +9,15 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.NodePath import godot.core.PackedColorArray import godot.core.PackedFloat32Array import godot.core.PackedVector2Array -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -30,7 +32,6 @@ import godot.core.VariantParser.PACKED_FLOAT_32_ARRAY import godot.core.VariantParser.PACKED_VECTOR2_ARRAY import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -229,7 +230,7 @@ public open class Polygon2D : Node2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_POLYGON2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_POLYGON2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PolygonOccluder3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PolygonOccluder3D.kt index 0f361efca3..7ad04784c0 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PolygonOccluder3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PolygonOccluder3D.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedVector2Array -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_VECTOR2_ARRAY -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -44,7 +45,7 @@ public open class PolygonOccluder3D : Occluder3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_POLYGONOCCLUDER3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_POLYGONOCCLUDER3D, this, scriptIndex) } public final fun setPolygon(polygon: PackedVector2Array): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PolygonPathFinder.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PolygonPathFinder.kt index 1da0e97f42..874dfbb2ee 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PolygonPathFinder.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PolygonPathFinder.kt @@ -7,11 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedInt32Array import godot.core.PackedVector2Array import godot.core.Rect2 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -21,7 +23,6 @@ import godot.core.VariantParser.PACKED_VECTOR2_ARRAY import godot.core.VariantParser.RECT2 import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -32,7 +33,7 @@ import kotlin.Unit @GodotBaseType public open class PolygonPathFinder : Resource() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_POLYGONPATHFINDER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_POLYGONPATHFINDER, this, scriptIndex) } public final fun setup(points: PackedVector2Array, connections: PackedInt32Array): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Popup.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Popup.kt index 51a7554675..5258a8e236 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Popup.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Popup.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import godot.core.Signal0 import kotlin.Int import kotlin.Suppress @@ -24,7 +25,7 @@ public open class Popup : Window() { public val popupHide: Signal0 by Signal0 public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_POPUP, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_POPUP, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PopupMenu.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PopupMenu.kt index 9c3a7c7045..e4b422bc7f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PopupMenu.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PopupMenu.kt @@ -7,11 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.Signal0 import godot.core.Signal1 -import godot.internal.reflection.TypeManager import godot.core.VariantCaster.ANY import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR @@ -20,7 +22,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -173,7 +174,7 @@ public open class PopupMenu : Popup() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_POPUPMENU, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_POPUPMENU, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PopupPanel.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PopupPanel.kt index 3e822baced..69ee78dec0 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PopupPanel.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PopupPanel.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -19,7 +20,7 @@ import kotlin.Unit @GodotBaseType public open class PopupPanel : Popup() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_POPUPPANEL, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_POPUPPANEL, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PortableCompressedTexture2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PortableCompressedTexture2D.kt index 3f2512b0bd..32f7946f88 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PortableCompressedTexture2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PortableCompressedTexture2D.kt @@ -9,8 +9,10 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -18,7 +20,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Float import kotlin.Int @@ -67,7 +68,7 @@ public open class PortableCompressedTexture2D : Texture2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PORTABLECOMPRESSEDTEXTURE2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PORTABLECOMPRESSEDTEXTURE2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PrimitiveMesh.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PrimitiveMesh.kt index c316d484d8..1bf862d882 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PrimitiveMesh.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PrimitiveMesh.kt @@ -9,16 +9,17 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.AABB -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -100,7 +101,7 @@ public open class PrimitiveMesh : Mesh() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PRIMITIVEMESH, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PRIMITIVEMESH, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PrismMesh.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PrismMesh.kt index 3f4daa8686..908a5d5fef 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PrismMesh.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PrismMesh.kt @@ -9,14 +9,15 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -88,7 +89,7 @@ public open class PrismMesh : PrimitiveMesh() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PRISMMESH, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PRISMMESH, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ProceduralSkyMaterial.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ProceduralSkyMaterial.kt index 75828ce53c..29072d0428 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ProceduralSkyMaterial.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ProceduralSkyMaterial.kt @@ -9,15 +9,16 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -209,7 +210,7 @@ public open class ProceduralSkyMaterial : Material() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PROCEDURALSKYMATERIAL, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PROCEDURALSKYMATERIAL, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ProgressBar.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ProgressBar.kt index db490e41c4..f0820267bb 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ProgressBar.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ProgressBar.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -72,7 +73,7 @@ public open class ProgressBar : Range() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PROGRESSBAR, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PROGRESSBAR, this, scriptIndex) } public final fun setFillMode(mode: Int): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ProjectSettings.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ProjectSettings.kt index 5574beec83..af8c6ccc97 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ProjectSettings.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ProjectSettings.kt @@ -7,11 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.Signal0 import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantCaster.ANY import godot.core.VariantParser.ARRAY @@ -21,7 +23,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -57,7 +58,7 @@ public object ProjectSettings : Object() { public val settingsChanged: Signal0 by Signal0 public override fun new(scriptIndex: Int): Unit { - getSingleton(ENGINECLASS_PROJECTSETTINGS) + MemoryManager.getSingleton(ENGINECLASS_PROJECTSETTINGS) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PropertyTweener.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PropertyTweener.kt index 5742f35fbc..d4b905ba82 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PropertyTweener.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/PropertyTweener.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Callable -import godot.internal.reflection.TypeManager import godot.core.VariantCaster.ANY import godot.core.VariantParser.CALLABLE import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Double import kotlin.Int @@ -31,7 +32,7 @@ import kotlin.Unit @GodotBaseType public open class PropertyTweener : Tweener() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_PROPERTYTWEENER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_PROPERTYTWEENER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/QuadMesh.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/QuadMesh.kt index 4d981a996a..6d466f3ae1 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/QuadMesh.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/QuadMesh.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -20,7 +21,7 @@ import kotlin.Unit @GodotBaseType public open class QuadMesh : PlaneMesh() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_QUADMESH, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_QUADMESH, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/QuadOccluder3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/QuadOccluder3D.kt index 2d96e0655c..cf1ef5a8a3 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/QuadOccluder3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/QuadOccluder3D.kt @@ -9,12 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -40,7 +41,7 @@ public open class QuadOccluder3D : Occluder3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_QUADOCCLUDER3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_QUADOCCLUDER3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDAttachmentFormat.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDAttachmentFormat.kt index 5e5c45b5c1..bd6ac5d98a 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDAttachmentFormat.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDAttachmentFormat.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -57,7 +58,7 @@ public open class RDAttachmentFormat : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RDATTACHMENTFORMAT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RDATTACHMENTFORMAT, this, scriptIndex) } public final fun setFormat(pMember: RenderingDevice.DataFormat): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDFramebufferPass.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDFramebufferPass.kt index 35093b3d0b..157f7b8367 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDFramebufferPass.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDFramebufferPass.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedInt32Array -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_INT_32_ARRAY -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -89,7 +90,7 @@ public open class RDFramebufferPass : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RDFRAMEBUFFERPASS, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RDFRAMEBUFFERPASS, this, scriptIndex) } public final fun setColorAttachments(pMember: PackedInt32Array): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDPipelineColorBlendState.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDPipelineColorBlendState.kt index dba5c4f0a4..3682f8a165 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDPipelineColorBlendState.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDPipelineColorBlendState.kt @@ -9,16 +9,17 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -77,7 +78,7 @@ public open class RDPipelineColorBlendState : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RDPIPELINECOLORBLENDSTATE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RDPIPELINECOLORBLENDSTATE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDPipelineColorBlendStateAttachment.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDPipelineColorBlendStateAttachment.kt index 788e32f12e..b71642a9c0 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDPipelineColorBlendStateAttachment.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDPipelineColorBlendStateAttachment.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -211,7 +212,8 @@ public open class RDPipelineColorBlendStateAttachment : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RDPIPELINECOLORBLENDSTATEATTACHMENT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RDPIPELINECOLORBLENDSTATEATTACHMENT, this, + scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDPipelineDepthStencilState.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDPipelineDepthStencilState.kt index ccb942f29e..baba1ff49b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDPipelineDepthStencilState.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDPipelineDepthStencilState.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -269,7 +270,7 @@ public open class RDPipelineDepthStencilState : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RDPIPELINEDEPTHSTENCILSTATE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RDPIPELINEDEPTHSTENCILSTATE, this, scriptIndex) } public final fun setEnableDepthTest(pMember: Boolean): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDPipelineMultisampleState.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDPipelineMultisampleState.kt index 78252bc2ff..6f95588c39 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDPipelineMultisampleState.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDPipelineMultisampleState.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -111,7 +112,7 @@ public open class RDPipelineMultisampleState : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RDPIPELINEMULTISAMPLESTATE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RDPIPELINEMULTISAMPLESTATE, this, scriptIndex) } public final fun setSampleCount(pMember: RenderingDevice.TextureSamples): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDPipelineRasterizationState.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDPipelineRasterizationState.kt index e087026b24..b3a3dc5cda 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDPipelineRasterizationState.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDPipelineRasterizationState.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -157,7 +158,7 @@ public open class RDPipelineRasterizationState : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RDPIPELINERASTERIZATIONSTATE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RDPIPELINERASTERIZATIONSTATE, this, scriptIndex) } public final fun setEnableDepthClamp(pMember: Boolean): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDPipelineSpecializationConstant.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDPipelineSpecializationConstant.kt index d7f553a38d..7e8f9a3ca8 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDPipelineSpecializationConstant.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDPipelineSpecializationConstant.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantCaster.ANY import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Int import kotlin.Long @@ -54,7 +55,8 @@ public open class RDPipelineSpecializationConstant : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RDPIPELINESPECIALIZATIONCONSTANT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RDPIPELINESPECIALIZATIONCONSTANT, this, + scriptIndex) } public final fun setValue(`value`: Any?): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDSamplerState.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDSamplerState.kt index f75ef769a6..c8e0a46ccc 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDSamplerState.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDSamplerState.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -213,7 +214,7 @@ public open class RDSamplerState : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RDSAMPLERSTATE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RDSAMPLERSTATE, this, scriptIndex) } public final fun setMagFilter(pMember: RenderingDevice.SamplerFilter): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDShaderFile.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDShaderFile.kt index 3af2dc1c3a..756a847e7e 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDShaderFile.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDShaderFile.kt @@ -7,16 +7,17 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.String import kotlin.Suppress @@ -46,7 +47,7 @@ public open class RDShaderFile : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RDSHADERFILE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RDSHADERFILE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDShaderSPIRV.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDShaderSPIRV.kt index fbf5c54282..667b723421 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDShaderSPIRV.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDShaderSPIRV.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedByteArray -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.String import kotlin.Suppress @@ -147,7 +148,7 @@ public open class RDShaderSPIRV : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RDSHADERSPIRV, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RDSHADERSPIRV, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDShaderSource.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDShaderSource.kt index 913cde652c..a22e6dadea 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDShaderSource.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDShaderSource.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.String @@ -95,7 +96,7 @@ public open class RDShaderSource : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RDSHADERSOURCE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RDSHADERSOURCE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDTextureFormat.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDTextureFormat.kt index 17b22d5f98..9f0b2d6840 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDTextureFormat.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDTextureFormat.kt @@ -8,11 +8,12 @@ package godot import godot.RenderingDevice.TextureUsageBitsValue import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -124,7 +125,7 @@ public open class RDTextureFormat : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RDTEXTUREFORMAT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RDTEXTUREFORMAT, this, scriptIndex) } public final fun setFormat(pMember: RenderingDevice.DataFormat): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDTextureView.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDTextureView.kt index 539339c2c1..998d354e74 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDTextureView.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDTextureView.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -80,7 +81,7 @@ public open class RDTextureView : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RDTEXTUREVIEW, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RDTEXTUREVIEW, this, scriptIndex) } public final fun setFormatOverride(pMember: RenderingDevice.DataFormat): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDUniform.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDUniform.kt index 5f257c9047..d247751da6 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDUniform.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDUniform.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser._RID -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -50,7 +51,7 @@ public open class RDUniform : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RDUNIFORM, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RDUNIFORM, this, scriptIndex) } public final fun setUniformType(pMember: RenderingDevice.UniformType): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDVertexAttribute.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDVertexAttribute.kt index e869254d66..bf0c22f7fb 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDVertexAttribute.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RDVertexAttribute.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -64,7 +65,7 @@ public open class RDVertexAttribute : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RDVERTEXATTRIBUTE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RDVERTEXATTRIBUTE, this, scriptIndex) } public final fun setLocation(pMember: Long): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RandomNumberGenerator.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RandomNumberGenerator.kt index 21381d00f2..728aa2eb7c 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RandomNumberGenerator.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RandomNumberGenerator.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedFloat32Array -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_FLOAT_32_ARRAY -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -88,7 +89,7 @@ public open class RandomNumberGenerator : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RANDOMNUMBERGENERATOR, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RANDOMNUMBERGENERATOR, this, scriptIndex) } public final fun setSeed(seed: Long): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Range.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Range.kt index 3b2e3b6b1a..ad8103632e 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Range.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Range.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.Signal1 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Int @@ -161,7 +162,7 @@ public open class Range : Control() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RANGE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RANGE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RayCast2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RayCast2D.kt index 8ed680b865..b7a0d86f9d 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RayCast2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RayCast2D.kt @@ -9,9 +9,11 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL @@ -19,7 +21,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -124,7 +125,7 @@ public open class RayCast2D : Node2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RAYCAST2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RAYCAST2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RayCast3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RayCast3D.kt index 0dc2355d03..42b0968e40 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RayCast3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RayCast3D.kt @@ -9,10 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.LONG @@ -21,7 +23,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR3 import godot.core.VariantParser._RID import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -168,7 +169,7 @@ public open class RayCast3D : Node3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RAYCAST3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RAYCAST3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RectangleShape2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RectangleShape2D.kt index 1050f6732d..f093474234 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RectangleShape2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RectangleShape2D.kt @@ -9,12 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -41,7 +42,7 @@ public open class RectangleShape2D : Shape2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RECTANGLESHAPE2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RECTANGLESHAPE2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RefCounted.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RefCounted.kt index 1d610ca995..ced101e639 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RefCounted.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RefCounted.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -40,7 +41,7 @@ import kotlin.Unit @GodotBaseType public open class RefCounted : Object() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_REFCOUNTED, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_REFCOUNTED, this, scriptIndex) } public final override fun _onDestroy(): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ReferenceRect.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ReferenceRect.kt index cd5f6d6bd6..7e01154d67 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ReferenceRect.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ReferenceRect.kt @@ -9,14 +9,15 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -68,7 +69,7 @@ public open class ReferenceRect : Control() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_REFERENCERECT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_REFERENCERECT, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ReflectionProbe.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ReflectionProbe.kt index a3a59c8e28..174b70fef4 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ReflectionProbe.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ReflectionProbe.kt @@ -9,9 +9,11 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE @@ -19,7 +21,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -244,7 +245,7 @@ public open class ReflectionProbe : VisualInstance3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_REFLECTIONPROBE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_REFLECTIONPROBE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RegEx.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RegEx.kt index 0e29cd6a11..03152a366b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RegEx.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RegEx.kt @@ -7,9 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedStringArray -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -18,7 +20,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -89,7 +90,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class RegEx : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_REGEX, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_REGEX, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RegExMatch.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RegExMatch.kt index 83fb69cbcf..822e256cb3 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RegExMatch.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RegExMatch.kt @@ -7,16 +7,17 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedStringArray -import godot.internal.reflection.TypeManager import godot.core.VariantCaster.ANY import godot.core.VariantParser.DICTIONARY import godot.core.VariantParser.LONG import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Int import kotlin.Long @@ -57,7 +58,7 @@ public open class RegExMatch : RefCounted() { get() = getStrings() public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_REGEXMATCH, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_REGEXMATCH, this, scriptIndex) } public final fun getSubject(): String { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RegisterEngineTypes.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RegisterEngineTypes.kt index 5a653cdf6c..920ddc7ffa 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RegisterEngineTypes.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RegisterEngineTypes.kt @@ -1,7 +1,7 @@ // THIS FILE IS GENERATED! DO NOT EDIT IT MANUALLY! package godot -import godot.internal.reflection.TypeManager +import godot.`internal`.reflection.TypeManager import godot.core.VariantParser.OBJECT import godot.core.variantMapper import kotlin.Unit diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RemoteTransform2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RemoteTransform2D.kt index 283002e0ce..3eefb0546b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RemoteTransform2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RemoteTransform2D.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.NodePath -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -84,7 +85,7 @@ public open class RemoteTransform2D : Node2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_REMOTETRANSFORM2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_REMOTETRANSFORM2D, this, scriptIndex) } public final fun setRemoteNode(path: NodePath): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RemoteTransform3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RemoteTransform3D.kt index 3425febf49..8e2a113f9d 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RemoteTransform3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RemoteTransform3D.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.NodePath -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -84,7 +85,7 @@ public open class RemoteTransform3D : Node3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_REMOTETRANSFORM3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_REMOTETRANSFORM3D, this, scriptIndex) } public final fun setRemoteNode(path: NodePath): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderData.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderData.kt index c8baa99945..88942b6345 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderData.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderData.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantParser.OBJECT import godot.core.VariantParser._RID -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -24,7 +25,7 @@ import kotlin.Unit @GodotBaseType public open class RenderData internal constructor() : Object() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RENDERDATA, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RENDERDATA, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderDataExtension.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderDataExtension.kt index cda6c97917..d0a276cb6f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderDataExtension.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderDataExtension.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import godot.core.RID import kotlin.Int import kotlin.NotImplementedError @@ -19,7 +20,7 @@ import kotlin.Unit @GodotBaseType public open class RenderDataExtension : RenderData() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RENDERDATAEXTENSION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RENDERDATAEXTENSION, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderDataRD.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderDataRD.kt index 6cd4fc1b79..10a0a61246 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderDataRD.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderDataRD.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,7 @@ import kotlin.Unit @GodotBaseType public open class RenderDataRD : RenderData() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RENDERDATARD, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RENDERDATARD, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderSceneBuffers.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderSceneBuffers.kt index 44db552654..d1129ca2ad 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderSceneBuffers.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderSceneBuffers.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -25,7 +26,7 @@ import kotlin.Unit @GodotBaseType public open class RenderSceneBuffers internal constructor() : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RENDERSCENEBUFFERS, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RENDERSCENEBUFFERS, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderSceneBuffersConfiguration.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderSceneBuffersConfiguration.kt index 51825676aa..914eba55de 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderSceneBuffersConfiguration.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderSceneBuffersConfiguration.kt @@ -9,16 +9,17 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2I import godot.core.VariantParser._RID import godot.core.Vector2i -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -136,7 +137,7 @@ public open class RenderSceneBuffersConfiguration : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RENDERSCENEBUFFERSCONFIGURATION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RENDERSCENEBUFFERSCONFIGURATION, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderSceneBuffersExtension.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderSceneBuffersExtension.kt index 72869b46a2..dffd3b66ee 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderSceneBuffersExtension.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderSceneBuffersExtension.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Boolean import kotlin.Float import kotlin.Int @@ -19,7 +20,7 @@ import kotlin.Unit @GodotBaseType public open class RenderSceneBuffersExtension : RenderSceneBuffers() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RENDERSCENEBUFFERSEXTENSION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RENDERSCENEBUFFERSEXTENSION, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderSceneBuffersRD.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderSceneBuffersRD.kt index c11801bc68..ef054f85ba 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderSceneBuffersRD.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderSceneBuffersRD.kt @@ -7,10 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -20,7 +22,6 @@ import godot.core.VariantParser.STRING_NAME import godot.core.VariantParser.VECTOR2I import godot.core.VariantParser._RID import godot.core.Vector2i -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -42,7 +43,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class RenderSceneBuffersRD : RenderSceneBuffers() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RENDERSCENEBUFFERSRD, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RENDERSCENEBUFFERSRD, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderSceneData.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderSceneData.kt index e14b11a56b..d0d1a8491b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderSceneData.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderSceneData.kt @@ -7,18 +7,19 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Projection import godot.core.RID import godot.core.Transform3D -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.PROJECTION import godot.core.VariantParser.TRANSFORM3D import godot.core.VariantParser.VECTOR3 import godot.core.VariantParser._RID import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -31,7 +32,7 @@ import kotlin.Unit @GodotBaseType public open class RenderSceneData internal constructor() : Object() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RENDERSCENEDATA, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RENDERSCENEDATA, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderSceneDataExtension.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderSceneDataExtension.kt index 5e53d8a74a..8bce7505b4 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderSceneDataExtension.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderSceneDataExtension.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import godot.core.Projection import godot.core.RID import godot.core.Transform3D @@ -23,7 +24,7 @@ import kotlin.Unit @GodotBaseType public open class RenderSceneDataExtension : RenderSceneData() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RENDERSCENEDATAEXTENSION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RENDERSCENEDATAEXTENSION, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderSceneDataRD.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderSceneDataRD.kt index 77c9ed69d6..1f21b25c0a 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderSceneDataRD.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderSceneDataRD.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,7 @@ import kotlin.Unit @GodotBaseType public open class RenderSceneDataRD : RenderSceneData() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RENDERSCENEDATARD, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RENDERSCENEDATARD, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderingDevice.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderingDevice.kt index 7b3ff7a909..2d1ac0fb37 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderingDevice.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderingDevice.kt @@ -7,6 +7,9 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.PackedByteArray @@ -14,7 +17,6 @@ import godot.core.PackedColorArray import godot.core.PackedInt64Array import godot.core.RID import godot.core.Rect2 -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -33,7 +35,6 @@ import godot.core.VariantParser.VECTOR3 import godot.core.VariantParser._RID import godot.core.Vector2i import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Float import kotlin.Int @@ -69,7 +70,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class RenderingDevice internal constructor() : Object() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RENDERINGDEVICE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RENDERINGDEVICE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderingServer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderingServer.kt index f5d579f3d3..f376eedf3b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderingServer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RenderingServer.kt @@ -7,6 +7,9 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.AABB import godot.core.Basis @@ -27,7 +30,6 @@ import godot.core.Signal0 import godot.core.StringName import godot.core.Transform2D import godot.core.Transform3D -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantCaster.ANY import godot.core.VariantParser.ARRAY @@ -61,7 +63,6 @@ import godot.core.Vector2 import godot.core.Vector2i import godot.core.Vector3 import godot.core.Vector3i -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -186,7 +187,7 @@ public object RenderingServer : Object() { public val framePostDraw: Signal0 by Signal0 public override fun new(scriptIndex: Int): Unit { - getSingleton(ENGINECLASS_RENDERINGSERVER) + MemoryManager.getSingleton(ENGINECLASS_RENDERINGSERVER) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Resource.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Resource.kt index bcb4686b0b..bc81eab33d 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Resource.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Resource.kt @@ -7,16 +7,17 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID import godot.core.Signal0 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.VariantParser._RID -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.String @@ -122,7 +123,7 @@ public open class Resource : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RESOURCE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RESOURCE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ResourceFormatLoader.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ResourceFormatLoader.kt index 687490e397..ef4793bd10 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ResourceFormatLoader.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ResourceFormatLoader.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import godot.core.Dictionary import godot.core.PackedStringArray import godot.core.StringName @@ -36,7 +37,7 @@ import kotlin.Unit @GodotBaseType public open class ResourceFormatLoader : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RESOURCEFORMATLOADER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RESOURCEFORMATLOADER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ResourceFormatSaver.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ResourceFormatSaver.kt index b6301aa36b..51b4d014fe 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ResourceFormatSaver.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ResourceFormatSaver.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import godot.core.PackedStringArray import kotlin.Boolean import kotlin.Int @@ -29,7 +30,7 @@ import kotlin.Unit @GodotBaseType public open class ResourceFormatSaver : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RESOURCEFORMATSAVER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RESOURCEFORMATSAVER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ResourceImporter.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ResourceImporter.kt index 1fa2a4b57f..9b83411ca3 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ResourceImporter.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ResourceImporter.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -19,7 +20,7 @@ import kotlin.Unit @GodotBaseType public open class ResourceImporter internal constructor() : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RESOURCEIMPORTER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RESOURCEIMPORTER, this, scriptIndex) } public enum class ImportOrder( diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ResourceLoader.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ResourceLoader.kt index b9cf5cfc1c..101a7af46b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ResourceLoader.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ResourceLoader.kt @@ -7,9 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedStringArray -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -18,7 +20,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -40,7 +41,7 @@ import kotlin.jvm.JvmStatic @GodotBaseType public object ResourceLoader : Object() { public override fun new(scriptIndex: Int): Unit { - getSingleton(ENGINECLASS_RESOURCELOADER) + MemoryManager.getSingleton(ENGINECLASS_RESOURCELOADER) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ResourcePreloader.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ResourcePreloader.kt index 11e8b24cc2..bbc9f79fa4 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ResourcePreloader.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ResourcePreloader.kt @@ -7,16 +7,17 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedStringArray import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -32,7 +33,7 @@ import kotlin.Unit @GodotBaseType public open class ResourcePreloader : Node() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RESOURCEPRELOADER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RESOURCEPRELOADER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ResourceSaver.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ResourceSaver.kt index f27e796018..4458c7c4ac 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ResourceSaver.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ResourceSaver.kt @@ -7,16 +7,17 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedStringArray -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -36,7 +37,7 @@ import kotlin.jvm.JvmStatic @GodotBaseType public object ResourceSaver : Object() { public override fun new(scriptIndex: Int): Unit { - getSingleton(ENGINECLASS_RESOURCESAVER) + MemoryManager.getSingleton(ENGINECLASS_RESOURCESAVER) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ResourceUID.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ResourceUID.kt index d5346557cc..5aa0ebdd34 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ResourceUID.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ResourceUID.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -37,7 +38,7 @@ public object ResourceUID : Object() { public final const val INVALID_ID: Long = -1 public override fun new(scriptIndex: Int): Unit { - getSingleton(ENGINECLASS_RESOURCEUID) + MemoryManager.getSingleton(ENGINECLASS_RESOURCEUID) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RibbonTrailMesh.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RibbonTrailMesh.kt index a50b2323f0..489fa779ae 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RibbonTrailMesh.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RibbonTrailMesh.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -102,7 +103,7 @@ public open class RibbonTrailMesh : PrimitiveMesh() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RIBBONTRAILMESH, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RIBBONTRAILMESH, this, scriptIndex) } public final fun setSize(size: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RichTextEffect.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RichTextEffect.kt index d219a34c47..303a3bb4f5 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RichTextEffect.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RichTextEffect.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Boolean import kotlin.Int import kotlin.NotImplementedError @@ -35,7 +36,7 @@ import kotlin.Unit @GodotBaseType public open class RichTextEffect : Resource() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RICHTEXTEFFECT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RICHTEXTEFFECT, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RichTextLabel.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RichTextLabel.kt index 2d971f7770..15b48c637e 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RichTextLabel.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RichTextLabel.kt @@ -7,6 +7,9 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.Dictionary @@ -15,7 +18,6 @@ import godot.core.PackedStringArray import godot.core.Rect2 import godot.core.Signal0 import godot.core.Signal1 -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantCaster.ANY import godot.core.VariantParser.ARRAY @@ -32,7 +34,6 @@ import godot.core.VariantParser.RECT2 import godot.core.VariantParser.STRING import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -390,7 +391,7 @@ public open class RichTextLabel : Control() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RICHTEXTLABEL, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RICHTEXTLABEL, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RigidBody2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RigidBody2D.kt index ae418e06e8..6f902eb287 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RigidBody2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RigidBody2D.kt @@ -9,12 +9,14 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID import godot.core.Signal0 import godot.core.Signal1 import godot.core.Signal4 -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -24,7 +26,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -436,7 +437,7 @@ public open class RigidBody2D : PhysicsBody2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RIGIDBODY2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RIGIDBODY2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RigidBody3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RigidBody3D.kt index 9e074ba741..35e22f37fa 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RigidBody3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RigidBody3D.kt @@ -9,13 +9,15 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Basis import godot.core.RID import godot.core.Signal0 import godot.core.Signal1 import godot.core.Signal4 -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BASIS @@ -26,7 +28,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -441,7 +442,7 @@ public open class RigidBody3D : PhysicsBody3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_RIGIDBODY3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_RIGIDBODY3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RootMotionView.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RootMotionView.kt index 56a8fb8e43..4f87d00962 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RootMotionView.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/RootMotionView.kt @@ -9,16 +9,17 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.NodePath -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -97,7 +98,7 @@ public open class RootMotionView : VisualInstance3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ROOTMOTIONVIEW, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ROOTMOTIONVIEW, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SceneMultiplayer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SceneMultiplayer.kt index d495555589..1191606275 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SceneMultiplayer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SceneMultiplayer.kt @@ -7,6 +7,9 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.NodePath @@ -14,7 +17,6 @@ import godot.core.PackedByteArray import godot.core.PackedInt32Array import godot.core.Signal1 import godot.core.Signal2 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.CALLABLE import godot.core.VariantParser.DOUBLE @@ -23,7 +25,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.PACKED_INT_32_ARRAY -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Int @@ -179,7 +180,7 @@ public open class SceneMultiplayer : MultiplayerAPI() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SCENEMULTIPLAYER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SCENEMULTIPLAYER, this, scriptIndex) } public final fun setRootPath(path: NodePath): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SceneReplicationConfig.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SceneReplicationConfig.kt index dc5ce09e88..d1d517ff2c 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SceneReplicationConfig.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SceneReplicationConfig.kt @@ -7,16 +7,17 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.NodePath -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -27,7 +28,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class SceneReplicationConfig : Resource() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SCENEREPLICATIONCONFIG, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SCENEREPLICATIONCONFIG, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SceneState.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SceneState.kt index d7cd127445..ace7b400a0 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SceneState.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SceneState.kt @@ -7,11 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.PackedStringArray import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantCaster.ANY import godot.core.VariantParser.ARRAY @@ -22,7 +24,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -42,7 +43,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class SceneState internal constructor() : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SCENESTATE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SCENESTATE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SceneTree.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SceneTree.kt index 4974645329..8227258227 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SceneTree.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SceneTree.kt @@ -7,12 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.Signal0 import godot.core.Signal1 import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantCaster.ANY import godot.core.VariantParser.ARRAY @@ -24,7 +26,6 @@ import godot.core.VariantParser.NODE_PATH import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -243,7 +244,7 @@ public open class SceneTree : MainLoop() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SCENETREE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SCENETREE, this, scriptIndex) } public final fun getRoot(): Window? { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SceneTreeTimer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SceneTreeTimer.kt index 2e22ead6f2..3b34524f27 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SceneTreeTimer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SceneTreeTimer.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal0 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Int import kotlin.Suppress @@ -67,7 +68,7 @@ public open class SceneTreeTimer internal constructor() : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SCENETREETIMER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SCENETREETIMER, this, scriptIndex) } public final fun setTimeLeft(time: Double): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Script.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Script.kt index a665cc9c4d..1398003900 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Script.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Script.kt @@ -7,10 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantCaster.ANY import godot.core.VariantParser.ARRAY @@ -21,7 +23,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -55,7 +56,7 @@ public open class Script internal constructor() : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SCRIPT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SCRIPT, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ScriptExtension.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ScriptExtension.kt index cbe74c8e2b..defb8f881a 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ScriptExtension.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ScriptExtension.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import godot.core.Dictionary import godot.core.StringName import godot.core.VariantArray @@ -21,7 +22,7 @@ import kotlin.Unit @GodotBaseType public open class ScriptExtension : Script() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SCRIPTEXTENSION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SCRIPTEXTENSION, this, scriptIndex) } public open fun _editorCanReloadFromFile(): Boolean { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ScriptLanguage.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ScriptLanguage.kt index 56e22c3abc..614a8b820b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ScriptLanguage.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ScriptLanguage.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -15,7 +16,7 @@ import kotlin.Unit @GodotBaseType public open class ScriptLanguage internal constructor() : Object() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SCRIPTLANGUAGE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SCRIPTLANGUAGE, this, scriptIndex) } public enum class ScriptNameCasing( diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ScriptLanguageExtension.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ScriptLanguageExtension.kt index b1eafb2113..53239ba5f3 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ScriptLanguageExtension.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ScriptLanguageExtension.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import godot.core.Dictionary import godot.core.PackedStringArray import godot.core.StringName @@ -23,7 +24,7 @@ import kotlin.Unit @GodotBaseType public open class ScriptLanguageExtension : ScriptLanguage() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SCRIPTLANGUAGEEXTENSION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SCRIPTLANGUAGEEXTENSION, this, scriptIndex) } public open fun _getName(): String { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ScrollBar.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ScrollBar.kt index fda0b6c130..c27a8d34e6 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ScrollBar.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ScrollBar.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal0 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -44,7 +45,7 @@ public open class ScrollBar internal constructor() : Range() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SCROLLBAR, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SCROLLBAR, this, scriptIndex) } public final fun setCustomStep(step: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ScrollContainer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ScrollContainer.kt index fc9f88fdc1..addcb85b45 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ScrollContainer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ScrollContainer.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal0 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -157,7 +158,7 @@ public open class ScrollContainer : Container() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SCROLLCONTAINER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SCROLLCONTAINER, this, scriptIndex) } public final fun setHScroll(`value`: Int): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SegmentShape2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SegmentShape2D.kt index 5e752ec262..9fbdb5faa3 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SegmentShape2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SegmentShape2D.kt @@ -9,12 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -51,7 +52,7 @@ public open class SegmentShape2D : Shape2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SEGMENTSHAPE2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SEGMENTSHAPE2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Semaphore.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Semaphore.kt index e0b72f6dd3..a02c213581 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Semaphore.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Semaphore.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -32,7 +33,7 @@ import kotlin.jvm.JvmName @GodotBaseType public open class Semaphore : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SEMAPHORE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SEMAPHORE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SeparationRayShape2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SeparationRayShape2D.kt index 617ad0277a..aa76e192fe 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SeparationRayShape2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SeparationRayShape2D.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -54,7 +55,7 @@ public open class SeparationRayShape2D : Shape2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SEPARATIONRAYSHAPE2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SEPARATIONRAYSHAPE2D, this, scriptIndex) } public final fun setLength(length: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SeparationRayShape3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SeparationRayShape3D.kt index 6f6e913604..c5eae5543c 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SeparationRayShape3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SeparationRayShape3D.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -54,7 +55,7 @@ public open class SeparationRayShape3D : Shape3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SEPARATIONRAYSHAPE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SEPARATIONRAYSHAPE3D, this, scriptIndex) } public final fun setLength(length: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Separator.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Separator.kt index 2889dfb52a..1e6d911636 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Separator.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Separator.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,7 @@ import kotlin.Unit @GodotBaseType public open class Separator internal constructor() : Control() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SEPARATOR, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SEPARATOR, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Shader.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Shader.kt index a2da6d46d1..ab65722b2f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Shader.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Shader.kt @@ -7,9 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -18,7 +20,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -51,7 +52,7 @@ public open class Shader : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SHADER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SHADER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ShaderGlobalsOverride.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ShaderGlobalsOverride.kt index fc9be0f3d6..3a074af1b5 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ShaderGlobalsOverride.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ShaderGlobalsOverride.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -27,7 +28,7 @@ import kotlin.Unit @GodotBaseType public open class ShaderGlobalsOverride : Node() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SHADERGLOBALSOVERRIDE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SHADERGLOBALSOVERRIDE, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ShaderInclude.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ShaderInclude.kt index f8535de587..4c5dd25e45 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ShaderInclude.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ShaderInclude.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.String import kotlin.Suppress @@ -39,7 +40,7 @@ public open class ShaderInclude : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SHADERINCLUDE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SHADERINCLUDE, this, scriptIndex) } public final fun setCode(code: String): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ShaderMaterial.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ShaderMaterial.kt index 066293117b..8d2543cd6f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ShaderMaterial.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ShaderMaterial.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantCaster.ANY import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Int import kotlin.Suppress @@ -45,7 +46,7 @@ public open class ShaderMaterial : Material() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SHADERMATERIAL, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SHADERMATERIAL, this, scriptIndex) } public final fun setShader(shader: Shader?): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Shape2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Shape2D.kt index dd2f708d02..a0add2800e 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Shape2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Shape2D.kt @@ -7,13 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.PackedVector2Array import godot.core.RID import godot.core.Rect2 import godot.core.Transform2D -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE @@ -25,7 +27,6 @@ import godot.core.VariantParser.TRANSFORM2D import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -56,7 +57,7 @@ public open class Shape2D internal constructor() : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SHAPE2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SHAPE2D, this, scriptIndex) } public final fun setCustomSolverBias(bias: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Shape3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Shape3D.kt index dae103658b..d07589e8e8 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Shape3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Shape3D.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -58,7 +59,7 @@ public open class Shape3D internal constructor() : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SHAPE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SHAPE3D, this, scriptIndex) } public final fun setCustomSolverBias(bias: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ShapeCast2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ShapeCast2D.kt index 7bac59fdf1..659bc1005e 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ShapeCast2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ShapeCast2D.kt @@ -9,9 +9,11 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -20,7 +22,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -146,7 +147,7 @@ public open class ShapeCast2D : Node2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SHAPECAST2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SHAPECAST2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ShapeCast3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ShapeCast3D.kt index 1dbaff6ba3..b48fee0d1e 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ShapeCast3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ShapeCast3D.kt @@ -9,10 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE @@ -22,7 +24,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR3 import godot.core.VariantParser._RID import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -166,7 +167,7 @@ public open class ShapeCast3D : Node3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SHAPECAST3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SHAPECAST3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Shortcut.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Shortcut.kt index fed2b40310..4c40773455 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Shortcut.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Shortcut.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -46,7 +47,7 @@ public open class Shortcut : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SHORTCUT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SHORTCUT, this, scriptIndex) } public final fun setEvents(events: VariantArray): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Skeleton2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Skeleton2D.kt index 1a3d9f1da8..a6d15c340f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Skeleton2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Skeleton2D.kt @@ -7,11 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID import godot.core.Signal0 import godot.core.Transform2D -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -19,7 +21,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.TRANSFORM2D import godot.core.VariantParser._RID -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Float import kotlin.Int @@ -43,7 +44,7 @@ public open class Skeleton2D : Node2D() { public val boneSetupChanged: Signal0 by Signal0 public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SKELETON2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SKELETON2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Skeleton3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Skeleton3D.kt index 89e3dc6e9f..5de04ee0c7 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Skeleton3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Skeleton3D.kt @@ -7,6 +7,9 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedInt32Array import godot.core.Quaternion @@ -15,7 +18,6 @@ import godot.core.Signal0 import godot.core.Signal1 import godot.core.StringName import godot.core.Transform3D -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -31,7 +33,6 @@ import godot.core.VariantParser.TRANSFORM3D import godot.core.VariantParser.VECTOR3 import godot.core.VariantParser._RID import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -135,7 +136,7 @@ public open class Skeleton3D : Node3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SKELETON3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SKELETON3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonIK3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonIK3D.kt index c5c6a42296..939ca56785 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonIK3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonIK3D.kt @@ -9,11 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.StringName import godot.core.Transform3D -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -24,7 +26,6 @@ import godot.core.VariantParser.STRING_NAME import godot.core.VariantParser.TRANSFORM3D import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -193,7 +194,7 @@ public open class SkeletonIK3D : SkeletonModifier3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SKELETONIK3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SKELETONIK3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModification2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModification2D.kt index 0a5f056ed2..033f5357ae 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModification2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModification2D.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -57,7 +58,7 @@ public open class SkeletonModification2D : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SKELETONMODIFICATION2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SKELETONMODIFICATION2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DCCDIK.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DCCDIK.kt index 54a674ecd7..50f1b4b6b6 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DCCDIK.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DCCDIK.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.NodePath -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -77,7 +78,7 @@ public open class SkeletonModification2DCCDIK : SkeletonModification2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SKELETONMODIFICATION2DCCDIK, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SKELETONMODIFICATION2DCCDIK, this, scriptIndex) } public final fun setTargetNode(targetNodepath: NodePath): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DFABRIK.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DFABRIK.kt index 715626feb9..7002f96cbf 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DFABRIK.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DFABRIK.kt @@ -7,16 +7,17 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.NodePath -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -69,7 +70,7 @@ public open class SkeletonModification2DFABRIK : SkeletonModification2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SKELETONMODIFICATION2DFABRIK, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SKELETONMODIFICATION2DFABRIK, this, scriptIndex) } public final fun setTargetNode(targetNodepath: NodePath): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DJiggle.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DJiggle.kt index 4e65437d0f..ee6f152c5e 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DJiggle.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DJiggle.kt @@ -9,9 +9,11 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.NodePath -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -19,7 +21,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -128,7 +129,7 @@ public open class SkeletonModification2DJiggle : SkeletonModification2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SKELETONMODIFICATION2DJIGGLE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SKELETONMODIFICATION2DJIGGLE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DLookAt.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DLookAt.kt index 4d95362c42..26aefc9bfc 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DLookAt.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DLookAt.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.NodePath -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -67,7 +68,7 @@ public open class SkeletonModification2DLookAt : SkeletonModification2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SKELETONMODIFICATION2DLOOKAT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SKELETONMODIFICATION2DLOOKAT, this, scriptIndex) } public final fun setBone2dNode(bone2dNodepath: NodePath): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DPhysicalBones.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DPhysicalBones.kt index 18990b612f..6ccd5c54f0 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DPhysicalBones.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DPhysicalBones.kt @@ -7,16 +7,17 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -43,7 +44,8 @@ public open class SkeletonModification2DPhysicalBones : SkeletonModification2D() } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SKELETONMODIFICATION2DPHYSICALBONES, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SKELETONMODIFICATION2DPHYSICALBONES, this, + scriptIndex) } public final fun setPhysicalBoneChainLength(length: Int): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DStackHolder.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DStackHolder.kt index 417b5648e0..b6f35f0687 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DStackHolder.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DStackHolder.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -25,7 +26,8 @@ import kotlin.Unit @GodotBaseType public open class SkeletonModification2DStackHolder : SkeletonModification2D() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SKELETONMODIFICATION2DSTACKHOLDER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SKELETONMODIFICATION2DSTACKHOLDER, this, + scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DTwoBoneIK.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DTwoBoneIK.kt index 882767d70e..039c7c0a76 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DTwoBoneIK.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModification2DTwoBoneIK.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.NodePath -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -88,7 +89,7 @@ public open class SkeletonModification2DTwoBoneIK : SkeletonModification2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SKELETONMODIFICATION2DTWOBONEIK, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SKELETONMODIFICATION2DTWOBONEIK, this, scriptIndex) } public final fun setTargetNode(targetNodepath: NodePath): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModificationStack2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModificationStack2D.kt index bbd3c0e205..880dc86db4 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModificationStack2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModificationStack2D.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -72,7 +73,7 @@ public open class SkeletonModificationStack2D : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SKELETONMODIFICATIONSTACK2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SKELETONMODIFICATIONSTACK2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModifier3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModifier3D.kt index 10e13dd896..a5a1a6f3c3 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModifier3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonModifier3D.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal0 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -63,7 +64,7 @@ public open class SkeletonModifier3D : Node3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SKELETONMODIFIER3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SKELETONMODIFIER3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonProfile.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonProfile.kt index ec38fc9765..59b2acf3ae 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonProfile.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonProfile.kt @@ -7,11 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.StringName import godot.core.Transform3D -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL @@ -20,7 +22,6 @@ import godot.core.VariantParser.STRING_NAME import godot.core.VariantParser.TRANSFORM3D import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -97,7 +98,7 @@ public open class SkeletonProfile : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SKELETONPROFILE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SKELETONPROFILE, this, scriptIndex) } public final fun setRootBone(boneName: StringName): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonProfileHumanoid.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonProfileHumanoid.kt index 8fc32418de..811f7dc002 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonProfileHumanoid.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkeletonProfileHumanoid.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -76,7 +77,7 @@ import kotlin.Unit @GodotBaseType public open class SkeletonProfileHumanoid : SkeletonProfile() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SKELETONPROFILEHUMANOID, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SKELETONPROFILEHUMANOID, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Skin.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Skin.kt index 71192bca7a..a19995b4ed 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Skin.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Skin.kt @@ -7,16 +7,17 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.StringName import godot.core.Transform3D -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME import godot.core.VariantParser.TRANSFORM3D -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.String @@ -26,7 +27,7 @@ import kotlin.Unit @GodotBaseType public open class Skin : Resource() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SKIN, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SKIN, this, scriptIndex) } public final fun setBindCount(bindCount: Int): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkinReference.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkinReference.kt index d69dbe962b..9122948605 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkinReference.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SkinReference.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantParser.OBJECT import godot.core.VariantParser._RID -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -32,7 +33,7 @@ import kotlin.Unit @GodotBaseType public open class SkinReference internal constructor() : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SKINREFERENCE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SKINREFERENCE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Sky.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Sky.kt index 0aa5589634..a8fdc51ccb 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Sky.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Sky.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -66,7 +67,7 @@ public open class Sky : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SKY, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SKY, this, scriptIndex) } public final fun setRadianceSize(size: RadianceSize): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Slider.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Slider.kt index bdb6d12c63..6b7e6ad514 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Slider.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Slider.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.Signal1 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -87,7 +88,7 @@ public open class Slider internal constructor() : Range() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SLIDER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SLIDER, this, scriptIndex) } public final fun setTicks(count: Int): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SliderJoint3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SliderJoint3D.kt index 4b455f4bb0..815b1ebb47 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SliderJoint3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SliderJoint3D.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -28,7 +29,7 @@ import kotlin.Unit @GodotBaseType public open class SliderJoint3D : Joint3D() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SLIDERJOINT3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SLIDERJOINT3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SoftBody3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SoftBody3D.kt index 54f30c85e4..8579055b18 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SoftBody3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SoftBody3D.kt @@ -7,10 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -22,7 +24,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR3 import godot.core.VariantParser._RID import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -181,7 +182,7 @@ public open class SoftBody3D : MeshInstance3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SOFTBODY3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SOFTBODY3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SphereMesh.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SphereMesh.kt index 57866c3b7f..6970299f98 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SphereMesh.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SphereMesh.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -85,7 +86,7 @@ public open class SphereMesh : PrimitiveMesh() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SPHEREMESH, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SPHEREMESH, this, scriptIndex) } public final fun setRadius(radius: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SphereOccluder3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SphereOccluder3D.kt index 1480bd1b54..96ff6983af 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SphereOccluder3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SphereOccluder3D.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -38,7 +39,7 @@ public open class SphereOccluder3D : Occluder3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SPHEREOCCLUDER3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SPHEREOCCLUDER3D, this, scriptIndex) } public final fun setRadius(radius: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SphereShape3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SphereShape3D.kt index 0e02f448f1..bea95a8f78 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SphereShape3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SphereShape3D.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -39,7 +40,7 @@ public open class SphereShape3D : Shape3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SPHERESHAPE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SPHERESHAPE3D, this, scriptIndex) } public final fun setRadius(radius: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SpinBox.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SpinBox.kt index d29e1a56ec..f70b2d9d60 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SpinBox.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SpinBox.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Int @@ -141,7 +142,7 @@ public open class SpinBox : Range() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SPINBOX, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SPINBOX, this, scriptIndex) } public final fun setHorizontalAlignment(alignment: HorizontalAlignment): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SplitContainer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SplitContainer.kt index 40e34ac881..18b98b6a4a 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SplitContainer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SplitContainer.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal1 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -80,7 +81,7 @@ public open class SplitContainer : Container() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SPLITCONTAINER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SPLITCONTAINER, this, scriptIndex) } public final fun setSplitOffset(offset: Int): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SpotLight3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SpotLight3D.kt index 29b33c273f..8abf7990b4 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SpotLight3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SpotLight3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -28,7 +29,7 @@ import kotlin.Unit @GodotBaseType public open class SpotLight3D : Light3D() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SPOTLIGHT3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SPOTLIGHT3D, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SpringArm3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SpringArm3D.kt index b41c464f7d..8b02e4463c 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SpringArm3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SpringArm3D.kt @@ -7,16 +7,17 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser._RID -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -91,7 +92,7 @@ public open class SpringArm3D : Node3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SPRINGARM3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SPRINGARM3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Sprite2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Sprite2D.kt index 5944f373a2..4b9466f92c 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Sprite2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Sprite2D.kt @@ -9,10 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Rect2 import godot.core.Signal0 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL @@ -22,7 +24,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser.VECTOR2I import godot.core.Vector2 import godot.core.Vector2i -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -193,7 +194,7 @@ public open class Sprite2D : Node2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SPRITE2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SPRITE2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Sprite3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Sprite3D.kt index b63967a54b..a379404810 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Sprite3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Sprite3D.kt @@ -9,10 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Rect2 import godot.core.Signal0 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL @@ -20,7 +22,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.RECT2 import godot.core.VariantParser.VECTOR2I import godot.core.Vector2i -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -133,7 +134,7 @@ public open class Sprite3D : SpriteBase3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SPRITE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SPRITE3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SpriteBase3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SpriteBase3D.kt index 6e94a55565..b3c5e6e6a4 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SpriteBase3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SpriteBase3D.kt @@ -9,10 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.Rect2 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE @@ -23,7 +25,6 @@ import godot.core.VariantParser.RECT2 import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -285,7 +286,7 @@ public open class SpriteBase3D internal constructor() : GeometryInstance3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SPRITEBASE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SPRITEBASE3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SpriteFrames.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SpriteFrames.kt index 2bea123f80..d3c52b6e07 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SpriteFrames.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SpriteFrames.kt @@ -7,10 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedStringArray import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -18,7 +20,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -35,7 +36,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class SpriteFrames : Resource() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SPRITEFRAMES, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SPRITEFRAMES, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StandardMaterial3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StandardMaterial3D.kt index c45dc190ef..d6694ec148 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StandardMaterial3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StandardMaterial3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -19,7 +20,7 @@ import kotlin.Unit @GodotBaseType public open class StandardMaterial3D : BaseMaterial3D() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_STANDARDMATERIAL3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_STANDARDMATERIAL3D, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StaticBody2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StaticBody2D.kt index 320174037d..3221029e27 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StaticBody2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StaticBody2D.kt @@ -9,14 +9,15 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -75,7 +76,7 @@ public open class StaticBody2D : PhysicsBody2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_STATICBODY2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_STATICBODY2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StaticBody3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StaticBody3D.kt index 6bef968e4c..be461d32ac 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StaticBody3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StaticBody3D.kt @@ -9,13 +9,14 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -73,7 +74,7 @@ public open class StaticBody3D : PhysicsBody3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_STATICBODY3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_STATICBODY3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StatusIndicator.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StatusIndicator.kt index ded793932d..1fe70c0ed4 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StatusIndicator.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StatusIndicator.kt @@ -7,11 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.Rect2 import godot.core.Signal2 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH @@ -19,7 +21,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.RECT2 import godot.core.VariantParser.STRING import godot.core.Vector2i -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -82,7 +83,7 @@ public open class StatusIndicator : Node() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_STATUSINDICATOR, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_STATUSINDICATOR, this, scriptIndex) } public final fun setTooltip(tooltip: String): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StreamPeer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StreamPeer.kt index df2d9d79eb..7e1c502040 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StreamPeer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StreamPeer.kt @@ -7,9 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedByteArray -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantCaster.ANY import godot.core.VariantParser.ARRAY @@ -19,7 +21,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -53,7 +54,7 @@ public open class StreamPeer internal constructor() : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_STREAMPEER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_STREAMPEER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StreamPeerBuffer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StreamPeerBuffer.kt index 04d675b19c..ac7c07e0c6 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StreamPeerBuffer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StreamPeerBuffer.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedByteArray -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_BYTE_ARRAY -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -43,7 +44,7 @@ public open class StreamPeerBuffer : StreamPeer() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_STREAMPEERBUFFER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_STREAMPEERBUFFER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StreamPeerExtension.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StreamPeerExtension.kt index 2993418402..e4f7d32305 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StreamPeerExtension.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StreamPeerExtension.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.NotImplementedError import kotlin.Suppress @@ -15,7 +16,7 @@ import kotlin.Unit @GodotBaseType public open class StreamPeerExtension : StreamPeer() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_STREAMPEEREXTENSION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_STREAMPEEREXTENSION, this, scriptIndex) } public open fun _getAvailableBytes(): Int { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StreamPeerGZIP.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StreamPeerGZIP.kt index 65cc548a72..325dcff4b9 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StreamPeerGZIP.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StreamPeerGZIP.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -35,7 +36,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class StreamPeerGZIP : StreamPeer() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_STREAMPEERGZIP, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_STREAMPEERGZIP, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StreamPeerTCP.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StreamPeerTCP.kt index c0e1ab368c..9d4b42cef9 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StreamPeerTCP.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StreamPeerTCP.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -32,7 +33,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class StreamPeerTCP : StreamPeer() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_STREAMPEERTCP, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_STREAMPEERTCP, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StreamPeerTLS.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StreamPeerTLS.kt index 6792bececf..484db4def7 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StreamPeerTLS.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StreamPeerTLS.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.String @@ -31,7 +32,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class StreamPeerTLS : StreamPeer() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_STREAMPEERTLS, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_STREAMPEERTLS, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StyleBox.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StyleBox.kt index 2432530efe..b3012e9bd5 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StyleBox.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StyleBox.kt @@ -7,10 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID import godot.core.Rect2 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -20,7 +22,6 @@ import godot.core.VariantParser.RECT2 import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -99,7 +100,7 @@ public open class StyleBox : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_STYLEBOX, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_STYLEBOX, this, scriptIndex) } public open fun _draw(toCanvasItem: RID, rect: Rect2): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StyleBoxEmpty.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StyleBoxEmpty.kt index 7d733a20de..39c8aa21df 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StyleBoxEmpty.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StyleBoxEmpty.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,7 @@ import kotlin.Unit @GodotBaseType public open class StyleBoxEmpty : StyleBox() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_STYLEBOXEMPTY, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_STYLEBOXEMPTY, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StyleBoxFlat.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StyleBoxFlat.kt index 9814e40055..4c09ca738c 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StyleBoxFlat.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StyleBoxFlat.kt @@ -9,9 +9,11 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE @@ -19,7 +21,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -345,7 +346,7 @@ public open class StyleBoxFlat : StyleBox() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_STYLEBOXFLAT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_STYLEBOXFLAT, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StyleBoxLine.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StyleBoxLine.kt index d85591e27e..b91dcd11f0 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StyleBoxLine.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StyleBoxLine.kt @@ -9,15 +9,16 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -92,7 +93,7 @@ public open class StyleBoxLine : StyleBox() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_STYLEBOXLINE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_STYLEBOXLINE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StyleBoxTexture.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StyleBoxTexture.kt index f7f9acd809..9e31d43bc9 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StyleBoxTexture.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/StyleBoxTexture.kt @@ -9,10 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.Rect2 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE @@ -20,7 +22,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.RECT2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -214,7 +215,7 @@ public open class StyleBoxTexture : StyleBox() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_STYLEBOXTEXTURE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_STYLEBOXTEXTURE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SubViewport.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SubViewport.kt index 00c457d4ae..31b05d7619 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SubViewport.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SubViewport.kt @@ -9,14 +9,15 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2I import godot.core.Vector2i -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -96,7 +97,7 @@ public open class SubViewport : Viewport() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SUBVIEWPORT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SUBVIEWPORT, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SubViewportContainer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SubViewportContainer.kt index 978d95162e..37fbb9b2c6 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SubViewportContainer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SubViewportContainer.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -60,7 +61,7 @@ public open class SubViewportContainer : Container() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SUBVIEWPORTCONTAINER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SUBVIEWPORTCONTAINER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SurfaceTool.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SurfaceTool.kt index 791f74a4d0..6da34ad9a7 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SurfaceTool.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SurfaceTool.kt @@ -7,6 +7,9 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.AABB import godot.core.Color @@ -17,7 +20,6 @@ import godot.core.PackedVector2Array import godot.core.PackedVector3Array import godot.core.Plane import godot.core.Transform3D -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -38,7 +40,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser.VECTOR3 import godot.core.Vector2 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Float @@ -86,7 +87,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class SurfaceTool : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SURFACETOOL, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SURFACETOOL, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SyntaxHighlighter.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SyntaxHighlighter.kt index a7f508162a..a0419080e1 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SyntaxHighlighter.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SyntaxHighlighter.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Dictionary -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DICTIONARY import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Int import kotlin.NotImplementedError @@ -29,7 +30,7 @@ import kotlin.Unit @GodotBaseType public open class SyntaxHighlighter : Resource() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SYNTAXHIGHLIGHTER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SYNTAXHIGHLIGHTER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SystemFont.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SystemFont.kt index 2c63a5c06d..ba3ce7b21b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SystemFont.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/SystemFont.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedStringArray -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_STRING_ARRAY -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -213,7 +214,7 @@ public open class SystemFont : Font() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_SYSTEMFONT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_SYSTEMFONT, this, scriptIndex) } public final fun setAntialiasing(antialiasing: TextServer.FontAntialiasing): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TCPServer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TCPServer.kt index 7ecf1b7642..666d0a959e 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TCPServer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TCPServer.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -33,7 +34,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class TCPServer : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TCPSERVER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TCPSERVER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TLSOptions.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TLSOptions.kt index cf290e6697..2342d87e4b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TLSOptions.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TLSOptions.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.String @@ -41,7 +42,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class TLSOptions internal constructor() : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TLSOPTIONS, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TLSOPTIONS, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TabBar.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TabBar.kt index a5e5db31e5..1473392f2d 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TabBar.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TabBar.kt @@ -7,10 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Rect2 import godot.core.Signal1 -import godot.internal.reflection.TypeManager import godot.core.VariantCaster.ANY import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG @@ -20,7 +22,6 @@ import godot.core.VariantParser.RECT2 import godot.core.VariantParser.STRING import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -227,7 +228,7 @@ public open class TabBar : Control() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TABBAR, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TABBAR, this, scriptIndex) } public final fun setTabCount(count: Int): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TabContainer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TabContainer.kt index 46377236a2..713c1cd635 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TabContainer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TabContainer.kt @@ -7,10 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.Signal1 -import godot.internal.reflection.TypeManager import godot.core.VariantCaster.ANY import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG @@ -19,7 +21,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -204,7 +205,7 @@ public open class TabContainer : Container() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TABCONTAINER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TABCONTAINER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextEdit.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextEdit.kt index c3b67b8ce1..172e7b4e5d 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextEdit.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextEdit.kt @@ -7,6 +7,9 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.Color @@ -15,7 +18,6 @@ import godot.core.PackedStringArray import godot.core.Rect2i import godot.core.Signal0 import godot.core.Signal2 -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantCaster.ANY import godot.core.VariantParser.ARRAY @@ -34,7 +36,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser.VECTOR2I import godot.core.Vector2 import godot.core.Vector2i -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -569,7 +570,7 @@ public open class TextEdit : Control() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TEXTEDIT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TEXTEDIT, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextLine.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextLine.kt index 74b80b0c5f..e78f212a76 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextLine.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextLine.kt @@ -8,12 +8,14 @@ package godot import godot.TextServer.JustificationFlagValue import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.PackedFloat32Array import godot.core.RID import godot.core.Rect2 -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantCaster.ANY import godot.core.VariantParser.ARRAY @@ -29,7 +31,6 @@ import godot.core.VariantParser.STRING import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -148,7 +149,7 @@ public open class TextLine : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TEXTLINE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TEXTLINE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextMesh.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextMesh.kt index 1887b69c7d..8c22da0660 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextMesh.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextMesh.kt @@ -10,8 +10,10 @@ import godot.TextServer.JustificationFlagValue import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -22,7 +24,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -252,7 +253,7 @@ public open class TextMesh : PrimitiveMesh() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TEXTMESH, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TEXTMESH, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextParagraph.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextParagraph.kt index 6780b0eda3..a63eed17e2 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextParagraph.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextParagraph.kt @@ -9,12 +9,14 @@ package godot import godot.TextServer.JustificationFlagValue import godot.TextServer.LineBreakFlagValue import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.PackedFloat32Array import godot.core.RID import godot.core.Rect2 -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantCaster.ANY import godot.core.VariantParser.ARRAY @@ -32,7 +34,6 @@ import godot.core.VariantParser.VECTOR2I import godot.core.VariantParser._RID import godot.core.Vector2 import godot.core.Vector2i -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -185,7 +186,7 @@ public open class TextParagraph : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TEXTPARAGRAPH, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TEXTPARAGRAPH, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextServer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextServer.kt index b94a9963a5..405cc29792 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextServer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextServer.kt @@ -7,6 +7,9 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.Dictionary @@ -18,7 +21,6 @@ import godot.core.PackedVector2Array import godot.core.RID import godot.core.Rect2 import godot.core.Transform2D -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantCaster.ANY import godot.core.VariantParser.ARRAY @@ -43,7 +45,6 @@ import godot.core.VariantParser._RID import godot.core.Vector2 import godot.core.Vector2i import godot.core.Vector3i -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -74,7 +75,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class TextServer internal constructor() : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TEXTSERVER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TEXTSERVER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextServerAdvanced.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextServerAdvanced.kt index 82f87e0658..93c336f007 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextServerAdvanced.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextServerAdvanced.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -19,7 +20,7 @@ import kotlin.Unit @GodotBaseType public open class TextServerAdvanced : TextServerExtension() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TEXTSERVERADVANCED, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TEXTSERVERADVANCED, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextServerDummy.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextServerDummy.kt index f57cb4f7c1..cb6b239887 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextServerDummy.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextServerDummy.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -32,7 +33,7 @@ import kotlin.Unit @GodotBaseType public open class TextServerDummy : TextServerExtension() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TEXTSERVERDUMMY, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TEXTSERVERDUMMY, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextServerExtension.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextServerExtension.kt index afb768af66..85271927db 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextServerExtension.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextServerExtension.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import godot.core.Color import godot.core.Dictionary import godot.core.PackedByteArray @@ -37,7 +38,7 @@ import kotlin.Unit @GodotBaseType public open class TextServerExtension : TextServer() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TEXTSERVEREXTENSION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TEXTSERVEREXTENSION, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextServerManager.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextServerManager.kt index a1581d3639..1396292506 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextServerManager.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextServerManager.kt @@ -7,18 +7,19 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.Signal1 import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Int import kotlin.Long @@ -47,7 +48,7 @@ public object TextServerManager : Object() { public val interfaceRemoved: Signal1 by Signal1 public override fun new(scriptIndex: Int): Unit { - getSingleton(ENGINECLASS_TEXTSERVERMANAGER) + MemoryManager.getSingleton(ENGINECLASS_TEXTSERVERMANAGER) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Texture.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Texture.kt index 04587b78e4..9eefc047ad 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Texture.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Texture.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,7 @@ import kotlin.Unit @GodotBaseType public open class Texture : Resource() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TEXTURE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TEXTURE, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Texture2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Texture2D.kt index 40e755d84a..33d4f69955 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Texture2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Texture2D.kt @@ -7,11 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.RID import godot.core.Rect2 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.LONG @@ -21,7 +23,6 @@ import godot.core.VariantParser.RECT2 import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -41,7 +42,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class Texture2D : Texture() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TEXTURE2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TEXTURE2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Texture2DArray.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Texture2DArray.kt index 8e257d3ecf..398d38528e 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Texture2DArray.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Texture2DArray.kt @@ -7,10 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -30,7 +31,7 @@ import kotlin.Unit @GodotBaseType public open class Texture2DArray : ImageTextureLayered() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TEXTURE2DARRAY, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TEXTURE2DARRAY, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Texture2DArrayRD.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Texture2DArrayRD.kt index af24bca93a..f3b60a08d3 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Texture2DArrayRD.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Texture2DArrayRD.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,7 @@ import kotlin.Unit @GodotBaseType public open class Texture2DArrayRD : TextureLayeredRD() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TEXTURE2DARRAYRD, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TEXTURE2DARRAYRD, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Texture2DRD.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Texture2DRD.kt index 94294806a7..762a27aec7 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Texture2DRD.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Texture2DRD.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser._RID -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -36,7 +37,7 @@ public open class Texture2DRD : Texture2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TEXTURE2DRD, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TEXTURE2DRD, this, scriptIndex) } public final fun setTextureRdRid(textureRdRid: RID): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Texture3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Texture3D.kt index 5b81e46f90..dda7893b4a 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Texture3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Texture3D.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -33,7 +34,7 @@ import kotlin.Unit @GodotBaseType public open class Texture3D : Texture() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TEXTURE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TEXTURE3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Texture3DRD.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Texture3DRD.kt index 27158e2851..0ecaac7891 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Texture3DRD.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Texture3DRD.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser._RID -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -36,7 +37,7 @@ public open class Texture3DRD : Texture3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TEXTURE3DRD, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TEXTURE3DRD, this, scriptIndex) } public final fun setTextureRdRid(textureRdRid: RID): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextureButton.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextureButton.kt index 972c5a1b7e..f3a00b469c 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextureButton.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextureButton.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -151,7 +152,7 @@ public open class TextureButton : BaseButton() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TEXTUREBUTTON, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TEXTUREBUTTON, this, scriptIndex) } public final fun setTextureNormal(texture: Texture2D?): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextureCubemapArrayRD.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextureCubemapArrayRD.kt index 460616aa06..c55ee4798f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextureCubemapArrayRD.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextureCubemapArrayRD.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,7 @@ import kotlin.Unit @GodotBaseType public open class TextureCubemapArrayRD : TextureLayeredRD() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TEXTURECUBEMAPARRAYRD, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TEXTURECUBEMAPARRAYRD, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextureCubemapRD.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextureCubemapRD.kt index 1f621811d9..0569e0ec9a 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextureCubemapRD.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextureCubemapRD.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,7 @@ import kotlin.Unit @GodotBaseType public open class TextureCubemapRD : TextureLayeredRD() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TEXTURECUBEMAPRD, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TEXTURECUBEMAPRD, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextureLayered.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextureLayered.kt index 6512fb3161..f32ec072e1 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextureLayered.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextureLayered.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -32,7 +33,7 @@ import kotlin.Unit @GodotBaseType public open class TextureLayered : Texture() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TEXTURELAYERED, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TEXTURELAYERED, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextureLayeredRD.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextureLayeredRD.kt index c92ffcd447..642c96c525 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextureLayeredRD.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextureLayeredRD.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser._RID -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -36,7 +37,7 @@ public open class TextureLayeredRD internal constructor() : TextureLayered() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TEXTURELAYEREDRD, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TEXTURELAYEREDRD, this, scriptIndex) } public final fun setTextureRdRid(textureRdRid: RID): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextureProgressBar.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextureProgressBar.kt index 6057779a54..59f17ccc5d 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextureProgressBar.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextureProgressBar.kt @@ -9,9 +9,11 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE @@ -20,7 +22,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -235,7 +236,7 @@ public open class TextureProgressBar : Range() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TEXTUREPROGRESSBAR, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TEXTUREPROGRESSBAR, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextureRect.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextureRect.kt index 24f38fc1f1..8b9dd73159 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextureRect.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TextureRect.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -85,7 +86,7 @@ public open class TextureRect : Control() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TEXTURERECT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TEXTURERECT, this, scriptIndex) } public final fun setTexture(texture: Texture2D?): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Theme.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Theme.kt index 09e3e46a5b..2ff032e4ee 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Theme.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Theme.kt @@ -7,11 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.PackedStringArray import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantCaster.ANY import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR @@ -22,7 +24,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -93,7 +94,7 @@ public open class Theme : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_THEME, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_THEME, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ThemeDB.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ThemeDB.kt index 75db870175..3a1f361af4 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ThemeDB.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ThemeDB.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal0 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -39,7 +40,7 @@ public object ThemeDB : Object() { public val fallbackChanged: Signal0 by Signal0 public override fun new(scriptIndex: Int): Unit { - getSingleton(ENGINECLASS_THEMEDB) + MemoryManager.getSingleton(ENGINECLASS_THEMEDB) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Thread.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Thread.kt index 2f278f0d97..ab45121ada 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Thread.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Thread.kt @@ -7,16 +7,17 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Callable -import godot.internal.reflection.TypeManager import godot.core.VariantCaster.ANY import godot.core.VariantParser.BOOL import godot.core.VariantParser.CALLABLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -39,7 +40,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class Thread : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_THREAD, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_THREAD, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TileData.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TileData.kt index 8703bc2f26..0d6622d199 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TileData.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TileData.kt @@ -9,11 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.PackedVector2Array import godot.core.Signal0 -import godot.internal.reflection.TypeManager import godot.core.VariantCaster.ANY import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR @@ -27,7 +29,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser.VECTOR2I import godot.core.Vector2 import godot.core.Vector2i -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -177,7 +178,7 @@ public open class TileData : Object() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TILEDATA, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TILEDATA, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TileMap.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TileMap.kt index ccc1fde05f..b15d4d0a98 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TileMap.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TileMap.kt @@ -7,12 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.RID import godot.core.Rect2i import godot.core.Signal0 -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -27,7 +29,6 @@ import godot.core.VariantParser.VECTOR2I import godot.core.VariantParser._RID import godot.core.Vector2 import godot.core.Vector2i -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -123,7 +124,7 @@ public open class TileMap : Node2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TILEMAP, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TILEMAP, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TileMapLayer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TileMapLayer.kt index 12a8404eda..b5a7545648 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TileMapLayer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TileMapLayer.kt @@ -7,12 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedByteArray import godot.core.RID import godot.core.Rect2i import godot.core.Signal0 -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -26,7 +28,6 @@ import godot.core.VariantParser.VECTOR2I import godot.core.VariantParser._RID import godot.core.Vector2 import godot.core.Vector2i -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -193,7 +194,7 @@ public open class TileMapLayer : Node2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TILEMAPLAYER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TILEMAPLAYER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TileMapPattern.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TileMapPattern.kt index a6970db7d3..971591b3f6 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TileMapPattern.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TileMapPattern.kt @@ -7,8 +7,10 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -16,7 +18,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2I import godot.core.Vector2i -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -32,7 +33,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class TileMapPattern : Resource() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TILEMAPPATTERN, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TILEMAPPATTERN, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TileSet.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TileSet.kt index 76cdd57387..433dfe1b38 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TileSet.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TileSet.kt @@ -9,9 +9,11 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -22,7 +24,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.VariantParser.VECTOR2I import godot.core.Vector2i -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -110,7 +111,7 @@ public open class TileSet : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TILESET, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TILESET, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TileSetAtlasSource.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TileSetAtlasSource.kt index 7efd2ea667..70d38c46db 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TileSetAtlasSource.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TileSetAtlasSource.kt @@ -9,10 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedVector2Array import godot.core.Rect2i -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -22,7 +24,6 @@ import godot.core.VariantParser.PACKED_VECTOR2_ARRAY import godot.core.VariantParser.RECT2I import godot.core.VariantParser.VECTOR2I import godot.core.Vector2i -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -113,7 +114,7 @@ public open class TileSetAtlasSource : TileSetSource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TILESETATLASSOURCE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TILESETATLASSOURCE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TileSetScenesCollectionSource.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TileSetScenesCollectionSource.kt index 913c208083..6c5630fd60 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TileSetScenesCollectionSource.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TileSetScenesCollectionSource.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -60,7 +61,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class TileSetScenesCollectionSource : TileSetSource() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TILESETSCENESCOLLECTIONSOURCE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TILESETSCENESCOLLECTIONSOURCE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TileSetSource.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TileSetSource.kt index 55833938a7..78de2488dc 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TileSetSource.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TileSetSource.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.VECTOR2I import godot.core.Vector2i -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -35,7 +36,7 @@ import kotlin.Unit @GodotBaseType public open class TileSetSource internal constructor() : Resource() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TILESETSOURCE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TILESETSOURCE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Time.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Time.kt index 03d32bcacc..34fbf50679 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Time.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Time.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Dictionary -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DICTIONARY import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -49,7 +50,7 @@ import kotlin.jvm.JvmStatic @GodotBaseType public object Time : Object() { public override fun new(scriptIndex: Int): Unit { - getSingleton(ENGINECLASS_TIME) + MemoryManager.getSingleton(ENGINECLASS_TIME) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Timer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Timer.kt index 8a2f364b95..e22f675175 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Timer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Timer.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal0 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Int @@ -119,7 +120,7 @@ public open class Timer : Node() { get() = getTimeLeft() public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TIMER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TIMER, this, scriptIndex) } public final fun setWaitTime(timeSec: Double): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TorusMesh.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TorusMesh.kt index 1d580c94ff..d540f11244 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TorusMesh.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TorusMesh.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -71,7 +72,7 @@ public open class TorusMesh : PrimitiveMesh() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TORUSMESH, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TORUSMESH, this, scriptIndex) } public final fun setInnerRadius(radius: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TouchScreenButton.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TouchScreenButton.kt index 8d3a2430a7..98c9fe4842 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TouchScreenButton.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TouchScreenButton.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal0 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -151,7 +152,7 @@ public open class TouchScreenButton : Node2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TOUCHSCREENBUTTON, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TOUCHSCREENBUTTON, this, scriptIndex) } public final fun setTextureNormal(texture: Texture2D?): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Translation.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Translation.kt index e2378c4e4e..2f9ef64878 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Translation.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Translation.kt @@ -7,16 +7,17 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedStringArray import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.NotImplementedError @@ -45,7 +46,7 @@ public open class Translation : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TRANSLATION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TRANSLATION, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TranslationServer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TranslationServer.kt index 53be58384c..fce9ad77bb 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TranslationServer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TranslationServer.kt @@ -7,10 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedStringArray import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL @@ -18,7 +20,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -35,7 +36,7 @@ import kotlin.jvm.JvmStatic @GodotBaseType public object TranslationServer : Object() { public override fun new(scriptIndex: Int): Unit { - getSingleton(ENGINECLASS_TRANSLATIONSERVER) + MemoryManager.getSingleton(ENGINECLASS_TRANSLATIONSERVER) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Tree.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Tree.kt index bb23fc5125..d119600fee 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Tree.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Tree.kt @@ -7,6 +7,9 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Rect2 import godot.core.Signal0 @@ -14,7 +17,6 @@ import godot.core.Signal1 import godot.core.Signal2 import godot.core.Signal3 import godot.core.Signal4 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL @@ -23,7 +25,6 @@ import godot.core.VariantParser.RECT2 import godot.core.VariantParser.STRING import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -299,7 +300,7 @@ public open class Tree : Control() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TREE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TREE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TreeItem.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TreeItem.kt index 6a39a7728d..25f30fd018 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TreeItem.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TreeItem.kt @@ -7,13 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.Color import godot.core.Dictionary import godot.core.Rect2 import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantCaster.ANY import godot.core.VariantParser.ARRAY @@ -28,7 +30,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.RECT2 import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -98,7 +99,7 @@ public open class TreeItem internal constructor() : Object() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TREEITEM, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TREEITEM, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TriangleMesh.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TriangleMesh.kt index 74b7aae4b2..04fae5e18a 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TriangleMesh.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TriangleMesh.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -17,7 +18,7 @@ import kotlin.Unit @GodotBaseType public open class TriangleMesh : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TRIANGLEMESH, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TRIANGLEMESH, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TubeTrailMesh.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TubeTrailMesh.kt index be6f18d7e3..2ebef77894 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TubeTrailMesh.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/TubeTrailMesh.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -129,7 +130,7 @@ public open class TubeTrailMesh : PrimitiveMesh() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TUBETRAILMESH, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TUBETRAILMESH, this, scriptIndex) } public final fun setRadius(radius: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Tween.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Tween.kt index 793ac654a6..0a07a51f08 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Tween.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Tween.kt @@ -7,12 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.NodePath import godot.core.Signal0 import godot.core.Signal1 -import godot.internal.reflection.TypeManager import godot.core.VariantCaster.ANY import godot.core.VariantParser.BOOL import godot.core.VariantParser.CALLABLE @@ -21,7 +23,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -182,7 +183,7 @@ public open class Tween : RefCounted() { public val finished: Signal0 by Signal0 public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TWEEN, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TWEEN, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Tweener.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Tweener.kt index 8367a47cf4..7d8299e424 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Tweener.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Tweener.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import godot.core.Signal0 import kotlin.Int import kotlin.Suppress @@ -25,7 +26,7 @@ public open class Tweener internal constructor() : RefCounted() { public val finished: Signal0 by Signal0 public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_TWEENER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_TWEENER, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/UDPServer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/UDPServer.kt index af244d1e97..e0b5327e27 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/UDPServer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/UDPServer.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -166,7 +167,7 @@ public open class UDPServer : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_UDPSERVER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_UDPSERVER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/UPNP.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/UPNP.kt index 7a23f550da..5dfc626642 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/UPNP.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/UPNP.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -142,7 +143,7 @@ public open class UPNP : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_UPNP, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_UPNP, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/UPNPDevice.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/UPNPDevice.kt index cc4e6a67fb..b4fa06071d 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/UPNPDevice.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/UPNPDevice.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -98,7 +99,7 @@ public open class UPNPDevice : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_UPNPDEVICE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_UPNPDEVICE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/UndoRedo.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/UndoRedo.kt index b680b1a100..b03faa1e3a 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/UndoRedo.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/UndoRedo.kt @@ -7,11 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Callable import godot.core.Signal0 import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantCaster.ANY import godot.core.VariantParser.BOOL import godot.core.VariantParser.CALLABLE @@ -20,7 +22,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -151,7 +152,7 @@ public open class UndoRedo : Object() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_UNDOREDO, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_UNDOREDO, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/UniformSetCacheRD.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/UniformSetCacheRD.kt index b57bd86ce7..a67095e6f2 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/UniformSetCacheRD.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/UniformSetCacheRD.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.LONG import godot.core.VariantParser._RID -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -28,7 +29,7 @@ import kotlin.Unit @GodotBaseType public open class UniformSetCacheRD : Object() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_UNIFORMSETCACHERD, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_UNIFORMSETCACHERD, this, scriptIndex) } public companion object { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VBoxContainer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VBoxContainer.kt index e32f988ff6..2299aa2778 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VBoxContainer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VBoxContainer.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,7 @@ import kotlin.Unit @GodotBaseType public open class VBoxContainer : BoxContainer() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VBOXCONTAINER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VBOXCONTAINER, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VFlowContainer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VFlowContainer.kt index 49fca3d378..324311e274 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VFlowContainer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VFlowContainer.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -19,7 +20,7 @@ import kotlin.Unit @GodotBaseType public open class VFlowContainer : FlowContainer() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VFLOWCONTAINER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VFLOWCONTAINER, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VScrollBar.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VScrollBar.kt index d93a1933d6..d38efdc743 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VScrollBar.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VScrollBar.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -19,7 +20,7 @@ import kotlin.Unit @GodotBaseType public open class VScrollBar : ScrollBar() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VSCROLLBAR, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VSCROLLBAR, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VSeparator.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VSeparator.kt index 80ccdae18a..42b33c4a63 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VSeparator.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VSeparator.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,7 @@ import kotlin.Unit @GodotBaseType public open class VSeparator : Separator() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VSEPARATOR, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VSEPARATOR, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VSlider.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VSlider.kt index ff213fa3bf..57ff7ef690 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VSlider.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VSlider.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -19,7 +20,7 @@ import kotlin.Unit @GodotBaseType public open class VSlider : Slider() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VSLIDER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VSLIDER, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VSplitContainer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VSplitContainer.kt index 9cb8cc85a8..2fd93f3eb9 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VSplitContainer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VSplitContainer.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -19,7 +20,7 @@ import kotlin.Unit @GodotBaseType public open class VSplitContainer : SplitContainer() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VSPLITCONTAINER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VSPLITCONTAINER, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VehicleBody3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VehicleBody3D.kt index 6e2c613963..e1e3e4d1cd 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VehicleBody3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VehicleBody3D.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -82,7 +83,7 @@ public open class VehicleBody3D : RigidBody3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VEHICLEBODY3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VEHICLEBODY3D, this, scriptIndex) } public final fun setEngineForce(engineForce: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VehicleWheel3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VehicleWheel3D.kt index d782d24480..03cee30073 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VehicleWheel3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VehicleWheel3D.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -216,7 +217,7 @@ public open class VehicleWheel3D : Node3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VEHICLEWHEEL3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VEHICLEWHEEL3D, this, scriptIndex) } public final fun setRadius(length: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VideoStream.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VideoStream.kt index fdb2d7aaec..20dc7e6682 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VideoStream.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VideoStream.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.NotImplementedError import kotlin.String @@ -39,7 +40,7 @@ public open class VideoStream : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VIDEOSTREAM, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VIDEOSTREAM, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VideoStreamPlayback.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VideoStreamPlayback.kt index a6406a1571..3bac4d739a 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VideoStreamPlayback.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VideoStreamPlayback.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedFloat32Array -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.PACKED_FLOAT_32_ARRAY -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Int @@ -29,7 +30,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class VideoStreamPlayback : Resource() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VIDEOSTREAMPLAYBACK, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VIDEOSTREAMPLAYBACK, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VideoStreamPlayer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VideoStreamPlayer.kt index 55759352f4..0a531a3367 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VideoStreamPlayer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VideoStreamPlayer.kt @@ -7,10 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -18,7 +20,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -168,7 +169,7 @@ public open class VideoStreamPlayer : Control() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VIDEOSTREAMPLAYER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VIDEOSTREAMPLAYER, this, scriptIndex) } public final fun setStream(stream: VideoStream?): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VideoStreamTheora.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VideoStreamTheora.kt index 9ca62c7591..397b653a02 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VideoStreamTheora.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VideoStreamTheora.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -20,7 +21,7 @@ import kotlin.Unit @GodotBaseType public open class VideoStreamTheora : VideoStream() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VIDEOSTREAMTHEORA, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VIDEOSTREAMTHEORA, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Viewport.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Viewport.kt index 0f5f450b2c..c5be8b30a7 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Viewport.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Viewport.kt @@ -9,13 +9,15 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID import godot.core.Rect2 import godot.core.Signal0 import godot.core.Signal1 import godot.core.Transform2D -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantCaster.ANY import godot.core.VariantParser.ARRAY @@ -30,7 +32,6 @@ import godot.core.VariantParser.TRANSFORM2D import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -714,7 +715,7 @@ public open class Viewport internal constructor() : Node() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VIEWPORT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VIEWPORT, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ViewportTexture.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ViewportTexture.kt index 84b052fb0c..e6118e901f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ViewportTexture.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ViewportTexture.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.NodePath -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -46,7 +47,7 @@ public open class ViewportTexture : Texture2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VIEWPORTTEXTURE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VIEWPORTTEXTURE, this, scriptIndex) } public final fun setViewportPathInScene(path: NodePath): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenEnabler2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenEnabler2D.kt index 7cf142a93a..2d133f5738 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenEnabler2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenEnabler2D.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.NodePath -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -59,7 +60,7 @@ public open class VisibleOnScreenEnabler2D : VisibleOnScreenNotifier2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISIBLEONSCREENENABLER2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISIBLEONSCREENENABLER2D, this, scriptIndex) } public final fun setEnableMode(mode: EnableMode): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenEnabler3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenEnabler3D.kt index a3b2afdf4e..9e016a475d 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenEnabler3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenEnabler3D.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.NodePath -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -60,7 +61,7 @@ public open class VisibleOnScreenEnabler3D : VisibleOnScreenNotifier3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISIBLEONSCREENENABLER3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISIBLEONSCREENENABLER3D, this, scriptIndex) } public final fun setEnableMode(mode: EnableMode): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenNotifier2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenNotifier2D.kt index f559761247..b0d07482b6 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenNotifier2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenNotifier2D.kt @@ -9,14 +9,15 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Rect2 import godot.core.Signal0 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser.RECT2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -57,7 +58,7 @@ public open class VisibleOnScreenNotifier2D : Node2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISIBLEONSCREENNOTIFIER2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISIBLEONSCREENNOTIFIER2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenNotifier3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenNotifier3D.kt index adc2d4ae12..511dd3e218 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenNotifier3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisibleOnScreenNotifier3D.kt @@ -9,13 +9,14 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.AABB import godot.core.Signal0 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -58,7 +59,7 @@ public open class VisibleOnScreenNotifier3D : VisualInstance3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISIBLEONSCREENNOTIFIER3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISIBLEONSCREENNOTIFIER3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualInstance3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualInstance3D.kt index 201e150ccc..f98a1b334f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualInstance3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualInstance3D.kt @@ -7,16 +7,17 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.AABB import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser._RID -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -90,7 +91,7 @@ public open class VisualInstance3D : Node3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALINSTANCE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALINSTANCE3D, this, scriptIndex) } public open fun _getAabb(): AABB { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShader.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShader.kt index b292be417a..7da80b377d 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShader.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShader.kt @@ -9,11 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedInt32Array import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -25,7 +27,6 @@ import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -56,7 +57,7 @@ public open class VisualShader : Shader() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNode.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNode.kt index 4a5d6d76e5..3f418c0acb 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNode.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNode.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantCaster.ANY import godot.core.VariantParser.ARRAY import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Int import kotlin.Long @@ -63,7 +64,7 @@ public open class VisualShaderNode internal constructor() : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeBillboard.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeBillboard.kt index 6491f806ff..26fe9e87e5 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeBillboard.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeBillboard.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -50,7 +51,7 @@ public open class VisualShaderNodeBillboard : VisualShaderNode() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEBILLBOARD, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEBILLBOARD, this, scriptIndex) } public final fun setBillboardType(billboardType: BillboardType): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeBooleanConstant.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeBooleanConstant.kt index 6c28e5acc7..af31c38c0b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeBooleanConstant.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeBooleanConstant.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -36,7 +37,7 @@ public open class VisualShaderNodeBooleanConstant : VisualShaderNodeConstant() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEBOOLEANCONSTANT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEBOOLEANCONSTANT, this, scriptIndex) } public final fun setConstant(constant: Boolean): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeBooleanParameter.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeBooleanParameter.kt index 8eb5f60423..68529ee706 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeBooleanParameter.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeBooleanParameter.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -46,7 +47,8 @@ public open class VisualShaderNodeBooleanParameter : VisualShaderNodeParameter() } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEBOOLEANPARAMETER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEBOOLEANPARAMETER, this, + scriptIndex) } public final fun setDefaultValueEnabled(enabled: Boolean): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeClamp.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeClamp.kt index 09b2c0a48e..5cdf5a374f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeClamp.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeClamp.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -35,7 +36,7 @@ public open class VisualShaderNodeClamp : VisualShaderNode() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODECLAMP, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODECLAMP, this, scriptIndex) } public final fun setOpType(opType: OpType): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorConstant.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorConstant.kt index 77944c2458..ce642d038a 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorConstant.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorConstant.kt @@ -9,12 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color -import godot.internal.reflection.TypeManager import godot.core.VariantParser.COLOR import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -39,7 +40,7 @@ public open class VisualShaderNodeColorConstant : VisualShaderNodeConstant() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODECOLORCONSTANT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODECOLORCONSTANT, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorFunc.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorFunc.kt index dcafa0ba52..cd1ef98623 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorFunc.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorFunc.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -35,7 +36,7 @@ public open class VisualShaderNodeColorFunc : VisualShaderNode() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODECOLORFUNC, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODECOLORFUNC, this, scriptIndex) } public final fun setFunction(func: Function): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorOp.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorOp.kt index 99273f18cc..81d9f94742 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorOp.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorOp.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -35,7 +36,7 @@ public open class VisualShaderNodeColorOp : VisualShaderNode() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODECOLOROP, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODECOLOROP, this, scriptIndex) } public final fun setOperator(op: Operator): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorParameter.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorParameter.kt index 91e3a31dca..33ff59714f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorParameter.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeColorParameter.kt @@ -9,13 +9,14 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -51,7 +52,7 @@ public open class VisualShaderNodeColorParameter : VisualShaderNodeParameter() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODECOLORPARAMETER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODECOLORPARAMETER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeComment.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeComment.kt index f8af45404f..dfec0a0ddb 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeComment.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeComment.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.String import kotlin.Suppress @@ -37,7 +38,7 @@ public open class VisualShaderNodeComment : VisualShaderNodeFrame() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODECOMMENT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODECOMMENT, this, scriptIndex) } public final fun setDescription(description: String): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCompare.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCompare.kt index 633519babd..1db0843e9c 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCompare.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCompare.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -58,7 +59,7 @@ public open class VisualShaderNodeCompare : VisualShaderNode() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODECOMPARE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODECOMPARE, this, scriptIndex) } public final fun setComparisonType(type: ComparisonType): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeConstant.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeConstant.kt index 86f6ffd63c..b1a4800ac2 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeConstant.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeConstant.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -17,7 +18,7 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeConstant internal constructor() : VisualShaderNode() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODECONSTANT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODECONSTANT, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCubemap.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCubemap.kt index 84c26fac85..846f0c4597 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCubemap.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCubemap.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -59,7 +60,7 @@ public open class VisualShaderNodeCubemap : VisualShaderNode() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODECUBEMAP, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODECUBEMAP, this, scriptIndex) } public final fun setSource(`value`: Source): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCubemapParameter.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCubemapParameter.kt index 50e0ec7fb7..9ab20b5591 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCubemapParameter.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCubemapParameter.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,8 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeCubemapParameter : VisualShaderNodeTextureParameter() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODECUBEMAPPARAMETER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODECUBEMAPPARAMETER, this, + scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCurveTexture.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCurveTexture.kt index efd06255da..4814cd13c9 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCurveTexture.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCurveTexture.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -34,7 +35,7 @@ public open class VisualShaderNodeCurveTexture : VisualShaderNodeResizableBase() } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODECURVETEXTURE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODECURVETEXTURE, this, scriptIndex) } public final fun setTexture(texture: CurveTexture?): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCurveXYZTexture.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCurveXYZTexture.kt index 611a9f0835..c76777ef22 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCurveXYZTexture.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCurveXYZTexture.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -34,7 +35,7 @@ public open class VisualShaderNodeCurveXYZTexture : VisualShaderNodeResizableBas } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODECURVEXYZTEXTURE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODECURVEXYZTEXTURE, this, scriptIndex) } public final fun setTexture(texture: CurveXYZTexture?): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCustom.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCustom.kt index 3192a6c72b..8b8a25b686 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCustom.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeCustom.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedStringArray -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.LONG -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -37,7 +38,7 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeCustom : VisualShaderNode() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODECUSTOM, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODECUSTOM, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeDerivativeFunc.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeDerivativeFunc.kt index 6b02579075..b04507e4aa 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeDerivativeFunc.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeDerivativeFunc.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -58,7 +59,7 @@ public open class VisualShaderNodeDerivativeFunc : VisualShaderNode() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEDERIVATIVEFUNC, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEDERIVATIVEFUNC, this, scriptIndex) } public final fun setOpType(type: OpType): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeDeterminant.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeDeterminant.kt index 5cdc7397a5..bba3da14c3 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeDeterminant.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeDeterminant.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -17,7 +18,7 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeDeterminant : VisualShaderNode() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEDETERMINANT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEDETERMINANT, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeDistanceFade.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeDistanceFade.kt index 5fe4447944..9c3f446e84 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeDistanceFade.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeDistanceFade.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -17,7 +18,7 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeDistanceFade : VisualShaderNode() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEDISTANCEFADE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEDISTANCEFADE, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeDotProduct.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeDotProduct.kt index e26f867354..5366f46100 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeDotProduct.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeDotProduct.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -17,7 +18,7 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeDotProduct : VisualShaderNode() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEDOTPRODUCT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEDOTPRODUCT, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeExpression.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeExpression.kt index f4bc400b37..bcc7125b85 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeExpression.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeExpression.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.String import kotlin.Suppress @@ -40,7 +41,7 @@ public open class VisualShaderNodeExpression : VisualShaderNodeGroupBase() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEEXPRESSION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEEXPRESSION, this, scriptIndex) } public final fun setExpression(expression: String): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFaceForward.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFaceForward.kt index 14e9340990..1629eff334 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFaceForward.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFaceForward.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -20,7 +21,7 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeFaceForward : VisualShaderNodeVectorBase() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEFACEFORWARD, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEFACEFORWARD, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatConstant.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatConstant.kt index 273d604470..9886661521 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatConstant.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatConstant.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -36,7 +37,7 @@ public open class VisualShaderNodeFloatConstant : VisualShaderNodeConstant() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEFLOATCONSTANT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEFLOATCONSTANT, this, scriptIndex) } public final fun setConstant(constant: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatFunc.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatFunc.kt index e0884dab44..6cb09b0a25 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatFunc.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatFunc.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -35,7 +36,7 @@ public open class VisualShaderNodeFloatFunc : VisualShaderNode() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEFLOATFUNC, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEFLOATFUNC, this, scriptIndex) } public final fun setFunction(func: Function): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatOp.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatOp.kt index fba6a078a4..147bff0dfd 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatOp.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatOp.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -35,7 +36,7 @@ public open class VisualShaderNodeFloatOp : VisualShaderNode() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEFLOATOP, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEFLOATOP, this, scriptIndex) } public final fun setOperator(op: Operator): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatParameter.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatParameter.kt index ce7f6902f3..b440a91f5b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatParameter.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFloatParameter.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -97,7 +98,7 @@ public open class VisualShaderNodeFloatParameter : VisualShaderNodeParameter() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEFLOATPARAMETER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEFLOATPARAMETER, this, scriptIndex) } public final fun setHint(hint: Hint): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFrame.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFrame.kt index 2729fb6dc2..b326692d94 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFrame.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFrame.kt @@ -9,17 +9,18 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.PackedInt32Array -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_INT_32_ARRAY import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.String @@ -93,7 +94,7 @@ public open class VisualShaderNodeFrame : VisualShaderNodeResizableBase() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEFRAME, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEFRAME, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFresnel.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFresnel.kt index f60fc56102..b8bfe62e6d 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFresnel.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeFresnel.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,7 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeFresnel : VisualShaderNode() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEFRESNEL, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEFRESNEL, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeGlobalExpression.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeGlobalExpression.kt index 2bcc4c3243..2af92e275e 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeGlobalExpression.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeGlobalExpression.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -20,7 +21,8 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeGlobalExpression : VisualShaderNodeExpression() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEGLOBALEXPRESSION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEGLOBALEXPRESSION, this, + scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeGroupBase.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeGroupBase.kt index fe0d593432..1a3df7b0b0 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeGroupBase.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeGroupBase.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -28,7 +29,7 @@ import kotlin.Unit public open class VisualShaderNodeGroupBase internal constructor() : VisualShaderNodeResizableBase() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEGROUPBASE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEGROUPBASE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIf.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIf.kt index 014d649d80..54a0fb1573 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIf.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIf.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -22,7 +23,7 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeIf : VisualShaderNode() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEIF, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEIF, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeInput.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeInput.kt index f048feabb8..bc4200d497 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeInput.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeInput.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal0 -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.String import kotlin.Suppress @@ -43,7 +44,7 @@ public open class VisualShaderNodeInput : VisualShaderNode() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEINPUT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEINPUT, this, scriptIndex) } public final fun setInputName(name: String): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntConstant.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntConstant.kt index 3405d7ad2a..646c63a797 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntConstant.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntConstant.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -35,7 +36,7 @@ public open class VisualShaderNodeIntConstant : VisualShaderNodeConstant() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEINTCONSTANT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEINTCONSTANT, this, scriptIndex) } public final fun setConstant(constant: Int): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntFunc.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntFunc.kt index d1dd8b0deb..d123a6977e 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntFunc.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntFunc.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -35,7 +36,7 @@ public open class VisualShaderNodeIntFunc : VisualShaderNode() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEINTFUNC, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEINTFUNC, this, scriptIndex) } public final fun setFunction(func: Function): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntOp.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntOp.kt index b6f3b0839c..d6d01a0b4b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntOp.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntOp.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -35,7 +36,7 @@ public open class VisualShaderNodeIntOp : VisualShaderNode() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEINTOP, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEINTOP, this, scriptIndex) } public final fun setOperator(op: Operator): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntParameter.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntParameter.kt index d72970fa13..fb543f9a41 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntParameter.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIntParameter.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -97,7 +98,7 @@ public open class VisualShaderNodeIntParameter : VisualShaderNodeParameter() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEINTPARAMETER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEINTPARAMETER, this, scriptIndex) } public final fun setHint(hint: Hint): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIs.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIs.kt index c739e1c206..5fbfb0d609 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIs.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeIs.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -35,7 +36,7 @@ public open class VisualShaderNodeIs : VisualShaderNode() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEIS, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEIS, this, scriptIndex) } public final fun setFunction(func: Function): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeLinearSceneDepth.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeLinearSceneDepth.kt index 7a3c9154d5..035495bf61 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeLinearSceneDepth.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeLinearSceneDepth.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -17,7 +18,8 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeLinearSceneDepth : VisualShaderNode() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODELINEARSCENEDEPTH, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODELINEARSCENEDEPTH, this, + scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeMix.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeMix.kt index f4d160d032..72426da00b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeMix.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeMix.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -35,7 +36,7 @@ public open class VisualShaderNodeMix : VisualShaderNode() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEMIX, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEMIX, this, scriptIndex) } public final fun setOpType(opType: OpType): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeMultiplyAdd.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeMultiplyAdd.kt index 3a31993619..7ffc6be6a9 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeMultiplyAdd.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeMultiplyAdd.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -35,7 +36,7 @@ public open class VisualShaderNodeMultiplyAdd : VisualShaderNode() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEMULTIPLYADD, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEMULTIPLYADD, this, scriptIndex) } public final fun setOpType(type: OpType): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeOuterProduct.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeOuterProduct.kt index 108cf549ac..b6d94ae583 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeOuterProduct.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeOuterProduct.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -20,7 +21,7 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeOuterProduct : VisualShaderNode() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEOUTERPRODUCT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEOUTERPRODUCT, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeOutput.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeOutput.kt index 0d18c2a959..4e210e3c22 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeOutput.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeOutput.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,7 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeOutput internal constructor() : VisualShaderNode() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEOUTPUT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEOUTPUT, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParameter.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParameter.kt index 3f0cac46d0..bbd786d01c 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParameter.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParameter.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.String @@ -50,7 +51,7 @@ public open class VisualShaderNodeParameter internal constructor() : VisualShade } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEPARAMETER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEPARAMETER, this, scriptIndex) } public final fun setParameterName(name: String): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParameterRef.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParameterRef.kt index f754c12e41..4d9d2e9cf6 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParameterRef.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParameterRef.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.String import kotlin.Suppress @@ -36,7 +37,7 @@ public open class VisualShaderNodeParameterRef : VisualShaderNode() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEPARAMETERREF, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEPARAMETERREF, this, scriptIndex) } public final fun setParameterName(name: String): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleAccelerator.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleAccelerator.kt index 9dbb6aa4ca..69861c9a6f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleAccelerator.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleAccelerator.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -36,7 +37,8 @@ public open class VisualShaderNodeParticleAccelerator : VisualShaderNode() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEPARTICLEACCELERATOR, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEPARTICLEACCELERATOR, this, + scriptIndex) } public final fun setMode(mode: Mode): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleBoxEmitter.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleBoxEmitter.kt index 89ab93805e..309e19d9be 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleBoxEmitter.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleBoxEmitter.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,8 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeParticleBoxEmitter : VisualShaderNodeParticleEmitter() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEPARTICLEBOXEMITTER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEPARTICLEBOXEMITTER, this, + scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleConeVelocity.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleConeVelocity.kt index ffefb7fca3..a26b1f8cf7 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleConeVelocity.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleConeVelocity.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,8 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeParticleConeVelocity : VisualShaderNode() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEPARTICLECONEVELOCITY, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEPARTICLECONEVELOCITY, this, + scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleEmit.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleEmit.kt index 686adb7ce7..5167534121 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleEmit.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleEmit.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -37,7 +38,7 @@ public open class VisualShaderNodeParticleEmit : VisualShaderNode() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEPARTICLEEMIT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEPARTICLEEMIT, this, scriptIndex) } public final fun setFlags(flags: EmitFlags): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleEmitter.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleEmitter.kt index ab8dd076ff..c576f14cc9 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleEmitter.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleEmitter.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -37,7 +38,7 @@ public open class VisualShaderNodeParticleEmitter internal constructor() : Visua } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEPARTICLEEMITTER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEPARTICLEEMITTER, this, scriptIndex) } public final fun setMode2d(enabled: Boolean): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleMeshEmitter.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleMeshEmitter.kt index 10f9be451d..be8719a0b0 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleMeshEmitter.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleMeshEmitter.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -62,7 +63,8 @@ public open class VisualShaderNodeParticleMeshEmitter : VisualShaderNodeParticle } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEPARTICLEMESHEMITTER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEPARTICLEMESHEMITTER, this, + scriptIndex) } public final fun setMesh(mesh: Mesh?): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleMultiplyByAxisAngle.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleMultiplyByAxisAngle.kt index c357315d5e..9a9815b205 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleMultiplyByAxisAngle.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleMultiplyByAxisAngle.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -36,7 +37,8 @@ public open class VisualShaderNodeParticleMultiplyByAxisAngle : VisualShaderNode } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEPARTICLEMULTIPLYBYAXISANGLE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEPARTICLEMULTIPLYBYAXISANGLE, this, + scriptIndex) } public final fun setDegreesMode(enabled: Boolean): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleOutput.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleOutput.kt index f693c8b680..a2bf211048 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleOutput.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleOutput.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -19,7 +20,7 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeParticleOutput : VisualShaderNodeOutput() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEPARTICLEOUTPUT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEPARTICLEOUTPUT, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleRandomness.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleRandomness.kt index 853105c23c..d4a63ae906 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleRandomness.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleRandomness.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -36,7 +37,8 @@ public open class VisualShaderNodeParticleRandomness : VisualShaderNode() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEPARTICLERANDOMNESS, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEPARTICLERANDOMNESS, this, + scriptIndex) } public final fun setOpType(type: OpType): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleRingEmitter.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleRingEmitter.kt index 8aa3097681..b968823117 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleRingEmitter.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleRingEmitter.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,8 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeParticleRingEmitter : VisualShaderNodeParticleEmitter() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEPARTICLERINGEMITTER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEPARTICLERINGEMITTER, this, + scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleSphereEmitter.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleSphereEmitter.kt index d645cb03ba..2ede37519e 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleSphereEmitter.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeParticleSphereEmitter.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,8 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeParticleSphereEmitter : VisualShaderNodeParticleEmitter() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEPARTICLESPHEREEMITTER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEPARTICLESPHEREEMITTER, this, + scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeProximityFade.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeProximityFade.kt index 40a394e028..3c9bc45f39 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeProximityFade.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeProximityFade.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -17,7 +18,7 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeProximityFade : VisualShaderNode() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEPROXIMITYFADE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEPROXIMITYFADE, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeRandomRange.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeRandomRange.kt index 5a492fd3f1..731fd52ac3 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeRandomRange.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeRandomRange.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -19,7 +20,7 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeRandomRange : VisualShaderNode() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODERANDOMRANGE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODERANDOMRANGE, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeRemap.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeRemap.kt index 70f22344fb..1b1957002f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeRemap.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeRemap.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,7 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeRemap : VisualShaderNode() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEREMAP, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEREMAP, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeReroute.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeReroute.kt index 4d376271b6..cac1629218 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeReroute.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeReroute.kt @@ -7,10 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -28,7 +29,7 @@ public open class VisualShaderNodeReroute : VisualShaderNode() { get() = getPortType() public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEREROUTE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEREROUTE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeResizableBase.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeResizableBase.kt index 1f9c2886a7..9db1b9a209 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeResizableBase.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeResizableBase.kt @@ -9,12 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -38,7 +39,7 @@ public open class VisualShaderNodeResizableBase internal constructor() : VisualS } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODERESIZABLEBASE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODERESIZABLEBASE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeRotationByAxis.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeRotationByAxis.kt index 1dfdb4d82d..579475d544 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeRotationByAxis.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeRotationByAxis.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,7 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeRotationByAxis : VisualShaderNode() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEROTATIONBYAXIS, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEROTATIONBYAXIS, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSDFRaymarch.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSDFRaymarch.kt index 2b43c60f75..392088c3d5 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSDFRaymarch.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSDFRaymarch.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -17,7 +18,7 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeSDFRaymarch : VisualShaderNode() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODESDFRAYMARCH, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODESDFRAYMARCH, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSDFToScreenUV.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSDFToScreenUV.kt index ecd359a05d..119b9cb42f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSDFToScreenUV.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSDFToScreenUV.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -17,7 +18,7 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeSDFToScreenUV : VisualShaderNode() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODESDFTOSCREENUV, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODESDFTOSCREENUV, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSample3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSample3D.kt index d98432d631..a61228da21 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSample3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSample3D.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -35,7 +36,7 @@ public open class VisualShaderNodeSample3D internal constructor() : VisualShader } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODESAMPLE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODESAMPLE3D, this, scriptIndex) } public final fun setSource(`value`: Source): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeScreenNormalWorldSpace.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeScreenNormalWorldSpace.kt index 0f71dda4b0..9e22a46b16 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeScreenNormalWorldSpace.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeScreenNormalWorldSpace.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -17,7 +18,8 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeScreenNormalWorldSpace : VisualShaderNode() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODESCREENNORMALWORLDSPACE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODESCREENNORMALWORLDSPACE, this, + scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeScreenUVToSDF.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeScreenUVToSDF.kt index a94fdd4571..885a9e244f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeScreenUVToSDF.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeScreenUVToSDF.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,7 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeScreenUVToSDF : VisualShaderNode() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODESCREENUVTOSDF, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODESCREENUVTOSDF, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSmoothStep.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSmoothStep.kt index 882641a5b8..883fc6ca5f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSmoothStep.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSmoothStep.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -37,7 +38,7 @@ public open class VisualShaderNodeSmoothStep : VisualShaderNode() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODESMOOTHSTEP, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODESMOOTHSTEP, this, scriptIndex) } public final fun setOpType(opType: OpType): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeStep.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeStep.kt index 0489d81a8e..72fd7381e0 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeStep.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeStep.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -36,7 +37,7 @@ public open class VisualShaderNodeStep : VisualShaderNode() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODESTEP, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODESTEP, this, scriptIndex) } public final fun setOpType(opType: OpType): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSwitch.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSwitch.kt index c882fcff5a..5bc79f46b4 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSwitch.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeSwitch.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -36,7 +37,7 @@ public open class VisualShaderNodeSwitch : VisualShaderNode() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODESWITCH, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODESWITCH, this, scriptIndex) } public final fun setOpType(type: OpType): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture.kt index b378f7da15..21be10f7e6 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -60,7 +61,7 @@ public open class VisualShaderNodeTexture : VisualShaderNode() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODETEXTURE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODETEXTURE, this, scriptIndex) } public final fun setSource(`value`: Source): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture2DArray.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture2DArray.kt index fb4b69ff03..08c8f4b2c7 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture2DArray.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture2DArray.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -35,7 +36,7 @@ public open class VisualShaderNodeTexture2DArray : VisualShaderNodeSample3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODETEXTURE2DARRAY, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODETEXTURE2DARRAY, this, scriptIndex) } public final fun setTextureArray(`value`: Texture2DArray?): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture2DArrayParameter.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture2DArrayParameter.kt index 09d3f64000..8ffb843bea 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture2DArrayParameter.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture2DArrayParameter.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,8 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeTexture2DArrayParameter : VisualShaderNodeTextureParameter() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODETEXTURE2DARRAYPARAMETER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODETEXTURE2DARRAYPARAMETER, this, + scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture2DParameter.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture2DParameter.kt index 25352b8895..b504ed12bd 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture2DParameter.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture2DParameter.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -17,7 +18,8 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeTexture2DParameter : VisualShaderNodeTextureParameter() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODETEXTURE2DPARAMETER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODETEXTURE2DPARAMETER, this, + scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture3D.kt index 58d8b99d00..3b3c6e96fc 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture3D.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -36,7 +37,7 @@ public open class VisualShaderNodeTexture3D : VisualShaderNodeSample3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODETEXTURE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODETEXTURE3D, this, scriptIndex) } public final fun setTexture(`value`: Texture3D?): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture3DParameter.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture3DParameter.kt index 48714f7456..78d70d550d 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture3DParameter.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTexture3DParameter.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -17,7 +18,8 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeTexture3DParameter : VisualShaderNodeTextureParameter() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODETEXTURE3DPARAMETER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODETEXTURE3DPARAMETER, this, + scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTextureParameter.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTextureParameter.kt index 39672c5f2d..8178f6e7c8 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTextureParameter.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTextureParameter.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -81,7 +82,8 @@ public open class VisualShaderNodeTextureParameter internal constructor() : } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODETEXTUREPARAMETER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODETEXTUREPARAMETER, this, + scriptIndex) } public final fun setTextureType(type: TextureType): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTextureParameterTriplanar.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTextureParameterTriplanar.kt index d8543648e7..bf2ecfc3fe 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTextureParameterTriplanar.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTextureParameterTriplanar.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,8 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeTextureParameterTriplanar : VisualShaderNodeTextureParameter() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODETEXTUREPARAMETERTRIPLANAR, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODETEXTUREPARAMETERTRIPLANAR, this, + scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTextureSDF.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTextureSDF.kt index be4df8fd05..35650137b1 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTextureSDF.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTextureSDF.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -17,7 +18,7 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeTextureSDF : VisualShaderNode() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODETEXTURESDF, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODETEXTURESDF, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTextureSDFNormal.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTextureSDFNormal.kt index dd34efc3cf..d921a610b5 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTextureSDFNormal.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTextureSDFNormal.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -17,7 +18,8 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeTextureSDFNormal : VisualShaderNode() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODETEXTURESDFNORMAL, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODETEXTURESDFNORMAL, this, + scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformCompose.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformCompose.kt index bf66ce8f9d..ddee70b6f1 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformCompose.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformCompose.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,8 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeTransformCompose : VisualShaderNode() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODETRANSFORMCOMPOSE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODETRANSFORMCOMPOSE, this, + scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformConstant.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformConstant.kt index ae3c3bbda1..905cb645cd 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformConstant.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformConstant.kt @@ -9,12 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Transform3D -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.TRANSFORM3D -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -38,7 +39,8 @@ public open class VisualShaderNodeTransformConstant : VisualShaderNodeConstant() } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODETRANSFORMCONSTANT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODETRANSFORMCONSTANT, this, + scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformDecompose.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformDecompose.kt index d8430d27c3..88eb1f799b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformDecompose.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformDecompose.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,8 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeTransformDecompose : VisualShaderNode() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODETRANSFORMDECOMPOSE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODETRANSFORMDECOMPOSE, this, + scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformFunc.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformFunc.kt index 775d91aa43..545bb6a023 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformFunc.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformFunc.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -35,7 +36,7 @@ public open class VisualShaderNodeTransformFunc : VisualShaderNode() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODETRANSFORMFUNC, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODETRANSFORMFUNC, this, scriptIndex) } public final fun setFunction(func: Function): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformOp.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformOp.kt index a4d234a6ee..b5f9e420e9 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformOp.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformOp.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -35,7 +36,7 @@ public open class VisualShaderNodeTransformOp : VisualShaderNode() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODETRANSFORMOP, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODETRANSFORMOP, this, scriptIndex) } public final fun setOperator(op: Operator): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformParameter.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformParameter.kt index 76e99b0145..07aec66792 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformParameter.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformParameter.kt @@ -9,13 +9,14 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Transform3D -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser.TRANSFORM3D -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -51,7 +52,8 @@ public open class VisualShaderNodeTransformParameter : VisualShaderNodeParameter } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODETRANSFORMPARAMETER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODETRANSFORMPARAMETER, this, + scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformVecMult.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformVecMult.kt index b227734724..1d68783d59 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformVecMult.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTransformVecMult.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -36,7 +37,8 @@ public open class VisualShaderNodeTransformVecMult : VisualShaderNode() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODETRANSFORMVECMULT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODETRANSFORMVECMULT, this, + scriptIndex) } public final fun setOperator(op: Operator): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntConstant.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntConstant.kt index 6f01add3ad..884a79ff9a 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntConstant.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntConstant.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -35,7 +36,7 @@ public open class VisualShaderNodeUIntConstant : VisualShaderNodeConstant() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEUINTCONSTANT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEUINTCONSTANT, this, scriptIndex) } public final fun setConstant(constant: Int): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntFunc.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntFunc.kt index e6c940ba17..e129222594 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntFunc.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntFunc.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -36,7 +37,7 @@ public open class VisualShaderNodeUIntFunc : VisualShaderNode() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEUINTFUNC, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEUINTFUNC, this, scriptIndex) } public final fun setFunction(func: Function): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntOp.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntOp.kt index 13884257a9..4986f487ea 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntOp.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntOp.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -35,7 +36,7 @@ public open class VisualShaderNodeUIntOp : VisualShaderNode() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEUINTOP, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEUINTOP, this, scriptIndex) } public final fun setOperator(op: Operator): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntParameter.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntParameter.kt index a86e91e88d..b355315f13 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntParameter.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUIntParameter.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -50,7 +51,7 @@ public open class VisualShaderNodeUIntParameter : VisualShaderNodeParameter() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEUINTPARAMETER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEUINTPARAMETER, this, scriptIndex) } public final fun setDefaultValueEnabled(enabled: Boolean): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUVFunc.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUVFunc.kt index 402718f601..2889edaa26 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUVFunc.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUVFunc.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -36,7 +37,7 @@ public open class VisualShaderNodeUVFunc : VisualShaderNode() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEUVFUNC, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEUVFUNC, this, scriptIndex) } public final fun setFunction(func: Function): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUVPolarCoord.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUVPolarCoord.kt index 0662337ed1..b4b52a2993 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUVPolarCoord.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeUVPolarCoord.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,7 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeUVPolarCoord : VisualShaderNode() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEUVPOLARCOORD, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEUVPOLARCOORD, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVarying.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVarying.kt index fecf836cc3..e623f78b88 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVarying.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVarying.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.String @@ -49,7 +50,7 @@ public open class VisualShaderNodeVarying internal constructor() : VisualShaderN } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEVARYING, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEVARYING, this, scriptIndex) } public final fun setVaryingName(name: String): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVaryingGetter.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVaryingGetter.kt index 5e6b2f082f..8c9365e24d 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVaryingGetter.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVaryingGetter.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -19,7 +20,7 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeVaryingGetter : VisualShaderNodeVarying() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEVARYINGGETTER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEVARYINGGETTER, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVaryingSetter.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVaryingSetter.kt index 9498b4e4da..a81da2dee9 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVaryingSetter.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVaryingSetter.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -19,7 +20,7 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeVaryingSetter : VisualShaderNodeVarying() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEVARYINGSETTER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEVARYINGSETTER, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec2Constant.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec2Constant.kt index 3568e9feb2..ba8f274f34 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec2Constant.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec2Constant.kt @@ -9,12 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -38,7 +39,7 @@ public open class VisualShaderNodeVec2Constant : VisualShaderNodeConstant() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEVEC2CONSTANT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEVEC2CONSTANT, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec2Parameter.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec2Parameter.kt index 731eb77d86..f4926089af 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec2Parameter.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec2Parameter.kt @@ -9,13 +9,14 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -51,7 +52,7 @@ public open class VisualShaderNodeVec2Parameter : VisualShaderNodeParameter() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEVEC2PARAMETER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEVEC2PARAMETER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec3Constant.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec3Constant.kt index db3806a9be..b2e97831dc 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec3Constant.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec3Constant.kt @@ -9,12 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -38,7 +39,7 @@ public open class VisualShaderNodeVec3Constant : VisualShaderNodeConstant() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEVEC3CONSTANT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEVEC3CONSTANT, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec3Parameter.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec3Parameter.kt index eccedc6fef..2f0667b083 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec3Parameter.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec3Parameter.kt @@ -9,13 +9,14 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -51,7 +52,7 @@ public open class VisualShaderNodeVec3Parameter : VisualShaderNodeParameter() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEVEC3PARAMETER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEVEC3PARAMETER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec4Constant.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec4Constant.kt index dc7d76523a..008908d1ee 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec4Constant.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec4Constant.kt @@ -9,12 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Quaternion -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.QUATERNION -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -38,7 +39,7 @@ public open class VisualShaderNodeVec4Constant : VisualShaderNodeConstant() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEVEC4CONSTANT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEVEC4CONSTANT, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec4Parameter.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec4Parameter.kt index fd3b4890f2..40045488db 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec4Parameter.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVec4Parameter.kt @@ -9,13 +9,14 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR4 import godot.core.Vector4 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Suppress @@ -51,7 +52,7 @@ public open class VisualShaderNodeVec4Parameter : VisualShaderNodeParameter() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEVEC4PARAMETER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEVEC4PARAMETER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorBase.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorBase.kt index 43d4bffd29..4008184cd2 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorBase.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorBase.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -35,7 +36,7 @@ public open class VisualShaderNodeVectorBase internal constructor() : VisualShad } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEVECTORBASE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEVECTORBASE, this, scriptIndex) } public final fun setOpType(type: OpType): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorCompose.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorCompose.kt index 08c400d111..d5395fa7f4 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorCompose.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorCompose.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -17,7 +18,7 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeVectorCompose : VisualShaderNodeVectorBase() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEVECTORCOMPOSE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEVECTORCOMPOSE, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorDecompose.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorDecompose.kt index 2f3b573de1..efffdacc54 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorDecompose.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorDecompose.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,7 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeVectorDecompose : VisualShaderNodeVectorBase() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEVECTORDECOMPOSE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEVECTORDECOMPOSE, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorDistance.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorDistance.kt index ae93b34a87..30f43d4b78 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorDistance.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorDistance.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,7 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeVectorDistance : VisualShaderNodeVectorBase() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEVECTORDISTANCE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEVECTORDISTANCE, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorFunc.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorFunc.kt index 6eb2a94205..5d68c07d1d 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorFunc.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorFunc.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -35,7 +36,7 @@ public open class VisualShaderNodeVectorFunc : VisualShaderNodeVectorBase() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEVECTORFUNC, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEVECTORFUNC, this, scriptIndex) } public final fun setFunction(func: Function): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorLen.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorLen.kt index 576994755a..db9feee16c 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorLen.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorLen.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -17,7 +18,7 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeVectorLen : VisualShaderNodeVectorBase() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEVECTORLEN, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEVECTORLEN, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorOp.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorOp.kt index 71e40b089c..d9eebc4b9f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorOp.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorOp.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -35,7 +36,7 @@ public open class VisualShaderNodeVectorOp : VisualShaderNodeVectorBase() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEVECTOROP, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEVECTOROP, this, scriptIndex) } public final fun setOperator(op: Operator): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorRefract.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorRefract.kt index b6a47e1477..6f8fc2a43f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorRefract.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeVectorRefract.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,7 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeVectorRefract : VisualShaderNodeVectorBase() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEVECTORREFRACT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEVECTORREFRACT, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeWorldPositionFromDepth.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeWorldPositionFromDepth.kt index 681954de99..4ecd3aabd2 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeWorldPositionFromDepth.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeWorldPositionFromDepth.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -18,7 +19,8 @@ import kotlin.Unit @GodotBaseType public open class VisualShaderNodeWorldPositionFromDepth : VisualShaderNode() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VISUALSHADERNODEWORLDPOSITIONFROMDEPTH, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VISUALSHADERNODEWORLDPOSITIONFROMDEPTH, this, + scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VoxelGI.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VoxelGI.kt index f671d51e67..ae859b9ecd 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VoxelGI.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VoxelGI.kt @@ -9,15 +9,16 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -106,7 +107,7 @@ public open class VoxelGI : VisualInstance3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VOXELGI, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VOXELGI, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VoxelGIData.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VoxelGIData.kt index 7eb44231db..4ad3d79700 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VoxelGIData.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/VoxelGIData.kt @@ -7,12 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.AABB import godot.core.PackedByteArray import godot.core.PackedInt32Array import godot.core.Transform3D -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL @@ -21,7 +23,6 @@ import godot.core.VariantParser.PACKED_INT_32_ARRAY import godot.core.VariantParser.TRANSFORM3D import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -140,7 +141,7 @@ public open class VoxelGIData : Resource() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_VOXELGIDATA, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_VOXELGIDATA, this, scriptIndex) } public final fun allocate( diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WeakRef.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WeakRef.kt index 2e25b12f8a..45048cdd39 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WeakRef.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WeakRef.kt @@ -7,10 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantCaster.ANY -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Int import kotlin.Suppress @@ -28,7 +29,7 @@ import kotlin.Unit @GodotBaseType public open class WeakRef : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_WEAKREF, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_WEAKREF, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WebRTCDataChannel.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WebRTCDataChannel.kt index b34ff8c40a..d3de1dcd13 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WebRTCDataChannel.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WebRTCDataChannel.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -36,7 +37,7 @@ public open class WebRTCDataChannel internal constructor() : PacketPeer() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_WEBRTCDATACHANNEL, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_WEBRTCDATACHANNEL, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WebRTCDataChannelExtension.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WebRTCDataChannelExtension.kt index 07b1d937f1..b788895e0d 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WebRTCDataChannelExtension.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WebRTCDataChannelExtension.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Boolean import kotlin.Int import kotlin.NotImplementedError @@ -17,7 +18,7 @@ import kotlin.Unit @GodotBaseType public open class WebRTCDataChannelExtension : WebRTCDataChannel() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_WEBRTCDATACHANNELEXTENSION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_WEBRTCDATACHANNELEXTENSION, this, scriptIndex) } public open fun _getAvailablePacketCount(): Int { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WebRTCMultiplayerPeer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WebRTCMultiplayerPeer.kt index 1cde76c837..b2efaee5db 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WebRTCMultiplayerPeer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WebRTCMultiplayerPeer.kt @@ -7,9 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Dictionary -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -17,7 +19,6 @@ import godot.core.VariantParser.DICTIONARY import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Int @@ -43,7 +44,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class WebRTCMultiplayerPeer : MultiplayerPeer() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_WEBRTCMULTIPLAYERPEER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_WEBRTCMULTIPLAYERPEER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WebRTCPeerConnection.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WebRTCPeerConnection.kt index c322b7f414..6c5a5b44cc 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WebRTCPeerConnection.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WebRTCPeerConnection.kt @@ -7,20 +7,21 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.Signal1 import godot.core.Signal2 import godot.core.Signal3 import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DICTIONARY import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Int import kotlin.Long @@ -65,7 +66,7 @@ public open class WebRTCPeerConnection : RefCounted() { public val dataChannelReceived: Signal1 by Signal1 public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_WEBRTCPEERCONNECTION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_WEBRTCPEERCONNECTION, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WebRTCPeerConnectionExtension.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WebRTCPeerConnectionExtension.kt index e8990bc5e2..d3f77c32c1 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WebRTCPeerConnectionExtension.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WebRTCPeerConnectionExtension.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import godot.core.Dictionary import kotlin.Any import kotlin.Int @@ -18,7 +19,7 @@ import kotlin.Unit @GodotBaseType public open class WebRTCPeerConnectionExtension : WebRTCPeerConnection() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_WEBRTCPEERCONNECTIONEXTENSION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_WEBRTCPEERCONNECTIONEXTENSION, this, scriptIndex) } public open fun _getConnectionState(): WebRTCPeerConnection.ConnectionState { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WebSocketMultiplayerPeer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WebSocketMultiplayerPeer.kt index 8914c6c922..ae06991391 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WebSocketMultiplayerPeer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WebSocketMultiplayerPeer.kt @@ -7,16 +7,17 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedStringArray -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -107,7 +108,7 @@ public open class WebSocketMultiplayerPeer : MultiplayerPeer() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_WEBSOCKETMULTIPLAYERPEER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_WEBSOCKETMULTIPLAYERPEER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WebSocketPeer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WebSocketPeer.kt index dfef3073d0..91c3210328 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WebSocketPeer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WebSocketPeer.kt @@ -7,10 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedByteArray import godot.core.PackedStringArray -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL @@ -18,7 +20,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -127,7 +128,7 @@ public open class WebSocketPeer : PacketPeer() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_WEBSOCKETPEER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_WEBSOCKETPEER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WebXRInterface.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WebXRInterface.kt index cdeb578abb..1e789b449f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WebXRInterface.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WebXRInterface.kt @@ -7,11 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal0 import godot.core.Signal1 import godot.core.Signal2 -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -20,7 +22,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -334,7 +335,7 @@ public open class WebXRInterface internal constructor() : XRInterface() { get() = getVisibilityState() public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_WEBXRINTERFACE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_WEBXRINTERFACE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Window.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Window.kt index 3f5a80d39d..862499cb03 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Window.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/Window.kt @@ -9,6 +9,9 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Color import godot.core.PackedStringArray @@ -17,7 +20,6 @@ import godot.core.Rect2i import godot.core.Signal0 import godot.core.Signal1 import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.COLOR import godot.core.VariantParser.DOUBLE @@ -32,7 +34,6 @@ import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser.VECTOR2I import godot.core.Vector2 import godot.core.Vector2i -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -575,7 +576,7 @@ public open class Window : Viewport() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_WINDOW, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_WINDOW, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WorkerThreadPool.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WorkerThreadPool.kt index 2ebcb944ed..e70b67cc5c 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WorkerThreadPool.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WorkerThreadPool.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Callable -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.CALLABLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -77,7 +78,7 @@ import kotlin.jvm.JvmStatic @GodotBaseType public object WorkerThreadPool : Object() { public override fun new(scriptIndex: Int): Unit { - getSingleton(ENGINECLASS_WORKERTHREADPOOL) + MemoryManager.getSingleton(ENGINECLASS_WORKERTHREADPOOL) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/World2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/World2D.kt index a61a93582b..eb9601ea0d 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/World2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/World2D.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantParser.OBJECT import godot.core.VariantParser._RID -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -56,7 +57,7 @@ public open class World2D : Resource() { get() = getDirectSpaceState() public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_WORLD2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_WORLD2D, this, scriptIndex) } public final fun getCanvas(): RID { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/World3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/World3D.kt index edf764b52f..174457c5dc 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/World3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/World3D.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser._RID -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -89,7 +90,7 @@ public open class World3D : Resource() { get() = getDirectSpaceState() public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_WORLD3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_WORLD3D, this, scriptIndex) } public final fun getSpace(): RID { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WorldBoundaryShape2D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WorldBoundaryShape2D.kt index 8c1d4cae83..f66ffdab3f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WorldBoundaryShape2D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WorldBoundaryShape2D.kt @@ -9,13 +9,14 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -60,7 +61,7 @@ public open class WorldBoundaryShape2D : Shape2D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_WORLDBOUNDARYSHAPE2D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_WORLDBOUNDARYSHAPE2D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WorldBoundaryShape3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WorldBoundaryShape3D.kt index 4613056329..81a3f9cc8a 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WorldBoundaryShape3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WorldBoundaryShape3D.kt @@ -9,12 +9,13 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Plane -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.PLANE -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -41,7 +42,7 @@ public open class WorldBoundaryShape3D : Shape3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_WORLDBOUNDARYSHAPE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_WORLDBOUNDARYSHAPE3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WorldEnvironment.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WorldEnvironment.kt index be1ca65aa0..d206affad2 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WorldEnvironment.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/WorldEnvironment.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -63,7 +64,7 @@ public open class WorldEnvironment : Node() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_WORLDENVIRONMENT, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_WORLDENVIRONMENT, this, scriptIndex) } public final fun setEnvironment(env: Environment?): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/X509Certificate.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/X509Certificate.kt index ccb18eddd1..16f843c932 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/X509Certificate.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/X509Certificate.kt @@ -7,11 +7,12 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.String @@ -28,7 +29,7 @@ import kotlin.Unit @GodotBaseType public open class X509Certificate : Resource() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_X509CERTIFICATE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_X509CERTIFICATE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XMLParser.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XMLParser.kt index f9c1e4b33c..e351ab4503 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XMLParser.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XMLParser.kt @@ -7,15 +7,16 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedByteArray -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -67,7 +68,7 @@ import kotlin.Unit @GodotBaseType public open class XMLParser : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_XMLPARSER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_XMLPARSER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRAnchor3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRAnchor3D.kt index 4fd50e6655..d62843955e 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRAnchor3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRAnchor3D.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Plane -import godot.internal.reflection.TypeManager import godot.core.VariantParser.PLANE import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -33,7 +34,7 @@ import kotlin.Unit @GodotBaseType public open class XRAnchor3D : XRNode3D() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_XRANCHOR3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_XRANCHOR3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRBodyModifier3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRBodyModifier3D.kt index 09290333bc..4f0d9a13a6 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRBodyModifier3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRBodyModifier3D.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -65,7 +66,7 @@ public open class XRBodyModifier3D : SkeletonModifier3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_XRBODYMODIFIER3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_XRBODYMODIFIER3D, this, scriptIndex) } public final fun setBodyTracker(trackerName: StringName): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRBodyTracker.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRBodyTracker.kt index 0ad55e0a67..1a3635cf6c 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRBodyTracker.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRBodyTracker.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Transform3D -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.TRANSFORM3D -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -54,7 +55,7 @@ public open class XRBodyTracker : XRPositionalTracker() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_XRBODYTRACKER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_XRBODYTRACKER, this, scriptIndex) } public final fun setHasTrackingData(hasData: Boolean): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRCamera3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRCamera3D.kt index 9f9d3c218e..464b96f1b2 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRCamera3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRCamera3D.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -24,7 +25,7 @@ import kotlin.Unit @GodotBaseType public open class XRCamera3D : Camera3D() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_XRCAMERA3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_XRCAMERA3D, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRController3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRController3D.kt index afd4e03fd4..73d21e91a9 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRController3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRController3D.kt @@ -7,11 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal1 import godot.core.Signal2 import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantCaster.ANY import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE @@ -19,7 +21,6 @@ import godot.core.VariantParser.LONG import godot.core.VariantParser.STRING_NAME import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -70,7 +71,7 @@ public open class XRController3D : XRNode3D() { public val profileChanged: Signal1 by Signal1 public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_XRCONTROLLER3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_XRCONTROLLER3D, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRControllerTracker.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRControllerTracker.kt index 4ecb36d261..cb2172a881 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRControllerTracker.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRControllerTracker.kt @@ -7,6 +7,7 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -20,7 +21,7 @@ import kotlin.Unit @GodotBaseType public open class XRControllerTracker : XRPositionalTracker() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_XRCONTROLLERTRACKER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_XRCONTROLLERTRACKER, this, scriptIndex) } public companion object diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRFaceModifier3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRFaceModifier3D.kt index 63bc0ef8d5..ee80842308 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRFaceModifier3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRFaceModifier3D.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.NodePath import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantParser.NIL import godot.core.VariantParser.NODE_PATH import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Suppress import kotlin.Unit @@ -55,7 +56,7 @@ public open class XRFaceModifier3D : Node3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_XRFACEMODIFIER3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_XRFACEMODIFIER3D, this, scriptIndex) } public final fun setFaceTracker(trackerName: StringName): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRFaceTracker.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRFaceTracker.kt index e144bc78dd..184f4dac20 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRFaceTracker.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRFaceTracker.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedFloat32Array -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_FLOAT_32_ARRAY -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -48,7 +49,7 @@ public open class XRFaceTracker : XRTracker() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_XRFACETRACKER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_XRFACETRACKER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRHandModifier3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRHandModifier3D.kt index 36bf6de049..d7bdab187c 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRHandModifier3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRHandModifier3D.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.Suppress @@ -53,7 +54,7 @@ public open class XRHandModifier3D : SkeletonModifier3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_XRHANDMODIFIER3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_XRHANDMODIFIER3D, this, scriptIndex) } public final fun setHandTracker(trackerName: StringName): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRHandTracker.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRHandTracker.kt index 7b87c3d3fd..6cad845cde 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRHandTracker.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRHandTracker.kt @@ -7,9 +7,11 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Transform3D -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -17,7 +19,6 @@ import godot.core.VariantParser.NIL import godot.core.VariantParser.TRANSFORM3D import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -59,7 +60,7 @@ public open class XRHandTracker : XRPositionalTracker() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_XRHANDTRACKER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_XRHANDTRACKER, this, scriptIndex) } public final fun setHasTrackingData(hasData: Boolean): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRInterface.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRInterface.kt index 86edf82e9d..c4f3157acd 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRInterface.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRInterface.kt @@ -7,6 +7,9 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedVector3Array @@ -14,7 +17,6 @@ import godot.core.Projection import godot.core.Signal1 import godot.core.StringName import godot.core.Transform3D -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -29,7 +31,6 @@ import godot.core.VariantParser.STRING_NAME import godot.core.VariantParser.TRANSFORM3D import godot.core.VariantParser.VECTOR2 import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -94,7 +95,7 @@ public open class XRInterface internal constructor() : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_XRINTERFACE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_XRINTERFACE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRInterfaceExtension.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRInterfaceExtension.kt index a74836b0ec..cc3794076b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRInterfaceExtension.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRInterfaceExtension.kt @@ -7,6 +7,9 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.PackedFloat64Array @@ -17,7 +20,6 @@ import godot.core.Rect2 import godot.core.Rect2i import godot.core.StringName import godot.core.Transform3D -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.LONG @@ -27,7 +29,6 @@ import godot.core.VariantParser.RECT2I import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -44,7 +45,7 @@ import kotlin.Unit @GodotBaseType public open class XRInterfaceExtension : XRInterface() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_XRINTERFACEEXTENSION, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_XRINTERFACEEXTENSION, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRNode3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRNode3D.kt index b352456afc..797e490409 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRNode3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRNode3D.kt @@ -7,17 +7,18 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal1 import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Int @@ -79,7 +80,7 @@ public open class XRNode3D : Node3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_XRNODE3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_XRNODE3D, this, scriptIndex) } public final fun setTracker(trackerName: StringName): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XROrigin3D.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XROrigin3D.kt index f65edad3c2..271a194053 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XROrigin3D.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XROrigin3D.kt @@ -7,12 +7,13 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Double import kotlin.Float @@ -62,7 +63,7 @@ public open class XROrigin3D : Node3D() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_XRORIGIN3D, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_XRORIGIN3D, this, scriptIndex) } public final fun setWorldScale(worldScale: Float): Unit { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRPose.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRPose.kt index bb21dffcc8..78c6f6da10 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRPose.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRPose.kt @@ -9,10 +9,12 @@ package godot import godot.`annotation`.CoreTypeHelper import godot.`annotation`.CoreTypeLocalCopy import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.StringName import godot.core.Transform3D -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL @@ -20,7 +22,6 @@ import godot.core.VariantParser.STRING_NAME import godot.core.VariantParser.TRANSFORM3D import godot.core.VariantParser.VECTOR3 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -116,7 +117,7 @@ public open class XRPose : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_XRPOSE, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_XRPOSE, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRPositionalTracker.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRPositionalTracker.kt index 9b76922778..f1528c96d2 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRPositionalTracker.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRPositionalTracker.kt @@ -7,12 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Signal1 import godot.core.Signal2 import godot.core.StringName import godot.core.Transform3D -import godot.internal.reflection.TypeManager import godot.core.VariantCaster.ANY import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG @@ -24,7 +26,6 @@ import godot.core.VariantParser.TRANSFORM3D import godot.core.VariantParser.VECTOR3 import godot.core.Vector2 import godot.core.Vector3 -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -106,7 +107,7 @@ public open class XRPositionalTracker : XRTracker() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_XRPOSITIONALTRACKER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_XRPOSITIONALTRACKER, this, scriptIndex) } public final fun getTrackerProfile(): String { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRServer.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRServer.kt index 4faf67a1bf..fc525ec098 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRServer.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRServer.kt @@ -7,6 +7,9 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.Dictionary import godot.core.Signal0 @@ -14,7 +17,6 @@ import godot.core.Signal1 import godot.core.Signal2 import godot.core.StringName import godot.core.Transform3D -import godot.internal.reflection.TypeManager import godot.core.VariantArray import godot.core.VariantParser.ARRAY import godot.core.VariantParser.BOOL @@ -26,7 +28,6 @@ import godot.core.VariantParser.OBJECT import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME import godot.core.VariantParser.TRANSFORM3D -import godot.internal.memory.TransferContext import kotlin.Any import kotlin.Boolean import kotlin.Double @@ -86,7 +87,7 @@ public object XRServer : Object() { public val trackerRemoved: Signal2 by Signal2 public override fun new(scriptIndex: Int): Unit { - getSingleton(ENGINECLASS_XRSERVER) + MemoryManager.getSingleton(ENGINECLASS_XRSERVER) } @JvmStatic diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRTracker.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRTracker.kt index 7a372eb7a6..c48e7bdb3b 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRTracker.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRTracker.kt @@ -7,14 +7,15 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.StringName -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.NIL import godot.core.VariantParser.STRING import godot.core.VariantParser.STRING_NAME -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.String @@ -70,7 +71,7 @@ public open class XRTracker internal constructor() : RefCounted() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_XRTRACKER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_XRTRACKER, this, scriptIndex) } public final fun getTrackerType(): XRServer.TrackerType { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRVRS.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRVRS.kt index 98b7d21b35..4aa809b56f 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRVRS.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/XRVRS.kt @@ -7,17 +7,18 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedVector2Array import godot.core.RID -import godot.internal.reflection.TypeManager import godot.core.VariantParser.DOUBLE import godot.core.VariantParser.NIL import godot.core.VariantParser.PACKED_VECTOR2_ARRAY import godot.core.VariantParser.VECTOR2 import godot.core.VariantParser._RID import godot.core.Vector2 -import godot.internal.memory.TransferContext import kotlin.Double import kotlin.Float import kotlin.Int @@ -56,7 +57,7 @@ public open class XRVRS : Object() { } public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_XRVRS, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_XRVRS, this, scriptIndex) } public final fun getVrsMinRadius(): Float { diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ZIPPacker.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ZIPPacker.kt index 3e69cbc413..aa7c30776e 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ZIPPacker.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ZIPPacker.kt @@ -7,13 +7,14 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedByteArray -import godot.internal.reflection.TypeManager import godot.core.VariantParser.LONG import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Int import kotlin.Long import kotlin.String @@ -40,7 +41,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class ZIPPacker : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ZIPPACKER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ZIPPACKER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ZIPReader.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ZIPReader.kt index aa9455fc4a..c964bded74 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ZIPReader.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/ZIPReader.kt @@ -7,16 +7,17 @@ package godot import godot.`annotation`.GodotBaseType +import godot.`internal`.memory.MemoryManager +import godot.`internal`.memory.TransferContext +import godot.`internal`.reflection.TypeManager import godot.common.interop.VoidPtr import godot.core.PackedByteArray import godot.core.PackedStringArray -import godot.internal.reflection.TypeManager import godot.core.VariantParser.BOOL import godot.core.VariantParser.LONG import godot.core.VariantParser.PACKED_BYTE_ARRAY import godot.core.VariantParser.PACKED_STRING_ARRAY import godot.core.VariantParser.STRING -import godot.internal.memory.TransferContext import kotlin.Boolean import kotlin.Int import kotlin.Long @@ -42,7 +43,7 @@ import kotlin.jvm.JvmOverloads @GodotBaseType public open class ZIPReader : RefCounted() { public override fun new(scriptIndex: Int): Unit { - callConstructor(ENGINECLASS_ZIPREADER, scriptIndex) + MemoryManager.createNativeObject(ENGINECLASS_ZIPREADER, this, scriptIndex) } /** diff --git a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/core/LambdaCallables.kt b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/core/LambdaCallables.kt index 8fd661423d..897fcaa686 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/gen/godot/core/LambdaCallables.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/gen/godot/core/LambdaCallables.kt @@ -2,6 +2,7 @@ package godot.core +import godot.common.interop.VariantConverter import godot.core.VariantParser.NIL import java.lang.Class import kotlin.Any diff --git a/kt/godot-core-library/src/main/kotlin/godot/global/GD.kt b/kt/godot-core-library/src/main/kotlin/godot/global/GD.kt index e2f12ebca9..bf6981add4 100644 --- a/kt/godot-core-library/src/main/kotlin/godot/global/GD.kt +++ b/kt/godot-core-library/src/main/kotlin/godot/global/GD.kt @@ -92,6 +92,6 @@ object GD : GDMath, GDCore, GDRandom, GDPrint { * Useful when you have to free third party resources or terminate non-daemon threads. * */ fun callWhenClosing(callback: () -> Unit) { - MemoryManager.registerCallback(callback) + MemoryManager.registerCallback(false, callback) } } diff --git a/kt/godot-internal-library/src/main/kotlin/godot/internal/memory/MemoryManager.kt b/kt/godot-internal-library/src/main/kotlin/godot/internal/memory/MemoryManager.kt index 8504f47fcd..2b8bc10e5b 100644 --- a/kt/godot-internal-library/src/main/kotlin/godot/internal/memory/MemoryManager.kt +++ b/kt/godot-internal-library/src/main/kotlin/godot/internal/memory/MemoryManager.kt @@ -2,15 +2,14 @@ package godot.internal.memory -import godot.common.interop.IdentityPointer +import godot.common.interop.NativeWrapper import godot.common.interop.ObjectID -import godot.common.interop.ValuePointer +import godot.common.interop.NativePointer import godot.common.interop.VariantConverter import godot.common.interop.VoidPtr import godot.internal.memory.binding.GodotBinding import godot.internal.memory.binding.NativeCoreBinding import godot.internal.memory.binding.RefCountedBinding -import godot.internal.reflection.TypeManager import java.util.concurrent.ConcurrentHashMap import java.util.concurrent.locks.ReentrantReadWriteLock import kotlin.concurrent.read @@ -76,66 +75,45 @@ object MemoryManager { private val deadNativeCores = mutableListOf() /** List of cleanup callbacks. When the game closes, they will be called.*/ - private var cleanupCallbacks = mutableListOf<() -> Unit>() + private var cleanupCallbacks = mutableListOf Unit>>() - fun registerCallback(callback: () -> Unit) { - cleanupCallbacks.add(callback) + fun registerCallback(persistAfterReload: Boolean = false, callback: () -> Unit) { + cleanupCallbacks.add(persistAfterReload to callback) } /** - * The godot object has just been created. We can directly add it to ObjectDB because we know the slot is free. + * The Godot native object has just been created. We can directly add it to ObjectDB because we know the slot is free. */ - fun registerNewInstance(instance: IdentityPointer) = lock.write { - ObjectDB[instance.objectID] = GodotBinding.create(instance) + fun registerNewNativeObject(binding: GodotBinding) = lock.write { + ObjectDB[binding.objectID] = binding + binding } /** - * Create a script on top of an existing native object. We need additional checks to find if a twin wrapper exists. + * Check if a native object already has a wrapper, if not, we create it. */ - fun createScript(ptr: VoidPtr, id: Long, constructor: () -> T): T { - val instance = IdentityPointer(ptr, id, constructor) + fun getInstanceOrCreate(id: ObjectID, constructor: () -> NativeWrapper): NativeWrapper { - val objectId = ObjectID(id) - - return lock.write { - val binding = ObjectDB.put(objectId, GodotBinding.create(instance)) - - if (binding != null) { - val wrapper = binding.instance - wrapper?.twin = instance - instance.twin = wrapper - } - instance + return lock.read { + // We first try to get a match. + ObjectDB[id]?.instance + } ?: lock.write { + // Fallback to creating the wrapper. + // We check a second time in a write lock in case it got created after the read lock by another thread + ObjectDB[id]?.instance ?: constructor().also { ObjectDB[id] = it.memoryBinding as GodotBinding } } } /** - * Remove the existing Script instance from the ObjectDB and replace it from the matching wrapper. + * Create a script on top of an existing native object. We need additional checks to find if a twin exists. */ - fun removeScript(id: Long, constructorIndex: Int) = lock.write { - val objectID = ObjectID(id) - val scriptInstance = ObjectDB[objectID]!!.instance!! - - val twin = scriptInstance.twin - if (twin != null) { - ObjectDB[objectID] = GodotBinding.create(twin) - return //The script had previously a wrapper, we can reuse it. - } + fun registerExistingNativeObject(binding: GodotBinding) = lock.write { + val oldBinding = ObjectDB.put(binding.objectID, binding) - // We create a wrapper to replace the script instance, if it doesn't exist already. - val wrapper = IdentityPointer( - scriptInstance.ptr, - id, - TypeManager.engineTypesConstructors[constructorIndex], - ) - - ObjectDB[objectID] = GodotBinding.create(wrapper) - - // Still set the twin as a security if users keep a reference of the scriptInstance somewhere (even if they shouldn't, but it's valid from a JVM point of view). - // It will prevent segfault in such case. - wrapper.twin = scriptInstance - scriptInstance.twin = scriptInstance + if (oldBinding != null) { + oldBinding.instance = binding.instance + } } /** @@ -145,35 +123,9 @@ object MemoryManager { ObjectDB.remove(ObjectID(id)) } - fun getInstanceOrCreate(ptr: VoidPtr, id: Long, constructorIndex: Int): IdentityPointer { - val objectID = ObjectID(id) - - val instance = lock.read { - ObjectDB[objectID]?.instance - } - - if (instance != null) { - return instance - } - - // We didn't find a matching instance, we create it then. - return lock.write { - // We check a second time in a write lock in case it got created after the read lock by another thread - val newInstance = ObjectDB[objectID]?.instance - if (newInstance != null) { - newInstance - } else { - val constructor = TypeManager.engineTypesConstructors[constructorIndex] - IdentityPointer(ptr, id, constructor).also { - ObjectDB[objectID] = GodotBinding.create(it) - } - } - } - } - - fun isInstanceValid(ktObject: IdentityPointer) = checkInstance(ktObject.ptr, ktObject.objectID.id) + fun isInstanceValid(ktObject: NativeWrapper) = checkInstance(ktObject.ptr, ktObject.memoryBinding.objectID.id) - fun registerNativeCoreType(nativeCoreType: ValuePointer, variantType: VariantConverter) { + fun registerNativeCoreType(nativeCoreType: NativePointer, variantType: VariantConverter) { val rawPtr = nativeCoreType.ptr nativeCoreTypeMap[rawPtr] = NativeCoreBinding(nativeCoreType, variantType) } @@ -244,7 +196,7 @@ object MemoryManager { } /** - * Remove dead [ValuePointer] from native memory. + * Remove dead [NativePointer] from native memory. * The GC happening in waves, not everything is processed at once, we process the dead native cores over several frames when necessary. */ private fun removeNativeCoreTypes() { @@ -270,9 +222,10 @@ object MemoryManager { } fun cleanUp() { - for (callback in cleanupCallbacks) { + for ((_, callback) in cleanupCallbacks) { callback.invoke() } + cleanupCallbacks = cleanupCallbacks.filter { it.first }.toMutableList() // One shot are not kept to avoid keeping dead classes after reloading. // Get through all remaining [Objects] instances and remove their bindings for (objectID in ObjectDB.keys) { @@ -294,12 +247,12 @@ object MemoryManager { unrefNativeCoreTypes(pointerArray, variantTypeArray) } - + nativeCoreTypeMap.clear() } external fun getSingleton(classIndex: Int) - external fun createNativeObject(classIndex: Int, instance: IdentityPointer, scriptIndex: Int) + external fun createNativeObject(classIndex: Int, instance: NativeWrapper, scriptIndex: Int) external fun checkInstance(ptr: VoidPtr, instanceId: Long): Boolean external fun releaseBinding(instanceId: Long) external fun freeObject(rawPtr: VoidPtr) diff --git a/kt/godot-internal-library/src/main/kotlin/godot/internal/memory/TransferContext.kt b/kt/godot-internal-library/src/main/kotlin/godot/internal/memory/TransferContext.kt index f4c5a13d02..73edb27008 100644 --- a/kt/godot-internal-library/src/main/kotlin/godot/internal/memory/TransferContext.kt +++ b/kt/godot-internal-library/src/main/kotlin/godot/internal/memory/TransferContext.kt @@ -1,6 +1,5 @@ package godot.internal.memory -import godot.common.interop.ObjectID import godot.common.constants.Constraints import godot.common.interop.VariantConverter import godot.common.interop.VoidPtr @@ -8,6 +7,9 @@ import godot.common.util.threadLocal import kotlincompile.definitions.GodotJvmBuildConfig import java.nio.ByteBuffer import java.nio.ByteOrder +import kotlin.contracts.ExperimentalContracts +import kotlin.contracts.InvocationKind +import kotlin.contracts.contract object TransferContext { private val bufferSize: Int @@ -22,55 +24,55 @@ object TransferContext { return (LongStringQueue.stringMaxSize + 12).coerceAtLeast(68) * Constraints.MAX_FUNCTION_ARG_COUNT + 4 } - private val buffer by threadLocal { + @PublishedApi + internal val buffer by threadLocal { val buf = ByteBuffer.allocateDirect(bufferSize) buf.order(ByteOrder.LITTLE_ENDIAN) buf } - fun writeArguments(vararg values: Pair) { - buffer.rewind() - buffer.putInt(values.size) + fun writeArguments(vararg values: Pair) = buffer.let { + it.rewind() + it.putInt(values.size) for (value in values) { - value.first.toGodot(buffer, value.second) + value.first.toGodot(it, value.second) } } - fun readSingleArgument(variantConverter: VariantConverter): Any? { - buffer.rewind() - val argsSize = buffer.int + fun readSingleArgument(variantConverter: VariantConverter) = buffer.let { + it.rewind() + val argsSize = it.getInt() if (GodotJvmBuildConfig.DEBUG) { require(argsSize == 1) { "Expecting 1 parameter, but got $argsSize instead." } } - return variantConverter.toKotlin(buffer) + variantConverter.toKotlin(it) } - fun readArguments(variantConverters: Array, returnArray: Array) { - buffer.rewind() - val argsSize = buffer.int - val argumentCount = variantConverters.size + fun readArguments(variantConverters: Array, returnArray: Array) = buffer.let { + it.rewind() + val argsSize = it.getInt() if (GodotJvmBuildConfig.DEBUG) { + val argumentCount = variantConverters.size require(argsSize == argumentCount) { "Expecting $argumentCount parameter(s), but got $argsSize instead." } } - // Assume that variantTypes and areNullable have the same size and that returnArray is big enough for (i in 0 until argsSize) { - returnArray[i] = variantConverters[i].toKotlin(buffer) + returnArray[i] = variantConverters[i].toKotlin(it) } } - fun writeReturnValue(value: Any?, type: VariantConverter) { - buffer.rewind() - type.toGodot(buffer, value) + fun writeReturnValue(value: Any?, type: VariantConverter) = buffer.let { + it.rewind() + type.toGodot(it, value) } - fun readReturnValue(type: VariantConverter): Any? { - buffer.rewind() - return type.toKotlin(buffer) + fun readReturnValue(type: VariantConverter) = buffer.let { + it.rewind() + type.toKotlin(it) } fun callMethod(ptr: VoidPtr, methodPtr: VoidPtr, expectedReturnType: VariantConverter) { @@ -81,10 +83,15 @@ object TransferContext { ) } - fun initializeKtObject(obj: KtObject) { - buffer.rewind() - obj.ptr = buffer.long - obj.objectID = ObjectID(buffer.long) + @ExperimentalContracts + inline fun unsafeRead(block: (ByteBuffer) -> Unit) { + contract { + callsInPlace(block, InvocationKind.EXACTLY_ONCE) + } + buffer.let { + it.rewind() + block(it) + } } private external fun icall(ptr: VoidPtr, methodPtr: VoidPtr, expectedReturnType: Int) diff --git a/kt/godot-internal-library/src/main/kotlin/godot/internal/memory/binding/GodotBinding.kt b/kt/godot-internal-library/src/main/kotlin/godot/internal/memory/binding/GodotBinding.kt index cf7d76bfdf..b58ed287b1 100644 --- a/kt/godot-internal-library/src/main/kotlin/godot/internal/memory/binding/GodotBinding.kt +++ b/kt/godot-internal-library/src/main/kotlin/godot/internal/memory/binding/GodotBinding.kt @@ -1,41 +1,44 @@ package godot.internal.memory.binding -import godot.common.interop.IdentityPointer +import godot.common.interop.Binding +import godot.common.interop.NativeWrapper import godot.common.interop.ObjectID import java.lang.ref.ReferenceQueue import java.lang.ref.WeakReference -interface GodotBinding { - val objectID: ObjectID - val instance: IdentityPointer? +interface GodotBinding: Binding { + override var instance: NativeWrapper? companion object { - /** Queue to be notified when the GC runs on References.*/ - val queue = ReferenceQueue() + val queue = ReferenceQueue() - fun create(instance: IdentityPointer): GodotBinding { - val id = instance.objectID - return if (id.isReference) { - RefCountedBinding(instance, queue, id) + fun create(instance: NativeWrapper, objectID: ObjectID): GodotBinding { + return if (objectID.isReference) { + RefCountedBinding(instance, objectID, queue) } else { - ObjectBinding(instance, id) + ObjectBinding(instance, objectID) } } } } -class RefCountedBinding( - instance: IdentityPointer, - queue: ReferenceQueue, +class ObjectBinding( + override var instance: NativeWrapper?, override val objectID: ObjectID -) : WeakReference(instance, queue), GodotBinding { +) : GodotBinding - override val instance: IdentityPointer? - get() = this.get() +class RefCountedBinding( + instance: NativeWrapper, + override val objectID: ObjectID, + queue: ReferenceQueue, +) : WeakReference(ObjectBinding(instance, objectID), queue), GodotBinding { + + override var instance: NativeWrapper? + get() = this.get()?.instance + set(value) { + this.get()?.instance = value + } } -class ObjectBinding( - override val instance: IdentityPointer, - override val objectID: ObjectID -) : GodotBinding + diff --git a/kt/godot-internal-library/src/main/kotlin/godot/internal/memory/binding/NativeCoreBinding.kt b/kt/godot-internal-library/src/main/kotlin/godot/internal/memory/binding/NativeCoreBinding.kt index e1bbfb6500..cb71589bda 100644 --- a/kt/godot-internal-library/src/main/kotlin/godot/internal/memory/binding/NativeCoreBinding.kt +++ b/kt/godot-internal-library/src/main/kotlin/godot/internal/memory/binding/NativeCoreBinding.kt @@ -1,18 +1,18 @@ package godot.internal.memory.binding -import godot.common.interop.ValuePointer +import godot.common.interop.NativePointer import godot.common.interop.VariantConverter import java.lang.ref.ReferenceQueue import java.lang.ref.WeakReference class NativeCoreBinding( - ref: ValuePointer, + ref: NativePointer, val variantType: VariantConverter -) : WeakReference(ref, queue) { +) : WeakReference(ref, queue) { val ptr = ref.ptr companion object { /** Queue to be notified when the GC runs on NativeCoreTypes.*/ - val queue = ReferenceQueue() + val queue = ReferenceQueue() } } diff --git a/kt/godot-internal-library/src/main/kotlin/godot/internal/reflection/TypeManager.kt b/kt/godot-internal-library/src/main/kotlin/godot/internal/reflection/TypeManager.kt index e4c80c23a8..413e4f32b9 100644 --- a/kt/godot-internal-library/src/main/kotlin/godot/internal/reflection/TypeManager.kt +++ b/kt/godot-internal-library/src/main/kotlin/godot/internal/reflection/TypeManager.kt @@ -1,24 +1,24 @@ package godot.internal.reflection -import godot.common.interop.IdentityPointer +import godot.common.interop.NativeWrapper import godot.common.interop.VoidPtr import kotlin.reflect.KClass object TypeManager { - val userTypeToId = mutableMapOf, Int>() - val engineTypeToId = mutableMapOf, Int>() + val userTypeToId = mutableMapOf, Int>() + val engineTypeToId = mutableMapOf, Int>() val userTypes = LinkedHashSet() val engineTypeNames = LinkedHashSet() val engineSingletonsNames = LinkedHashSet() - val engineTypesConstructors = mutableListOf<() -> IdentityPointer>() + val engineTypesConstructors = mutableListOf<() -> NativeWrapper>() - fun registerUserType(className: String, kclass: KClass) { + fun registerUserType(className: String, kClass: KClass) { userTypes.add(className) - userTypeToId[kclass] = userTypes.size - 1 + userTypeToId[kClass] = userTypes.size - 1 } - fun registerEngineType(className: String, clazz: KClass, invocator: () -> T) { + fun registerEngineType(className: String, clazz: KClass, invocator: () -> T) { engineTypesConstructors.add(invocator) engineTypeNames.add(className) engineTypeToId[clazz] = engineTypeNames.size - 1 diff --git a/kt/plugins/godot-gradle-plugin/src/main/resources/godot/gradle/godot-kotlin-graal-jni-config.json b/kt/plugins/godot-gradle-plugin/src/main/resources/godot/gradle/godot-kotlin-graal-jni-config.json index 5c0018510d..b4b20d8f38 100644 --- a/kt/plugins/godot-gradle-plugin/src/main/resources/godot/gradle/godot-kotlin-graal-jni-config.json +++ b/kt/plugins/godot-gradle-plugin/src/main/resources/godot/gradle/godot-kotlin-graal-jni-config.json @@ -79,7 +79,6 @@ { "name" : "syncMemory","parameterTypes" : ["long[]"] }, { "name" : "cleanUp","parameterTypes" : [] }, { "name" : "deleteObject", "parameterTypes" : ["long"] }, - { "name" : "removeScript", "parameterTypes" : ["long", "int"] }, { "name" : "checkInstance", "parameterTypes" : ["long", "long"] }, { "name" : "releaseBinding", "parameterTypes" : ["long"] }, { "name" : "unrefNativeCoreTypes", "parameterTypes" : ["long[]", "int[]"] }, @@ -778,7 +777,8 @@ { "name":"godot.core.KtObject", "methods":[ - {"name":"_onDestroy","parameterTypes":[] } + {"name":"_onDestroy","parameterTypes":[] }, + {"name" : "removeScript", "parameterTypes" : ["int"] } ] } ] 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 eb8630fb33..5d2ecc248b 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 @@ -27,6 +27,7 @@ object GodotKotlinJvmTypes { const val variantCaster = "VariantCaster" const val variantArray = "VariantArray" const val transferContext = "TransferContext" + const val memoryManager = "MemoryManager" const val typeManager = "TypeManager" const val objectID = "ObjectID" @@ -246,6 +247,7 @@ val CORE_TYPE_HELPER = ClassName(godotAnnotationPackage, GodotKotlinJvmTypes.Ann val CORE_TYPE_LOCAL_COPY = ClassName(godotAnnotationPackage, GodotKotlinJvmTypes.Annotations.coreTypeLocalCopy) val TRANSFER_CONTEXT = ClassName(godotMemoryPackage, GodotKotlinJvmTypes.transferContext) +val MEMORY_MANAGER = ClassName(godotMemoryPackage, GodotKotlinJvmTypes.memoryManager) val TYPE_MANAGER = ClassName(godotReflectionPackage, GodotKotlinJvmTypes.typeManager) val OBJECT_ID = ClassName(godotInteropPackage, GodotKotlinJvmTypes.objectID) val VOID_PTR = ClassName(godotInteropPackage, "VoidPtr") diff --git a/src/jvm_wrapper/memory/memory_manager.cpp b/src/jvm_wrapper/memory/memory_manager.cpp index a147e604eb..b9b255b3c7 100644 --- a/src/jvm_wrapper/memory/memory_manager.cpp +++ b/src/jvm_wrapper/memory/memory_manager.cpp @@ -212,10 +212,7 @@ void MemoryManager::try_promotion(JvmInstance* script_instance) { to_demote_mutex.unlock(); } -void MemoryManager::script_instance_removed(jni::Env& p_env, uint64_t id, uint32_t constructor_index) { - jvalue args[2] = {jni::to_jni_arg(id), jni::to_jni_arg(constructor_index)}; - wrapped.call_void_method(p_env, REMOVE_SCRIPT, args); -} + void MemoryManager::direct_object_deletion(jni::Env& p_env, Object* p_obj) { jvalue args[1] = {jni::to_jni_arg(p_obj->get_instance_id().operator uint64_t())}; diff --git a/src/jvm_wrapper/memory/memory_manager.h b/src/jvm_wrapper/memory/memory_manager.h index 1103224f87..02a8c8afdd 100644 --- a/src/jvm_wrapper/memory/memory_manager.h +++ b/src/jvm_wrapper/memory/memory_manager.h @@ -14,13 +14,11 @@ JVM_SINGLETON_WRAPPER(MemoryManager, "godot.internal.memory.MemoryManager") { JNI_OBJECT_METHOD(SYNC_MEMORY) JNI_VOID_METHOD(CLEAN_UP) - JNI_VOID_METHOD(REMOVE_SCRIPT) JNI_VOID_METHOD(DELETE_OBJECT) INIT_JNI_BINDINGS( INIT_JNI_METHOD(SYNC_MEMORY, "syncMemory", "([J)[J") INIT_JNI_METHOD(CLEAN_UP, "cleanUp", "()V") - INIT_JNI_METHOD(REMOVE_SCRIPT, "removeScript", "(JI)V") INIT_JNI_METHOD(DELETE_OBJECT, "deleteObject", "(J)V") INIT_NATIVE_METHOD("checkInstance", "(JJ)Z", MemoryManager::check_instance) INIT_NATIVE_METHOD("unrefNativeCoreTypes", "([J[I)V", MemoryManager::unref_native_core_types) @@ -47,7 +45,6 @@ JVM_SINGLETON_WRAPPER(MemoryManager, "godot.internal.memory.MemoryManager") { public: void direct_object_deletion(jni::Env& p_env, Object* obj); - void script_instance_removed(jni::Env& p_env, uint64_t id, uint32_t constructor_index); void queue_dead_object(Object* obj); void queue_demotion(JvmInstance* script_instance); void cancel_demotion(JvmInstance* script_instance); diff --git a/src/jvm_wrapper/registration/kt_object.cpp b/src/jvm_wrapper/registration/kt_object.cpp index a06325e60a..6f1b1acd25 100644 --- a/src/jvm_wrapper/registration/kt_object.cpp +++ b/src/jvm_wrapper/registration/kt_object.cpp @@ -2,6 +2,11 @@ KtObject::KtObject(jni::Env& p_env, jni::JObject p_wrapped, bool p_is_ref) : JvmInstanceWrapper(p_env, p_wrapped), is_ref(p_is_ref) {} +void KtObject::script_instance_removed(jni::Env& p_env, uint32_t constructor_index) { + jvalue args[1] = {jni::to_jni_arg(constructor_index)}; + wrapped.call_void_method(p_env, REMOVE_SCRIPT, args); +} + KtObject::~KtObject() { if (is_ref) { return; } jni::Env env {jni::Jvm::current_env()}; diff --git a/src/jvm_wrapper/registration/kt_object.h b/src/jvm_wrapper/registration/kt_object.h index 5e1bc17475..b2a7e31be7 100644 --- a/src/jvm_wrapper/registration/kt_object.h +++ b/src/jvm_wrapper/registration/kt_object.h @@ -12,9 +12,11 @@ JVM_INSTANCE_WRAPPER(KtObject, "godot.core.KtObject") { // clang-format off JNI_VOID_METHOD(ON_DESTROY) + JNI_VOID_METHOD(REMOVE_SCRIPT) INIT_JNI_BINDINGS( INIT_JNI_METHOD(ON_DESTROY, "_onDestroy", "()V") + INIT_JNI_METHOD(REMOVE_SCRIPT, "removeScript", "(I)V") ) // clang-format on @@ -24,6 +26,8 @@ JVM_INSTANCE_WRAPPER(KtObject, "godot.core.KtObject") { public: explicit KtObject(jni::Env& p_env, jni::JObject p_wrapped, bool p_is_ref); ~KtObject(); + + void script_instance_removed(jni::Env& p_env, uint32_t constructor_index); }; #endif// GODOT_JVM_KT_OBJECT_H diff --git a/src/script/jvm_instance.cpp b/src/script/jvm_instance.cpp index 2ba4594459..a8cb99b3ba 100644 --- a/src/script/jvm_instance.cpp +++ b/src/script/jvm_instance.cpp @@ -24,9 +24,8 @@ JvmInstance::JvmInstance(jni::Env& p_env, Object* p_owner, KtObject* p_kt_object JvmInstance::~JvmInstance() { jni::Env env {jni::Jvm::current_env()}; if (delete_flag) { - MemoryManager::get_instance().script_instance_removed( + kt_object->script_instance_removed( env, - owner->get_instance_id(), KotlinBindingManager::get_instance_binding(owner)->get_constructor_id() ); }