Improve/add initial project structure for ZomboidForge with build system, runtime, and patching logic.

Added version support for building images.
This commit is contained in:
Overlord committed 2026-09-29 16:51:13 +02:00
1 parent bf9228d2be
commit 015e9bb2c8
32 files changed
+1268 -58

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
// Build-time patches for Project Zomboid Build 42.
plugins {
id("zomboidforge.java-conventions")
}
dependencies {
implementation(project(":patcher"))
implementation(libs.bundles.asm)
}
@@ -0,0 +1,21 @@
package dev.overlord.zomboidforge.compat.b42.patches;
import dev.overlord.zomboidforge.patcher.ClassPatch;
import dev.overlord.zomboidforge.patcher.PatchSet;
import java.util.List;
/** Every build-time patch for Build 42, in application order. */
public final class B42PatchSet implements PatchSet {
private static final List<ClassPatch> PATCHES = List.of();
@Override
public int build() {
return 42;
}
@Override
public List<ClassPatch> patches() {
return PATCHES;
}
}
@@ -0,0 +1 @@
dev.overlord.zomboidforge.compat.b42.patches.B42PatchSet
+12
View File
@@ -0,0 +1,12 @@
// Runtime code for Project Zomboid Build 42: hooks called by patched game code, and
// adapters between game classes and the version-independent core and api.
plugins {
id("zomboidforge.java-conventions")
}
dependencies {
implementation(project(":core"))
implementation(project(":api"))
compileOnly(files(projectZomboid.serverJar))
}
@@ -0,0 +1,5 @@
/**
* Build 42 runtime code: hooks that patched game classes call, and adapters between
* game classes and the version-independent {@code core} and {@code api}.
*/
package dev.overlord.zomboidforge.compat.b42;