Skip to content

Commit 60cc7c5

Browse files
committed
Fix minor issues
1 parent ce834e7 commit 60cc7c5

File tree

6 files changed

+31
-6
lines changed

6 files changed

+31
-6
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ gradlePlugin {
4646
displayName = "Godot Kotlin Tree"
4747
description = "A type-safe Godot node tree representation in Kotlin"
4848
tags = listOf("godot", "kotlin", "node", "tree")
49-
implementationClass = "com.tomwyr.GodotNodeTree"
49+
implementationClass = "com.tomwyr.GodotKotlinTree"
5050
}
5151
}
5252
}

example/kotlin/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ godot {
2525
}
2626

2727
godotNodeTree {
28+
projectPath = "../dodge-the-creeps"
2829
packageName = "com.example.game"
2930
}
3031

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// THIS FILE IS GENERATED! DO NOT EDIT OR DELETE IT. EDIT OR DELETE THE ASSOCIATED SOURCE CODE FILE INSTEAD
2+
// Note: You can however freely move this file inside your godot project if you want. Keep in mind however, that if you rename the originating source code file, this file will be deleted and regenerated as a new file instead of being updated! Other modifications to the source file however, will result in this file being updated.
3+
4+
registeredName = ColorAnimator
5+
fqName = com.example.game.ColorAnimator
6+
relativeSourcePath = src/main/kotlin/com/example/game/ColorAnimator.kt
7+
baseType = Node2D
8+
supertypes = [
9+
godot.Node2D,
10+
godot.CanvasItem,
11+
godot.Node,
12+
godot.Object,
13+
godot.core.KtObject,
14+
kotlin.Any
15+
]
16+
signals = [
17+
18+
]
19+
properties = [
20+
21+
]
22+
functions = [
23+
_process
24+
]

example/kotlin/gradlew

100644100755
File mode changed.

src/main/kotlin/com/tomwyr/Plugin.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ import org.gradle.api.Plugin
55
import org.gradle.api.Project
66
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension
77

8-
class GodotNodeTree : Plugin<Project> {
8+
class GodotKotlinTree : Plugin<Project> {
99
override fun apply(project: Project) {
1010
registerTask(project)
1111
addSourceSet(project)
1212
}
1313

1414
private fun registerTask(project: Project) {
15-
val input = project.extensions.create("godotNodeTree", GodotNodeTreeInput::class.java)
15+
val input = project.extensions.create("godotNodeTree", GodotKotlinTreeInput::class.java)
1616
project.tasks.register("generateNodeTree") { task ->
1717
task.doLast {
1818
GenerateTreeCommand.from(project, input).run()
@@ -27,7 +27,7 @@ class GodotNodeTree : Plugin<Project> {
2727
}
2828
}
2929

30-
open class GodotNodeTreeInput(
30+
open class GodotKotlinTreeInput(
3131
var projectPath: String? = null,
3232
var packageName: String? = null,
3333
)

src/main/kotlin/com/tomwyr/command/Command.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.tomwyr.command
22

3-
import com.tomwyr.GodotNodeTreeInput
3+
import com.tomwyr.GodotKotlinTreeInput
44
import com.tomwyr.common.InvalidGodotProject
55
import com.tomwyr.ffi.generateNodeTree
66
import org.gradle.api.Project
@@ -20,7 +20,7 @@ class GenerateTreeCommand(
2020
}
2121

2222
companion object Factory {
23-
fun from(project: Project, input: GodotNodeTreeInput): GenerateTreeCommand {
23+
fun from(project: Project, input: GodotKotlinTreeInput): GenerateTreeCommand {
2424
val rootPath = project.projectDir.absolutePath
2525
val libPath = "GodotNodeTreeCore"
2626
val projectPath = getProjectPath(rootPath = rootPath, relativePath = input.projectPath)

0 commit comments

Comments
 (0)