TesseraLoader

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

Each module has a single entry script (index.ts by default, or entry from tessera.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 TesseraCompiler, native speed).

Functions

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