C# 클래스 LeopotamGroup.Scripting.Vars

Variables state of VM. For internal useage
파일 보기 프로젝트 열기: Leopotam/LeopotamGroupLibraryUnity

공개 메소드들

메소드 설명
CallHostFunction ( string funcName ) : ScriptVar

Call the host function without checking of existence - be careful on it! For internal use only!

GetFunction ( string varName ) : FunctionDesc

Get function description without checking of existence - be careful on it!

GetVar ( string varName ) : ScriptVar

Get script variable without checking of existence - be careful on it!

IsFunctionExists ( string funcName ) : bool

Is script function exists.

IsHostFunctionExists ( string funcName ) : bool

is host function exists.

IsVarExists ( string varName ) : bool

Is script variable exists.

RegisterFunction ( string funcName, int pc, List paramList ) : void

Register script function during parsing. For internal use.

RegisterHostFunction ( string funcName, HostFunction cb ) : void

Register host function (publish to script).

RegisterVar ( string varName, ScriptVar v ) : void

Create / update script variable with value.

Reset ( ) : void

Reset internal state (script functions, variables). Published host functions will be kept.

ResetVars ( ) : void

Reset script variables.

UnregisterHostFunctions ( ) : void

Unregister all host functions.

Vars ( ScriptVM vm ) : System.Collections.Generic

Initialization for specified ScriptVM.

메소드 상세

CallHostFunction() 공개 메소드

Call the host function without checking of existence - be careful on it! For internal use only!
public CallHostFunction ( string funcName ) : ScriptVar
funcName string Func name.
리턴 ScriptVar

GetFunction() 공개 메소드

Get function description without checking of existence - be careful on it!
public GetFunction ( string varName ) : FunctionDesc
varName string Variable name.
리턴 FunctionDesc

GetVar() 공개 메소드

Get script variable without checking of existence - be careful on it!
public GetVar ( string varName ) : ScriptVar
varName string Variable name.
리턴 ScriptVar

IsFunctionExists() 공개 메소드

Is script function exists.
public IsFunctionExists ( string funcName ) : bool
funcName string Func name.
리턴 bool

IsHostFunctionExists() 공개 메소드

is host function exists.
public IsHostFunctionExists ( string funcName ) : bool
funcName string Function name.
리턴 bool

IsVarExists() 공개 메소드

Is script variable exists.
public IsVarExists ( string varName ) : bool
varName string Variable name.
리턴 bool

RegisterFunction() 공개 메소드

Register script function during parsing. For internal use.
public RegisterFunction ( string funcName, int pc, List paramList ) : void
funcName string Function name.
pc int PC counter at script-s lexem stream.
paramList List Parameters list.
리턴 void

RegisterHostFunction() 공개 메소드

Register host function (publish to script).
public RegisterHostFunction ( string funcName, HostFunction cb ) : void
funcName string Function name.
cb HostFunction Host callback.
리턴 void

RegisterVar() 공개 메소드

Create / update script variable with value.
public RegisterVar ( string varName, ScriptVar v ) : void
varName string Variable name.
v ScriptVar V.
리턴 void

Reset() 공개 메소드

Reset internal state (script functions, variables). Published host functions will be kept.
public Reset ( ) : void
리턴 void

ResetVars() 공개 메소드

Reset script variables.
public ResetVars ( ) : void
리턴 void

UnregisterHostFunctions() 공개 메소드

Unregister all host functions.
public UnregisterHostFunctions ( ) : void
리턴 void

Vars() 공개 메소드

Initialization for specified ScriptVM.
public Vars ( ScriptVM vm ) : System.Collections.Generic
vm ScriptVM
리턴 System.Collections.Generic