|
| virtual | ~LuaEngine (void) |
| |
| virtual ccScriptType | getScriptType () |
| |
| LuaStack * | getLuaStack (void) |
| |
| virtual void | addSearchPath (const char *path) |
| | Add a path to find lua files in. More...
|
| |
| virtual void | addLuaLoader (lua_CFunction func) |
| | Add lua loader, now it is used on android. More...
|
| |
| virtual int | reload (const char *moduleFileName) |
| | reload script code contained in the given string. More...
|
| |
| virtual void | removeScriptObjectByObject (Ref *object) |
| | Remove Object from lua state. More...
|
| |
| virtual void | removeScriptHandler (int nHandler) |
| | Remove Lua function reference. More...
|
| |
| virtual int | reallocateScriptHandler (int nHandler) |
| | Reallocate Lua function reference. More...
|
| |
| virtual int | executeString (const char *codes) |
| | Execute script code contained in the given string. More...
|
| |
| virtual int | executeScriptFile (const char *filename) |
| | Execute a script file. More...
|
| |
| virtual int | executeGlobalFunction (const char *functionName) |
| | Execute a scripted global function. More...
|
| |
| virtual int | executeNodeEvent (Node *pNode, int nAction) |
| |
| virtual int | executeMenuItemEvent (MenuItem *pMenuItem) |
| |
| virtual int | executeNotificationEvent (__NotificationCenter *pNotificationCenter, const char *pszName) |
| |
| virtual int | executeCallFuncActionEvent (CallFunc *pAction, Ref *pTarget=NULL) |
| |
| virtual int | executeSchedule (int nHandler, float dt, Node *pNode=NULL) |
| |
| virtual int | executeLayerTouchesEvent (Layer *pLayer, int eventType, __Set *pTouches) |
| |
| virtual int | executeLayerTouchEvent (Layer *pLayer, int eventType, Touch *pTouch) |
| |
| virtual int | executeLayerKeypadEvent (Layer *pLayer, int eventType) |
| |
| virtual int | executeAccelerometerEvent (Layer *pLayer, Acceleration *pAccelerationValue) |
| | execute a accelerometer event More...
|
| |
| virtual int | executeEvent (int nHandler, const char *pEventName, Ref *pEventSource=NULL, const char *pEventSourceClassName=NULL) |
| |
| virtual bool | handleAssert (const char *msg) |
| |
| virtual bool | parseConfig (ConfigType type, const std::string &str) override |
| |
| virtual int | sendEvent (ScriptEvent *message) override |
| |
| virtual int | handleEvent (ScriptHandlerMgr::HandlerType type, void *data) |
| |
| virtual int | handleEvent (ScriptHandlerMgr::HandlerType type, void *data, int numResults, const std::function< void(lua_State *, int)> &func) |
| |