ScriptingState
object ScriptingState
Content copied to clipboard
Self-contained instance of scripting API use.
Abstracts available scope, running backends, command history Should be unique per isolated use of scripting. E.G. One for the ~-key console screen, one for each mod/all mods per save file (or whatever works best), etc.
Types
BackendSpawnResult
Link copied to clipboard
Functions
autocomplete
Link copied to clipboard
fun autocomplete(command: String, cursorPos: Int? = null): AutocompleteResults
Content copied to clipboard
exec
Link copied to clipboard
fun exec(command: String, asName: String? = null, withParams: Map<String, Any?>? = null): ExecResult
Content copied to clipboard
fun exec(command: String, asName: String? = null, withParams: Map<String, Any?>? = null, withBackend: ScriptingBackend): ExecResult
Content copied to clipboard
getIndexOfBackend
Link copied to clipboard
getOutputHistory
Link copied to clipboard
hasBackend
Link copied to clipboard
navigateHistory
Link copied to clipboard
spawnBackend
Link copied to clipboard
fun spawnBackend(backendtype: ScriptingBackendType): ScriptingState.BackendSpawnResult
Content copied to clipboard
switchToBackend
Link copied to clipboard
termBackend
Link copied to clipboard
Properties
activeBackend
Link copied to clipboard
activeBackendIndex
Link copied to clipboard
activeCommandHistory
Link copied to clipboard
commandHistory
Link copied to clipboard
consoleScreenListener
Link copied to clipboard
maxCommandHistory
Link copied to clipboard
maxOutputHistory
Link copied to clipboard
outputHistory
Link copied to clipboard
scriptingBackends
Link copied to clipboard
Sources
jvm source
Link copied to clipboard