ScriptEngineManager is a singleton which manager an object instance of ScriptEngineProtocol, such as LuaEngine.
More...
#include <ScriptSupport.h>
ScriptEngineManager is a singleton which manager an object instance of ScriptEngineProtocol, such as LuaEngine.
- Since
- v0.99.5-x-0.8.5 @js NA
◆ ~ScriptEngineManager()
◆ getScriptEngine()
◆ setScriptEngine()
Set the ScriptEngineProtocol object should be managed.
- Parameters
-
scriptEngine | should be managed. |
@lua NA @js NA
◆ removeScriptEngine()
void removeScriptEngine |
( |
| ) |
|
◆ getInstance()
◆ destroyInstance()
static void destroyInstance |
( |
| ) |
|
|
static |
◆ sendNodeEventToLua()
static void sendNodeEventToLua |
( |
Node * | node, |
|
|
int | action ) |
|
static |
Call the Lua function when the event of node is triggered.
- Parameters
-
node | the nativeobject triggers the event. |
action | the specific type. |
@lua NA @js NA
◆ sendEventToLua()
Send a event to lua script.
- Parameters
-
@lua NA @js NA
The documentation for this class was generated from the following file: