|
Axmol 3.0.0-89d6d9a
|
ScriptEngineManager is a singleton which manager an object instance of ScriptEngineProtocol, such as LuaEngine. More...
#include <ScriptSupport.h>
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 ScriptEngineProtocol * | getScriptEngineIfExists () |
| Returns the active script engine without constructing the manager. | |
| static void | destroyInstance () |
| Destroy the singleton about ScriptEngineManager. | |
| static int | sendEventToLua (const ScriptEvent &event) |
| Send a event to lua script. | |
ScriptEngineManager is a singleton which manager an object instance of ScriptEngineProtocol, such as LuaEngine.
| ~ScriptEngineManager | ( | ) |
Constructor of ScriptEngineManager.
@lua NA
|
inline |
| void setScriptEngine | ( | ScriptEngineProtocol * | scriptEngine | ) |
Set the ScriptEngineProtocol object should be managed.
| scriptEngine | should be managed. |
@lua NA
| void removeScriptEngine | ( | ) |
Remove the ScriptEngineProtocol object managed.
@lua NA
|
static |
Get the instance of ScriptEngineManager object.
@lua NA
|
static |
Destroy the singleton about ScriptEngineManager.
@lua NA
|
static |
Send a event to lua script.
| event | the script event |
@lua NA