2014-03-10 14:04:58 +08:00
|
|
|
/****************************************************************************
|
2016-08-05 09:42:15 +08:00
|
|
|
Copyright (c) 2013-2016 Chukong Technologies Inc.
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
http://www.cocos2d-x.org
|
|
|
|
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
|
|
in the Software without restriction, including without limitation the rights
|
|
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
|
|
|
|
The above copyright notice and this permission notice shall be included in
|
|
|
|
all copies or substantial portions of the Software.
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
THE SOFTWARE.
|
|
|
|
****************************************************************************/
|
2016-03-20 21:53:44 +08:00
|
|
|
#include "scripting/lua-bindings/manual/cocos2d/LuaScriptHandlerMgr.h"
|
2014-03-10 14:04:58 +08:00
|
|
|
#include <map>
|
|
|
|
#include <string>
|
2016-03-20 21:53:44 +08:00
|
|
|
#include "scripting/lua-bindings/manual/tolua_fix.h"
|
2016-04-18 15:09:21 +08:00
|
|
|
|
2016-03-20 21:53:44 +08:00
|
|
|
#include "scripting/lua-bindings/manual/CCLuaStack.h"
|
|
|
|
#include "scripting/lua-bindings/manual/CCLuaValue.h"
|
|
|
|
#include "scripting/lua-bindings/manual/CCLuaEngine.h"
|
|
|
|
#include "scripting/lua-bindings/manual/cocos2d/LuaOpengl.h"
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
using namespace cocos2d;
|
|
|
|
|
|
|
|
NS_CC_BEGIN
|
|
|
|
|
|
|
|
ScheduleHandlerDelegate* ScheduleHandlerDelegate::create()
|
|
|
|
{
|
2014-08-28 07:31:57 +08:00
|
|
|
ScheduleHandlerDelegate *ret = new (std::nothrow) ScheduleHandlerDelegate();
|
2017-01-18 17:05:08 +08:00
|
|
|
if (nullptr != ret )
|
2014-03-10 14:04:58 +08:00
|
|
|
{
|
|
|
|
ret->autorelease();
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
CC_SAFE_DELETE(ret);
|
2017-01-18 17:05:08 +08:00
|
|
|
return nullptr;
|
2014-03-10 14:04:58 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void ScheduleHandlerDelegate::scheduleFunc(float elapse)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void ScheduleHandlerDelegate::update(float elapse)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
LuaCallFunc * LuaCallFunc::create(const std::function<void(void* ,Node*)>& func)
|
|
|
|
{
|
2014-08-28 07:31:57 +08:00
|
|
|
auto ret = new (std::nothrow) LuaCallFunc();
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
if (ret && ret->initWithFunction(func) ) {
|
|
|
|
ret->autorelease();
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
CC_SAFE_DELETE(ret);
|
2017-01-18 17:05:08 +08:00
|
|
|
return nullptr;
|
2014-03-10 14:04:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void LuaCallFunc::execute()
|
|
|
|
{
|
|
|
|
if (_functionLua)
|
|
|
|
{
|
|
|
|
_functionLua((void*)this,_target);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
CallFuncN::execute();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bool LuaCallFunc::initWithFunction(const std::function<void (void*, Node*)> &func)
|
|
|
|
{
|
|
|
|
_functionLua = func;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
LuaCallFunc* LuaCallFunc::clone() const
|
|
|
|
{
|
|
|
|
int handler = ScriptHandlerMgr::getInstance()->getObjectHandler((void*)this, ScriptHandlerMgr::HandlerType::CALLFUNC);
|
|
|
|
|
|
|
|
if (0 == handler)
|
2017-01-18 17:05:08 +08:00
|
|
|
return nullptr;
|
2014-03-10 14:04:58 +08:00
|
|
|
|
2014-08-28 07:31:57 +08:00
|
|
|
auto ret = new (std::nothrow) LuaCallFunc();
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
if( _functionLua )
|
|
|
|
ret->initWithFunction(_functionLua);
|
|
|
|
|
|
|
|
ret->autorelease();
|
|
|
|
|
|
|
|
int newscriptHandler = cocos2d::ScriptEngineManager::getInstance()->getScriptEngine()->reallocateScriptHandler(handler);
|
|
|
|
|
|
|
|
ScriptHandlerMgr::getInstance()->addObjectHandler((void*)ret, newscriptHandler, ScriptHandlerMgr::HandlerType::CALLFUNC);
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
ScriptHandlerMgr* ScriptHandlerMgr::_scriptHandlerMgr = NULL;
|
|
|
|
|
|
|
|
ScriptHandlerMgr::ScriptHandlerMgr()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
2014-04-05 21:09:49 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
ScriptHandlerMgr::~ScriptHandlerMgr()
|
|
|
|
{
|
|
|
|
}
|
2014-04-05 21:09:49 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
ScriptHandlerMgr* ScriptHandlerMgr::getInstance()
|
|
|
|
{
|
2017-01-18 17:05:08 +08:00
|
|
|
if (nullptr == _scriptHandlerMgr)
|
2014-03-10 14:04:58 +08:00
|
|
|
{
|
2014-08-28 07:31:57 +08:00
|
|
|
_scriptHandlerMgr = new (std::nothrow) ScriptHandlerMgr();
|
2014-03-10 14:04:58 +08:00
|
|
|
_scriptHandlerMgr->init();
|
|
|
|
}
|
|
|
|
return _scriptHandlerMgr;
|
|
|
|
}
|
|
|
|
|
2014-04-05 21:09:49 +08:00
|
|
|
void ScriptHandlerMgr::destroyInstance()
|
|
|
|
{
|
|
|
|
CC_SAFE_DELETE(_scriptHandlerMgr);
|
|
|
|
}
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
void ScriptHandlerMgr::init()
|
|
|
|
{
|
|
|
|
_mapObjectHandlers.clear();
|
|
|
|
}
|
|
|
|
|
|
|
|
void ScriptHandlerMgr::addObjectHandler(void* object,int handler,ScriptHandlerMgr::HandlerType handlerType)
|
|
|
|
{
|
2017-01-18 17:05:08 +08:00
|
|
|
if (nullptr == object)
|
2014-03-10 14:04:58 +08:00
|
|
|
return;
|
|
|
|
|
|
|
|
//may be not need
|
|
|
|
removeObjectHandler(object,handlerType);
|
|
|
|
|
|
|
|
auto iter = _mapObjectHandlers.find(object);
|
|
|
|
VecHandlerPairs vecHandlers;
|
|
|
|
vecHandlers.clear();
|
|
|
|
if (_mapObjectHandlers.end() != iter)
|
|
|
|
vecHandlers = iter->second;
|
|
|
|
|
|
|
|
HandlerPair eventHanler = std::make_pair(handlerType, handler);
|
|
|
|
vecHandlers.push_back(eventHanler);
|
|
|
|
_mapObjectHandlers[object] = vecHandlers;
|
|
|
|
}
|
|
|
|
void ScriptHandlerMgr::removeObjectHandler(void* object,ScriptHandlerMgr::HandlerType handlerType)
|
|
|
|
{
|
2017-01-18 17:05:08 +08:00
|
|
|
if (nullptr == object || _mapObjectHandlers.empty())
|
2014-03-10 14:04:58 +08:00
|
|
|
return;
|
|
|
|
|
|
|
|
auto iterMap = _mapObjectHandlers.find(object);
|
|
|
|
if (_mapObjectHandlers.end() == iterMap)
|
|
|
|
return;
|
|
|
|
|
|
|
|
if (iterMap->second.empty())
|
|
|
|
return;
|
|
|
|
|
|
|
|
auto iterVec = iterMap->second.begin();
|
|
|
|
for (; iterVec != iterMap->second.end(); ++iterVec)
|
|
|
|
{
|
|
|
|
if (iterVec->first == handlerType)
|
|
|
|
{
|
2017-01-18 17:05:08 +08:00
|
|
|
LuaEngine::getInstance()->removeScriptHandler(iterVec->second);
|
|
|
|
iterMap->second.erase(iterVec);
|
2014-03-10 14:04:58 +08:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-01-18 17:05:08 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
int ScriptHandlerMgr::getObjectHandler(void* object,ScriptHandlerMgr::HandlerType handlerType)
|
|
|
|
{
|
2017-01-18 17:05:08 +08:00
|
|
|
if (nullptr == object || _mapObjectHandlers.empty() )
|
2014-03-10 14:04:58 +08:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
auto iter = _mapObjectHandlers.find(object);
|
|
|
|
if (_mapObjectHandlers.end() != iter)
|
2017-01-18 17:05:08 +08:00
|
|
|
for (auto &handlerPair : iter->second)
|
|
|
|
if (handlerPair.first == handlerType)
|
|
|
|
return handlerPair.second;
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2017-01-18 17:05:08 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
void ScriptHandlerMgr::removeObjectAllHandlers(void* object)
|
|
|
|
{
|
2017-01-18 17:05:08 +08:00
|
|
|
if (nullptr == object || _mapObjectHandlers.empty())
|
2014-03-10 14:04:58 +08:00
|
|
|
return;
|
|
|
|
|
|
|
|
auto iter = _mapObjectHandlers.find(object);
|
|
|
|
if (_mapObjectHandlers.end() != iter)
|
|
|
|
{
|
|
|
|
if (!iter->second.empty())
|
|
|
|
{
|
2017-01-18 17:05:08 +08:00
|
|
|
for (auto &handlerPair : iter->second)
|
|
|
|
LuaEngine::getInstance()->removeScriptHandler(handlerPair.second);
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
(iter->second).clear();
|
|
|
|
}
|
|
|
|
_mapObjectHandlers.erase(iter);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-03-21 11:24:24 +08:00
|
|
|
ScriptHandlerMgr::HandlerType ScriptHandlerMgr::addCustomHandler(void* object, int handler)
|
2014-03-19 10:50:11 +08:00
|
|
|
{
|
2014-03-21 11:24:24 +08:00
|
|
|
assert(nullptr != object);
|
2014-03-19 10:50:11 +08:00
|
|
|
|
|
|
|
auto iter = _mapObjectHandlers.find(object);
|
|
|
|
VecHandlerPairs vecHandlers;
|
|
|
|
vecHandlers.clear();
|
2014-03-21 11:24:24 +08:00
|
|
|
HandlerType handlerType = HandlerType::EVENT_CUSTOM_BEGAN;
|
|
|
|
|
|
|
|
if (_mapObjectHandlers.end() != iter)
|
2014-03-19 10:50:11 +08:00
|
|
|
{
|
2014-03-21 11:24:24 +08:00
|
|
|
vecHandlers = iter->second;
|
2017-01-18 17:05:08 +08:00
|
|
|
if (!vecHandlers.empty())
|
|
|
|
handlerType = static_cast<HandlerType>((int)vecHandlers.back().first + 1);
|
2014-03-19 10:50:11 +08:00
|
|
|
}
|
2014-03-21 11:24:24 +08:00
|
|
|
assert(handlerType <= HandlerType::EVENT_CUSTOM_ENDED);
|
2014-03-19 10:50:11 +08:00
|
|
|
|
|
|
|
HandlerPair eventHanler = std::make_pair(handlerType, handler);
|
|
|
|
vecHandlers.push_back(eventHanler);
|
|
|
|
_mapObjectHandlers[object] = vecHandlers;
|
2014-03-21 11:24:24 +08:00
|
|
|
|
|
|
|
return handlerType;
|
2014-03-19 10:50:11 +08:00
|
|
|
}
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
NS_CC_END
|
|
|
|
|
|
|
|
|
|
|
|
static void tolua_reg_script_handler_mgr_type(lua_State* tolua_S)
|
|
|
|
{
|
|
|
|
tolua_usertype(tolua_S, "ScheduleHandlerDelegate");
|
|
|
|
tolua_usertype(tolua_S, "ScriptHandlerMgr");
|
2014-03-20 17:04:54 +08:00
|
|
|
}
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
/* method: getInstance of class ScriptHandlerMgr */
|
|
|
|
#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScriptHandlerMgr_getInstance00
|
|
|
|
static int tolua_Cocos2d_ScriptHandlerMgr_getInstance00(lua_State* tolua_S)
|
|
|
|
{
|
|
|
|
#ifndef TOLUA_RELEASE
|
2014-03-20 17:04:54 +08:00
|
|
|
tolua_Error tolua_err;
|
2014-03-10 14:04:58 +08:00
|
|
|
if (!tolua_isusertable(tolua_S,1,"ScriptHandlerMgr",0,&tolua_err) ||
|
|
|
|
!tolua_isnoobj(tolua_S,2,&tolua_err) )
|
|
|
|
goto tolua_lerror;
|
|
|
|
else
|
|
|
|
#endif
|
|
|
|
{
|
|
|
|
ScriptHandlerMgr* tolua_ret = (ScriptHandlerMgr*) ScriptHandlerMgr::getInstance();
|
|
|
|
tolua_pushusertype(tolua_S,(void*)tolua_ret,"ScriptHandlerMgr");
|
|
|
|
}
|
|
|
|
return 1;
|
|
|
|
#ifndef TOLUA_RELEASE
|
|
|
|
tolua_lerror:
|
|
|
|
tolua_error(tolua_S,"#ferror in function 'getInstance'.",&tolua_err);
|
|
|
|
return 0;
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
#endif //#ifndef TOLUA_DISABLE
|
|
|
|
|
|
|
|
/* method: registerScriptHandler of class ScriptHandlerMgr */
|
|
|
|
static int tolua_Cocos2d_ScriptHandlerMgr_registerScriptHandler00(lua_State* tolua_S)
|
|
|
|
{
|
|
|
|
#ifndef TOLUA_RELEASE
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
if (!tolua_isusertype(tolua_S,1,"ScriptHandlerMgr",0,&tolua_err) ||
|
|
|
|
!tolua_isusertype(tolua_S, 2, "cc.Ref", 0, &tolua_err) ||
|
|
|
|
!toluafix_isfunction(tolua_S, 3, "LUA_FUNCTION", 0, &tolua_err) ||
|
|
|
|
!tolua_isnumber(tolua_S, 4, 0, &tolua_err) ||
|
|
|
|
!tolua_isnoobj(tolua_S,5,&tolua_err) )
|
|
|
|
goto tolua_lerror;
|
|
|
|
else
|
|
|
|
#endif
|
|
|
|
{
|
|
|
|
cocos2d::ScriptHandlerMgr* scriptHanlderMgr = static_cast<cocos2d::ScriptHandlerMgr*>(tolua_tousertype(tolua_S,1,0));
|
|
|
|
#ifndef TOLUA_RELEASE
|
|
|
|
if (nullptr == scriptHanlderMgr)
|
|
|
|
{
|
|
|
|
tolua_error(tolua_S,"invalid 'scriptHanlderMgr' in function 'tolua_Cocos2d_ScriptHandlerMgr_registerScriptHandler00'\n", NULL);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
LUA_FUNCTION handler = toluafix_ref_function(tolua_S,3,0);
|
|
|
|
ScriptHandlerMgr::HandlerType handlerType = (ScriptHandlerMgr::HandlerType)(int)tolua_tonumber(tolua_S, 4, 0);
|
|
|
|
scriptHanlderMgr->addObjectHandler(tolua_tousertype(tolua_S, 2, 0), handler,handlerType);
|
|
|
|
}
|
|
|
|
return 1;
|
|
|
|
#ifndef TOLUA_RELEASE
|
|
|
|
tolua_lerror:
|
|
|
|
tolua_error(tolua_S,"#ferror in function 'registerScriptHandler'.",&tolua_err);
|
|
|
|
return 0;
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
/* method: unregisterScriptHandler of class ScriptHandlerMgr */
|
|
|
|
static int tolua_Cocos2d_ScriptHandlerMgr_unregisterScriptHandler00(lua_State* tolua_S)
|
|
|
|
{
|
|
|
|
#ifndef TOLUA_RELEASE
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
if (!tolua_isusertype(tolua_S,1,"ScriptHandlerMgr",0,&tolua_err) ||
|
|
|
|
!tolua_isusertype(tolua_S, 2, "cc.Ref", 0, &tolua_err) ||
|
|
|
|
!tolua_isnumber(tolua_S, 3, 0, &tolua_err) ||
|
|
|
|
!tolua_isnoobj(tolua_S,4,&tolua_err) )
|
|
|
|
goto tolua_lerror;
|
|
|
|
else
|
|
|
|
#endif
|
|
|
|
{
|
|
|
|
cocos2d::ScriptHandlerMgr* scriptHanlderMgr = static_cast<cocos2d::ScriptHandlerMgr*>(tolua_tousertype(tolua_S,1,0));
|
|
|
|
#ifndef TOLUA_RELEASE
|
|
|
|
if (nullptr == scriptHanlderMgr)
|
|
|
|
{
|
|
|
|
tolua_error(tolua_S,"invalid 'scriptHanlderMgr' in function 'tolua_Cocos2d_ScriptHandlerMgr_unregisterScriptHandler00'\n", NULL);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
ScriptHandlerMgr::HandlerType handlerType = (ScriptHandlerMgr::HandlerType)(int)tolua_tonumber(tolua_S, 3, 0);
|
|
|
|
scriptHanlderMgr->removeObjectHandler(tolua_tousertype(tolua_S, 2, 0), handlerType);
|
|
|
|
}
|
|
|
|
return 1;
|
|
|
|
#ifndef TOLUA_RELEASE
|
|
|
|
tolua_lerror:
|
|
|
|
tolua_error(tolua_S,"#ferror in function 'unregisterScriptHandler'.",&tolua_err);
|
|
|
|
return 0;
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
/* method: removeObjectAllHandlers of class ScriptHandlerMgr */
|
|
|
|
static int tolua_Cocos2d_ScriptHandlerMgr_removeObjectAllHandlers00(lua_State* tolua_S)
|
|
|
|
{
|
|
|
|
#ifndef TOLUA_RELEASE
|
|
|
|
tolua_Error tolua_err;
|
|
|
|
if (!tolua_isusertype(tolua_S,1,"ScriptHandlerMgr",0,&tolua_err) ||
|
|
|
|
!tolua_isusertype(tolua_S, 2, "cc.Ref", 0, &tolua_err) ||
|
|
|
|
!tolua_isnoobj(tolua_S,3,&tolua_err) )
|
|
|
|
goto tolua_lerror;
|
|
|
|
else
|
|
|
|
#endif
|
|
|
|
{
|
|
|
|
cocos2d::ScriptHandlerMgr* scriptHanlderMgr = static_cast<cocos2d::ScriptHandlerMgr*>(tolua_tousertype(tolua_S,1,0));
|
|
|
|
#ifndef TOLUA_RELEASE
|
|
|
|
if (nullptr == scriptHanlderMgr)
|
|
|
|
{
|
|
|
|
tolua_error(tolua_S,"invalid 'scriptHanlderMgr' in function 'tolua_Cocos2d_ScriptHandlerMgr_removeObjectAllHandlers00'\n", NULL);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
scriptHanlderMgr->removeObjectAllHandlers(tolua_tousertype(tolua_S, 2, 0));
|
|
|
|
}
|
|
|
|
return 1;
|
|
|
|
#ifndef TOLUA_RELEASE
|
|
|
|
tolua_lerror:
|
|
|
|
tolua_error(tolua_S,"#ferror in function 'removeObjectAllHandlers'.",&tolua_err);
|
|
|
|
return 0;
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
TOLUA_API int tolua_script_handler_mgr_open(lua_State* tolua_S)
|
|
|
|
{
|
|
|
|
tolua_open(tolua_S);
|
|
|
|
tolua_reg_script_handler_mgr_type(tolua_S);
|
|
|
|
tolua_module(tolua_S, NULL,0);
|
|
|
|
tolua_beginmodule(tolua_S, NULL);
|
|
|
|
tolua_cclass(tolua_S,"ScriptHandlerMgr","ScriptHandlerMgr","",NULL);
|
|
|
|
tolua_beginmodule(tolua_S, "ScriptHandlerMgr");
|
|
|
|
tolua_function(tolua_S, "getInstance", tolua_Cocos2d_ScriptHandlerMgr_getInstance00);
|
|
|
|
tolua_function(tolua_S, "registerScriptHandler", tolua_Cocos2d_ScriptHandlerMgr_registerScriptHandler00);
|
|
|
|
tolua_function(tolua_S, "unregisterScriptHandler", tolua_Cocos2d_ScriptHandlerMgr_unregisterScriptHandler00);
|
|
|
|
tolua_function(tolua_S, "removeObjectAllHandlers", tolua_Cocos2d_ScriptHandlerMgr_removeObjectAllHandlers00);
|
|
|
|
tolua_endmodule(tolua_S);
|
|
|
|
tolua_endmodule(tolua_S);
|
|
|
|
return 1;
|
|
|
|
}
|