RawScript

data class RawScript<T>(val identifier: Identifier, val source: T)(source)

Represents a Koremods Script in raw, unfinalized form with a source attached.

Parameters

T

the script source type

Constructors

Link copied to clipboard
internal constructor(identifier: Identifier, source: T)

Properties

Link copied to clipboard

the script's unique identifier

Link copied to clipboard
val source: T

the script's source

Functions

Link copied to clipboard
fun RawScript<SourceCode>.compileScriptResult(libraries: Array<out String>): CompiledScript

Compile a Source script with additional configuration and return the compilation result.