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.
17 lines
552 B
17 lines
552 B
package org.openrs2.buffer.generator
|
|
|
|
import com.github.ajalt.clikt.core.CliktCommand
|
|
import java.nio.file.Files
|
|
import java.nio.file.Path
|
|
|
|
public fun main(args: Array<String>): Unit = GenerateBufferCommand().main(args)
|
|
|
|
public class GenerateBufferCommand : CliktCommand(name = "generate-buffer") {
|
|
override fun run() {
|
|
Files.writeString(PATH, ByteBufExtensionGenerator().generate())
|
|
}
|
|
|
|
private companion object {
|
|
private val PATH = Path.of("buffer/src/main/kotlin/org/openrs2/buffer/GeneratedByteBufExtensions.kt")
|
|
}
|
|
}
|
|
|