compile

open override fun compile(code: String, cpFiles: List<File>, killIdField: String, evalId: Int): Any

Compile a snippet to an opaque handle. The handle is a masking-only type, so it is only ever passed back to execute.

Return

an opaque compiled-script handle for execute

Parameters

code

the snippet source

cpFiles

the compile classpath (game cp + mods + JiJ libs + mojmap symbols)

killIdField

name of the target lane's scriptguard kill-id field to instrument the snippet against, or "" for the off-tick lane (no watchdog, no guard instrumentation)

evalId

the value that field must equal for THIS eval's woven check to fire