Enfusion Script API
|
Module containing compiled scripts. More...
Public Member Functions | |
proto volatile bool | Call (Class inst, string function, bool async, out void returnVal, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL) |
Dynamic call of function. | |
proto native void | Release () |
Static Public Member Functions | |
static proto native ScriptModule | LoadScript (ScriptModule parentModule, string scriptFile, bool listing) |
Load script and create ScriptModule for it. | |
Module containing compiled scripts.
proto volatile bool ScriptModule.Call | ( | Class | inst, |
string | function, | ||
bool | async, | ||
out void | returnVal, | ||
void | param1 = NULL , |
||
void | param2 = NULL , |
||
void | param3 = NULL , |
||
void | param4 = NULL , |
||
void | param5 = NULL , |
||
void | param6 = NULL , |
||
void | param7 = NULL , |
||
void | param8 = NULL , |
||
void | param9 = NULL |
||
) |
Dynamic call of function.
when inst == NULL
, it's global function call, otherwise it's method of class. If async
is true
, creates new thread (so it's legal to use sleep/wait). Otherwise main thread is used and call is blocking. Return value of called method is returned via returnVal
(only when async
is false!) Returns true
, when success.
|
static |
Load script and create ScriptModule for it.
parentModule | Module |
scriptFile | Script file path |
listing | ?? |
proto native void ScriptModule.Release | ( | ) |