Add network socket example for ktor-network and netty

This commit is contained in:
2026-09-08 02:14:42 +08:00
parent ff14d8bf00
commit 716e1f188e
18 files changed
+271 -60

No files matched your search

+12 -8
View File
@@ -4,12 +4,16 @@ plugins {
rootProject.name = "libmc"
includeSubModule(":common")
includeSubModule(":protocol")
includeSubModule(":protocol-context")
includeSubModule(":nbt")
//includeSubModule(":snbt")
includeSubModule("common")
includeSubModule("protocol")
includeSubModule("protocol-context")
includeSubModule("nbt")
includeSubModule("snbt")
fun includeSubModule(name: String, path: String? = null) = include(name).also {
project(name).projectDir = file(path ?: "libmc-${name.removePrefix(":")}")
}
//includeSubModule("protocol-engine-netty", path = "libmc-network-engines/netty")
//includeSubModule("protocol-engine-ktor-network", path = "libmc-network-engines/ktor-network")
fun includeSubModule(name: String, path: String? = null) {
include(":$name")
project(":$name").projectDir = file(path ?: "libmc-$name")
}