JimLoader

object JimLoader

Discovers and compiles modules under <gameDir>/jim/modules/<moduleName>/.

Each module has a single entry script (index.ts by default, or entry from jim.json). It is run on the engine named by the manifest's engine field: "graal" (default — real ECMAScript via GraalRuntime) or "bytecode" (swc4j TS→JVM via JimCompiler, native speed).

Functions

Link copied to clipboard
fun load(modulesDir: Path, classLoader: ClassLoader): List<JimModule>
Link copied to clipboard
fun loadModule(dir: Path, classLoader: ClassLoader): JimModule