Open-source multiplayer game server compatible with the RuneScape client
https://www.openrs2.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
936 B
21 lines
936 B
package org.openrs2.deob.util
|
|
|
|
import java.nio.file.Path
|
|
|
|
public class Module(public val name: String, public val dependencies: Set<Module> = emptySet()) {
|
|
public val jar: Path = Path.of("nonfree/var/cache/deob").resolve("$name.jar")
|
|
public val sources: Path = Path.of("nonfree").resolve(name).resolve("src/main/java")
|
|
public val transitiveDependencies: Set<Module> =
|
|
dependencies.plus(dependencies.flatMap { it.transitiveDependencies })
|
|
|
|
public companion object {
|
|
private val GL = Module("gl")
|
|
private val SIGNLINK = Module("signlink")
|
|
private val UNPACK = Module("unpack")
|
|
private val CLIENT = Module("client", setOf(GL, SIGNLINK))
|
|
private val LOADER = Module("loader", setOf(SIGNLINK, UNPACK))
|
|
private val UNPACKCLASS = Module("unpackclass", setOf(UNPACK))
|
|
|
|
public val ALL: Set<Module> = setOf(CLIENT, GL, LOADER, SIGNLINK, UNPACK, UNPACKCLASS)
|
|
}
|
|
}
|
|
|