Table of Contents

Interface IScriptEnvironment

Namespace
KSP.ScriptInterop
Assembly
Assembly-CSharp.dll
public interface IScriptEnvironment : ITypeInterop
Inherited Members
Extension Methods

Properties

DataLinkEnabled

bool DataLinkEnabled { get; set; }

Property Value

bool

DebugPrint

Action<string> DebugPrint { get; set; }

Property Value

Action<string>

RunInterop

IRunScriptInterop RunInterop { get; }

Property Value

IRunScriptInterop

ScriptLoader

IScriptLoader ScriptLoader { get; set; }

Property Value

IScriptLoader

TypeInterop

ITypeInterop TypeInterop { get; }

Property Value

ITypeInterop

TypeWriter

ITypeWriter TypeWriter { get; }

Property Value

ITypeWriter

name

string name { get; }

Property Value

string

Methods

Compile(string, string)

ICompiledScript Compile(string scriptCode, string name)

Parameters

scriptCode string
name string

Returns

ICompiledScript

CompileToBytes(string, string)

byte[] CompileToBytes(string scriptCode, string name)

Parameters

scriptCode string
name string

Returns

byte[]

Fork(string, bool)

IScriptEnvironment Fork(string name, bool allowExternalInterop)

Parameters

name string
allowExternalInterop bool

Returns

IScriptEnvironment

RegisterScriptObject(string)

IScriptObject RegisterScriptObject(string name)

Parameters

name string

Returns

IScriptObject

RegisterScriptObject(string, IScriptObject)

IScriptObject RegisterScriptObject(string name, IScriptObject parent)

Parameters

name string
parent IScriptObject

Returns

IScriptObject

RunScriptAsset(ICompiledScript)

IScriptValue RunScriptAsset(ICompiledScript scriptAsset)

Parameters

scriptAsset ICompiledScript

Returns

IScriptValue