C# 클래스 Pokemon3D.Scripting.Types.SFunction

Represents a function object that can be called in the script.
상속: SObject
파일 보기 프로젝트 열기: nilllzz/Pokemon3D 1 사용 예제들

Private Properties

프로퍼티 타입 설명
ExecuteMethod SObject
SizeOf double
ToScriptObject string
ToScriptSource string
TypeOf string

공개 메소드들

메소드 설명
Call ( ScriptProcessor processor, SObject caller, SObject This, SObject parameters ) : SObject

Executes the function.

SFunction ( BuiltInMethod method ) : System

Initializes an instance with a built in method.

SFunction ( Delegate method ) : System

Initializes an instance with a built in method.

SFunction ( ScriptProcessor processor, string sourceCode ) : System

Initializes an instance with a script code signature and body.

SFunction ( string body, string parameters ) : System

비공개 메소드들

메소드 설명
ExecuteMethod ( ScriptProcessor processor, string methodName, SObject caller, SObject This, SObject parameters ) : SObject
SizeOf ( ) : double
ToScriptObject ( ) : string
ToScriptSource ( ) : string
TypeOf ( ) : string

메소드 상세

Call() 공개 메소드

Executes the function.
public Call ( ScriptProcessor processor, SObject caller, SObject This, SObject parameters ) : SObject
processor ScriptProcessor The processor with context that called this functions.
caller SObject The calling object.
This SObject The "This" reference used in the call context.
parameters SObject The parameters used in this function call.
리턴 SObject

SFunction() 공개 메소드

Initializes an instance with a built in method.
public SFunction ( BuiltInMethod method ) : System
method BuiltInMethod
리턴 System

SFunction() 공개 메소드

Initializes an instance with a built in method.
public SFunction ( Delegate method ) : System
method System.Delegate
리턴 System

SFunction() 공개 메소드

Initializes an instance with a script code signature and body.
public SFunction ( ScriptProcessor processor, string sourceCode ) : System
processor ScriptProcessor
sourceCode string The source code, format: function (params) { code }
리턴 System

SFunction() 공개 메소드

public SFunction ( string body, string parameters ) : System
body string
parameters string
리턴 System