diff --git a/cocos2d_libs.xcodeproj/project.pbxproj.REMOVED.git-id b/cocos2d_libs.xcodeproj/project.pbxproj.REMOVED.git-id index 9c0cf28357..6405676f8f 100644 --- a/cocos2d_libs.xcodeproj/project.pbxproj.REMOVED.git-id +++ b/cocos2d_libs.xcodeproj/project.pbxproj.REMOVED.git-id @@ -1 +1 @@ -dcaf07070ad651b671d721564b6d1aa99ea03d0b \ No newline at end of file +133d6126f47c6e45740811d2f948de79ddb945fe \ No newline at end of file diff --git a/scripting/lua/cocos2dx_support/CCBProxy.cpp b/scripting/lua/cocos2dx_support/CCBProxy.cpp index 3253acac3b..572138706f 100644 --- a/scripting/lua/cocos2dx_support/CCBProxy.cpp +++ b/scripting/lua/cocos2dx_support/CCBProxy.cpp @@ -28,9 +28,6 @@ CCBReader* CCBProxy::createCCBReader() { NodeLoaderLibrary *ccNodeLoaderLibrary = NodeLoaderLibrary::getInstance(); - - ccNodeLoaderLibrary->registerNodeLoader("", CCBLayerLoader::loader()); - CCBReader * pCCBReader = new CCBReader(ccNodeLoaderLibrary); pCCBReader->autorelease(); diff --git a/scripting/lua/cocos2dx_support/CCLuaStack.cpp b/scripting/lua/cocos2dx_support/CCLuaStack.cpp index edbcb8ff1d..6de1e69425 100644 --- a/scripting/lua/cocos2dx_support/CCLuaStack.cpp +++ b/scripting/lua/cocos2dx_support/CCLuaStack.cpp @@ -38,12 +38,10 @@ extern "C" { #include "platform/ios/CCLuaObjcBridge.h" #endif -#include "Lua_extensions_CCB.h" #if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) #include "Lua_web_socket.h" #endif #include "LuaOpengl.h" -#include "LuaScrollView.h" #include "LuaScriptHandlerMgr.h" #include "lua_cocos2dx_auto.hpp" #include "lua_cocos2dx_extension_auto.hpp" @@ -118,7 +116,6 @@ bool LuaStack::init(void) { _state = lua_open(); luaL_openlibs(_state); -// tolua_Cocos2d_open(_state); toluafix_open(_state); // Register our version of the global "print" function @@ -139,11 +136,10 @@ bool LuaStack::init(void) #if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_MAC) LuaObjcBridge::luaopen_luaoc(_state); #endif -// tolua_extensions_ccb_open(_state); + #if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) tolua_web_socket_open(_state); #endif -// tolua_scroll_view_open(_state); tolua_script_handler_mgr_open(_state); // add cocos2dx loader diff --git a/scripting/lua/cocos2dx_support/LuaScriptHandlerMgr.cpp b/scripting/lua/cocos2dx_support/LuaScriptHandlerMgr.cpp index c15252cd48..c4da23904a 100644 --- a/scripting/lua/cocos2dx_support/LuaScriptHandlerMgr.cpp +++ b/scripting/lua/cocos2dx_support/LuaScriptHandlerMgr.cpp @@ -16,7 +16,6 @@ extern "C" { #include "CCLuaEngine.h" #include "Lua_web_socket.h" #include "LuaOpengl.h" -#include "LuaScrollView.h" using namespace cocos2d; using namespace cocos2d::extension; @@ -626,58 +625,6 @@ tolua_lerror: #endif } -int tolua_Cocos2d_ScrollView_registerScriptHandler00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - !toluafix_isfunction(tolua_S,2,"LUA_FUNCTION",0,&tolua_err) || - !tolua_isnumber(tolua_S,3,0,&tolua_err) || - !tolua_isnoobj(tolua_S,4,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); - LUA_FUNCTION handler = ( toluafix_ref_function(tolua_S,2,0)); - ScriptHandlerMgr::HandlerEventType handlerType = (ScriptHandlerMgr::HandlerEventType) ((int)tolua_tonumber(tolua_S,3,0) + ScriptHandlerMgr::kScrollViewScrollHandler); - ScriptHandlerMgr::getInstance()->addObjectHandler((void*)self, handler, handlerType); - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'registerScriptHandler'.",&tolua_err); - return 0; -#endif -} - -int tolua_Cocos2d_ScrollView_unregisterScriptHandler00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - !tolua_isnumber(tolua_S,2,0,&tolua_err) || - !tolua_isnoobj(tolua_S,3,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); - ScriptHandlerMgr::HandlerEventType handlerType = (ScriptHandlerMgr::HandlerEventType) ((int)tolua_tonumber(tolua_S,2,0) + ScriptHandlerMgr::kScrollViewScrollHandler); - ScriptHandlerMgr::getInstance()->removeObjectHandler((void*)self, handlerType); - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'unregisterScriptHandler'.",&tolua_err); - return 0; -#endif -} - static void tolua_reg_script_handler_mgr_type(lua_State* tolua_S) { diff --git a/scripting/lua/cocos2dx_support/LuaScrollView.cpp b/scripting/lua/cocos2dx_support/LuaScrollView.cpp deleted file mode 100644 index 62591a4917..0000000000 --- a/scripting/lua/cocos2dx_support/LuaScrollView.cpp +++ /dev/null @@ -1,1627 +0,0 @@ -#ifdef __cplusplus -extern "C" { -#endif - #include "tolua_fix.h" -#ifdef __cplusplus -} -#endif - -#include -#include -#include "LuaScrollView.h" -#include "cocos2d.h" -#include "cocos-ext.h" -#include "CCLuaStack.h" -#include "CCLuaValue.h" -#include "CCLuaEngine.h" -#include "LuaScriptHandlerMgr.h" - -using namespace cocos2d; -using namespace cocos2d::extension; - - -LuaScrollView::~LuaScrollView() -{ - -} - -void LuaScrollView::scrollViewDidScroll(ScrollView* view) -{ - LuaScrollView* luaView = dynamic_cast(view); - if (NULL != luaView) - { - int handler = ScriptHandlerMgr::getInstance()->getObjectHandler((void*)luaView, ScriptHandlerMgr::kScrollViewScrollHandler); - if (0 != handler) - { - CommonScriptData data(handler,""); - ScriptEvent event(kCommonEvent,(void*)&data); - ScriptEngineManager::getInstance()->getScriptEngine()->sendEvent(&event); - } - } -} - -void LuaScrollView::scrollViewDidZoom(ScrollView* view) -{ - LuaScrollView* luaView = dynamic_cast(view); - if (NULL != luaView) - { - int handler = ScriptHandlerMgr::getInstance()->getObjectHandler((void*)luaView, ScriptHandlerMgr::kScrollViewZoomHandler); - if (0 != handler) - { - CommonScriptData data(handler,""); - ScriptEvent event(kCommonEvent,(void*)&data); - ScriptEngineManager::getInstance()->getScriptEngine()->sendEvent(&event); - } - } -} - - -#ifdef __cplusplus -static int tolua_collect_ScrollView (lua_State* tolua_S) -{ - ScrollView *self = (ScrollView*) tolua_tousertype(tolua_S,1,0); - Mtolua_delete(self); - return 0; -} -#endif - -/* function to release collected object via destructor */ -static void tolua_reg_scrollview_type(lua_State* tolua_S) -{ - tolua_usertype(tolua_S, "CCScrollView"); -} - -/* method: new of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_new00 -static int tolua_Cocos2d_ScrollView_new00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertable(tolua_S,1,"CCScrollView",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - { - LuaScrollView* tolua_ret = (LuaScrollView*) Mtolua_new((ScrollView)()); - int nID = (tolua_ret) ? (int)tolua_ret->_ID : -1; - int* pLuaID = (tolua_ret) ? &tolua_ret->_luaID : NULL; - toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCScrollView"); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: new_local of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_new00_local -static int tolua_Cocos2d_ScrollView_new00_local(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertable(tolua_S,1,"CCScrollView",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - { - LuaScrollView* tolua_ret = (LuaScrollView*) Mtolua_new((ScrollView)()); - int nID = (tolua_ret) ? (int)tolua_ret->_ID : -1; - int* pLuaID = (tolua_ret) ? &tolua_ret->_luaID : NULL; - toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCScrollView"); - tolua_register_gc(tolua_S,lua_gettop(tolua_S)); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: delete of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_delete00 -static int tolua_Cocos2d_ScrollView_delete00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL); -#endif - Mtolua_delete(self); - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: create of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_create00 -static int tolua_Cocos2d_ScrollView_create00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertable(tolua_S,1,"CCScrollView",0,&tolua_err) || - (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CCSize",0,&tolua_err)) || - !tolua_isusertype(tolua_S,3,"CCNode",1,&tolua_err) || - !tolua_isnoobj(tolua_S,4,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - Size size = *((Size*) tolua_tousertype(tolua_S,2,0)); - Node* container = ((Node*) tolua_tousertype(tolua_S,3,NULL)); - { - LuaScrollView* tolua_ret = new LuaScrollView(); - if (NULL != tolua_ret && tolua_ret->initWithViewSize(size,container) ) - { - tolua_ret->autorelease(); - int nID = (tolua_ret) ? (int)tolua_ret->_ID : -1; - int* pLuaID = (tolua_ret) ? &tolua_ret->_luaID : NULL; - toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCScrollView"); - return 1; - } - else - { - CC_SAFE_DELETE(tolua_ret); - return 0; - } - } - } -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'create'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: create of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_create01 -static int tolua_Cocos2d_ScrollView_create01(lua_State* tolua_S) -{ - tolua_Error tolua_err; - if ( - !tolua_isusertable(tolua_S,1,"CCScrollView",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else - { - LuaScrollView* tolua_ret = new LuaScrollView(); - if (NULL != tolua_ret && tolua_ret->init() ) - { - tolua_ret->autorelease(); - int nID = (tolua_ret) ? (int)tolua_ret->_ID : -1; - int* pLuaID = (tolua_ret) ? &tolua_ret->_luaID : NULL; - toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCScrollView"); - return 1; - } - else - { - CC_SAFE_DELETE(tolua_ret); - return 0; - } - } -tolua_lerror: - return tolua_Cocos2d_ScrollView_create00(tolua_S); -} -#endif //#ifndef TOLUA_DISABLE - - -/* method: isClippingToBounds of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_isClippingToBounds00 -static int tolua_Cocos2d_ScrollView_isClippingToBounds00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'isClippingToBounds'", NULL); -#endif - { - bool tolua_ret = (bool) self->isClippingToBounds(); - tolua_pushboolean(tolua_S,(bool)tolua_ret); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'isClippingToBounds'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: setContainer of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_setContainer00 -static int tolua_Cocos2d_ScrollView_setContainer00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - !tolua_isusertype(tolua_S,2,"CCNode",0,&tolua_err) || - !tolua_isnoobj(tolua_S,3,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); - Node* pContainer = ((Node*) tolua_tousertype(tolua_S,2,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setContainer'", NULL); -#endif - { - self->setContainer(pContainer); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'setContainer'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: setContentOffsetInDuration of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_setContentOffsetInDuration00 -static int tolua_Cocos2d_ScrollView_setContentOffsetInDuration00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CCPoint",0,&tolua_err)) || - !tolua_isnumber(tolua_S,3,0,&tolua_err) || - !tolua_isnoobj(tolua_S,4,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); - Point offset = *((Point*) tolua_tousertype(tolua_S,2,0)); - float dt = ((float) tolua_tonumber(tolua_S,3,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setContentOffsetInDuration'", NULL); -#endif - { - self->setContentOffsetInDuration(offset,dt); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'setContentOffsetInDuration'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: setZoomScaleInDuration of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_setZoomScaleInDuration00 -static int tolua_Cocos2d_ScrollView_setZoomScaleInDuration00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - !tolua_isnumber(tolua_S,2,0,&tolua_err) || - !tolua_isnumber(tolua_S,3,0,&tolua_err) || - !tolua_isnoobj(tolua_S,4,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); - float s = ((float) tolua_tonumber(tolua_S,2,0)); - float dt = ((float) tolua_tonumber(tolua_S,3,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setZoomScaleInDuration'", NULL); -#endif - { - self->setZoomScaleInDuration(s,dt); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'setZoomScaleInDuration'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: addChild of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_addChild00 -static int tolua_Cocos2d_ScrollView_addChild00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - !tolua_isusertype(tolua_S,2,"CCNode",0,&tolua_err) || - !tolua_isnumber(tolua_S,3,0,&tolua_err) || - !tolua_isnumber(tolua_S,4,0,&tolua_err) || - !tolua_isnoobj(tolua_S,5,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); - Node* child = ((Node*) tolua_tousertype(tolua_S,2,0)); - int zOrder = ((int) tolua_tonumber(tolua_S,3,0)); - int tag = ((int) tolua_tonumber(tolua_S,4,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'addChild'", NULL); -#endif - { - self->addChild(child,zOrder,tag); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'addChild'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: addChild of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_addChild01 -static int tolua_Cocos2d_ScrollView_addChild01(lua_State* tolua_S) -{ - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - !tolua_isusertype(tolua_S,2,"CCNode",0,&tolua_err) || - !tolua_isnumber(tolua_S,3,0,&tolua_err) || - !tolua_isnoobj(tolua_S,4,&tolua_err) - ) - goto tolua_lerror; - else - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); - Node* child = ((Node*) tolua_tousertype(tolua_S,2,0)); - int zOrder = ((int) tolua_tonumber(tolua_S,3,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'addChild'", NULL); -#endif - { - self->addChild(child,zOrder); - } - } - return 0; -tolua_lerror: - return tolua_Cocos2d_ScrollView_addChild00(tolua_S); -} -#endif //#ifndef TOLUA_DISABLE - -/* method: addChild of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_addChild02 -static int tolua_Cocos2d_ScrollView_addChild02(lua_State* tolua_S) -{ - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - !tolua_isusertype(tolua_S,2,"CCNode",0,&tolua_err) || - !tolua_isnoobj(tolua_S,3,&tolua_err) - ) - goto tolua_lerror; - else - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); - Node* child = ((Node*) tolua_tousertype(tolua_S,2,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'addChild'", NULL); -#endif - { - self->addChild(child); - } - } - return 0; -tolua_lerror: - return tolua_Cocos2d_ScrollView_addChild01(tolua_S); -} -#endif //#ifndef TOLUA_DISABLE - -/* method: ccTouchBegan of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_ccTouchBegan00 -static int tolua_Cocos2d_ScrollView_ccTouchBegan00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - !tolua_isusertype(tolua_S,2,"CCTouch",0,&tolua_err) || - !tolua_isusertype(tolua_S,3,"CCEvent",0,&tolua_err) || - !tolua_isnoobj(tolua_S,4,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); - Touch* pTouch = ((Touch*) tolua_tousertype(tolua_S,2,0)); - Event* pEvent = ((Event*) tolua_tousertype(tolua_S,3,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ccTouchBegan'", NULL); -#endif - { - bool tolua_ret = (bool) self->ccTouchBegan(pTouch,pEvent); - tolua_pushboolean(tolua_S,(bool)tolua_ret); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'ccTouchBegan'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: getContainer of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_getContainer00 -static int tolua_Cocos2d_ScrollView_getContainer00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getContainer'", NULL); -#endif - { - Node* tolua_ret = (Node*) self->getContainer(); - int nID = (tolua_ret) ? (int)tolua_ret->_ID : -1; - int* pLuaID = (tolua_ret) ? &tolua_ret->_luaID : NULL; - toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCNode"); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'getContainer'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: ccTouchEnded of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_ccTouchEnded00 -static int tolua_Cocos2d_ScrollView_ccTouchEnded00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - !tolua_isusertype(tolua_S,2,"CCTouch",0,&tolua_err) || - !tolua_isusertype(tolua_S,3,"CCEvent",0,&tolua_err) || - !tolua_isnoobj(tolua_S,4,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); - Touch* pTouch = ((Touch*) tolua_tousertype(tolua_S,2,0)); - Event* pEvent = ((Event*) tolua_tousertype(tolua_S,3,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ccTouchEnded'", NULL); -#endif - { - self->ccTouchEnded(pTouch,pEvent); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'ccTouchEnded'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: getDirection of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_getDirection00 -static int tolua_Cocos2d_ScrollView_getDirection00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getDirection'", NULL); -#endif - { - ScrollView::Direction tolua_ret = (ScrollView::Direction) self->getDirection(); - tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'getDirection'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: getZoomScale of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_getZoomScale00 -static int tolua_Cocos2d_ScrollView_getZoomScale00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getZoomScale'", NULL); -#endif - { - float tolua_ret = (float) self->getZoomScale(); - tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'getZoomScale'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: updateInset of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_updateInset00 -static int tolua_Cocos2d_ScrollView_updateInset00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'updateInset'", NULL); -#endif - { - self->updateInset(); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'updateInset'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: initWithViewSize of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_initWithViewSize00 -static int tolua_Cocos2d_ScrollView_initWithViewSize00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CCSize",0,&tolua_err)) || - !tolua_isusertype(tolua_S,3,"CCNode",1,&tolua_err) || - !tolua_isnoobj(tolua_S,4,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); - Size size = *((Size*) tolua_tousertype(tolua_S,2,0)); - Node* container = ((Node*) tolua_tousertype(tolua_S,3,NULL)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'initWithViewSize'", NULL); -#endif - { - bool tolua_ret = (bool) self->initWithViewSize(size,container); - tolua_pushboolean(tolua_S,(bool)tolua_ret); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'initWithViewSize'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: pause of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_pause00 -static int tolua_Cocos2d_ScrollView_pause00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - !tolua_isusertype(tolua_S,2,"CCObject",0,&tolua_err) || - !tolua_isnoobj(tolua_S,3,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); - Object* sender = ((Object*) tolua_tousertype(tolua_S,2,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'pause'", NULL); -#endif - { - self->pause(sender); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'pause'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: setDirection of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_setDirection00 -static int tolua_Cocos2d_ScrollView_setDirection00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - !tolua_isnumber(tolua_S,2,0,&tolua_err) || - !tolua_isnoobj(tolua_S,3,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); - ScrollView::Direction eDirection = ((ScrollView::Direction) (int) tolua_tonumber(tolua_S,2,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setDirection'", NULL); -#endif - { - self->setDirection(eDirection); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'setDirection'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: setBounceable of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_setBounceable00 -static int tolua_Cocos2d_ScrollView_setBounceable00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - !tolua_isboolean(tolua_S,2,0,&tolua_err) || - !tolua_isnoobj(tolua_S,3,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); - bool bBounceable = ((bool) tolua_toboolean(tolua_S,2,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setBounceable'", NULL); -#endif - { - self->setBounceable(bBounceable); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'setBounceable'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: setContentOffset of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_setContentOffset00 -static int tolua_Cocos2d_ScrollView_setContentOffset00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CCPoint",0,&tolua_err)) || - !tolua_isboolean(tolua_S,3,1,&tolua_err) || - !tolua_isnoobj(tolua_S,4,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); - Point offset = *((Point*) tolua_tousertype(tolua_S,2,0)); - bool animated = ((bool) tolua_toboolean(tolua_S,3,false)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setContentOffset'", NULL); -#endif - { - self->setContentOffset(offset,animated); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'setContentOffset'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: isDragging of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_isDragging00 -static int tolua_Cocos2d_ScrollView_isDragging00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'isDragging'", NULL); -#endif - { - bool tolua_ret = (bool) self->isDragging(); - tolua_pushboolean(tolua_S,(bool)tolua_ret); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'isDragging'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: init of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_init00 -static int tolua_Cocos2d_ScrollView_init00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'init'", NULL); -#endif - { - bool tolua_ret = (bool) self->init(); - tolua_pushboolean(tolua_S,(bool)tolua_ret); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'init'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: isBounceable of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_isBounceable00 -static int tolua_Cocos2d_ScrollView_isBounceable00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'isBounceable'", NULL); -#endif - { - bool tolua_ret = (bool) self->isBounceable(); - tolua_pushboolean(tolua_S,(bool)tolua_ret); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'isBounceable'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: getContentSize of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_getContentSize00 -static int tolua_Cocos2d_ScrollView_getContentSize00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"const ScrollView",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - const LuaScrollView* self = (const LuaScrollView*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getContentSize'", NULL); -#endif - { - const Size& tolua_ret = (const Size&) self->getContentSize(); - tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const CCSize"); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'getContentSize'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: ccTouchMoved of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_ccTouchMoved00 -static int tolua_Cocos2d_ScrollView_ccTouchMoved00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - !tolua_isusertype(tolua_S,2,"CCTouch",0,&tolua_err) || - !tolua_isusertype(tolua_S,3,"CCEvent",0,&tolua_err) || - !tolua_isnoobj(tolua_S,4,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); - Touch* pTouch = ((Touch*) tolua_tousertype(tolua_S,2,0)); - Event* pEvent = ((Event*) tolua_tousertype(tolua_S,3,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ccTouchMoved'", NULL); -#endif - { - self->ccTouchMoved(pTouch,pEvent); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'ccTouchMoved'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: setTouchEnabled of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_setTouchEnabled00 -static int tolua_Cocos2d_ScrollView_setTouchEnabled00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - !tolua_isboolean(tolua_S,2,0,&tolua_err) || - !tolua_isnoobj(tolua_S,3,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); - bool e = ((bool) tolua_toboolean(tolua_S,2,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setTouchEnabled'", NULL); -#endif - { - self->setTouchEnabled(e); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'setTouchEnabled'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: getContentOffset of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_getContentOffset00 -static int tolua_Cocos2d_ScrollView_getContentOffset00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getContentOffset'", NULL); -#endif - { - Point tolua_ret = (Point) self->getContentOffset(); - { -#ifdef __cplusplus - void* tolua_obj = Mtolua_new((Point)(tolua_ret)); - tolua_pushusertype(tolua_S,tolua_obj,"CCPoint"); - tolua_register_gc(tolua_S,lua_gettop(tolua_S)); -#else - void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CCPoint)); - tolua_pushusertype(tolua_S,tolua_obj,"CCPoint"); - tolua_register_gc(tolua_S,lua_gettop(tolua_S)); -#endif - } - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'getContentOffset'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: resume of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_resume00 -static int tolua_Cocos2d_ScrollView_resume00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - !tolua_isusertype(tolua_S,2,"CCObject",0,&tolua_err) || - !tolua_isnoobj(tolua_S,3,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); - Object* sender = ((Object*) tolua_tousertype(tolua_S,2,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'resume'", NULL); -#endif - { - self->resume(sender); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'resume'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: setClippingToBounds of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_setClippingToBounds00 -static int tolua_Cocos2d_ScrollView_setClippingToBounds00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - !tolua_isboolean(tolua_S,2,0,&tolua_err) || - !tolua_isnoobj(tolua_S,3,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); - bool bClippingToBounds = ((bool) tolua_toboolean(tolua_S,2,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setClippingToBounds'", NULL); -#endif - { - self->setClippingToBounds(bClippingToBounds); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'setClippingToBounds'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: setViewSize of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_setViewSize00 -static int tolua_Cocos2d_ScrollView_setViewSize00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"CCSize",0,&tolua_err)) || - !tolua_isnoobj(tolua_S,3,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); - Size size = *((Size*) tolua_tousertype(tolua_S,2,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setViewSize'", NULL); -#endif - { - self->setViewSize(size); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'setViewSize'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: getViewSize of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_getViewSize00 -static int tolua_Cocos2d_ScrollView_getViewSize00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getViewSize'", NULL); -#endif - { - Size tolua_ret = (Size) self->getViewSize(); - { -#ifdef __cplusplus - void* tolua_obj = Mtolua_new((Size)(tolua_ret)); - tolua_pushusertype(tolua_S,tolua_obj,"CCSize"); - tolua_register_gc(tolua_S,lua_gettop(tolua_S)); -#else - void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CCSize)); - tolua_pushusertype(tolua_S,tolua_obj,"CCSize"); - tolua_register_gc(tolua_S,lua_gettop(tolua_S)); -#endif - } - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'getViewSize'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: maxContainerOffset of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_maxContainerOffset00 -static int tolua_Cocos2d_ScrollView_maxContainerOffset00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'maxContainerOffset'", NULL); -#endif - { - Point tolua_ret = (Point) self->maxContainerOffset(); - { -#ifdef __cplusplus - void* tolua_obj = Mtolua_new((Point)(tolua_ret)); - tolua_pushusertype(tolua_S,tolua_obj,"CCPoint"); - tolua_register_gc(tolua_S,lua_gettop(tolua_S)); -#else - void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CCPoint)); - tolua_pushusertype(tolua_S,tolua_obj,"CCPoint"); - tolua_register_gc(tolua_S,lua_gettop(tolua_S)); -#endif - } - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'maxContainerOffset'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: setContentSize of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_setContentSize00 -static int tolua_Cocos2d_ScrollView_setContentSize00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const CCSize",0,&tolua_err)) || - !tolua_isnoobj(tolua_S,3,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); - const Size* size = ((const Size*) tolua_tousertype(tolua_S,2,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setContentSize'", NULL); -#endif - { - self->setContentSize(*size); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'setContentSize'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: isTouchMoved of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_isTouchMoved00 -static int tolua_Cocos2d_ScrollView_isTouchMoved00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'isTouchMoved'", NULL); -#endif - { - bool tolua_ret = (bool) self->isTouchMoved(); - tolua_pushboolean(tolua_S,(bool)tolua_ret); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'isTouchMoved'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: isNodeVisible of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_isNodeVisible00 -static int tolua_Cocos2d_ScrollView_isNodeVisible00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - !tolua_isusertype(tolua_S,2,"CCNode",0,&tolua_err) || - !tolua_isnoobj(tolua_S,3,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); - Node* node = ((Node*) tolua_tousertype(tolua_S,2,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'isNodeVisible'", NULL); -#endif - { - bool tolua_ret = (bool) self->isNodeVisible(node); - tolua_pushboolean(tolua_S,(bool)tolua_ret); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'isNodeVisible'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: ccTouchCancelled of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_ccTouchCancelled00 -static int tolua_Cocos2d_ScrollView_ccTouchCancelled00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - !tolua_isusertype(tolua_S,2,"CCTouch",0,&tolua_err) || - !tolua_isusertype(tolua_S,3,"CCEvent",0,&tolua_err) || - !tolua_isnoobj(tolua_S,4,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); - Touch* pTouch = ((Touch*) tolua_tousertype(tolua_S,2,0)); - Event* pEvent = ((Event*) tolua_tousertype(tolua_S,3,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'ccTouchCancelled'", NULL); -#endif - { - self->ccTouchCancelled(pTouch,pEvent); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'ccTouchCancelled'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: minContainerOffset of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_minContainerOffset00 -static int tolua_Cocos2d_ScrollView_minContainerOffset00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'minContainerOffset'", NULL); -#endif - { - Point tolua_ret = (Point) self->minContainerOffset(); - { -#ifdef __cplusplus - void* tolua_obj = Mtolua_new((Point)(tolua_ret)); - tolua_pushusertype(tolua_S,tolua_obj,"CCPoint"); - tolua_register_gc(tolua_S,lua_gettop(tolua_S)); -#else - void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(CCPoint)); - tolua_pushusertype(tolua_S,tolua_obj,"CCPoint"); - tolua_register_gc(tolua_S,lua_gettop(tolua_S)); -#endif - } - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'minContainerOffset'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: registerWithTouchDispatcher of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_registerWithTouchDispatcher00 -static int tolua_Cocos2d_ScrollView_registerWithTouchDispatcher00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'registerWithTouchDispatcher'", NULL); -#endif - { - self->registerWithTouchDispatcher(); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'registerWithTouchDispatcher'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: setZoomScale of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_setZoomScale00 -static int tolua_Cocos2d_ScrollView_setZoomScale00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - !tolua_isnumber(tolua_S,2,0,&tolua_err) || - !tolua_isnoobj(tolua_S,3,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); - float s = ((float) tolua_tonumber(tolua_S,2,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setZoomScale'", NULL); -#endif - { - self->setZoomScale(s); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'setZoomScale'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: setZoomScale of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_setZoomScale01 -static int tolua_Cocos2d_ScrollView_setZoomScale01(lua_State* tolua_S) -{ - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - !tolua_isnumber(tolua_S,2,0,&tolua_err) || - !tolua_isboolean(tolua_S,3,0,&tolua_err) || - !tolua_isnoobj(tolua_S,4,&tolua_err) - ) - goto tolua_lerror; - else - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); - float s = ((float) tolua_tonumber(tolua_S,2,0)); - bool animated = ((bool) tolua_toboolean(tolua_S,3,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setZoomScale'", NULL); -#endif - { - self->setZoomScale(s,animated); - } - } - return 0; -tolua_lerror: - return tolua_Cocos2d_ScrollView_setZoomScale00(tolua_S); -} -#endif //#ifndef TOLUA_DISABLE - -/* method: setDelegate of class ScrollView */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_ScrollView_setDelegate00 -static int tolua_Cocos2d_ScrollView_setDelegate00(lua_State* tolua_S) -{ - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCScrollView",0,&tolua_err) || - !tolua_isnoobj(tolua_S,4,&tolua_err) - ) - goto tolua_lerror; - else - { - LuaScrollView* self = (LuaScrollView*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setDelegate'", NULL); -#endif - { - self->setDelegate(self); - } - - } - return 0; -tolua_lerror: - return 0; -} -#endif //#ifndef TOLUA_DISABLE - - -TOLUA_API int tolua_scroll_view_open(lua_State* tolua_S) -{ - tolua_open(tolua_S); - tolua_reg_scrollview_type(tolua_S); - tolua_module(tolua_S,NULL,0); - tolua_beginmodule(tolua_S,NULL); - tolua_constant(tolua_S,"kScrollViewDirectionNone",(int)ScrollView::Direction::NONE); - tolua_constant(tolua_S,"kScrollViewDirectionHorizontal",(int)ScrollView::Direction::HORIZONTAL); - tolua_constant(tolua_S,"kScrollViewDirectionVertical",(int)ScrollView::Direction::VERTICAL); - tolua_constant(tolua_S,"kScrollViewDirectionBoth",(int)ScrollView::Direction::BOTH); - tolua_constant(tolua_S,"kScrollViewScriptScroll",LuaScrollView::kScrollViewScriptScroll); - tolua_constant(tolua_S,"kScrollViewScriptZoom",LuaScrollView::kScrollViewScriptZoom); - #ifdef __cplusplus - tolua_cclass(tolua_S,"CCScrollView","CCScrollView","CCLayer",tolua_collect_ScrollView); - #else - tolua_cclass(tolua_S,"CCScrollView","CCScrollView","CCLayer",NULL); - #endif - tolua_beginmodule(tolua_S,"CCScrollView"); - tolua_function(tolua_S,"new",tolua_Cocos2d_ScrollView_new00); - tolua_function(tolua_S,"new_local",tolua_Cocos2d_ScrollView_new00_local); - tolua_function(tolua_S,".call",tolua_Cocos2d_ScrollView_new00_local); - tolua_function(tolua_S,"delete",tolua_Cocos2d_ScrollView_delete00); - tolua_function(tolua_S,"create",tolua_Cocos2d_ScrollView_create00); - tolua_function(tolua_S,"create",tolua_Cocos2d_ScrollView_create01); - tolua_function(tolua_S,"isClippingToBounds",tolua_Cocos2d_ScrollView_isClippingToBounds00); - tolua_function(tolua_S,"setContainer",tolua_Cocos2d_ScrollView_setContainer00); - tolua_function(tolua_S,"setContentOffsetInDuration",tolua_Cocos2d_ScrollView_setContentOffsetInDuration00); - tolua_function(tolua_S,"setZoomScaleInDuration",tolua_Cocos2d_ScrollView_setZoomScaleInDuration00); - tolua_function(tolua_S,"addChild",tolua_Cocos2d_ScrollView_addChild00); - tolua_function(tolua_S,"addChild",tolua_Cocos2d_ScrollView_addChild01); - tolua_function(tolua_S,"addChild",tolua_Cocos2d_ScrollView_addChild02); - tolua_function(tolua_S,"ccTouchBegan",tolua_Cocos2d_ScrollView_ccTouchBegan00); - tolua_function(tolua_S,"getContainer",tolua_Cocos2d_ScrollView_getContainer00); - tolua_function(tolua_S,"ccTouchEnded",tolua_Cocos2d_ScrollView_ccTouchEnded00); - tolua_function(tolua_S,"getDirection",tolua_Cocos2d_ScrollView_getDirection00); - tolua_function(tolua_S,"getZoomScale",tolua_Cocos2d_ScrollView_getZoomScale00); - tolua_function(tolua_S,"updateInset",tolua_Cocos2d_ScrollView_updateInset00); - tolua_function(tolua_S,"initWithViewSize",tolua_Cocos2d_ScrollView_initWithViewSize00); - tolua_function(tolua_S,"pause",tolua_Cocos2d_ScrollView_pause00); - tolua_function(tolua_S,"setDirection",tolua_Cocos2d_ScrollView_setDirection00); - tolua_function(tolua_S,"setBounceable",tolua_Cocos2d_ScrollView_setBounceable00); - tolua_function(tolua_S,"setContentOffset",tolua_Cocos2d_ScrollView_setContentOffset00); - tolua_function(tolua_S,"isDragging",tolua_Cocos2d_ScrollView_isDragging00); - tolua_function(tolua_S,"init",tolua_Cocos2d_ScrollView_init00); - tolua_function(tolua_S,"isBounceable",tolua_Cocos2d_ScrollView_isBounceable00); - tolua_function(tolua_S,"getContentSize",tolua_Cocos2d_ScrollView_getContentSize00); - tolua_function(tolua_S,"ccTouchMoved",tolua_Cocos2d_ScrollView_ccTouchMoved00); - tolua_function(tolua_S,"setTouchEnabled",tolua_Cocos2d_ScrollView_setTouchEnabled00); - tolua_function(tolua_S,"getContentOffset",tolua_Cocos2d_ScrollView_getContentOffset00); - tolua_function(tolua_S,"resume",tolua_Cocos2d_ScrollView_resume00); - tolua_function(tolua_S,"setClippingToBounds",tolua_Cocos2d_ScrollView_setClippingToBounds00); - tolua_function(tolua_S,"setViewSize",tolua_Cocos2d_ScrollView_setViewSize00); - tolua_function(tolua_S,"getViewSize",tolua_Cocos2d_ScrollView_getViewSize00); - tolua_function(tolua_S,"maxContainerOffset",tolua_Cocos2d_ScrollView_maxContainerOffset00); - tolua_function(tolua_S,"setContentSize",tolua_Cocos2d_ScrollView_setContentSize00); - tolua_function(tolua_S,"isTouchMoved",tolua_Cocos2d_ScrollView_isTouchMoved00); - tolua_function(tolua_S,"isNodeVisible",tolua_Cocos2d_ScrollView_isNodeVisible00); - tolua_function(tolua_S,"ccTouchCancelled",tolua_Cocos2d_ScrollView_ccTouchCancelled00); - tolua_function(tolua_S,"minContainerOffset",tolua_Cocos2d_ScrollView_minContainerOffset00); - tolua_function(tolua_S,"registerWithTouchDispatcher",tolua_Cocos2d_ScrollView_registerWithTouchDispatcher00); - tolua_function(tolua_S,"setZoomScale",tolua_Cocos2d_ScrollView_setZoomScale00); - tolua_function(tolua_S,"setZoomScale",tolua_Cocos2d_ScrollView_setZoomScale01); - tolua_function(tolua_S, "setDelegate", tolua_Cocos2d_ScrollView_setDelegate00); - tolua_endmodule(tolua_S); - tolua_endmodule(tolua_S); - return 1; -} - - diff --git a/scripting/lua/cocos2dx_support/LuaScrollView.h b/scripting/lua/cocos2dx_support/LuaScrollView.h deleted file mode 100644 index e1de54c746..0000000000 --- a/scripting/lua/cocos2dx_support/LuaScrollView.h +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef __LUA_SCROLLVIEW_H__ -#define __LUA_SCROLLVIEW_H__ - -#ifdef __cplusplus -extern "C" { -#endif -#include "tolua++.h" -#ifdef __cplusplus -} -#endif -#include "GUI/CCScrollView/CCScrollView.h" - -class LuaScrollView:public cocos2d::extension::ScrollView,public cocos2d::extension::ScrollViewDelegate -{ -public: - virtual ~LuaScrollView(); - virtual void scrollViewDidScroll(ScrollView* view); - virtual void scrollViewDidZoom(ScrollView* view); - enum ScrollViewScriptHandlerType - { - kScrollViewScriptScroll = 0, - kScrollViewScriptZoom, - }; - -}; - -TOLUA_API int tolua_scroll_view_open(lua_State* tolua_S); - -#endif //__LUA_SCROLLVIEW_H__ diff --git a/scripting/lua/cocos2dx_support/Lua_extensions_CCB.cpp b/scripting/lua/cocos2dx_support/Lua_extensions_CCB.cpp deleted file mode 100644 index 80fe5ee02e..0000000000 --- a/scripting/lua/cocos2dx_support/Lua_extensions_CCB.cpp +++ /dev/null @@ -1,2143 +0,0 @@ -#ifdef __cplusplus -extern "C" { -#endif - #include "tolua_fix.h" -#ifdef __cplusplus -} -#endif - -#include -#include -#include "Lua_extensions_CCB.h" -#include "cocos2d.h" -#include "cocos-ext.h" -#include "CCBProxy.h" - -using namespace cocos2d; -using namespace cocos2d::extension; - -#ifdef __cplusplus -static int tolua_collect_CCBAnimationManager (lua_State* tolua_S) -{ - CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0); - Mtolua_delete(self); - return 0; -} - -static int tolua_collect_CCBReader (lua_State* tolua_S) -{ - CCBReader* self = (CCBReader*) tolua_tousertype(tolua_S,1,0); - Mtolua_delete(self); - return 0; -} - -static int tolua_collect_CCBProxy (lua_State* tolua_S) -{ - CCBProxy *self = (CCBProxy*) tolua_tousertype(tolua_S,1,0); - Mtolua_delete(self); - return 0; -} -#endif -/* function to release collected object via destructor */ -static void tolua_reg_extensions_ccb_type(lua_State* tolua_S) -{ - tolua_usertype(tolua_S, "CCBAnimationManager"); - tolua_usertype(tolua_S, "CCBReader"); - tolua_usertype(tolua_S, "CCBProxy"); -} - -/* method: delete of class CCBReader */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBReader_delete00 -static int tolua_Cocos2d_CCBReader_delete00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBReader",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBReader* self = (CCBReader*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL); -#endif - Mtolua_delete(self); - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: new of class CCBReader */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBReader_new00 -static int tolua_Cocos2d_CCBReader_new00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertable(tolua_S,1,"CCBReader",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - { - CCBReader* tolua_ret = (CCBReader*) Mtolua_new((CCBReader)()); - int nID = (tolua_ret) ? (int)tolua_ret->_ID : -1; - int* pLuaID = (tolua_ret) ? &tolua_ret->_luaID : NULL; - toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCBReader"); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: new_local of class CCBReader */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBReader_new00_local -static int tolua_Cocos2d_CCBReader_new00_local(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertable(tolua_S,1,"CCBReader",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - { - CCBReader* tolua_ret = (CCBReader*) Mtolua_new((CCBReader)()); - int nID = (tolua_ret) ? (int)tolua_ret->_ID : -1; - int* pLuaID = (tolua_ret) ? &tolua_ret->_luaID : NULL; - toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCBReader"); - tolua_register_gc(tolua_S,lua_gettop(tolua_S)); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: getOwnerCallbackNames of class CCBReader */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBReader_getOwnerCallbackNames00 -static int tolua_Cocos2d_CCBReader_getOwnerCallbackNames00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBReader",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBReader* self = (CCBReader*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getOwnerCallbackNames'", NULL); -#endif - { - Array* tolua_ret = (Array*) self->getOwnerCallbackNames(); - int nID = (tolua_ret) ? (int)tolua_ret->_ID : -1; - int* pLuaID = (tolua_ret) ? &tolua_ret->_luaID : NULL; - toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCArray"); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'getOwnerCallbackNames'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: setCCBRootPath of class CCBReader */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBReader_setCCBRootPath00 -static int tolua_Cocos2d_CCBReader_setCCBRootPath00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBReader",0,&tolua_err) || - !tolua_isstring(tolua_S,2,0,&tolua_err) || - !tolua_isnoobj(tolua_S,3,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBReader* self = (CCBReader*) tolua_tousertype(tolua_S,1,0); - const char* pCCBRootPath = ((const char*) tolua_tostring(tolua_S,2,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setCCBRootPath'", NULL); -#endif - { - self->setCCBRootPath(pCCBRootPath); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'setCCBRootPath'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: getOwnerCallbackNodes of class CCBReader */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBReader_getOwnerCallbackNodes00 -static int tolua_Cocos2d_CCBReader_getOwnerCallbackNodes00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBReader",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBReader* self = (CCBReader*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getOwnerCallbackNodes'", NULL); -#endif - { - Array* tolua_ret = (Array*) self->getOwnerCallbackNodes(); - int nID = (tolua_ret) ? (int)tolua_ret->_ID : -1; - int* pLuaID = (tolua_ret) ? &tolua_ret->_luaID : NULL; - toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCArray"); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'getOwnerCallbackNodes'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: getCCBRootPath of class CCBReader */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBReader_getCCBRootPath00 -static int tolua_Cocos2d_CCBReader_getCCBRootPath00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"const CCBReader",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - const CCBReader* self = (const CCBReader*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getCCBRootPath'", NULL); -#endif - { - const std::string tolua_ret = (const std::string) self->getCCBRootPath(); - tolua_pushcppstring(tolua_S,(const char*)tolua_ret); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'getCCBRootPath'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: getOwnerOutletNodes of class CCBReader */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBReader_getOwnerOutletNodes00 -static int tolua_Cocos2d_CCBReader_getOwnerOutletNodes00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBReader",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBReader* self = (CCBReader*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getOwnerOutletNodes'", NULL); -#endif - { - Array* tolua_ret = (Array*) self->getOwnerOutletNodes(); - int nID = (tolua_ret) ? (int)tolua_ret->_ID : -1; - int* pLuaID = (tolua_ret) ? &tolua_ret->_luaID : NULL; - toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCArray"); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'getOwnerOutletNodes'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: readUTF8 of class CCBReader */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBReader_readUTF800 -static int tolua_Cocos2d_CCBReader_readUTF800(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBReader",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBReader* self = (CCBReader*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'readUTF8'", NULL); -#endif - { - std::string tolua_ret = (std::string) self->readUTF8(); - tolua_pushcppstring(tolua_S,(const char*)tolua_ret); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'readUTF8'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: getOwnerOutletNames of class CCBReader */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBReader_getOwnerOutletNames00 -static int tolua_Cocos2d_CCBReader_getOwnerOutletNames00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBReader",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBReader* self = (CCBReader*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getOwnerOutletNames'", NULL); -#endif - { - Array* tolua_ret = (Array*) self->getOwnerOutletNames(); - int nID = (tolua_ret) ? (int)tolua_ret->_ID : -1; - int* pLuaID = (tolua_ret) ? &tolua_ret->_luaID : NULL; - toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCArray"); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'getOwnerOutletNames'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: setAnimationManagers of class CCBReader */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBReader_setAnimationManagers00 -static int tolua_Cocos2d_CCBReader_setAnimationManagers00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBReader",0,&tolua_err) || - !tolua_isusertype(tolua_S,2,"CCDictionary",0,&tolua_err) || - !tolua_isnoobj(tolua_S,3,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBReader* self = (CCBReader*) tolua_tousertype(tolua_S,1,0); - Dictionary* x = ((Dictionary*) tolua_tousertype(tolua_S,2,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setAnimationManagers'", NULL); -#endif - { - self->setAnimationManagers(x); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'setAnimationManagers'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: getAnimationManagersForNodes of class CCBReader */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBReader_getAnimationManagersForNodes00 -static int tolua_Cocos2d_CCBReader_getAnimationManagersForNodes00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBReader",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBReader* self = (CCBReader*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getAnimationManagersForNodes'", NULL); -#endif - { - Array* tolua_ret = (Array*) self->getAnimationManagersForNodes(); - int nID = (tolua_ret) ? (int)tolua_ret->_ID : -1; - int* pLuaID = (tolua_ret) ? &tolua_ret->_luaID : NULL; - toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCArray"); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'getAnimationManagersForNodes'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: getNodesWithAnimationManagers of class CCBReader */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBReader_getNodesWithAnimationManagers00 -static int tolua_Cocos2d_CCBReader_getNodesWithAnimationManagers00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBReader",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBReader* self = (CCBReader*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getNodesWithAnimationManagers'", NULL); -#endif - { - Array* tolua_ret = (Array*) self->getNodesWithAnimationManagers(); - int nID = (tolua_ret) ? (int)tolua_ret->_ID : -1; - int* pLuaID = (tolua_ret) ? &tolua_ret->_luaID : NULL; - toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCArray"); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'getNodesWithAnimationManagers'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: getAnimationManager of class CCBReader */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBReader_getAnimationManager00 -static int tolua_Cocos2d_CCBReader_getAnimationManager00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBReader",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBReader* self = (CCBReader*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getAnimationManager'", NULL); -#endif - { - CCBAnimationManager* tolua_ret = (CCBAnimationManager*) self->getAnimationManager(); - int nID = (tolua_ret) ? (int)tolua_ret->_ID : -1; - int* pLuaID = (tolua_ret) ? &tolua_ret->_luaID : NULL; - toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCBAnimationManager"); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'getAnimationManager'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: setResolutionScale of class CCBReader */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBReader_setResolutionScale00 -static int tolua_Cocos2d_CCBReader_setResolutionScale00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertable(tolua_S,1,"CCBReader",0,&tolua_err) || - !tolua_isnumber(tolua_S,2,0,&tolua_err) || - !tolua_isnoobj(tolua_S,3,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - float scale = ((float) tolua_tonumber(tolua_S,2,0)); - { - CCBReader::setResolutionScale(scale); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'setResolutionScale'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: new of class CCBReader */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBReader_new01 -static int tolua_Cocos2d_CCBReader_new01(lua_State* tolua_S) -{ - tolua_Error tolua_err; - if ( - !tolua_isusertable(tolua_S,1,"CCBReader",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else - { - { - CCBReader* tolua_ret = (CCBReader*) Mtolua_new((CCBReader)()); - int nID = (tolua_ret) ? (int)tolua_ret->_ID : -1; - int* pLuaID = (tolua_ret) ? &tolua_ret->_luaID : NULL; - toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCBReader"); - } - } - return 1; -tolua_lerror: - return tolua_Cocos2d_CCBReader_new00(tolua_S); -} -#endif //#ifndef TOLUA_DISABLE - -/* method: new_local of class CCBReader */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBReader_new01_local -static int tolua_Cocos2d_CCBReader_new01_local(lua_State* tolua_S) -{ - tolua_Error tolua_err; - if ( - !tolua_isusertable(tolua_S,1,"CCBReader",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else - { - { - CCBReader* tolua_ret = (CCBReader*) Mtolua_new((CCBReader)()); - int nID = (tolua_ret) ? (int)tolua_ret->_ID : -1; - int* pLuaID = (tolua_ret) ? &tolua_ret->_luaID : NULL; - toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCBReader"); - tolua_register_gc(tolua_S,lua_gettop(tolua_S)); - } - } - return 1; -tolua_lerror: - return tolua_Cocos2d_CCBReader_new00_local(tolua_S); -} -#endif //#ifndef TOLUA_DISABLE - -/* method: getOwner of class CCBReader */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBReader_getAnimationManager00 -static int tolua_Cocos2d_ccbreader_getOwner00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBReader",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBReader* self = (CCBReader*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getOwner'", NULL); -#endif - { - Object* tolua_ret = (Object*)self->getOwner(); - int nID = (tolua_ret) ? (int)tolua_ret->_ID : -1; - int* pLuaID = (tolua_ret) ? &tolua_ret->_luaID : NULL; - toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCObject"); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'getOwner'.",&tolua_err); - return 0; -#endif -} -#endif//#ifndef TOLUA_DISABLE - -/* method: new of class CCBAnimationManager */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_new00 -static int tolua_Cocos2d_CCBAnimationManager_new00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertable(tolua_S,1,"CCBAnimationManager",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - { - CCBAnimationManager* tolua_ret = (CCBAnimationManager*) Mtolua_new((CCBAnimationManager)()); - int nID = (tolua_ret) ? (int)tolua_ret->_ID : -1; - int* pLuaID = (tolua_ret) ? &tolua_ret->_luaID : NULL; - toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCBAnimationManager"); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: new_local of class CCBAnimationManager */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_new00_local -static int tolua_Cocos2d_CCBAnimationManager_new00_local(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertable(tolua_S,1,"CCBAnimationManager",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - { - CCBAnimationManager* tolua_ret = (CCBAnimationManager*) Mtolua_new((CCBAnimationManager)()); - int nID = (tolua_ret) ? (int)tolua_ret->_ID : -1; - int* pLuaID = (tolua_ret) ? &tolua_ret->_luaID : NULL; - toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCBAnimationManager"); - tolua_register_gc(tolua_S,lua_gettop(tolua_S)); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: delete of class CCBAnimationManager */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_delete00 -static int tolua_Cocos2d_CCBAnimationManager_delete00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL); -#endif - Mtolua_delete(self); - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: moveAnimationsFromNode of class CCBAnimationManager */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_moveAnimationsFromNode00 -static int tolua_Cocos2d_CCBAnimationManager_moveAnimationsFromNode00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) || - !tolua_isusertype(tolua_S,2,"CCNode",0,&tolua_err) || - !tolua_isusertype(tolua_S,3,"CCNode",0,&tolua_err) || - !tolua_isnoobj(tolua_S,4,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0); - Node* fromNode = ((Node*) tolua_tousertype(tolua_S,2,0)); - Node* toNode = ((Node*) tolua_tousertype(tolua_S,3,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'moveAnimationsFromNode'", NULL); -#endif - { - self->moveAnimationsFromNode(fromNode,toNode); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'moveAnimationsFromNode'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: setAutoPlaySequenceId of class CCBAnimationManager */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_setAutoPlaySequenceId00 -static int tolua_Cocos2d_CCBAnimationManager_setAutoPlaySequenceId00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) || - !tolua_isnumber(tolua_S,2,0,&tolua_err) || - !tolua_isnoobj(tolua_S,3,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0); - int autoPlaySequenceId = ((int) tolua_tonumber(tolua_S,2,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setAutoPlaySequenceId'", NULL); -#endif - { - self->setAutoPlaySequenceId(autoPlaySequenceId); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'setAutoPlaySequenceId'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: getDocumentCallbackNames of class CCBAnimationManager */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_getDocumentCallbackNames00 -static int tolua_Cocos2d_CCBAnimationManager_getDocumentCallbackNames00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getDocumentCallbackNames'", NULL); -#endif - { - Array* tolua_ret = (Array*) self->getDocumentCallbackNames(); - int nID = (tolua_ret) ? (int)tolua_ret->_ID : -1; - int* pLuaID = (tolua_ret) ? &tolua_ret->_luaID : NULL; - toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCArray"); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'getDocumentCallbackNames'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: setBaseValue of class CCBAnimationManager */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_setBaseValue00 -static int tolua_Cocos2d_CCBAnimationManager_setBaseValue00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) || - !tolua_isusertype(tolua_S,2,"CCObject",0,&tolua_err) || - !tolua_isusertype(tolua_S,3,"CCNode",0,&tolua_err) || - !tolua_isstring(tolua_S,4,0,&tolua_err) || - !tolua_isnoobj(tolua_S,5,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0); - Object* pValue = ((Object*) tolua_tousertype(tolua_S,2,0)); - Node* pNode = ((Node*) tolua_tousertype(tolua_S,3,0)); - const char* pPropName = ((const char*) tolua_tostring(tolua_S,4,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setBaseValue'", NULL); -#endif - { - self->setBaseValue(pValue,pNode,pPropName); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'setBaseValue'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: getDocumentOutletNodes of class CCBAnimationManager */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_getDocumentOutletNodes00 -static int tolua_Cocos2d_CCBAnimationManager_getDocumentOutletNodes00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getDocumentOutletNodes'", NULL); -#endif - { - Array* tolua_ret = (Array*) self->getDocumentOutletNodes(); - int nID = (tolua_ret) ? (int)tolua_ret->_ID : -1; - int* pLuaID = (tolua_ret) ? &tolua_ret->_luaID : NULL; - toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCArray"); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'getDocumentOutletNodes'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: addNode of class CCBAnimationManager */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_addNode00 -static int tolua_Cocos2d_CCBAnimationManager_addNode00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) || - !tolua_isusertype(tolua_S,2,"CCNode",0,&tolua_err) || - !tolua_isusertype(tolua_S,3,"CCDictionary",0,&tolua_err) || - !tolua_isnoobj(tolua_S,4,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0); - Node* pNode = ((Node*) tolua_tousertype(tolua_S,2,0)); - Dictionary* pSeq = ((Dictionary*) tolua_tousertype(tolua_S,3,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'addNode'", NULL); -#endif - { - self->addNode(pNode,pSeq); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'addNode'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: getLastCompletedSequenceName of class CCBAnimationManager */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_getLastCompletedSequenceName00 -static int tolua_Cocos2d_CCBAnimationManager_getLastCompletedSequenceName00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getLastCompletedSequenceName'", NULL); -#endif - { - std::string tolua_ret = (std::string) self->getLastCompletedSequenceName(); - tolua_pushcppstring(tolua_S,(const char*)tolua_ret); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'getLastCompletedSequenceName'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: setRootNode of class CCBAnimationManager */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_setRootNode00 -static int tolua_Cocos2d_CCBAnimationManager_setRootNode00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) || - !tolua_isusertype(tolua_S,2,"CCNode",0,&tolua_err) || - !tolua_isnoobj(tolua_S,3,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0); - Node* pRootNode = ((Node*) tolua_tousertype(tolua_S,2,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setRootNode'", NULL); -#endif - { - self->setRootNode(pRootNode); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'setRootNode'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: addDocumentOutletName of class CCBAnimationManager */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_addDocumentOutletName00 -static int tolua_Cocos2d_CCBAnimationManager_addDocumentOutletName00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) || - !tolua_iscppstring(tolua_S,2,0,&tolua_err) || - !tolua_isnoobj(tolua_S,3,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0); - std::string name = ((std::string) tolua_tocppstring(tolua_S,2,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'addDocumentOutletName'", NULL); -#endif - { - self->addDocumentOutletName(name); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'addDocumentOutletName'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: getSequences of class CCBAnimationManager */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_getSequences00 -static int tolua_Cocos2d_CCBAnimationManager_getSequences00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getSequences'", NULL); -#endif - { - Array* tolua_ret = (Array*) self->getSequences(); - int nID = (tolua_ret) ? (int)tolua_ret->_ID : -1; - int* pLuaID = (tolua_ret) ? &tolua_ret->_luaID : NULL; - toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCArray"); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'getSequences'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: getRootContainerSize of class CCBAnimationManager */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_getRootContainerSize00 -static int tolua_Cocos2d_CCBAnimationManager_getRootContainerSize00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getRootContainerSize'", NULL); -#endif - { - const Size& tolua_ret = (const Size&) self->getRootContainerSize(); - tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Size"); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'getRootContainerSize'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: setDocumentControllerName of class CCBAnimationManager */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_setDocumentControllerName00 -static int tolua_Cocos2d_CCBAnimationManager_setDocumentControllerName00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) || - !tolua_iscppstring(tolua_S,2,0,&tolua_err) || - !tolua_isnoobj(tolua_S,3,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0); - const std::string name = ((const std::string) tolua_tocppstring(tolua_S,2,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setDocumentControllerName'", NULL); -#endif - { - self->setDocumentControllerName(name); - tolua_pushcppstring(tolua_S,(const char*)name); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'setDocumentControllerName'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: getContainerSize of class CCBAnimationManager */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_getContainerSize00 -static int tolua_Cocos2d_CCBAnimationManager_getContainerSize00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) || - !tolua_isusertype(tolua_S,2,"CCNode",0,&tolua_err) || - !tolua_isnoobj(tolua_S,3,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0); - Node* pNode = ((Node*) tolua_tousertype(tolua_S,2,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getContainerSize'", NULL); -#endif - { - const Size& tolua_ret = (const Size&) self->getContainerSize(pNode); - tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const Size"); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'getContainerSize'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: getDocumentOutletNames of class CCBAnimationManager */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_getDocumentOutletNames00 -static int tolua_Cocos2d_CCBAnimationManager_getDocumentOutletNames00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getDocumentOutletNames'", NULL); -#endif - { - Array* tolua_ret = (Array*) self->getDocumentOutletNames(); - int nID = (tolua_ret) ? (int)tolua_ret->_ID : -1; - int* pLuaID = (tolua_ret) ? &tolua_ret->_luaID : NULL; - toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCArray"); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'getDocumentOutletNames'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: init of class CCBAnimationManager */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_init00 -static int tolua_Cocos2d_CCBAnimationManager_init00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'init'", NULL); -#endif - { - bool tolua_ret = (bool) self->init(); - tolua_pushboolean(tolua_S,(bool)tolua_ret); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'init'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: getKeyframeCallbacks of class CCBAnimationManager */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_getKeyframeCallbacks00 -static int tolua_Cocos2d_CCBAnimationManager_getKeyframeCallbacks00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getKeyframeCallbacks'", NULL); -#endif - { - Array* tolua_ret = (Array*) self->getKeyframeCallbacks(); - int nID = (tolua_ret) ? (int)tolua_ret->_ID : -1; - int* pLuaID = (tolua_ret) ? &tolua_ret->_luaID : NULL; - toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCArray"); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'getKeyframeCallbacks'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: runAnimationsForSequenceNamedTweenDuration of class CCBAnimationManager */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_runAnimationsForSequenceNamedTweenDuration00 -static int tolua_Cocos2d_CCBAnimationManager_runAnimationsForSequenceNamedTweenDuration00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) || - !tolua_isstring(tolua_S,2,0,&tolua_err) || - !tolua_isnumber(tolua_S,3,0,&tolua_err) || - !tolua_isnoobj(tolua_S,4,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0); - const char* pName = ((const char*) tolua_tostring(tolua_S,2,0)); - float fTweenDuration = ((float) tolua_tonumber(tolua_S,3,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'runAnimationsForSequenceNamedTweenDuration'", NULL); -#endif - { - self->runAnimationsForSequenceNamedTweenDuration(pName,fTweenDuration); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'runAnimationsForSequenceNamedTweenDuration'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: setRootContainerSize of class CCBAnimationManager */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_setRootContainerSize00 -static int tolua_Cocos2d_CCBAnimationManager_setRootContainerSize00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) || - (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const Size",0,&tolua_err)) || - !tolua_isnoobj(tolua_S,3,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0); - const Size* rootContainerSize = ((const Size*) tolua_tousertype(tolua_S,2,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setRootContainerSize'", NULL); -#endif - { - self->setRootContainerSize(*rootContainerSize); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'setRootContainerSize'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: runAnimationsForSequenceIdTweenDuration of class CCBAnimationManager */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_runAnimationsForSequenceIdTweenDuration00 -static int tolua_Cocos2d_CCBAnimationManager_runAnimationsForSequenceIdTweenDuration00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) || - !tolua_isnumber(tolua_S,2,0,&tolua_err) || - !tolua_isnumber(tolua_S,3,0,&tolua_err) || - !tolua_isnoobj(tolua_S,4,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0); - int nSeqId = ((int) tolua_tonumber(tolua_S,2,0)); - float fTweenDuraiton = ((float) tolua_tonumber(tolua_S,3,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'runAnimationsForSequenceIdTweenDuration'", NULL); -#endif - { - self->runAnimationsForSequenceIdTweenDuration(nSeqId,fTweenDuraiton); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'runAnimationsForSequenceIdTweenDuration'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: getRunningSequenceName of class CCBAnimationManager */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_getRunningSequenceName00 -static int tolua_Cocos2d_CCBAnimationManager_getRunningSequenceName00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getRunningSequenceName'", NULL); -#endif - { - const char* tolua_ret = (const char*) self->getRunningSequenceName(); - tolua_pushstring(tolua_S,(const char*)tolua_ret); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'getRunningSequenceName'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: getAutoPlaySequenceId of class CCBAnimationManager */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_getAutoPlaySequenceId00 -static int tolua_Cocos2d_CCBAnimationManager_getAutoPlaySequenceId00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getAutoPlaySequenceId'", NULL); -#endif - { - int tolua_ret = (int) self->getAutoPlaySequenceId(); - tolua_pushnumber(tolua_S,(lua_Number)tolua_ret); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'getAutoPlaySequenceId'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: addDocumentCallbackName of class CCBAnimationManager */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_addDocumentCallbackName00 -static int tolua_Cocos2d_CCBAnimationManager_addDocumentCallbackName00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) || - !tolua_iscppstring(tolua_S,2,0,&tolua_err) || - !tolua_isnoobj(tolua_S,3,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0); - std::string name = ((std::string) tolua_tocppstring(tolua_S,2,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'addDocumentCallbackName'", NULL); -#endif - { - self->addDocumentCallbackName(name); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'addDocumentCallbackName'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: getRootNode of class CCBAnimationManager */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_getRootNode00 -static int tolua_Cocos2d_CCBAnimationManager_getRootNode00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getRootNode'", NULL); -#endif - { - Node* tolua_ret = (Node*) self->getRootNode(); - int nID = (tolua_ret) ? (int)tolua_ret->_ID : -1; - int* pLuaID = (tolua_ret) ? &tolua_ret->_luaID : NULL; - toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCNode"); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'getRootNode'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: addDocumentOutletNode of class CCBAnimationManager */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_addDocumentOutletNode00 -static int tolua_Cocos2d_CCBAnimationManager_addDocumentOutletNode00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) || - !tolua_isusertype(tolua_S,2,"CCNode",0,&tolua_err) || - !tolua_isnoobj(tolua_S,3,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0); - Node* node = ((Node*) tolua_tousertype(tolua_S,2,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'addDocumentOutletNode'", NULL); -#endif - { - self->addDocumentOutletNode(node); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'addDocumentOutletNode'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: addDocumentCallbackNode of class CCBAnimationManager */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_addDocumentCallbackNode00 -static int tolua_Cocos2d_CCBAnimationManager_addDocumentCallbackNode00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) || - !tolua_isusertype(tolua_S,2,"CCNode",0,&tolua_err) || - !tolua_isnoobj(tolua_S,3,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0); - Node* node = ((Node*) tolua_tousertype(tolua_S,2,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'addDocumentCallbackNode'", NULL); -#endif - { - self->addDocumentCallbackNode(node); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'addDocumentCallbackNode'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: runAnimationsForSequenceNamedTweenDuration of class CCBAnimationManager */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_runAnimationsForSequenceNamedTweenDuration01 -static int tolua_Cocos2d_CCBAnimationManager_runAnimationsForSequenceNamedTweenDuration01(lua_State* tolua_S) -{ - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) || - !tolua_isstring(tolua_S,2,0,&tolua_err) || - !tolua_isnumber(tolua_S,3,0,&tolua_err) || - !tolua_isnoobj(tolua_S,4,&tolua_err) - ) - goto tolua_lerror; - else - { - CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0); - const char* pName = ((const char*) tolua_tostring(tolua_S,2,0)); - float fTweenDuration = ((float) tolua_tonumber(tolua_S,3,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'runAnimationsForSequenceNamedTweenDuration'", NULL); -#endif - { - self->runAnimationsForSequenceNamedTweenDuration(pName,fTweenDuration); - } - } - return 0; -tolua_lerror: - return tolua_Cocos2d_CCBAnimationManager_runAnimationsForSequenceNamedTweenDuration00(tolua_S); -} -#endif //#ifndef TOLUA_DISABLE - -/* method: runAnimationsForSequenceNamed of class CCBAnimationManager */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_runAnimationsForSequenceNamed00 -static int tolua_Cocos2d_CCBAnimationManager_runAnimationsForSequenceNamed00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) || - !tolua_isstring(tolua_S,2,0,&tolua_err) || - !tolua_isnoobj(tolua_S,3,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0); - const char* pName = ((const char*) tolua_tostring(tolua_S,2,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'runAnimationsForSequenceNamed'", NULL); -#endif - { - self->runAnimationsForSequenceNamed(pName); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'runAnimationsForSequenceNamed'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: getDocumentCallbackNodes of class CCBAnimationManager */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_getDocumentCallbackNodes00 -static int tolua_Cocos2d_CCBAnimationManager_getDocumentCallbackNodes00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getDocumentCallbackNodes'", NULL); -#endif - { - Array* tolua_ret = (Array*) self->getDocumentCallbackNodes(); - int nID = (tolua_ret) ? (int)tolua_ret->_ID : -1; - int* pLuaID = (tolua_ret) ? &tolua_ret->_luaID : NULL; - toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCArray"); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'getDocumentCallbackNodes'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: setSequences of class CCBAnimationManager */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_setSequences00 -static int tolua_Cocos2d_CCBAnimationManager_setSequences00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) || - !tolua_isusertype(tolua_S,2,"CCArray",0,&tolua_err) || - !tolua_isnoobj(tolua_S,3,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0); - Array* seq = ((Array*) tolua_tousertype(tolua_S,2,0)); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setSequences'", NULL); -#endif - { - self->setSequences(seq); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'setSequences'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: debug of class CCBAnimationManager */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_debug00 -static int tolua_Cocos2d_CCBAnimationManager_debug00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'debug'", NULL); -#endif - { - self->debug(); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'debug'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: getDocumentControllerName of class CCBAnimationManager */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_getDocumentControllerName00 -static int tolua_Cocos2d_CCBAnimationManager_getDocumentControllerName00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getDocumentControllerName'", NULL); -#endif - { - std::string tolua_ret = (std::string) self->getDocumentControllerName(); - tolua_pushcppstring(tolua_S,(const char*)tolua_ret); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'getDocumentControllerName'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: setCallFunc of class CCBAnimationManager */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_setCallFuncForLuaCallbackNamed00 -static int tolua_Cocos2d_CCBAnimationManager_setCallFuncForLuaCallbackNamed00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) || - !tolua_isusertype(tolua_S,2, "CCCallFunc", 0, &tolua_err) || - !tolua_isstring(tolua_S, 3, 0, &tolua_err) || - !tolua_isnoobj(tolua_S,4,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setCallFuncForLuaCallbackNamed'", NULL); -#endif - { - CallFunc* pCallFunc = ((CallFunc*) tolua_tousertype(tolua_S,2,0)); - const char* keyframeCallback = ((const char*) tolua_tostring(tolua_S,3,0)); - std::string strKey = ""; - if (NULL != keyframeCallback) { - strKey = keyframeCallback; - } - self->setCallFunc(pCallFunc, strKey); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'setCallFuncForLuaCallbackNamed'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: create of class CCBProxy_ */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCArray_create00 -static int tolua_Cocos2d_CCBProxy_create00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertable(tolua_S,1,"CCBProxy",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - { - CCBProxy *tolua_ret = (CCBProxy*)CCBProxy::create(); - tolua_ret->init(); - int nID = (tolua_ret) ? (int)tolua_ret->_ID : -1; - int *pLuaID = (tolua_ret) ? &tolua_ret->_luaID : NULL; - toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCBProxy"); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'create'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: delete of class CCBProxy_delete00 */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBProxy_delete00 -static int tolua_Cocos2d_CCBProxy_delete00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBProxy",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBProxy* self = (CCBProxy*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL); -#endif - Mtolua_delete(self); - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: new of class CCBProxy */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBProxy_new00 -static int tolua_Cocos2d_CCBProxy_new00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertable(tolua_S,1,"CCBProxy",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - { - CCBProxy* tolua_ret = (CCBProxy*) Mtolua_new((CCBProxy)()); - int nID = (tolua_ret) ? (int)tolua_ret->_ID : -1; - int* pLuaID = (tolua_ret) ? &tolua_ret->_luaID : NULL; - toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCBProxy"); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: new_local of class CCBProxy */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBProxy_new00_local -static int tolua_Cocos2d_CCBProxy_new00_local(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertable(tolua_S,1,"CCBProxy",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - { - CCBProxy* tolua_ret = (CCBProxy*) Mtolua_new((CCBProxy)()); - int nID = (tolua_ret) ? (int)tolua_ret->_ID : -1; - int* pLuaID = (tolua_ret) ? &tolua_ret->_luaID : NULL; - toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCBProxy"); - tolua_register_gc(tolua_S,lua_gettop(tolua_S)); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: getOwnerCallbackNodes of class CCBReader */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBProxy_createCCBReader00 -static int tolua_Cocos2d_CCBProxy_createCCBReader00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBProxy",0,&tolua_err) || - !tolua_isnoobj(tolua_S,2,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBProxy* self = (CCBProxy*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'createCCBReader'", NULL); -#endif - { - CCBReader* tolua_ret = (CCBReader*) self->createCCBReader(); - int nID = (tolua_ret) ? (int)tolua_ret->_ID : -1; - int* pLuaID = (tolua_ret) ? &tolua_ret->_luaID : NULL; - toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCBReader"); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'createCCBReader'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: getOwnerCallbackNodes of class CCBReader */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBProxy_readCCBFromFile00 -static int tolua_Cocos2d_CCBProxy_readCCBFromFile00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBProxy",0,&tolua_err)|| - !tolua_isstring(tolua_S, 2, 0, &tolua_err)|| - !tolua_isusertype(tolua_S,3,"CCBReader",0,&tolua_err)|| - !tolua_isboolean(tolua_S,4,0,&tolua_err ) || - !tolua_isnoobj(tolua_S,5,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBProxy* self = (CCBProxy*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'readCCBFromFile'", NULL); -#endif - { - const char* pCCBFilePath = ((const char*) tolua_tostring(tolua_S,2,0)); - CCBReader* pCCBReader = ((CCBReader*) tolua_tousertype(tolua_S,3,0)); - bool bSetOwner = (bool) tolua_toboolean(tolua_S,4,0); - Node* tolua_ret = (Node*) self->readCCBFromFile(pCCBFilePath, pCCBReader,bSetOwner); - int nID = (tolua_ret) ? (int)tolua_ret->_ID : -1; - int* pLuaID = (tolua_ret) ? &tolua_ret->_luaID : NULL; - toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCNode"); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'readCCBFromFile'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - -/* method: getNodeTypeName of class CCBProxy */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBProxy_getNodeTypeName00 -static int tolua_Cocos2d_CCBProxy_getNodeTypeName00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBProxy",0,&tolua_err) || - !tolua_isusertype(tolua_S,2,"CCNode",0,&tolua_err) || - !tolua_isnoobj(tolua_S,3,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBProxy* self = (CCBProxy*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getNodeTypeName'", NULL); -#endif - { - Node* pNode = ((Node*) tolua_tousertype(tolua_S,2,0)); - const char* tolua_ret = (const char*)self->getNodeTypeName(pNode); - tolua_pushstring(tolua_S,(const char*)tolua_ret); - } - } - return 1; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'getOwner'.",&tolua_err); - return 0; -#endif - -} -#endif //#ifndef TOLUA_DISABLE - - -/* method: setCallback of class CCBProxy */ -#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBProxy_setCallback00 -static int tolua_Cocos2d_CCBProxy_setCallback00(lua_State* tolua_S) -{ -#ifndef TOLUA_RELEASE - tolua_Error tolua_err; - if ( - !tolua_isusertype(tolua_S,1,"CCBProxy",0,&tolua_err) || - !tolua_isusertype(tolua_S,2,"CCNode",0,&tolua_err) || - !toluafix_isfunction(tolua_S, 3, "LUA_FUNCTION", 0, &tolua_err) || - !tolua_isnoobj(tolua_S,4,&tolua_err) - ) - goto tolua_lerror; - else -#endif - { - CCBProxy* self = (CCBProxy*) tolua_tousertype(tolua_S,1,0); -#ifndef TOLUA_RELEASE - if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setCallback'", NULL); -#endif - { - Node* pNode = ((Node*)tolua_tousertype(tolua_S,2,0)); - LUA_FUNCTION nFunID = ( toluafix_ref_function(tolua_S,3,0)); - self->setCallback(pNode, nFunID); - } - } - return 0; -#ifndef TOLUA_RELEASE -tolua_lerror: - tolua_error(tolua_S,"#ferror in function 'getOwner'.",&tolua_err); - return 0; -#endif -} -#endif //#ifndef TOLUA_DISABLE - - -TOLUA_API int tolua_extensions_ccb_open(lua_State* tolua_S){ - tolua_open(tolua_S); - tolua_reg_extensions_ccb_type(tolua_S); - tolua_module(tolua_S,NULL,0); - tolua_beginmodule(tolua_S,NULL); - #ifdef __cplusplus - tolua_cclass(tolua_S,"CCBReader","CCBReader","CCObject",tolua_collect_CCBReader); - #else - tolua_cclass(tolua_S,"CCBReader","CCBReader","CCObject",NULL); - #endif - tolua_beginmodule(tolua_S,"CCBReader"); - tolua_function(tolua_S,"delete",tolua_Cocos2d_CCBReader_delete00); - tolua_function(tolua_S,"new",tolua_Cocos2d_CCBReader_new00); - tolua_function(tolua_S,"new_local",tolua_Cocos2d_CCBReader_new00_local); - tolua_function(tolua_S,".call",tolua_Cocos2d_CCBReader_new00_local); - tolua_function(tolua_S,"getOwnerCallbackNames",tolua_Cocos2d_CCBReader_getOwnerCallbackNames00); - tolua_function(tolua_S,"setCCBRootPath",tolua_Cocos2d_CCBReader_setCCBRootPath00); - tolua_function(tolua_S,"getOwnerCallbackNodes",tolua_Cocos2d_CCBReader_getOwnerCallbackNodes00); - tolua_function(tolua_S,"getCCBRootPath",tolua_Cocos2d_CCBReader_getCCBRootPath00); - tolua_function(tolua_S,"getOwnerOutletNodes",tolua_Cocos2d_CCBReader_getOwnerOutletNodes00); - tolua_function(tolua_S,"readUTF8",tolua_Cocos2d_CCBReader_readUTF800); - tolua_function(tolua_S,"getOwnerOutletNames",tolua_Cocos2d_CCBReader_getOwnerOutletNames00); - tolua_function(tolua_S,"setAnimationManagers",tolua_Cocos2d_CCBReader_setAnimationManagers00); - tolua_function(tolua_S,"getAnimationManagersForNodes",tolua_Cocos2d_CCBReader_getAnimationManagersForNodes00); - tolua_function(tolua_S,"getNodesWithAnimationManagers",tolua_Cocos2d_CCBReader_getNodesWithAnimationManagers00); - tolua_function(tolua_S,"getAnimationManager",tolua_Cocos2d_CCBReader_getAnimationManager00); - tolua_function(tolua_S,"setResolutionScale",tolua_Cocos2d_CCBReader_setResolutionScale00); - tolua_function(tolua_S,"new",tolua_Cocos2d_CCBReader_new01); - tolua_function(tolua_S,"new_local",tolua_Cocos2d_CCBReader_new01_local); - tolua_function(tolua_S,".call",tolua_Cocos2d_CCBReader_new01_local); - tolua_function(tolua_S, "getOwner", tolua_Cocos2d_ccbreader_getOwner00); - tolua_endmodule(tolua_S); - #ifdef __cplusplus - tolua_cclass(tolua_S,"CCBAnimationManager","CCBAnimationManager","CCObject",tolua_collect_CCBAnimationManager); - #else - tolua_cclass(tolua_S,"CCBAnimationManager","CCBAnimationManager","CCObject",NULL); - #endif - tolua_beginmodule(tolua_S,"CCBAnimationManager"); - tolua_function(tolua_S,"new",tolua_Cocos2d_CCBAnimationManager_new00); - tolua_function(tolua_S,"new_local",tolua_Cocos2d_CCBAnimationManager_new00_local); - tolua_function(tolua_S,".call",tolua_Cocos2d_CCBAnimationManager_new00_local); - tolua_function(tolua_S,"delete",tolua_Cocos2d_CCBAnimationManager_delete00); - tolua_function(tolua_S,"moveAnimationsFromNode",tolua_Cocos2d_CCBAnimationManager_moveAnimationsFromNode00); - tolua_function(tolua_S,"setAutoPlaySequenceId",tolua_Cocos2d_CCBAnimationManager_setAutoPlaySequenceId00); - tolua_function(tolua_S,"getDocumentCallbackNames",tolua_Cocos2d_CCBAnimationManager_getDocumentCallbackNames00); - tolua_function(tolua_S,"setBaseValue",tolua_Cocos2d_CCBAnimationManager_setBaseValue00); - tolua_function(tolua_S,"getDocumentOutletNodes",tolua_Cocos2d_CCBAnimationManager_getDocumentOutletNodes00); - tolua_function(tolua_S,"addNode",tolua_Cocos2d_CCBAnimationManager_addNode00); - tolua_function(tolua_S,"getLastCompletedSequenceName",tolua_Cocos2d_CCBAnimationManager_getLastCompletedSequenceName00); - tolua_function(tolua_S,"setRootNode",tolua_Cocos2d_CCBAnimationManager_setRootNode00); - tolua_function(tolua_S,"addDocumentOutletName",tolua_Cocos2d_CCBAnimationManager_addDocumentOutletName00); - tolua_function(tolua_S,"getSequences",tolua_Cocos2d_CCBAnimationManager_getSequences00); - tolua_function(tolua_S,"getRootContainerSize",tolua_Cocos2d_CCBAnimationManager_getRootContainerSize00); - tolua_function(tolua_S,"setDocumentControllerName",tolua_Cocos2d_CCBAnimationManager_setDocumentControllerName00); - tolua_function(tolua_S,"getContainerSize",tolua_Cocos2d_CCBAnimationManager_getContainerSize00); - tolua_function(tolua_S,"getDocumentOutletNames",tolua_Cocos2d_CCBAnimationManager_getDocumentOutletNames00); - tolua_function(tolua_S,"init",tolua_Cocos2d_CCBAnimationManager_init00); - tolua_function(tolua_S,"getKeyframeCallbacks",tolua_Cocos2d_CCBAnimationManager_getKeyframeCallbacks00); - tolua_function(tolua_S,"runAnimationsForSequenceNamedTweenDuration",tolua_Cocos2d_CCBAnimationManager_runAnimationsForSequenceNamedTweenDuration00); - tolua_function(tolua_S,"setRootContainerSize",tolua_Cocos2d_CCBAnimationManager_setRootContainerSize00); - tolua_function(tolua_S,"runAnimationsForSequenceIdTweenDuration",tolua_Cocos2d_CCBAnimationManager_runAnimationsForSequenceIdTweenDuration00); - tolua_function(tolua_S,"getRunningSequenceName",tolua_Cocos2d_CCBAnimationManager_getRunningSequenceName00); - tolua_function(tolua_S,"getAutoPlaySequenceId",tolua_Cocos2d_CCBAnimationManager_getAutoPlaySequenceId00); - tolua_function(tolua_S,"addDocumentCallbackName",tolua_Cocos2d_CCBAnimationManager_addDocumentCallbackName00); - tolua_function(tolua_S,"getRootNode",tolua_Cocos2d_CCBAnimationManager_getRootNode00); - tolua_function(tolua_S,"addDocumentOutletNode",tolua_Cocos2d_CCBAnimationManager_addDocumentOutletNode00); - tolua_function(tolua_S,"addDocumentCallbackNode",tolua_Cocos2d_CCBAnimationManager_addDocumentCallbackNode00); - tolua_function(tolua_S,"runAnimationsForSequenceNamedTweenDuration",tolua_Cocos2d_CCBAnimationManager_runAnimationsForSequenceNamedTweenDuration01); - tolua_function(tolua_S,"runAnimationsForSequenceNamed",tolua_Cocos2d_CCBAnimationManager_runAnimationsForSequenceNamed00); - tolua_function(tolua_S,"getDocumentCallbackNodes",tolua_Cocos2d_CCBAnimationManager_getDocumentCallbackNodes00); - tolua_function(tolua_S,"setSequences",tolua_Cocos2d_CCBAnimationManager_setSequences00); - tolua_function(tolua_S,"debug",tolua_Cocos2d_CCBAnimationManager_debug00); - tolua_function(tolua_S,"getDocumentControllerName",tolua_Cocos2d_CCBAnimationManager_getDocumentControllerName00); - tolua_function(tolua_S, "setCallFuncForLuaCallbackNamed", tolua_Cocos2d_CCBAnimationManager_setCallFuncForLuaCallbackNamed00); - tolua_endmodule(tolua_S); - #ifdef __cplusplus - tolua_cclass(tolua_S,"CCBProxy","CCBProxy","CCLayer",tolua_collect_CCBProxy); - #else - tolua_cclass(tolua_S,"CCBProxy","CCBProxy","CCLayer",NULL); - #endif - tolua_beginmodule(tolua_S,"CCBProxy"); - tolua_function(tolua_S,"new",tolua_Cocos2d_CCBProxy_new00); - tolua_function(tolua_S,"new_local",tolua_Cocos2d_CCBProxy_new00_local); - tolua_function(tolua_S,".call",tolua_Cocos2d_CCBProxy_new00_local); - tolua_function(tolua_S,"delete",tolua_Cocos2d_CCBProxy_delete00); - tolua_function(tolua_S, "create", tolua_Cocos2d_CCBProxy_create00); - tolua_function(tolua_S, "createCCBReader", tolua_Cocos2d_CCBProxy_createCCBReader00); - tolua_function(tolua_S, "readCCBFromFile", tolua_Cocos2d_CCBProxy_readCCBFromFile00); - tolua_function(tolua_S, "getNodeTypeName", tolua_Cocos2d_CCBProxy_getNodeTypeName00); - tolua_function(tolua_S, "setCallback", tolua_Cocos2d_CCBProxy_setCallback00); - tolua_endmodule(tolua_S); - tolua_endmodule(tolua_S); - return 1; -} diff --git a/scripting/lua/cocos2dx_support/Lua_extensions_CCB.h b/scripting/lua/cocos2dx_support/Lua_extensions_CCB.h deleted file mode 100644 index 5e4b1b7ee0..0000000000 --- a/scripting/lua/cocos2dx_support/Lua_extensions_CCB.h +++ /dev/null @@ -1,14 +0,0 @@ -#ifndef __LUA_EXTENSIONS_CCB_H__ -#define __LUA_EXTENSIONS_CCB_H__ - -#ifdef __cplusplus -extern "C" { -#endif -#include "tolua++.h" -#ifdef __cplusplus -} -#endif - -TOLUA_API int tolua_extensions_ccb_open(lua_State* tolua_S); - -#endif //__LUA_CCB_H__ diff --git a/scripting/lua/cocos2dx_support/lua_cocos2dx_deprecated.cpp.REMOVED.git-id b/scripting/lua/cocos2dx_support/lua_cocos2dx_deprecated.cpp.REMOVED.git-id index 3c896211b1..1307b885c9 100644 --- a/scripting/lua/cocos2dx_support/lua_cocos2dx_deprecated.cpp.REMOVED.git-id +++ b/scripting/lua/cocos2dx_support/lua_cocos2dx_deprecated.cpp.REMOVED.git-id @@ -1 +1 @@ -9b2a5b3fafa8e400f433eb3cd1875a43374df67e \ No newline at end of file +e70a68a07977b12b3f233641ac8d558e48c5517c \ No newline at end of file diff --git a/scripting/lua/cocos2dx_support/lua_cocos2dx_extension_manual.cpp b/scripting/lua/cocos2dx_support/lua_cocos2dx_extension_manual.cpp index 790e64a15e..761c9c2845 100644 --- a/scripting/lua/cocos2dx_support/lua_cocos2dx_extension_manual.cpp +++ b/scripting/lua/cocos2dx_support/lua_cocos2dx_extension_manual.cpp @@ -827,6 +827,8 @@ static int tolua_cocos2d_CCBAnimationManager_setCallFuncForLuaCallbackNamed(lua_ strKey = keyframeCallback; } self->setCallFunc(pCallFunc, strKey); + + return 0; } CCLOG("'setCallFuncForLuaCallbackNamed' function of CCBAnimationManager has wrong number of arguments: %d, was expecting %d\n", argc, 1); diff --git a/scripting/lua/proj.android/Android.mk b/scripting/lua/proj.android/Android.mk index 5a79262dfc..c089085eb3 100644 --- a/scripting/lua/proj.android/Android.mk +++ b/scripting/lua/proj.android/Android.mk @@ -11,10 +11,8 @@ LOCAL_SRC_FILES := ../cocos2dx_support/CCLuaBridge.cpp \ ../cocos2dx_support/CCLuaValue.cpp \ ../cocos2dx_support/Cocos2dxLuaLoader.cpp \ ../cocos2dx_support/CCBProxy.cpp \ - ../cocos2dx_support/Lua_extensions_CCB.cpp \ ../cocos2dx_support/Lua_web_socket.cpp \ ../cocos2dx_support/LuaOpengl.cpp \ - ../cocos2dx_support/LuaScrollView.cpp \ ../cocos2dx_support/LuaScriptHandlerMgr.cpp \ ../cocos2dx_support/LuaBasicConversions.cpp \ ../../auto-generated/lua-bindings/lua_cocos2dx_auto.cpp \ diff --git a/scripting/lua/proj.emscripten/Makefile b/scripting/lua/proj.emscripten/Makefile index b51ef3de8b..5c978d7a0f 100644 --- a/scripting/lua/proj.emscripten/Makefile +++ b/scripting/lua/proj.emscripten/Makefile @@ -47,9 +47,7 @@ SOURCES = ../lua/lapi.c \ ../cocos2dx_support/CCLuaValue.cpp \ ../cocos2dx_support/Cocos2dxLuaLoader.cpp \ ../cocos2dx_support/CCBProxy.cpp \ - ../cocos2dx_support/Lua_extensions_CCB.cpp \ ../cocos2dx_support/LuaOpengl.cpp \ - ../cocos2dx_support/LuaScrollView.cpp \ ../cocos2dx_support/LuaScriptHandlerMgr.cpp \ ../cocos2dx_support/LuaBasicConversions.cpp \ ../cocos2dx_support/lua_cocos2dx_manual.cpp \ diff --git a/scripting/lua/proj.linux/Makefile b/scripting/lua/proj.linux/Makefile index 4913da40bc..b718baf883 100644 --- a/scripting/lua/proj.linux/Makefile +++ b/scripting/lua/proj.linux/Makefile @@ -47,9 +47,7 @@ SOURCES = ../lua/lapi.c \ ../cocos2dx_support/CCLuaValue.cpp \ ../cocos2dx_support/Cocos2dxLuaLoader.cpp \ ../cocos2dx_support/CCBProxy.cpp \ - ../cocos2dx_support/Lua_extensions_CCB.cpp \ ../cocos2dx_support/LuaOpengl.cpp \ - ../cocos2dx_support/LuaScrollView.cpp \ ../cocos2dx_support/LuaScriptHandlerMgr.cpp \ ../cocos2dx_support/LuaBasicConversions.cpp \ ../cocos2dx_support/lua_cocos2dx_manual.cpp \ diff --git a/scripting/lua/proj.win32/liblua.vcxproj b/scripting/lua/proj.win32/liblua.vcxproj index 55b9ef9815..cc6539600d 100644 --- a/scripting/lua/proj.win32/liblua.vcxproj +++ b/scripting/lua/proj.win32/liblua.vcxproj @@ -133,11 +133,9 @@ xcopy /Y /Q "$(ProjectDir)..\luajit\win32\*.*" "$(OutDir)" - - @@ -158,11 +156,9 @@ xcopy /Y /Q "$(ProjectDir)..\luajit\win32\*.*" "$(OutDir)" - - diff --git a/scripting/lua/proj.win32/liblua.vcxproj.filters b/scripting/lua/proj.win32/liblua.vcxproj.filters index 7d9abe41e4..a3d0d7c40b 100644 --- a/scripting/lua/proj.win32/liblua.vcxproj.filters +++ b/scripting/lua/proj.win32/liblua.vcxproj.filters @@ -51,9 +51,6 @@ cocos2dx_support - - cocos2dx_support - cocos2dx_support @@ -63,9 +60,6 @@ cocos2dx_support - - cocos2dx_support - cocos2dx_support @@ -125,9 +119,6 @@ luajit\include - - cocos2dx_support - cocos2dx_support @@ -137,9 +128,6 @@ cocos2dx_support - - cocos2dx_support - cocos2dx_support