C# Class Pokemon3D.Scripting.Adapters.ScriptInAdapter

An adapter to convert .Net objects to script objects.
显示文件 Open project: nilllzz/Pokemon3D Class Usage Examples

Public Methods

Method Description
GetUndefined ( ScriptProcessor processor ) : SObject

Returns the "undefined" script object.

Translate ( ScriptProcessor processor, object objIn ) : SObject

Translates a .Net object to a script object.

Private Methods

Method Description
IsObjectAnonymousType ( object obj ) : bool
TranslateArray ( ScriptProcessor processor, Array array ) : SObject
TranslateBool ( ScriptProcessor processor, bool boolIn ) : SObject
TranslateException ( ScriptRuntimeException exceptionIn ) : SObject
TranslateExpandoObject ( ScriptProcessor processor, System.Dynamic.ExpandoObject objIn ) : SObject
TranslateFunction ( Delegate methodIn ) : SObject
TranslateNull ( ScriptProcessor processor ) : SObject
TranslateNumber ( ScriptProcessor processor, double dblIn ) : SObject
TranslateObject ( ScriptProcessor processor, object objIn ) : SObject
TranslatePrototype ( ScriptProcessor processor, Type t ) : Prototype
TranslateString ( ScriptProcessor processor, string strIn ) : SObject
TranslateUndefined ( ScriptProcessor processor ) : SObject

Method Details

GetUndefined() public static method

Returns the "undefined" script object.
public static GetUndefined ( ScriptProcessor processor ) : SObject
processor ScriptProcessor
return Pokemon3D.Scripting.Types.SObject

Translate() public static method

Translates a .Net object to a script object.
public static Translate ( ScriptProcessor processor, object objIn ) : SObject
processor ScriptProcessor
objIn object
return Pokemon3D.Scripting.Types.SObject