refactor(network): rework network module, use new bytecodec module and introduce proper packet events

This commit is contained in:
Fiereu committed 2026-05-30 10:13:12 +02:00
1 parent 8048827121
commit d27a54f360
340 files changed
+7462 -62719

No files matched your search

+1
View File
@@ -9,5 +9,6 @@ kotlin {
dependencies {
implementation(libs.kotlinGradlePlugin)
implementation(libs.spotlessGradlePlugin)
implementation(libs.sonarlintGradlePlugin)
implementation(libs.junit5)
}
+1
View File
@@ -2,6 +2,7 @@ dependencyResolutionManagement {
@Suppress("UnstableApiUsage")
repositories {
mavenCentral()
gradlePluginPortal()
}
versionCatalogs {
+7 -1
View File
@@ -60,4 +60,10 @@ tasks.register("copyKeys") {
group = "openmmo"
description = "Copies all keys from \":keys\" to the current projects resources directory"
dependsOn("copyKeysChat", "copyKeysGame")
}
}
val keyCopyTasks =
listOf("copyPublicKeyChat", "copyPrivateKeyChat", "copyPublicKeyGame", "copyPrivateKeyGame")
tasks.matching { it.name.startsWith("spotless") || it.name.startsWith("sonarlint") }
.configureEach { mustRunAfter(keyCopyTasks) }
@@ -0,0 +1,11 @@
package buildsrc.convention
plugins { id("name.remal.sonarlint") }
sonarLint {
languages { include("kotlin", "java") }
rules {
disable("kotlin:S1186")
disable("kotlin:S3776")
}
}
+2 -2
View File
@@ -11,13 +11,13 @@ spotless {
lineEndings = LineEnding.UNIX
kotlinGradle {
target("**/*.gradle.kts")
ktfmt()
ktfmt("0.54")
trimTrailingWhitespace()
endWithNewline()
}
kotlin {
target("**/src/**/*.kt")
ktfmt()
ktfmt("0.54")
trimTrailingWhitespace()
endWithNewline()
}