C# Class LeopotamGroup.Scripting.Vars

Variables state of VM. For internal useage
Afficher le fichier Open project: Leopotam/LeopotamGroupLibraryUnity

Méthodes publiques

Méthode Description
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.

Method Details

CallHostFunction() public méthode

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.
Résultat ScriptVar

GetFunction() public méthode

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

GetVar() public méthode

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

IsFunctionExists() public méthode

Is script function exists.
public IsFunctionExists ( string funcName ) : bool
funcName string Func name.
Résultat bool

IsHostFunctionExists() public méthode

is host function exists.
public IsHostFunctionExists ( string funcName ) : bool
funcName string Function name.
Résultat bool

IsVarExists() public méthode

Is script variable exists.
public IsVarExists ( string varName ) : bool
varName string Variable name.
Résultat bool

RegisterFunction() public méthode

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.
Résultat void

RegisterHostFunction() public méthode

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

RegisterVar() public méthode

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

Reset() public méthode

Reset internal state (script functions, variables). Published host functions will be kept.
public Reset ( ) : void
Résultat void

ResetVars() public méthode

Reset script variables.
public ResetVars ( ) : void
Résultat void

UnregisterHostFunctions() public méthode

Unregister all host functions.
public UnregisterHostFunctions ( ) : void
Résultat void

Vars() public méthode

Initialization for specified ScriptVM.
public Vars ( ScriptVM vm ) : System.Collections.Generic
vm ScriptVM
Résultat System.Collections.Generic