Package com.unciv.scripting.protocol
Types
ScriptingPacket
Link copied to clipboard
data class ScriptingPacket(action: String?, identifier: String?, data: JsonElement?, flags: Collection<String>)
Content copied to clipboard
Implementation of IPC packet specified in Module.md.
ScriptingProtocol
Link copied to clipboard
Implementation of IPC communication protocol specified in Module.md.
ScriptingProtocolReplManager
Link copied to clipboard
class ScriptingProtocolReplManager(scope: Any, blackbox: Blackbox) : ScriptingReplManager
Content copied to clipboard
REPL manager that uses the IPC protocol defined in ScriptingProtocol.kt to communicate with a black box. Suitable for presenting arbitrary access to Kotlin/JVM state to scripting APIs. See Module.md for a detailed description of the REPL loop.
ScriptingRawReplManager
Link copied to clipboard
class ScriptingRawReplManager(scope: Any, blackbox: Blackbox) : ScriptingReplManager
Content copied to clipboard
REPL manager that sends and receives only raw code and prints raw strings with a black box. Allows interacting with an external script interpreter, but not suitable for exposing Kotlin-side API in external scripts.
ScriptingReplManager
Link copied to clipboard
abstract class ScriptingReplManager(scope: Any, blackbox: Blackbox) : ScriptingImplementation
Content copied to clipboard
SubprocessBlackbox
Link copied to clipboard
Blackbox that launches and wraps a child process, allowing interacting with it using a common interface.