ScriptEngineManager is a singleton which manager an object instance of ScriptEngineProtocol, such as LuaEngine. More...
Public Member Functions | |
~ScriptEngineManager () | |
Constructor of ScriptEngineManager. More... | |
ScriptEngineProtocol * | getScriptEngine () |
Get the ScriptEngineProtocol object. More... | |
void | setScriptEngine (ScriptEngineProtocol *scriptEngine) |
Set the ScriptEngineProtocol object should be managed. More... | |
void | removeScriptEngine () |
Remove the ScriptEngineProtocol object managed. More... | |
Static Public Member Functions | |
static ScriptEngineManager * | getInstance () |
Get the instance of ScriptEngineManager object. More... | |
static void | destroyInstance () |
Destroy the singleton about ScriptEngineManager. More... | |
static bool | sendActionEventToJS (Action *actionObject, int eventType, void *param) |
@lua NA @js NA | |
static bool | sendNodeEventToJS (Node *node, int action) |
@lua NA @js NA | |
static bool | sendNodeEventToJSExtended (Node *node, int action) |
@lua NA @js NA | |
static void | sendNodeEventToLua (Node *node, int action) |
Call the Lua function when the event of node is triggered. More... | |
ScriptEngineManager is a singleton which manager an object instance of ScriptEngineProtocol, such as LuaEngine.
~ScriptEngineManager | ( | ) |
Constructor of ScriptEngineManager.
@lua NA @js NA
|
inline |
void setScriptEngine | ( | ScriptEngineProtocol * | scriptEngine | ) |
Set the ScriptEngineProtocol object should be managed.
scriptEngine | should be managed. |
@lua NA @js NA
void removeScriptEngine | ( | ) |
Remove the ScriptEngineProtocol object managed.
@lua NA @js NA
|
static |
Get the instance of ScriptEngineManager object.
@lua NA @js NA
|
static |
Destroy the singleton about ScriptEngineManager.
@lua NA @js NA
|
static |
Call the Lua function when the event of node is triggered.
node | the nativeobject triggers the event. |
action | the specific type. |
@lua NA @js NA