feat(ecs): suspending component DSL

read / readOrNull / modify primitives that take an EntityHandle,
switch to the entity's world dispatcher, run the block on the world
thread, and return to the caller's dispatcher. ComponentRegistry
maps KClass to opaque ComponentType keys for O(1) hot-path lookup.
This commit is contained in:
2026-04-28 16:30:02 +02:00
parent a10294c01f
commit 1870aeea12
6 changed files with 361 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
plugins {
alias(libs.plugins.kotlin.jvm)
`java-library`
}
dependencies {
api(project(":core"))
compileOnly(libs.hytale.server)
testImplementation(project(":core"))
testImplementation(libs.kotlinx.coroutines.test)
testImplementation(libs.junit.jupiter)
testRuntimeOnly(libs.junit.platform.launcher)
testImplementation(libs.kotest.assertions)
testImplementation(libs.mockk)
}