@@ -3,16 +3,16 @@ package godot.tests
33import godot .annotation .{Export , RegisterClass , RegisterFunction , RegisterProperty , RegisterSignal }
44import godot .api .Object .ConnectFlags
55import godot .api .{Button , Node , RenderingServer }
6- import godot .core .{Callable , Dictionary , GodotNotification , LambdaCallable , LambdaCallable0 , NativeCallable , Signal0 , Signal2 , StringNames , VariantArray }
6+ import godot .core .{Callable , Dictionary , GodotNotification , LambdaCallable , LambdaCallable0 , Signal0 , Signal2 , StringNames , VariantArray }
77import org .jetbrains .annotations .NotNull
88
99@ RegisterClass
1010class ScalaTestClass extends Node {
11- @ RegisterSignal
12- val testSignal : Signal0 = Signal0 .create(this , " test_signal" )
13-
14- @ RegisterSignal
15- val testSignal2 : Signal2 [String , String ] = Signal2 .create(this , " test_signal_2" )
11+ // @RegisterSignal
12+ // val testSignal: Signal0 = Signal0.create(this, "test_signal")
13+ //
14+ // @RegisterSignal
15+ // val testSignal2: Signal2[String, String] = Signal2.create(this, "test_signal_2")
1616
1717 @ Export
1818 @ RegisterProperty
@@ -60,13 +60,13 @@ class ScalaTestClass extends Node {
6060 @ RegisterProperty
6161 var dictionary : Dictionary [Float , String ] = new Dictionary [Float , String ](classOf [Float ], classOf [String ])
6262
63- var lambdaCallable : LambdaCallable [Void ] = LambdaCallable0 .create(classOf [Void ], () => {
64- System .out.println(" Hello from Callable" )
65- null
66-
67- })
68-
69- var methodCallable : NativeCallable = Callable .create(this , StringNames .asStringName(" DummyName" ))
63+ // var lambdaCallable: LambdaCallable[Void] = LambdaCallable0.create(classOf[Void], () => {
64+ // System.out.println("Hello from Callable")
65+ // null
66+ //
67+ // })
68+ //
69+ // var methodCallable: NativeCallable = Callable.create(this, StringNames.asStringName("DummyName"))
7070
7171 @ RegisterFunction
7272 override def _ready (): Unit = {
@@ -76,19 +76,19 @@ class ScalaTestClass extends Node {
7676 RenderingServer .getDefaultClearColor
7777 }
7878
79- @ RegisterFunction
80- def connectAndTriggerSignal (): Unit = {
81- connect(StringNames .asStringName(" test_signal" ), new NativeCallable (this , StringNames .asStringName(" signal_callback" )), ConnectFlags .ONE_SHOT .getId.toInt)
82- emitSignal(StringNames .asStringName(" test_signal" ))
83- }
84-
85- @ NotNull
86- override def _notification : GodotNotification = {
87- godotNotification(this , (myself : ScalaTestClass , notification : Integer ) => {
88- System .out.println(notification)
89- null
90- })
91- }
79+ // @RegisterFunction
80+ // def connectAndTriggerSignal(): Unit = {
81+ // connect(StringNames.asStringName("test_signal"), new NativeCallable(this, StringNames.asStringName("signal_callback")), ConnectFlags.ONE_SHOT.getId.toInt)
82+ // emitSignal(StringNames.asStringName("test_signal"))
83+ // }
84+
85+ // @NotNull
86+ // override def _notification: GodotNotification = {
87+ // godotNotification(this, (myself: ScalaTestClass, notification: Integer) => {
88+ // System.out.println(notification)
89+ // null
90+ // })
91+ // }
9292
9393 @ RegisterFunction
9494 def signalCallback (): Unit = {
0 commit comments