Package com.unciv.scripting.utils

Types

ApiSpecDef
Link copied to clipboard
data class ApiSpecDef(path: String, isIterable: Boolean, isMapping: Boolean, isCallable: Boolean, callableArgs: List<String?>, _type: String?, _repeatedReferenceTo: String?, _isJsonType: Boolean?, _iterableValueType: String?, _mappingKeyType: String?, _mappingValueType: String?, _callableReturnType: String?, _callableArgTypes: List<String>?)
ApiSpecGenerator
Link copied to clipboard
class ApiSpecGenerator
FakeMap
Link copied to clipboard
class FakeMap<K, V>(getter: (K) -> V) : StatelessMap<K, V> , InvokableMap<K, V>
FunctionalSyntaxHighlighter
Link copied to clipboard
class FunctionalSyntaxHighlighter(transformList: List<(String) -> String>) : SyntaxHighlighter
InvokableMap
Link copied to clipboard
interface InvokableMap<K, V> : Map<K, V>
LazyMap
Link copied to clipboard
class LazyMap<K, V>(func: (K) -> V, exposeState: Boolean) : StatelessMap<K, V> , InvokableMap<K, V>
ScriptingApiAccessible
Link copied to clipboard
annotation class ScriptingApiAccessible(readableBy: Array<ScriptingApiExposure>, settableBy: Array<ScriptingApiExposure>)
ScriptingApiExposure
Link copied to clipboard
enum ScriptingApiExposure : Enum<ScriptingApiExposure>
ScriptingBackendException
Link copied to clipboard
class ScriptingBackendException(message: String) : RuntimeException
ScriptingDebugParameters
Link copied to clipboard
object ScriptingDebugParameters
ScriptingErrorHandling
Link copied to clipboard
object ScriptingErrorHandling
SourceManager
Link copied to clipboard
object SourceManager

Object for managing, and using (copying/instantiating) internal assets associated with each script interpreter engine type.

StatelessMap
Link copied to clipboard
abstract class StatelessMap<K, V> : Map<K, V>
SyntaxHighlighter
Link copied to clipboard
interface SyntaxHighlighter
WeakIdentityMap
Link copied to clipboard
class WeakIdentityMap<K, V> : MutableMap<K, V>
WeakIdentityMapKey
Link copied to clipboard
class WeakIdentityMapKey<T>(referent: T) : WeakReference<T>

Functions

makeMemberSpecDef
Link copied to clipboard
fun makeMemberSpecDef(member: KCallable<*>): ApiSpecDef
weakIdentityMapOf
Link copied to clipboard
fun <K, V> weakIdentityMapOf(vararg pairs: Pair<K, V>): WeakIdentityMap<K, V>