Interface ITypeInterop
- Namespace
- KSP.ScriptInterop
- Assembly
- Assembly-CSharp.dll
public interface ITypeInterop
- Extension Methods
-
Methods
FromValue(Type, object)
IScriptValue FromValue(Type dotNetType, object objectValue)
Parameters
dotNetType Type
objectValue object
Returns
- IScriptValue
FromValue<T>(T)
IScriptValue FromValue<T>(T objectValue)
Parameters
objectValue T
Returns
- IScriptValue
Type Parameters
T
GetTypes()
Dictionary<string, string> GetTypes()
Returns
- Dictionary<string, string>
ToValue(Type, IScriptValue)
object ToValue(Type dotNetType, IScriptValue scriptValue)
Parameters
dotNetType Type
scriptValue IScriptValue
Returns
- object
ToValue<T>(IScriptValue)
T ToValue<T>(IScriptValue scriptValue)
Parameters
scriptValue IScriptValue
Returns
- T
Type Parameters
T