Enfusion Script API
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
ScriptModule Interface Reference

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.
 

Detailed Description

Module containing compiled scripts.

Member Function Documentation

◆ Call()

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.

◆ LoadScript()

static proto native ScriptModule ScriptModule.LoadScript ( ScriptModule  parentModule,
string  scriptFile,
bool  listing 
)
static

Load script and create ScriptModule for it.

Parameters
parentModuleModule
scriptFileScript file path
listing??
Returns
Loaded scripted module

◆ Release()

proto native void ScriptModule.Release ( )

The documentation for this interface was generated from the following file: