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:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user