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