C# 클래스 Pokemon3D.Scripting.Adapters.ScriptContextManipulator

Enables ScriptContext manipulations for Variables and Prototypes.
파일 보기 프로젝트 열기: nilllzz/Pokemon3D

공개 메소드들

메소드 설명
AddPrototype ( ScriptProcessor processor, Type t ) : void

Creates a Prototype from a .net Type and adds it to the context.

AddVariable ( ScriptProcessor processor, string identifier, SObject data ) : void

Adds a new variable or overwrites one with the same name.

AddVariable ( ScriptProcessor processor, string identifier, object data ) : void

Adds a new variable or overwrites one with the same name.

GetVariable ( ScriptProcessor processor, string identifier ) : SObject

Returns the content of a variable, or Undefined, if the variable does not exist.

GetVariableTranslated ( ScriptProcessor processor, string identifier ) : object

Returns the translated content of a variable.

HasVariable ( ScriptProcessor processor, string identifier ) : bool

Returns if the context has a specific variable.

SetCallbackExecuteMethod ( ScriptProcessor processor, DExecuteMethod callback ) : void

Sets the callback for executing a method of an API class.

SetCallbackGetMember ( ScriptProcessor processor, DGetMember callback ) : void

Sets the callback for getting a member of an API class.

SetCallbackHasMember ( ScriptProcessor processor, DHasMember callback ) : void

Sets the callback for checking if an API class has a member.

SetCallbackScriptPipeline ( ScriptProcessor processor, DScriptPipeline callback ) : void

Sets the callback for getting the content of a script file.

SetCallbackSetMember ( ScriptProcessor processor, DSetMember callback ) : void

Sets the callback for setting a member of an API class.

ThrownRuntimeError ( ScriptProcessor processor ) : bool

Returns if the script processor has thrown a script runtime exception.

메소드 상세

AddPrototype() 공개 정적인 메소드

Creates a Prototype from a .net Type and adds it to the context.
public static AddPrototype ( ScriptProcessor processor, Type t ) : void
processor ScriptProcessor Reference to a processor instance.
t System.Type The type from which to create the prototype. The name of the type will be used for the Prototype's name.
리턴 void

AddVariable() 공개 정적인 메소드

Adds a new variable or overwrites one with the same name.
public static AddVariable ( ScriptProcessor processor, string identifier, SObject data ) : void
processor ScriptProcessor
identifier string
data Pokemon3D.Scripting.Types.SObject
리턴 void

AddVariable() 공개 정적인 메소드

Adds a new variable or overwrites one with the same name.
public static AddVariable ( ScriptProcessor processor, string identifier, object data ) : void
processor ScriptProcessor
identifier string
data object
리턴 void

GetVariable() 공개 정적인 메소드

Returns the content of a variable, or Undefined, if the variable does not exist.
public static GetVariable ( ScriptProcessor processor, string identifier ) : SObject
processor ScriptProcessor
identifier string
리턴 Pokemon3D.Scripting.Types.SObject

GetVariableTranslated() 공개 정적인 메소드

Returns the translated content of a variable.
public static GetVariableTranslated ( ScriptProcessor processor, string identifier ) : object
processor ScriptProcessor
identifier string
리턴 object

HasVariable() 공개 정적인 메소드

Returns if the context has a specific variable.
public static HasVariable ( ScriptProcessor processor, string identifier ) : bool
processor ScriptProcessor
identifier string
리턴 bool

SetCallbackExecuteMethod() 공개 정적인 메소드

Sets the callback for executing a method of an API class.
public static SetCallbackExecuteMethod ( ScriptProcessor processor, DExecuteMethod callback ) : void
processor ScriptProcessor
callback DExecuteMethod
리턴 void

SetCallbackGetMember() 공개 정적인 메소드

Sets the callback for getting a member of an API class.
public static SetCallbackGetMember ( ScriptProcessor processor, DGetMember callback ) : void
processor ScriptProcessor
callback DGetMember
리턴 void

SetCallbackHasMember() 공개 정적인 메소드

Sets the callback for checking if an API class has a member.
public static SetCallbackHasMember ( ScriptProcessor processor, DHasMember callback ) : void
processor ScriptProcessor
callback DHasMember
리턴 void

SetCallbackScriptPipeline() 공개 정적인 메소드

Sets the callback for getting the content of a script file.
public static SetCallbackScriptPipeline ( ScriptProcessor processor, DScriptPipeline callback ) : void
processor ScriptProcessor
callback DScriptPipeline
리턴 void

SetCallbackSetMember() 공개 정적인 메소드

Sets the callback for setting a member of an API class.
public static SetCallbackSetMember ( ScriptProcessor processor, DSetMember callback ) : void
processor ScriptProcessor
callback DSetMember
리턴 void

ThrownRuntimeError() 공개 정적인 메소드

Returns if the script processor has thrown a script runtime exception.
public static ThrownRuntimeError ( ScriptProcessor processor ) : bool
processor ScriptProcessor
리턴 bool