ScriptEngineManager is a singleton which manager an object instance of ScriptEngineProtocl, such as LuaEngine. More...
Public Member Functions | |
| ~ScriptEngineManager (void) | |
| Constructor of ScriptEngineManager. | |
| ScriptEngineProtocol * | getScriptEngine (void) |
| Get the ScriptEngineProtocol object. More... | |
| void | setScriptEngine (ScriptEngineProtocol *scriptEngine) |
| Set the ScriptEngineProtocol object should be managered. More... | |
| void | removeScriptEngine (void) |
| Remove the ScriptEngineProtocol object managered. | |
Static Public Member Functions | |
| static ScriptEngineManager * | getInstance () |
| Get the instance of ScriptEngineManager object. More... | |
| static void | destroyInstance () |
| Destroy the singleton about ScriptEngineManager. | |
| static void | sendNodeEventToLua (Node *node, int action) |
| Call the Lua function when the event of node is triggered. More... | |
| static ScriptEngineManager * | sharedManager () |
| static void | purgeSharedManager () |
ScriptEngineManager is a singleton which manager an object instance of ScriptEngineProtocl, such as LuaEngine.
|
inline |
Get the ScriptEngineProtocol object.
| void setScriptEngine | ( | ScriptEngineProtocol * | scriptEngine | ) |
Set the ScriptEngineProtocol object should be managered.
| scriptEngine | should be managered. |
|
static |
Get the instance of ScriptEngineManager object.
|
static |
Call the Lua function when the event of node is triggered.
| node | the nativeobject triggers the event. |
| action | the specific type. |
|
inlinestatic |
|
inlinestatic |