Method | Description | |
---|---|---|
CallFunction ( string funcName, |
Call script function.
|
|
GetParamByID ( int id ) : |
Get specified parameter that was passed from script to current host function.
|
|
GetParamsCount ( ) : int |
Get parameters count passed from script to current host function.
|
|
IsFunctionExists ( string funcName ) : bool |
Is script function exists.
|
|
Load ( string source ) : string |
Load script source code. Old Vm state will be reset.
|
|
RegisterHostFunction ( string funcName, HostFunction cb ) : void |
Register host function to VM (publish to calling from script side).
|
|
ScriptVM ( ) : LeopotamGroup.Scripting.Internal |
Default initialization.
|
|
SetRuntimeError ( string msg ) : void |
Raise runtime error at VM.
|
|
UnregisterAllHostFunctions ( ) : void |
Unregister all host functions from VM (unpublish from script side).
|
public CallFunction ( string funcName, |
||
funcName | string | Function name. |
result | Result of function execution. | |
param1 | Optional parameter to function. | |
param2 | Optional parameter to function. | |
param3 | Optional parameter to function. | |
param4 | Optional parameter to function. | |
return | string |
public GetParamByID ( int id ) : |
||
id | int | Number of parameter. |
return |
public IsFunctionExists ( string funcName ) : bool | ||
funcName | string | Function name. |
return | bool |
public RegisterHostFunction ( string funcName, HostFunction cb ) : void | ||
funcName | string | Func name. |
cb | HostFunction | Cb. |
return | void |
public ScriptVM ( ) : LeopotamGroup.Scripting.Internal | ||
return | LeopotamGroup.Scripting.Internal |
public SetRuntimeError ( string msg ) : void | ||
msg | string | Message. |
return | void |