Skip to content

Commit a5bbd42

Browse files
committed
chore: regenerate api with godot kotlin json
1 parent a905134 commit a5bbd42

File tree

312 files changed

+349
-313
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

312 files changed

+349
-313
lines changed

harness/tests/src/main/scala/godot/tests/ScalaTestClass.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class ScalaTestClass extends Node {
7878

7979
@RegisterFunction
8080
def connectAndTriggerSignal(): Unit = {
81-
connect(StringNames.asStringName("test_signal"), new NativeCallable(this, StringNames.asStringName("signal_callback")), ConnectFlags.CONNECT_ONE_SHOT.getId.toInt)
81+
connect(StringNames.asStringName("test_signal"), new NativeCallable(this, StringNames.asStringName("signal_callback")), ConnectFlags.ONE_SHOT.getId.toInt)
8282
emitSignal(StringNames.asStringName("test_signal"))
8383
}
8484

kt/api-generator/src/main/resources/api.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145050,10 +145050,10 @@
145050145050
{
145051145051
"name": "new",
145052145052
"is_const": false,
145053-
"is_vararg": true,
145053+
"is_vararg": false,
145054145054
"is_static": false,
145055145055
"is_virtual": false,
145056-
"hash": 1545262638,
145056+
"hash": 1460262497,
145057145057
"return_value": {
145058145058
"type": "Variant"
145059145059
},
@@ -258423,6 +258423,15 @@
258423258423
"brief_description": "Editor-only helper for setting up root motion in [AnimationMixer].",
258424258424
"description": "[i]Root motion[/i] refers to an animation technique where a mesh's skeleton is used to give impulse to a character. When working with 3D animations, a popular technique is for animators to use the root skeleton bone to give motion to the rest of the skeleton. This allows animating characters in a way where steps actually match the floor below. It also allows precise interaction with objects during cinematics. See also [AnimationMixer].\n[b]Note:[/b] [RootMotionView] is only visible in the editor. It will be hidden automatically in the running project."
258425258425
},
258426+
{
258427+
"name": "ScalaScript",
258428+
"is_refcounted": true,
258429+
"is_instantiable": true,
258430+
"inherits": "JvmScript",
258431+
"api_type": "core",
258432+
"brief_description": "",
258433+
"description": ""
258434+
},
258426258435
{
258427258436
"name": "SceneMultiplayer",
258428258437
"is_refcounted": true,

kt/godot-library/godot-api-library/src/main/kotlin/godot/RegisterEngineTypes.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,7 @@ import godot.api.RichTextLabel
568568
import godot.api.RigidBody2D
569569
import godot.api.RigidBody3D
570570
import godot.api.RootMotionView
571+
import godot.api.ScalaScript
571572
import godot.api.SceneMultiplayer
572573
import godot.api.SceneReplicationConfig
573574
import godot.api.SceneState
@@ -1452,6 +1453,7 @@ public fun registerVariantMapping(): Unit {
14521453
variantMapper[RigidBody2D::class] = OBJECT
14531454
variantMapper[RigidBody3D::class] = OBJECT
14541455
variantMapper[RootMotionView::class] = OBJECT
1456+
variantMapper[ScalaScript::class] = OBJECT
14551457
variantMapper[SceneMultiplayer::class] = OBJECT
14561458
variantMapper[SceneReplicationConfig::class] = OBJECT
14571459
variantMapper[SceneState::class] = OBJECT
@@ -2334,6 +2336,7 @@ public fun registerEngineTypeMethods(): Unit {
23342336
RigidBody2D.MethodBindings
23352337
RigidBody3D.MethodBindings
23362338
RootMotionView.MethodBindings
2339+
ScalaScript.MethodBindings
23372340
SceneMultiplayer.MethodBindings
23382341
SceneReplicationConfig.MethodBindings
23392342
SceneState.MethodBindings
@@ -3246,6 +3249,7 @@ public fun registerEngineTypes(): Unit {
32463249
TypeManager.registerEngineType("RigidBody2D", RigidBody2D::class, ::RigidBody2D)
32473250
TypeManager.registerEngineType("RigidBody3D", RigidBody3D::class, ::RigidBody3D)
32483251
TypeManager.registerEngineType("RootMotionView", RootMotionView::class, ::RootMotionView)
3252+
TypeManager.registerEngineType("ScalaScript", ScalaScript::class, ::ScalaScript)
32493253
TypeManager.registerEngineType("SceneMultiplayer", SceneMultiplayer::class, ::SceneMultiplayer)
32503254
TypeManager.registerEngineType("SceneReplicationConfig", SceneReplicationConfig::class, ::SceneReplicationConfig)
32513255
TypeManager.registerEngineType("SceneState", SceneState::class, ::SceneState)

kt/godot-library/godot-api-library/src/main/kotlin/godot/api/JvmScript.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ public open class JvmScript internal constructor() : Script() {
2222
createNativeObject(324, scriptIndex)
2323
}
2424

25-
public final fun new(vararg __var_args: Any?): Any? {
26-
TransferContext.writeArguments( *__var_args.map { ANY to it }.toTypedArray())
25+
public final fun new(): Any? {
26+
TransferContext.writeArguments()
2727
TransferContext.callMethod(ptr, MethodBindings.newPtr, ANY)
2828
return (TransferContext.readReturnValue(ANY) as Any?)
2929
}
3030

3131
public companion object
3232

3333
public object MethodBindings {
34-
internal val newPtr: VoidPtr = TypeManager.getMethodBindPtr("JvmScript", "new", 1545262638)
34+
internal val newPtr: VoidPtr = TypeManager.getMethodBindPtr("JvmScript", "new", 1460262497)
3535
}
3636
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// THIS FILE IS GENERATED! DO NOT EDIT IT MANUALLY!
2+
@file:Suppress("PackageDirectoryMismatch", "unused", "FunctionName", "RedundantModalityModifier",
3+
"UNCHECKED_CAST", "JoinDeclarationAndAssignment", "USELESS_CAST",
4+
"RemoveRedundantQualifierName", "NOTHING_TO_INLINE", "NON_FINAL_MEMBER_IN_OBJECT",
5+
"RedundantVisibilityModifier", "RedundantUnitReturnType", "MemberVisibilityCanBePrivate")
6+
7+
package godot.api
8+
9+
import godot.`annotation`.GodotBaseType
10+
import kotlin.Int
11+
import kotlin.Suppress
12+
import kotlin.Unit
13+
14+
@GodotBaseType
15+
public open class ScalaScript : JvmScript() {
16+
public override fun new(scriptIndex: Int): Unit {
17+
createNativeObject(567, scriptIndex)
18+
}
19+
20+
public companion object
21+
22+
public object MethodBindings
23+
}

kt/godot-library/godot-api-library/src/main/kotlin/godot/api/SceneMultiplayer.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public open class SceneMultiplayer : MultiplayerAPI() {
190190
}
191191

192192
public override fun new(scriptIndex: Int): Unit {
193-
createNativeObject(567, scriptIndex)
193+
createNativeObject(568, scriptIndex)
194194
}
195195

196196
public final fun setRootPath(path: NodePath): Unit {

kt/godot-library/godot-api-library/src/main/kotlin/godot/api/SceneReplicationConfig.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import kotlin.jvm.JvmOverloads
2929
@GodotBaseType
3030
public open class SceneReplicationConfig : Resource() {
3131
public override fun new(scriptIndex: Int): Unit {
32-
createNativeObject(568, scriptIndex)
32+
createNativeObject(569, scriptIndex)
3333
}
3434

3535
/**

kt/godot-library/godot-api-library/src/main/kotlin/godot/api/SceneState.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import kotlin.jvm.JvmOverloads
4343
@GodotBaseType
4444
public open class SceneState internal constructor() : RefCounted() {
4545
public override fun new(scriptIndex: Int): Unit {
46-
createNativeObject(569, scriptIndex)
46+
createNativeObject(570, scriptIndex)
4747
}
4848

4949
/**

kt/godot-library/godot-api-library/src/main/kotlin/godot/api/SceneTree.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ public open class SceneTree : MainLoop() {
260260
}
261261

262262
public override fun new(scriptIndex: Int): Unit {
263-
createNativeObject(570, scriptIndex)
263+
createNativeObject(571, scriptIndex)
264264
}
265265

266266
public final fun getRoot(): Window? {

kt/godot-library/godot-api-library/src/main/kotlin/godot/api/SceneTreeTimer.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public open class SceneTreeTimer internal constructor() : RefCounted() {
7070
}
7171

7272
public override fun new(scriptIndex: Int): Unit {
73-
createNativeObject(571, scriptIndex)
73+
createNativeObject(572, scriptIndex)
7474
}
7575

7676
public final fun setTimeLeft(time: Double): Unit {

0 commit comments

Comments
 (0)