Skip to content

Commit ee26038

Browse files
committed
fix(doc): java mention in scala code blocks and update entry generation doc
1 parent a22d669 commit ee26038

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/src/doc/contribution/knowledge-base/entry-generation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
To make it more language agnostic, the entry generator provides a set of model classes which represent the needed information about the source code by the entry genenerator.
66
It expects this information to be gathered and assembled by the calling tool and to be provided in the entry point of the entry generator.
77

8-
For Kotlin and Java, this tool is `godot-kotlin-symbol-processor` (a Kotlin compiler's plugin), which analyses the source code, and gathers the information needed by the entry generator.
8+
For Kotlin, Java and Scala, this tool is `godot-class-graph-symbol-processor`, which analyses the byte code, and gathers the information needed by the entry generator.
99
It then calls the entry generator which in turn generates the needed entry files.
1010

1111
## The godot-kotlin-symbol-processor

docs/src/doc/user-guide/signals_and_callables.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public MyScript extends Node {
4040
@RegisterClass
4141
class MyScript extends Node {
4242
@RegisterSignal("reverse")
43-
val mySignal: Signal1[Boolean] = Signal1.create(this, "mySignal") // Only one way to do it in Java.
43+
val mySignal: Signal1[Boolean] = Signal1.create(this, "mySignal") // Only one way to do it in Scala.
4444
}
4545
```
4646
///
@@ -190,7 +190,7 @@ class AnotherObject extends Object {
190190
private val targetObject = new SomeObject()
191191

192192
public AnotherObject() {
193-
// Here are 3 different ways to connect a signal to a registered method. The method reference syntax is not implemented for Java.
193+
// Here are 3 different ways to connect a signal to a registered method. The method reference syntax is not implemented for Scala.
194194
mySignal.connect(Callable.create(targetObject, StringNames.toGodotName("onReverseChanged"))) // The recommanded way.
195195
mySignal.connect(Callable.create(targetObject, "on_reverse_changed")) // Unsafe, try to use snake_case in your code as least as possible.
196196
connect("my_signal", Callable.create(targetObject, "on_reverse_changed")) // Really, don't do that.

0 commit comments

Comments
 (0)