feat(game): basic script implementations (#65)
* feat(game): open the wired dialog line when a player interacts with an npc or sign * feat(game): run npc and sign interactions through a generated script layer * chore(style): spotlessApply * fix(codegen): generate dialog enums without a rom so ci can compile * docs: add a guide for writing overworld scripts --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
6695daabd8
commit
300bc52531
691 files changed
+56022
-44
No files matched your search
@@ -71,3 +71,21 @@ jteCodegen {
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
// One shot bootstrap of the overworld script stubs into server.game. Run by hand with
|
||||
// `gradlew :codegen:generateScriptStubs`. Deliberately not wired into the build, the emitted files
|
||||
// are committed source so hand written ports are never overwritten on a normal build.
|
||||
tasks.register<JavaExec>("generateScriptStubs") {
|
||||
group = "codegen"
|
||||
description = "Bootstrap overworld script stubs into server.game (manual, not part of the build)"
|
||||
val fireredDir = rootProject.layout.projectDirectory.dir("decomp/pokefirered")
|
||||
val serverGameSrc = rootProject.layout.projectDirectory.dir("server.game/src/main/kotlin")
|
||||
classpath = sourceSets["generator"].runtimeClasspath
|
||||
mainClass.set("de.fiereu.openmmo.codegen.script.Main")
|
||||
args(
|
||||
serverGameSrc.asFile.absolutePath,
|
||||
romsDir.asFile.absolutePath,
|
||||
"hoenn|BPEE|${sourceDecompDir.asFile.absolutePath}",
|
||||
"kanto|BPRE|${fireredDir.asFile.absolutePath}",
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user